/* ===========================
   نظام كاشير السوبر ماركيت
   تصميم Glassmorphism متكامل
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&display=swap');

:root {
  /* ألوان أساسية */
  --primary: #a78bfa;
  --primary-dark: #8b5cf6;
  --primary-light: #c084fc;
  --secondary: #fda4af;
  --success: #86efac;
  --warning: #fde047;
  --danger: #fca5a5;
  --info: #7dd3fc;

  /* خلفيات صلبة (بدلاً من Glassmorphism) */
  --bg-body: #0c081e;
  --bg-dark: #120e26;
  --bg-card: #161233;
  --bg-card-hover: #1e1944;
  --bg-sidebar: #0e0a22;
  --bg-glass: #1b163c;
  --bg-glass-strong: #231d51;
  --bg-input: #120e26;

  /* حدود صلبة */
  --border: #251e50;
  --border-light: #1d1840;
  --border-glow: #8b5cf6;
  --border-color: #251e50;
  --bg-secondary: #100c28;

  /* نصوص */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  /* أبعاد */
  --sidebar-width: 260px;
  --header-height: 64px;

  /* ظلال */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(167, 139, 250, 0.2);
  --shadow-cyan: 0 0 25px rgba(125, 211, 252, 0.2);

  /* حواف */
  --radius: 16px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  /* تأثيرات */
  --blur: none;
  --blur-sm: none;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body: #0c081e;
  --bg-dark: #120e26;
  --bg-card: #161233;
  --bg-card-hover: #1e1944;
  --border-color: #251e50;
  --bg-secondary: #100c28;
}

[data-theme="light"] {
  --bg-body: #f5f3ff;
  --bg-dark: #ede9fe;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f0ff;
  --bg-glass: #f3f0ff;
  --bg-glass-strong: #ede9fe;
  --bg-input: #ffffff;
  --bg-sidebar: #ede9fe;
  --border: #ddd6fe;
  --border-light: #eef2ff;
  --border-color: #ddd6fe;
  --bg-secondary: #f8fafc;
  --text-primary: #1e1b4b;
  --text-secondary: #4338ca;
  --text-muted: #818cf8;
  --shadow: 0 8px 30px rgba(167, 139, 250, 0.06);
}

*, *::before, *::after {
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: none !important;
}

.theme-toggle-btn {
  position: relative;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

.theme-toggle-btn:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Inter', 'Noto Kufi Arabic', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  overflow-x: hidden;
  direction: rtl;
  min-height: 100vh;
  position: relative;
}

/* خلفية مبسطة صلبة */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-body);
  z-index: -1;
  pointer-events: none;
}

body::after {
  display: none;
}


/* ========= SPLASH SCREEN ========= */
#splash-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

#splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 20% 0%, rgba(167, 139, 250, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 100%, rgba(6, 182, 212, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.splash-content {
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.splash-logo {
  margin-bottom: 40px;
}

.splash-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-15px);
  }
}

.splash-logo h1 {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.splash-logo p {
  color: var(--text-secondary);
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.splash-loader {
  width: 300px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: loading 2s ease-in-out forwards, shimmer 1.5s infinite;
}

@keyframes loading {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* ========= LOGIN SCREEN ========= */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.login-bg {
  width: 100%;
  height: 100%;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 10% 10%, rgba(167, 139, 250, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 90%, rgba(6, 182, 212, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.login-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: floatOrb 8s ease-in-out infinite;
}

.login-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(30px);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  font-size: 60px;
  margin-bottom: 16px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.login-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  text-align: right;
  -webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter:;
-filter:;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25), 0 0 20px rgba(167, 139, 250, 0.1);
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  letter-spacing: 1px;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.5);
}

.login-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 16px;
}

/* ========= MAIN APP ========= */
#main-app {
  display: flex;
  min-height: 100vh;
}

/* ========= SIDEBAR ========= */
.sidebar {
  display: none !important;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), transparent);
}

.store-logo {
  font-size: 36px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.store-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0, 200, 150, 0.2);
  color: var(--success);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 8px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  margin-bottom: 4px;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateX(-4px);
-webkit-backdrop-filter:;
-filter:;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.08));
  color: var(--primary-light);
  border-right: 3px solid var(--primary);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.currency-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
-webkit-backdrop-filter:;
-filter:;
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
-webkit-backdrop-filter:;
-filter:;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* ========= MAIN CONTENT ========= */
.main-content {
  flex: 1;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========= HEADER ========= */
.top-header {
  height: var(--header-height);
  background: rgba(5, 0, 16, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 50;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(20px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: none;
}

.page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-time {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
-webkit-backdrop-filter:;
-filter:;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.user-avatar {
  font-size: 20px;
}

.notifications-btn {
  position: relative;
  cursor: pointer;
  font-size: 20px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.notifications-btn:hover {
  background: var(--bg-dark);
}

.notif-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========= PAGES ========= */
.page {
  display: none;
  padding: 20px;
  flex: 1;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========= POS PAGE ========= */
.pos-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  height: auto;
  align-items: start;
}

/* Products Section */
.pos-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  height: calc(100vh - var(--header-height) - 40px);
  position: sticky;
  top: 20px;
}

.pos-search-bar {
  display: flex;
  gap: 10px;
}

.pos-search-bar input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  text-align: right;
-webkit-backdrop-filter:;
-filter:;
}

.pos-search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.btn-barcode {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--info), #1488cc);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-barcode:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-wrap: nowrap;
}

.category-tabs::-webkit-scrollbar {
  height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.cat-tab {
  padding: 8px 18px;


  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
-webkit-backdrop-filter:;
-filter:;
}

.cat-tab:hover,
.cat-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 4px 2px;
  flex: 1;
  min-height: 0;
}

.products-grid::-webkit-scrollbar {
  width: 6px;
}

.products-grid::-webkit-scrollbar-track {
  background: transparent;
}

.products-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(15px);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0), rgba(59, 130, 246, 0));
  transition: var(--transition);
  pointer-events: none;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-glow);
  background: var(--bg-card-hover);
}

.product-card:hover::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.05));
}

.product-card.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-card:active {
  transform: scale(0.96);
}

.product-emoji {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--success);
}

.product-stock-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.product-stock-badge.low {
  background: rgba(255, 181, 71, 0.2);
  color: var(--warning);
}

.product-stock-badge.out {
  background: rgba(255, 77, 109, 0.2);
  color: var(--danger);
}

/* Cart Section */
.pos-cart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: visible;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.pos-cart::-webkit-scrollbar {
  width: 6px;
}

.pos-cart::-webkit-scrollbar-track {
  background: transparent;
}

.pos-cart::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.cart-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), transparent);
}

.cart-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-controls select {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  max-width: 130px;
-webkit-backdrop-filter:;
-filter:;
}

.btn-clear-cart {
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
-webkit-backdrop-filter:;
-filter:;
}

.btn-clear-cart:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.cart-items {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 150px;
}

.cart-items::-webkit-scrollbar {
  width: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 150px;
  color: var(--text-muted);
  text-align: center;
}

.cart-empty span {
  font-size: 40px;
  margin-bottom: 8px;
}

.cart-empty p {
  font-size: 14px;
  font-weight: 600;
}

.cart-empty small {
  font-size: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: var(--transition);
  animation: slideIn 0.3s ease;
-webkit-backdrop-filter:;
-filter:;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item:hover {
  border-color: var(--border);
}

.cart-item-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: 700;
-webkit-backdrop-filter:;
-filter:;
}

.qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.qty-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 24px;
  text-align: center;
}

.cart-item-total {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-light);
  min-width: 70px;
  text-align: left;
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
  opacity: 0.6;
}

.btn-remove-item:hover {
  opacity: 1;
  background: rgba(255, 77, 109, 0.1);
}

/* Cart Summary */
.cart-summary {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
-webkit-backdrop-filter:;
-filter:;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.discount-row {
  align-items: center;
}

.discount-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.discount-controls input {
  width: 80px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 13px;
  text-align: center;
-webkit-backdrop-filter:;
-filter:;
}

.discount-controls select {
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
-webkit-backdrop-filter:;
-filter:;
}

.tax-row {
  color: var(--warning);
}

.total-row {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.total-amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.total-iqd {
  font-size: 18px;
  font-weight: 900;
  color: var(--success);
}

.total-usd {
  font-size: 13px;
  color: var(--info);
  font-weight: 600;
}

.payment-section {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.payment-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pay-method {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
-webkit-backdrop-filter:;
-filter:;
}

.pay-method:hover,
.pay-method.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(99, 102, 241, 0.05));
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: var(--shadow-glow);
}

.cash-currency {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.currency-btn {
  flex: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
-webkit-backdrop-filter:;
-filter:;
}

.currency-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--success);
  color: var(--success);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.cash-input-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.cash-input-group input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
-webkit-backdrop-filter:;
-filter:;
}

.cash-input-group input:focus {
  outline: none;
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 0 20px rgba(16, 185, 129, 0.1);
}

.change-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
-webkit-backdrop-filter:;
-filter:;
}

.change-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--success);
}

.quick-amounts {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.quick-amount-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
-webkit-backdrop-filter:;
-filter:;
}

.quick-amount-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--success), #059669);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-checkout::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-checkout:hover::after {
  left: 100%;
}

.btn-checkout:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.btn-checkout:active {
  transform: scale(0.98);
}

/* ========= PAGE HEADER BAR ========= */
.page-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header-bar h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.date-picker-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.date-picker-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.date-picker-group .date-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  user-select: none;
}

.date-picker-group input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-primary) !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 4px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.date-picker-group input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.date-picker-group input:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

[data-theme="dark"] .date-picker-group input::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.95);
}

/* ========= PRODUCTS TABLE ========= */
.products-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 14px 16px;
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: var(--bg-card-hover);
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 900;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
}

.status-badge.low {
  background: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

.status-badge.out {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

/* ========= BUTTONS ========= */
.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  padding: 10px 20px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-outline {
  padding: 10px 20px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-outline:hover {
  background: rgba(108, 99, 255, 0.22);
}

.btn-danger {
  padding: 10px 20px;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: rgba(255, 77, 109, 0.25);
}

.btn-icon {
  padding: 6px 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.btn-icon.edit:hover {
  color: var(--info);
  border-color: var(--info);
}

.btn-icon.delete:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ========= SEARCH INPUT ========= */
.search-input {
  padding: 10px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  min-width: 220px;
  transition: var(--transition);
  text-align: right;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-select {
  padding: 10px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
}

/* ========= INVENTORY ========= */
.inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.inv-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.inv-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -8px rgba(0, 0, 0, 0.04);
}

}

.inv-stat-card:nth-child(6)::before {
  background: #f43f5e;
}

.inv-stat-card.warning {
  border-color: rgba(255, 181, 71, 0.3);
}

.inv-stat-card.danger {
  border-color: rgba(255, 77, 109, 0.3);
}

.inv-stat-icon {
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 20px;
}

.inv-stat-value {
  display: block;
  font-size: 38px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.inv-stat-label {
  display: block;
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 800;
  margin-top: 6px;
}

/* ========= CUSTOMERS ========= */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.customer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.customer-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.customer-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.customer-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.customer-card-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.customer-card-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.customer-card-stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.customer-card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.customer-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ========= REPORTS ========= */
.reports-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.report-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.report-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -8px rgba(0, 0, 0, 0.04);
}

.report-stat-icon {
  font-size: 42px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(255, 101, 132, 0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-stat-label {
  display: block;
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 800;
  margin-top: 6px;
}

.report-stat-value {
  display: block;
  font-size: 38px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.reports-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.chart-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.chart-card.large {
  grid-column: 1 / -1;
}

.reports-tables {
  display: block;
}

.report-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.report-table-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

/* ========= DASHBOARD ========= */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.1;
  transition: var(--transition);
}

.dash-card.big {
  grid-column: span 2;
}

.dash-card.blue::before {
  background: var(--primary);
}

.dash-card.green::before {
  background: var(--success);
}

.dash-card.orange::before {
  background: var(--warning);
}

.dash-card.purple::before {
  background: var(--secondary);
}

.dash-card.red::before {
  background: var(--danger);
}

.dash-card.teal::before {
  background: var(--info);
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.dash-card:hover::before {
  opacity: 0.2;
}

.dash-card-icon {
  font-size: 36px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-card.blue .dash-card-icon {
  background: rgba(108, 99, 255, 0.15);
}

.dash-card.green .dash-card-icon {
  background: rgba(0, 200, 150, 0.15);
}

.dash-card.orange .dash-card-icon {
  background: rgba(255, 181, 71, 0.15);
}

.dash-card.purple .dash-card-icon {
  background: rgba(255, 101, 132, 0.15);
}

.dash-card.red .dash-card-icon {
  background: rgba(255, 77, 109, 0.15);
}

.dash-card.teal .dash-card-icon {
  background: rgba(23, 162, 184, 0.15);
}

.dash-card-info h3 {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.dash-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
}

.dash-sub {
  font-size: 13px;
  color: var(--info);
  font-weight: 600;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.dash-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.dash-table-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-rank-item,
.stock-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.product-rank-item:last-child,
.stock-alert-item:last-child {
  border-bottom: none;
}

/* ========= SETTINGS ========= */
.settings-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1000px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.settings-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ========= FORMS ========= */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  text-align: right;
-webkit-backdrop-filter:;
-filter:;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2), 0 0 20px rgba(167, 139, 250, 0.08);
  background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.required {
  color: var(--danger);
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn input {
  flex: 1;
}

.input-with-btn button {
  padding: 10px 14px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.input-with-btn button:hover {
  background: var(--primary-dark);
}

/* ========= MODALS ========= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  padding: 20px;
}

.modal {
  background: rgba(15, 5, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(30px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-sm {
  max-width: 420px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), transparent);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
-webkit-backdrop-filter:;
-filter:;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.1);
}

/* ========= TOAST ========= */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-100px);
  }
}

.toast.success {
  background: linear-gradient(135deg, var(--success), #00a882);
}

.toast.error {
  background: linear-gradient(135deg, var(--danger), #c0392b);
}

.toast.warning {
  background: linear-gradient(135deg, var(--warning), #e67e22);
}

.toast.info {
  background: linear-gradient(135deg, var(--info), #1480bb);
}

/* ========= NOTIFICATIONS ========= */
.notifications-panel {
  position: absolute;
  top: var(--header-height);
  left: 20px;
  width: 320px;
  background: rgba(15, 5, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 200;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(25px);
}

.notifications-panel h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item span {
  font-size: 18px;
}

/* ========= RECEIPT ========= */
.receipt {
  font-family: 'Noto Kufi Arabic', monospace;
  color: var(--text-primary);
  text-align: center;
}

.receipt-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--border);
}

.receipt-header h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.receipt-header p {
  font-size: 12px;
  color: var(--text-secondary);
}

.receipt-items {
  margin-bottom: 12px;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  text-align: right;
}

.receipt-item-name {
  flex: 1;
  text-align: right;
}

.receipt-item-qty {
  width: 40px;
  text-align: center;
  color: var(--text-secondary);
}

.receipt-item-price {
  width: 90px;
  text-align: left;
  color: var(--success);
  font-weight: 700;
}

.receipt-totals {
  border-top: 2px dashed var(--border);
  padding-top: 12px;
  margin-bottom: 12px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 14px;
}

.receipt-grand-total {
  font-size: 18px;
  font-weight: 900;
  color: var(--success);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.receipt-footer {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 2px dashed var(--border);
  padding-top: 12px;
}

/* ========= CATEGORIES LIST ========= */
.categories-list {
  margin-top: 16px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ========= PRINT STYLES ========= */
@media print {

  /* Default page print (A4 reports, accounts, etc.) when printing-page is active */
  body.printing-page {
    background: white !important;
    color: black !important;
  }

  body.printing-page .sidebar,
  body.printing-page .header,
  body.printing-page .theme-toggle-btn,
  body.printing-page .page-header-bar button,
  body.printing-page .modal-footer,
  body.printing-page .modal-close,
  body.printing-page #toast-container,
  body.printing-page .settings-actions {
    display: none !important;
  }

  body.printing-page #main-app {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.printing-page .main-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.printing-page .page {
    display: none !important;
  }

  body.printing-page .page[style*="display: block"],
  body.printing-page .page[style*="display:block"] {
    display: block !important;
    background: white !important;
    color: black !important;
    padding: 0 !important;
  }

  body.printing-page .report-stat-card,
  body.printing-page .inv-stat-card,
  body.printing-page .settings-card,
  body.printing-page .supplier-card,
  body.printing-page .employee-card,
  body.printing-page .dash-card {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    transform: none !important;
    page-break-inside: avoid;
  }

  body.printing-page .data-table tbody tr {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  body.printing-page .data-table thead th {
    color: black !important;
    border-bottom: 2px solid black !important;
  }

  body.printing-page .data-table tbody tr td {
    border-bottom: 1px solid #ccc !important;
  }

  /* Thermal Receipt Printing Override (Default print or printing-receipt class) */
  body:not(.printing-page) * {
    visibility: hidden;
  }

  body:not(.printing-page) #receipt-content,
  body:not(.printing-page) #receipt-content * {
    visibility: visible;
    color: black !important;
    background: white !important;
  }

  body:not(.printing-page) #receipt-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
  }
}

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1200px) {
  .reports-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .reports-charts {
    grid-template-columns: 1fr;
  }

  .reports-tables {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-card.big {
    grid-column: 1 / -1;
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .dashboard-tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pos-container {
    grid-template-columns: 1fr;
  }

  .pos-cart {
    max-height: none;
    overflow-y: auto;
  }

  .payment-section {
    max-height: none;
  }

  .settings-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .inventory-stats {
    grid-template-columns: 1fr;
  }
}

/* ========= DEBT STYLES ========= */

/* زر الدين في الكاشير */
.pay-method.debt-method {
  background: rgba(255, 107, 53, 0.1) !important;
  border-color: rgba(255, 107, 53, 0.3) !important;
}

.pay-method.debt-method:hover,
.pay-method.debt-method.active {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(247, 147, 30, 0.2)) !important;
  border-color: #ff6b35 !important;
  color: #ff6b35 !important;
}

.debt-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.debt-info-box span {
  font-size: 22px;
}

.debt-info-box strong {
  color: #ff6b35;
  display: block;
  margin-bottom: 2px;
}

.debt-info-box p {
  color: var(--text-muted);
  font-size: 12px;
}

/* شارة الديون في الشريط الجانبي */
.debt-nav-badge {
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 12px;
  margin-right: auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* ملخص الديون - Premium Redesign */
.debts-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.debt-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.debt-summary-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
}

.debt-summary-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-glow);
}

.debt-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  transition: width 0.3s ease;
  z-index: -1;
}

.debt-summary-card.red::before { background: linear-gradient(180deg, #ef4444, #fca5a5); }
.debt-summary-card.orange::before { background: linear-gradient(180deg, #f97316, #fdba74); }
.debt-summary-card.yellow::before { background: linear-gradient(180deg, #eab308, #fde047); }
.debt-summary-card.green::before { background: linear-gradient(180deg, #10b981, #6ee7b7); }

.debt-summary-card.red { border-color: rgba(239, 68, 68, 0.3); }
.debt-summary-card.orange { border-color: rgba(249, 115, 22, 0.3); }
.debt-summary-card.yellow { border-color: rgba(234, 179, 8, 0.3); }
.debt-summary-card.green { border-color: rgba(16, 185, 129, 0.3); }

.debt-sum-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.debt-summary-card:hover .debt-sum-icon {
  transform: scale(1.1) rotate(5deg);
}

.debt-summary-card.red .debt-sum-icon { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.debt-summary-card.orange .debt-sum-icon { color: #f97316; background: rgba(249, 115, 22, 0.1); }
.debt-summary-card.yellow .debt-sum-icon { color: #eab308; background: rgba(234, 179, 8, 0.1); }
.debt-summary-card.green .debt-sum-icon { color: #10b981; background: rgba(16, 185, 129, 0.1); }

.debt-sum-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.debt-sum-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.debt-summary-card.red .debt-sum-value { color: #ef4444; }
.debt-summary-card.orange .debt-sum-value { color: #f97316; }
.debt-summary-card.yellow .debt-sum-value { color: #eab308; }
.debt-summary-card.green .debt-sum-value { color: #10b981; }

/* حاوية الديون الرئيسية - Premium */
.debts-main-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  min-height: 600px;
}

/* قائمة العملاء المدينين */
.debtors-list-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.debtors-list-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 10;
}

.debtors-list-panel h4 {
  padding: 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.debtors-list {
  overflow-y: auto;
  flex: 1;
  max-height: 650px;
  padding: 12px;
}

.debtors-list::-webkit-scrollbar { width: 6px; }
.debtors-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.debtors-list::-webkit-scrollbar-track { background: transparent; }

.debtor-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  margin-bottom: 8px;
  background: var(--bg-secondary);
}

.debtor-item:hover {
  transform: translateX(-4px) scale(1.02);
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  background: var(--bg-card-hover);
}

.debtor-item.active {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(167, 139, 250, 0.05));
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: inset 4px 0 0 var(--primary);
}

.debtor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--danger), #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.debtor-info {
  flex: 1;
  min-width: 0;
}

.debtor-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.debtor-phone {
  font-size: 12px;
  color: var(--text-muted);
}

.debtor-debt-amount {
  text-align: left;
  flex-shrink: 0;
}

.debtor-debt-iqd {
  font-size: 13px;
  font-weight: 800;
  color: var(--danger);
  display: block;
}

.debtor-debt-count {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* لوحة تفاصيل الدين - Premium */
.debt-detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.debt-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  min-height: 400px;
  color: var(--text-muted);
  gap: 20px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-10px) scale(1.05); opacity: 0.4; }
}

.debt-detail-empty span {
  font-size: 80px;
  filter: grayscale(1);
  animation: floatPulse 4s infinite ease-in-out;
}

.debt-detail-empty p {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.8;
}

/* رأس تفاصيل العميل - Premium */
.debt-detail-header {
  padding: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.debt-detail-customer {
  display: flex;
  align-items: center;
  gap: 18px;
}

.debt-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: white;
  box-shadow: 0 4px 10px rgba(167, 139, 250, 0.4);
}

.debt-detail-customer-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.debt-detail-customer-info p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.debt-detail-totals {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.debt-total-pill {
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.debt-total-pill.red {
  background: rgba(255, 77, 109, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 77, 109, 0.25);
}

.debt-total-pill.green {
  background: rgba(0, 200, 150, 0.15);
  color: var(--success);
  border: 1px solid rgba(0, 200, 150, 0.25);
}

.debt-total-pill.orange {
  background: rgba(255, 107, 53, 0.15);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.debt-total-pill-label {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin-bottom: 2px;
}

/* قائمة عمليات الدين */
.debt-transactions-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.debt-transactions-list::-webkit-scrollbar {
  width: 4px;
}

.debt-transactions-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* بطاقة عملية الدين */
.debt-transaction-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.debt-transaction-card:hover {
  border-color: rgba(255, 77, 109, 0.3);
}

.debt-txn-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
}

.debt-txn-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.debt-txn-date-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.debt-txn-date-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 77, 109, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.debt-txn-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.debt-txn-time {
  font-size: 11px;
  color: var(--text-muted);
}

.debt-txn-status-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.debt-txn-amount {
  font-size: 16px;
  font-weight: 900;
  color: var(--danger);
}

.debt-txn-remaining {
  font-size: 11px;
  color: var(--text-muted);
}

.debt-status-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.debt-status-pill.pending {
  background: rgba(255, 77, 109, 0.15);
  color: var(--danger);
}

.debt-status-pill.partial {
  background: rgba(255, 181, 71, 0.15);
  color: var(--warning);
}

.debt-status-pill.paid {
  background: rgba(0, 200, 150, 0.15);
  color: var(--success);
}

.debt-txn-expand-icon {
  color: var(--text-muted);
  font-size: 12px;
  transition: var(--transition);
}

.debt-txn-expand-icon.open {
  transform: rotate(180deg);
}

/* تفاصيل المنتجات داخل عملية الدين */
.debt-txn-body {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border-light);
  display: none;
  animation: fadeIn 0.2s ease;
}

.debt-txn-body.open {
  display: block;
}

.debt-txn-items-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.debt-txn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.debt-txn-item:last-child {
  border-bottom: none;
}

.debt-txn-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: var(--text-primary);
  font-weight: 600;
}

.debt-txn-item-emoji {
  font-size: 18px;
}

.debt-txn-item-qty {
  color: var(--text-muted);
  font-size: 12px;
  padding: 0 12px;
}

.debt-txn-item-price {
  color: var(--success);
  font-weight: 800;
  min-width: 80px;
  text-align: left;
}

.debt-txn-items-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 2px dashed var(--border);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

/* سجل الدفعات */
.debt-payments-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.debt-payments-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.debt-payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(0, 200, 150, 0.05);
  border: 1px solid rgba(0, 200, 150, 0.1);
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 12px;
}

.debt-payment-date {
  color: var(--text-muted);
}

.debt-payment-amount {
  color: var(--success);
  font-weight: 700;
}

.debt-payment-note {
  color: var(--text-muted);
  font-size: 11px;
  flex: 1;
  text-align: center;
}

/* أزرار الدين */
.debt-txn-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.btn-pay-debt {
  flex: 1;
  padding: 9px;
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 200, 150, 0.05));
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pay-debt:hover {
  background: rgba(0, 200, 150, 0.25);
}

.btn-delete-debt {
  padding: 9px 14px;
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-delete-debt:hover {
  background: rgba(255, 77, 109, 0.2);
}

/* نافذة الدفع */
.debt-remaining-display {
  padding: 16px 20px;
  background: #ef4444 !important; /* Strong red */
  border: none;
  border-radius: var(--radius-md);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff !important;
  text-align: center;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
}

.debt-pay-customer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.debt-pay-result {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
}

.debt-pay-result.success {
  background: #dcfce7 !important;
  border: 2px solid #22c55e !important;
  color: #15803d !important;
  font-size: 16px;
  font-weight: 800;
  padding: 14px;
}

.debt-pay-result.warning {
  background: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
  color: #b45309 !important;
  font-size: 16px;
  font-weight: 800;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

/* معلومات الدين في تفاصيل العملية */
.debt-txn-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255, 181, 71, 0.08);
  border-radius: 6px;
  font-size: 12px;
  color: var(--warning);
}

/* تحديث من الكاشير */
.debt-currency-state {
  display: none;
}

@media (max-width: 1100px) {
  .debts-summary-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .debts-main-container {
    grid-template-columns: 1fr;
  }
}

/* ========= CARD & TRANSFER PAYMENT ========= */
.card-transfer-info-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(100, 220, 180, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.cti-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 200, 150, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cti-text {
  flex: 1;
}

.cti-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.cti-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.cti-amount {
  font-size: 18px;
  font-weight: 900;
  color: var(--success);
  text-align: left;
  flex-shrink: 0;
}

.card-confirm-hint {
  padding: 10px 14px;
  background: rgba(0, 200, 150, 0.06);
  border: 1px dashed rgba(0, 200, 150, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 6px;
}

.card-confirm-hint strong {
  color: var(--success);
}

/* =========================================
   EMOJI & IMAGE PICKER
   ========================================= */
.emoji-picker-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-dark);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.emoji-preview {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.emoji-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emoji-picker-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.emoji-item {
  font-size: 48px;
  text-align: center;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-item:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
  border-color: var(--primary);
}

/* =========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================= */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-right: 0;
  }

  .pos-container {
    grid-template-columns: 1fr 300px;
  }

  .pos-cart {
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 768px) {
  .pos-container {
    grid-template-columns: 1fr;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .pos-products {
    height: 60vh;
  }

  .pos-cart {
    height: 60vh;
    margin-top: 10px;
  }

  .modal-body.grid-2,
  .dash-grid,
  .dash-main {
    grid-template-columns: 1fr;
  }

  .products-table-container,
  .inventory-table-container,
  .reports-table-container,
  .customers-table-container,
  .debts-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    white-space: nowrap;
  }

  .header-left .header-time {
    display: none;
  }

  .login-card {
    padding: 30px 20px;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-actions {
    justify-content: space-between;
    gap: 8px;
  }

  .page-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .inventory-filters,
  .reports-filters,
  .customers-filters {
    flex-direction: column;
  }

  .inventory-filters input,
  .inventory-filters select,
  .reports-filters input,
  .reports-filters select,
  .customers-filters input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pos-products {
    height: 50vh;
  }

  .pos-cart {
    height: 55vh;
  }

  .store-info h3 {
    font-size: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .product-card {
    padding: 12px 8px;
  }

  .product-emoji {
    font-size: 28px;
  }

  .product-name {
    font-size: 12px;
  }

  .product-price {
    font-size: 13px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cart-item-price {
    width: 100%;
    text-align: left;
  }
}

/* ========= HOME SCREEN STYLES - PREMIUM REDESIGN ========= */
@keyframes home-float-in {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes home-card-glow-pulse {

  0%,
  100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(167, 139, 250, 0);
  }

  50% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px 2px rgba(167, 139, 250, 0.08);
  }
}

@keyframes home-shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes home-icon-bounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(-8px) scale(1.08);
  }

  70% {
    transform: translateY(-3px) scale(1.03);
  }
}

@keyframes home-status-blink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px #10b981;
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 2px #10b981;
  }
}

@keyframes home-badge-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes home-orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -15px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 10px) scale(0.97);
  }
}

.home-screen-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  animation: home-float-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ===== HEADER PANEL ===== */
.home-header-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg,
      rgba(167, 139, 250, 0.15) 0%,
      rgba(236, 72, 153, 0.08) 50%,
      rgba(6, 182, 212, 0.10) 100%);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 24px;
  padding: 28px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.home-header-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(167, 139, 250, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.home-header-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.7), rgba(236, 72, 153, 0.5), rgba(6, 182, 212, 0.6), transparent);
}

.home-header-info {
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.home-header-logo {
  font-size: 36px;
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.home-header-logo:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.6);
}

.home-header-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.home-header-text h1 {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.home-header-text p {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.home-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
-webkit-backdrop-filter:;
-filter:;
}

.home-header-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  filter: blur(20px);
  animation: float-slow 10s ease-in-out infinite alternate;
}

.circle-1 {
  width: 150px;
  height: 150px;
  top: -40px;
  left: 5%;
  background: rgba(167, 139, 250, 0.15);
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: 25%;
  background: rgba(6, 182, 212, 0.1);
  animation-delay: 2s;
}

.circle-3 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 20%;
  background: rgba(236, 72, 153, 0.1);
  animation-delay: 4s;
}

@keyframes float-slow {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-20px) scale(1.05);
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: home-status-blink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* ===== GRID ===== */
.home-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .home-grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .home-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .home-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .home-header-panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 20px;
    padding: 22px 20px;
  }

  .home-header-info {
    flex-direction: column;
    gap: 14px;
  }

  .home-header-logo {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .home-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .home-screen-wrapper {
    padding: 16px 12px;
    gap: 16px;
  }
}

/* ===== NAV CARDS ===== */
.home-nav-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  gap: 16px;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(16px);
}

/* Staggered animation for cards */
.home-nav-card:nth-child(1) {
  animation-delay: 0.05s;
}

.home-nav-card:nth-child(2) {
  animation-delay: 0.10s;
}

.home-nav-card:nth-child(3) {
  animation-delay: 0.15s;
}

.home-nav-card:nth-child(4) {
  animation-delay: 0.20s;
}

.home-nav-card:nth-child(5) {
  animation-delay: 0.25s;
}

.home-nav-card:nth-child(6) {
  animation-delay: 0.30s;
}

.home-nav-card:nth-child(7) {
  animation-delay: 0.35s;
}

.home-nav-card:nth-child(8) {
  animation-delay: 0.40s;
}

/* Top gradient strip */
.home-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  opacity: 0.6;
  transition: all 0.3s ease;
  border-radius: 20px 20px 0 0;
}

/* Shine overlay */
.home-nav-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 20px;
}

.home-nav-card.pos::before {
  background: linear-gradient(90deg, #6c63ff, #a78bfa, #ec4899);
}

.home-nav-card.products::before {
  background: linear-gradient(90deg, #00c896, #34d399, #06b6d4);
}

.home-nav-card.inventory::before {
  background: linear-gradient(90deg, #ffb547, #fcd34d, #f59e0b);
}

.home-nav-card.customers::before {
  background: linear-gradient(90deg, #06b6d4, #38bdf8, #818cf8);
}

.home-nav-card.debts::before {
  background: linear-gradient(90deg, #ef4444, #f87171, #f97316);
}

.home-nav-card.reports::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #ec4899);
}

.home-nav-card.dashboard::before {
  background: linear-gradient(90deg, #f15bb5, #fb7185, #f97316);
}

.home-nav-card.settings::before {
  background: linear-gradient(90deg, #64748b, #94a3b8, #a78bfa);
}

.home-nav-card.purchases::before {
  background: linear-gradient(90deg, #f97316, #fb923c, #fbbf24);
}

.home-nav-card.vouchers::before {
  background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
}

.home-nav-card.discounts::before {
  background: linear-gradient(90deg, #ec4899, #f472b6, #a78bfa);
}

.home-nav-card.notifications::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #10b981);
}

.home-nav-card.partners::before {
  background: linear-gradient(90deg, #10b981, #34d399, #06b6d4);
}

.home-nav-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  background: var(--bg-card-hover);
}

.home-nav-card:hover::before {
  opacity: 1;
  height: 4px;
}

.home-nav-card:active {
  transform: translateY(-4px) scale(0.99);
}

/* Light theme card overrides */
[data-theme="light"] .home-nav-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(167, 139, 250, 0.15);
  box-shadow: 0 4px 24px rgba(167, 139, 250, 0.10);
}

[data-theme="light"] .home-nav-card:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 20px 50px rgba(167, 139, 250, 0.18);
}

.home-card-icon-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.home-nav-card.pos .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(167, 139, 250, 0.10));
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.25);
}

.home-nav-card.products .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.18), rgba(52, 211, 153, 0.10));
  box-shadow: 0 6px 20px rgba(0, 200, 150, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(0, 200, 150, 0.25);
}

.home-nav-card.inventory .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.18), rgba(251, 191, 36, 0.10));
  box-shadow: 0 6px 20px rgba(255, 181, 71, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 181, 71, 0.25);
}

.home-nav-card.customers .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(56, 189, 248, 0.10));
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.home-nav-card.debts .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(248, 113, 113, 0.10));
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.home-nav-card.reports .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(167, 139, 250, 0.10));
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.home-nav-card.dashboard .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(241, 91, 181, 0.18), rgba(244, 114, 182, 0.10));
  box-shadow: 0 6px 20px rgba(241, 91, 181, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(241, 91, 181, 0.25);
}

.home-nav-card.settings .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.18), rgba(148, 163, 184, 0.10));
  box-shadow: 0 6px 20px rgba(100, 116, 139, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.home-nav-card.purchases .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(251, 146, 60, 0.10));
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.home-nav-card.vouchers .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(52, 211, 153, 0.10));
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.home-nav-card.discounts .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(244, 114, 182, 0.10));
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.home-nav-card.notifications .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.10));
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.home-nav-card.partners .home-card-icon-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(52, 211, 153, 0.10));
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.home-nav-card:hover .home-card-icon-wrapper {
  transform: translateY(-6px) scale(1.15);
  animation: home-icon-bounce 0.6s ease forwards;
}

/* ===== CARD TEXT ===== */
.home-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
  transition: color 0.2s;
}

.home-nav-card:hover .home-card-title {
  color: #fff;
}

[data-theme="light"] .home-nav-card:hover .home-card-title {
  color: var(--primary-dark);
}

.home-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.2s;
}

.home-nav-card:hover .home-card-desc {
  color: var(--text-secondary);
}

/* ===== BADGE ===== */
.home-card-badge-el {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--danger), #f97316);
  color: white;
  font-size: 11px;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  animation: home-badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both, pulse-animation 2s 0.4s infinite;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse-animation {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
  }
}

/* ===== ACTIONS PANEL ===== */
.home-actions-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 18px;
  padding: 18px 28px;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
-webkit-backdrop-filter:;
-filter:;
}

.home-action-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-action-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-currency-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
-webkit-backdrop-filter:;
-filter:;
  transition: all 0.2s ease;
}

.home-currency-card:hover {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.35);
}

.btn-home-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-home-action.install {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-home-action.install:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-home-action.logout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
-webkit-backdrop-filter:;
-filter:;
}

.btn-home-action.logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.btn-home-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 10px;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
-webkit-backdrop-filter:;
-filter:;
}

.btn-home-header:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.15);
}

/* ========= ARCHIVE PAGE STYLES ========= */
.archive-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.35s ease;
}

/* Archive Tabs */
.archive-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
}

.archive-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.archive-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3);
}

.archive-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* Archive Stats Strip */
.archive-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.archive-stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.archive-stat-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 200, 150, 0.12);
  transform: translateY(-2px);
}

.archive-stat-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.archive-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.archive-stat-value {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-light);
}

/* Archive Table */
.archive-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.archive-data-table {
  width: 100%;
}

.archive-row {
  transition: background 0.2s;
}

.archive-row:hover {
  background: rgba(0, 200, 150, 0.05);
}

.archive-period-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.archive-period-icon {
  font-size: 18px;
}

.archive-total-cell {
  color: var(--success);
  font-weight: 800;
  font-size: 14px;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.archive-badge.invoices {
  background: rgba(0, 200, 150, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(0, 200, 150, 0.3);
}

.btn-archive-detail {
  background: rgba(0, 200, 150, 0.12);
  border: 1px solid rgba(0, 200, 150, 0.3);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-archive-detail:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
}

/* Archive Empty State */
.archive-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.archive-empty span {
  font-size: 50px;
}

.archive-empty p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.archive-empty small {
  font-size: 13px;
}

/* Archive home card */
.home-nav-card.archive {
  background: linear-gradient(135deg,
      rgba(100, 80, 200, 0.12),
      rgba(130, 100, 230, 0.05));
  border-color: rgba(130, 100, 230, 0.3);
}

.home-nav-card.archive .home-card-icon-wrapper {
  background: linear-gradient(135deg, #6450c8, #8264e6);
  box-shadow: 0 8px 20px rgba(100, 80, 200, 0.4);
}

.home-nav-card.archive:hover {
  border-color: rgba(130, 100, 230, 0.7);
  box-shadow: 0 12px 35px rgba(100, 80, 200, 0.25);
}

/* Responsive archive */
@media (max-width: 900px) {
  .archive-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .archive-stats-strip {
    grid-template-columns: 1fr;
  }

  .archive-tabs-bar {
    width: 100%;
  }

  .archive-tab {
    flex: 1;
    text-align: center;
    padding: 10px 10px;
    font-size: 13px;
  }

  .archive-container {
    padding: 12px;
  }
}

/* ========= ARCHIVE HEADER BAR ========= */
.archive-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.archive-search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  transition: var(--transition);
}

.archive-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
}

/* ========= ARCHIVE BASKETS LIST ========= */
.archive-baskets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========= ARCHIVE BASKET CARD ========= */
.arch-basket-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.arch-basket-card.open {
  border-color: rgba(0, 200, 150, 0.4);
  box-shadow: 0 6px 25px rgba(0, 200, 150, 0.1);
}

.arch-basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  gap: 12px;
  transition: background 0.2s;
}

.arch-basket-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.arch-basket-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.arch-basket-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(0, 200, 150, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-basket-meta {
  min-width: 0;
}

.arch-basket-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.arch-basket-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.arch-basket-customer {
  font-size: 12px;
  color: var(--primary-light);
  margin-top: 2px;
}

.arch-basket-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.arch-basket-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--success);
}

.arch-basket-pay-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
  background: transparent;
}

.arch-basket-items-count {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 10px;
}

.arch-basket-toggle-icon {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.25s;
}

.arch-basket-card.open .arch-basket-toggle-icon {
  transform: rotate(180deg);
}

/* ========= BASKET BODY (expanded) ========= */
.arch-basket-body {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  animation: fadeIn 0.2s ease;
}

.arch-basket-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.arch-basket-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-dark);
  border-radius: 8px;
}

.arch-basket-item-emoji {
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-basket-item-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.arch-basket-item-qty {
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.arch-basket-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  min-width: 90px;
  text-align: left;
}

/* ========= BASKET FOOTER ========= */
.arch-basket-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.arch-basket-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch-sum-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.arch-sum-row.total {
  font-size: 15px;
  color: var(--text-primary);
  margin-top: 4px;
}

/* Responsive for small screens */
@media (max-width: 640px) {
  .archive-header-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-tabs-bar {
    width: 100%;
    justify-content: stretch;
  }

  .arch-basket-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .arch-basket-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .arch-basket-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-archive-detail {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   🗂️ صفحة الأرشيف المتطورة
   ============================================ */

.archive-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  overflow-y: auto;
}

/* ---- Period Bar ---- */
.archive-period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  flex-wrap: wrap;
}

.archive-period-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-tab {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.archive-tab:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.08);
}

.archive-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.4);
}

/* Date Navigator */
.archive-date-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arch-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.arch-nav-btn:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
}

.arch-nav-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 160px;
  text-align: center;
}

/* ---- Stats Grid ---- */
.archive-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) {
  .archive-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .archive-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.archive-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.archive-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.archive-stat-card.primary::before {
  background: var(--primary);
}

.archive-stat-card.info::before {
  background: var(--info);
}

.archive-stat-card.success::before {
  background: var(--success);
}

.archive-stat-card.warning::before {
  background: var(--warning);
}

.archive-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.archive-stat-icon {
  font-size: 30px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.archive-stat-card.primary .archive-stat-icon {
  background: rgba(108, 99, 255, 0.15);
}

.archive-stat-card.info .archive-stat-icon {
  background: rgba(23, 162, 184, 0.15);
}

.archive-stat-card.success .archive-stat-icon {
  background: rgba(0, 200, 150, 0.15);
}

.archive-stat-card.warning .archive-stat-icon {
  background: rgba(255, 181, 71, 0.15);
}

.archive-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.archive-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ---- Main Columns ---- */
.archive-main-cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  min-height: 0;
}

@media (max-width: 1100px) {
  .archive-main-cols {
    grid-template-columns: 1fr;
  }
}

/* ---- Column Header ---- */
.archive-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.archive-col-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Search */
.arch-search-wrap {
  flex: 1;
}

.arch-search-input {
  width: 100%;
  padding: 8px 14px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 13px;
  transition: var(--transition);
}

.arch-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

/* ---- Baskets List ---- */
.archive-baskets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 2px;
}

.archive-baskets-list::-webkit-scrollbar {
  width: 5px;
}

.archive-baskets-list::-webkit-scrollbar-track {
  background: transparent;
}

.archive-baskets-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* ---- Empty State ---- */
.arch-empty-state {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  gap: 12px;
}

.arch-empty-icon {
  font-size: 56px;
  opacity: 0.5;
}

.arch-empty-state p {
  font-size: 15px;
  font-weight: 600;
}

/* ---- Product Summary (Right Col) ---- */
.archive-products-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 0;
}

.archive-products-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-products-summary::-webkit-scrollbar {
  width: 4px;
}

.archive-products-summary::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.arch-products-empty {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* Product Row */
.arch-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  transition: var(--transition);
}

.arch-product-row:hover {
  background: var(--bg-card-hover);
}

.arch-product-rank {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.arch-product-emoji {
  font-size: 22px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-product-info {
  flex: 1;
  min-width: 0;
}

.arch-product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-product-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-top: 4px;
  overflow: hidden;
}

.arch-product-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.arch-product-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.arch-product-qty {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  white-space: nowrap;
}

.arch-product-rev {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- Payment Breakdown ---- */
.archive-payment-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
}

.arch-pay-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.arch-pay-info {
  flex: 1;
  min-width: 0;
}

.arch-pay-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-pay-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-top: 4px;
  overflow: hidden;
}

.arch-pay-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.arch-pay-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.arch-pay-count {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.arch-pay-total {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---- Left Col wrapper ---- */
.archive-invoices-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Home Card: Archive */
.home-nav-card.archive {
  background: linear-gradient(135deg,
      rgba(255, 181, 71, 0.15) 0%,
      rgba(255, 100, 100, 0.08) 100%);
  border-color: rgba(255, 181, 71, 0.25);
}

.home-nav-card.archive:hover {
  border-color: var(--warning);
  box-shadow: 0 8px 32px rgba(255, 181, 71, 0.2);
}

/* Responsive small */
@media (max-width: 640px) {
  .archive-wrapper {
    padding: 12px;
    gap: 14px;
  }

  .archive-period-bar {
    padding: 10px 12px;
  }

  .archive-main-cols {
    gap: 14px;
  }

  .archive-invoices-col,
  .archive-products-col {
    padding: 14px;
  }

  .archive-stat-value {
    font-size: 15px;
  }
}

/* ========= PARTNERS PAGE ========= */
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.partner-card:hover {
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
  border-color: var(--primary);
}

.partner-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.partner-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b85ff);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.35);
}

.partner-info {
  flex: 1;
  min-width: 0;
}

.partner-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.partner-share-badge {
  display: inline-block;
  background: rgba(108, 99, 255, 0.12);
  color: var(--primary);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

.partner-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.partner-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.partner-stat {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pstat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.pstat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.pstat-value.success {
  color: var(--success);
}

.pstat-value.danger {
  color: var(--danger);
}

.pstat-value.primary {
  color: var(--primary);
}

.pstat-value.warning {
  color: var(--warning);
}

.partner-progress {
  padding: 4px 0;
}

.progress-bar-track {
  height: 8px;
  background: var(--bg-input);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #00c896);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.btn-distribute {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--primary), #8b85ff);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-distribute:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.partner-detail-stat {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media (max-width: 640px) {
  .partner-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   GLOBAL GLASSMORPHISM OVERRIDES
   ============================================= */

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.5);
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.data-table thead th {
  background: rgba(167, 139, 250, 0.08) !important;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.data-table tbody tr td {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  transition: var(--transition);
  font-size: 13px;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.08);
  border-top-color: rgba(167, 139, 250, 0.2);
  border-bottom-color: rgba(167, 139, 250, 0.2);
}

/* General Cards (dashboard, reports, etc.) */
.report-stat-card,
.inv-stat-card,
.settings-card,
.dash-card,
.supplier-card,
.employee-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.report-stat-card:hover,
.inv-stat-card:hover,
.settings-card:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--primary-light) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--primary-dark) !important;
}

/* Table Containers */
.products-table-container,
.inventory-table-container,
.customers-table-container,
.debts-table-container,
.report-table-card,
.reports-tables {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Primary & Secondary Buttons Global */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35) !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  color: white !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.5) !important;
}

.btn-secondary {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.btn-secondary:hover {
  background: var(--bg-glass-strong) !important;
  border-color: var(--primary-light) !important;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #c0392b) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
  color: white !important;
  font-weight: 700 !important;
}

.btn-danger:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5) !important;
}

.btn-outline {
  background: transparent !important;
  border: 1px solid var(--primary-light) !important;
  color: var(--primary-light) !important;
}

.btn-outline:hover {
  background: rgba(167, 139, 250, 0.1) !important;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.2) !important;
}

/* Archive Tabs */
.archive-tab,
.tab-btn {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  border-radius: 8px !important;
}

.archive-tab.active,
.tab-btn.active {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(167, 139, 250, 0.08)) !important;
  border-color: var(--primary-light) !important;
  color: var(--primary-light) !important;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.2) !important;
}

/* Archive tabs bar */
.archive-tabs-bar {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

/* Home Screen Cards */
.home-nav-card {
  border: 1px solid var(--border) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.home-nav-card:hover {
  border-color: rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 20px 50px rgba(167, 139, 250, 0.2) !important;
  transform: translateY(-8px) !important;
}

/* Status badges */
.store-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: var(--success) !important;
}

/* Debt badge */
.debt-nav-badge {
  background: linear-gradient(135deg, var(--danger), #c0392b) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}

/* Inputs global page override */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="email"],
select,
textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
  background: rgba(255, 255, 255, 0.10);
}

/* Neon accent line on active pages */
.nav-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 10px var(--primary);
}

.nav-item {
  position: relative;
}

/* =============================================
   LIGHT MODE GLASSMORPHISM OVERRIDES
   ============================================= */

[data-theme="light"] body {
  background: var(--bg-body) !important;
}

/* الخلفية المبسطة للوضع الفاتح */
[data-theme="light"] body::before {
  background: var(--bg-body);
}

[data-theme="light"] body::after {
  display: none;
}

/* الهيدر */
[data-theme="light"] .top-header {
  background: rgba(255, 255, 255, 0.65) !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.15) !important;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* شريط الوقت والمستخدم */
[data-theme="light"] .header-time {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #4a3270 !important;
}

[data-theme="light"] .header-user {
  color: #4a3270 !important;
}

/* القائمة الجانبية */
[data-theme="light"] .sidebar {
  background: rgba(240, 235, 255, 0.85) !important;
  border-left: 1px solid rgba(167, 139, 250, 0.15) !important;
-webkit-backdrop-filter:;
-filter:;
}

[data-theme="light"] .sidebar-header {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), transparent) !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.12) !important;
}

[data-theme="light"] .nav-item:hover {
  background: rgba(167, 139, 250, 0.08) !important;
  border-color: rgba(167, 139, 250, 0.15) !important;
-webkit-backdrop-filter:;
-filter:;
}

[data-theme="light"] .nav-item.active {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05)) !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.1) !important;
}

/* بطاقة تسجيل الدخول */
[data-theme="light"] .login-bg {
  background: #e8e0ff !important;
}

[data-theme="light"] .login-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  box-shadow: 0 25px 80px rgba(167, 139, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .login-form input {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  color: #1e0a3c !important;
}

[data-theme="light"] .login-form input:focus {
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15), 0 0 20px rgba(167, 139, 250, 0.08) !important;
}

/* حقل البحث وشريط المنتجات */
[data-theme="light"] .pos-search-bar input {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  color: #1e0a3c !important;
}

[data-theme="light"] .pos-search-bar input:focus {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15) !important;
}

[data-theme="light"] .pos-search-bar input::placeholder {
  color: #7a6a9a !important;
}

/* تبويبات الفئات */
[data-theme="light"] .cat-tab {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #4a3270 !important;
-webkit-backdrop-filter:;
-filter:;
}

[data-theme="light"] .cat-tab:hover,
[data-theme="light"] .cat-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.35) !important;
}

/* بطاقات المنتجات */
[data-theme="light"] .product-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(167, 139, 250, 0.12) !important;
-webkit-backdrop-filter:;
-filter:;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.08) !important;
}

[data-theme="light"] .product-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 12px 35px rgba(167, 139, 250, 0.2), 0 0 0 1px rgba(167, 139, 250, 0.15) !important;
}

[data-theme="light"] .product-name {
  color: #1e0a3c !important;
}

/* السلة */
[data-theme="light"] .pos-cart {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  box-shadow: 0 8px 40px rgba(167, 139, 250, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .cart-header {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), transparent) !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1) !important;
}

[data-theme="light"] .cart-item {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(167, 139, 250, 0.1) !important;
}

[data-theme="light"] .cart-item:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(167, 139, 250, 0.2) !important;
}

[data-theme="light"] .cart-item-name {
  color: #1e0a3c !important;
}

[data-theme="light"] .cart-summary {
  background: rgba(240, 235, 255, 0.5) !important;
  border-top: 1px solid rgba(167, 139, 250, 0.1) !important;
}

[data-theme="light"] .qty-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #1e0a3c !important;
}

/* قسم الدفع */
[data-theme="light"] .payment-section {
  border-top: 1px solid rgba(167, 139, 250, 0.1) !important;
}

[data-theme="light"] .pay-method {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #4a3270 !important;
}

[data-theme="light"] .pay-method:hover,
[data-theme="light"] .pay-method.active {
  background: rgba(167, 139, 250, 0.1) !important;
  border-color: var(--primary) !important;
  color: var(--primary-dark) !important;
}

[data-theme="light"] .currency-btn {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #4a3270 !important;
}

[data-theme="light"] .cash-input-group input {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  color: #1e0a3c !important;
}

[data-theme="light"] .quick-amount-btn {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #4a3270 !important;
}

[data-theme="light"] .cart-controls select {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #4a3270 !important;
}

/* النوافذ المنبثقة */
[data-theme="light"] .modal {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  box-shadow: 0 30px 80px rgba(167, 139, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .modal-header {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.06), transparent) !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1) !important;
}

[data-theme="light"] .modal-footer {
  background: rgba(240, 235, 255, 0.3) !important;
  border-top: 1px solid rgba(167, 139, 250, 0.1) !important;
}

[data-theme="light"] .modal-close {
  background: rgba(167, 139, 250, 0.06) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
}

[data-theme="light"] .modal-close:hover {
  background: rgba(239, 68, 68, 0.08) !important;
}

/* حقول النماذج */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  color: #1e0a3c !important;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15) !important;
}

/* بطاقات الصفحات الأخرى */
[data-theme="light"] .report-stat-card,
[data-theme="light"] .inv-stat-card,
[data-theme="light"] .settings-card,
[data-theme="light"] .dash-card,
[data-theme="light"] .supplier-card,
[data-theme="light"] .employee-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(167, 139, 250, 0.12) !important;
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.1) !important;
}

[data-theme="light"] .report-stat-card:hover,
[data-theme="light"] .inv-stat-card:hover,
[data-theme="light"] .settings-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
  box-shadow: 0 20px 50px rgba(167, 139, 250, 0.15) !important;
}

/* الجداول */
[data-theme="light"] .data-table thead th {
  background: rgba(167, 139, 250, 0.06) !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1) !important;
  color: #4a3270 !important;
}

[data-theme="light"] .data-table tbody tr td {
  background: rgba(255, 255, 255, 0.5) !important;
  border-top: 1px solid rgba(167, 139, 250, 0.06) !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.06) !important;
  color: #1e0a3c !important;
}

[data-theme="light"] .data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.85) !important;
  border-top-color: rgba(167, 139, 250, 0.15) !important;
  border-bottom-color: rgba(167, 139, 250, 0.15) !important;
}

/* حاويات الجداول */
[data-theme="light"] .products-table-container,
[data-theme="light"] .inventory-table-container,
[data-theme="light"] .customers-table-container,
[data-theme="light"] .debts-table-container,
[data-theme="light"] .report-table-card,
[data-theme="light"] .reports-tables {
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(167, 139, 250, 0.1) !important;
}

/* نوافذ الإشعارات */
[data-theme="light"] .notifications-panel {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  box-shadow: 0 20px 60px rgba(167, 139, 250, 0.15) !important;
}

/* التبويبات */
[data-theme="light"] .archive-tab,
[data-theme="light"] .tab-btn {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(167, 139, 250, 0.12) !important;
  color: #4a3270 !important;
}

[data-theme="light"] .archive-tab.active,
[data-theme="light"] .tab-btn.active {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05)) !important;
  border-color: rgba(167, 139, 250, 0.35) !important;
  color: var(--primary-dark) !important;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.15) !important;
}

/* الـ Scrollbar في الوضع الفاتح */
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.25) !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.45) !important;
}

/* أزرار عامة */
[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  color: #4a3270 !important;
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(167, 139, 250, 0.35) !important;
}

[data-theme="light"] .btn-outline {
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  color: var(--primary-dark) !important;
}

[data-theme="light"] .btn-clear-cart {
  background: rgba(239, 68, 68, 0.06) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

[data-theme="light"] .btn-logout {
  background: rgba(239, 68, 68, 0.06) !important;
  border: 1px solid rgba(239, 68, 68, 0.15) !important;
}

/* حاوية التبويبات */
[data-theme="light"] .archive-tabs-bar {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(167, 139, 250, 0.1) !important;
}

/* المحور الأيمن للعنصر النشط */
[data-theme="light"] .nav-item.active {
  border-right-color: var(--primary) !important;
}

/* Inline عام لحقول الإدخال */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="email"],
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(167, 139, 250, 0.18) !important;
  color: #1e0a3c !important;
}

[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] input[type="password"]:focus,
[data-theme="light"] input[type="date"]:focus,
[data-theme="light"] input[type="email"]:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15) !important;
}

/* مفتاح الوضع الفاتح */
[data-theme="light"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.2) !important;
}

/* شريط وضع العرض في الموبايل */
[data-theme="light"] .pos-view-switcher {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.1) !important;
}

[data-theme="light"] .pos-view-btn.active {
  background: rgba(167, 139, 250, 0.12) !important;
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.15) !important;
}

/* كرات الخلفية للوضع الفاتح */
[data-theme="light"] .btn-barcode:hover {
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4) !important;
}

/* =============================================
   PREMIUM DESIGN ENHANCEMENTS v3
   ============================================= */

/* ---- Animated Background Orbs ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbFloat 10s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.5), transparent 70%);
  top: -150px;
  right: -100px;
  animation-duration: 9s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-duration: 12s;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 15s;
  animation-delay: -6s;
}

.orb-4 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
  bottom: 20%;
  right: 15%;
  animation-duration: 11s;
  animation-delay: -2s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -40px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 30px) scale(0.95);
  }

  75% {
    transform: translate(40px, 20px) scale(1.02);
  }
}

/* ---- Typography Improvements ---- */
body {
  font-family: 'Noto Kufi Arabic', 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient Text for headings */
.page-title {
  background: linear-gradient(135deg, var(--primary-light), var(--info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900 !important;
  font-size: 22px !important;
  letter-spacing: -0.5px;
}

/* ---- Enhanced Login Card ---- */
.login-logo {
  font-size: 70px !important;
  display: block;
  filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.6));
  animation: loginLogoFloat 3s ease-in-out infinite !important;
}

@keyframes loginLogoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-10px) rotate(-3deg);
  }

  66% {
    transform: translateY(-5px) rotate(3deg);
  }
}

.login-header h2 {
  background: linear-gradient(135deg, #fff, rgba(167, 139, 250, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 32px !important;
  font-weight: 900 !important;
  letter-spacing: -1px;
}

.btn-login {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9, #06b6d4) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 4s ease infinite !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.4) !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btnShimmer 3s ease infinite;
}

@keyframes btnShimmer {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ---- Enhanced Product Cards ---- */
.product-emoji {
  font-size: 42px !important;
  display: block;
  margin-bottom: 10px !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.product-card:hover .product-emoji {
  transform: scale(1.2) translateY(-4px) rotate(5deg) !important;
  filter: drop-shadow(0 8px 15px rgba(167, 139, 250, 0.4));
}

.product-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.2px;
}

.product-price {
  font-size: 15px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--success), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* شارة المخزون */
.product-stock-badge {
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
-webkit-backdrop-filter:;
-filter:;
  letter-spacing: 0.5px;
}

/* حد وهج في أعلى بطاقة المنتج */
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 50%;
}

/* ---- Enhanced Header ---- */
.top-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
}

.top-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), rgba(6, 182, 212, 0.5), transparent);
}

.top-header {
  position: relative !important;
}

/* ---- Enhanced Category Tabs ---- */
.cat-tab {
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: 0.3px;
}

.cat-tab:hover {
  transform: translateY(-2px);
}

.cat-tab.active {
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5), 0 0 0 1px rgba(167, 139, 250, 0.3) !important;
}

/* ---- Enhanced Cart ---- */
.cart-header h3 {
  background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.cart-empty span {
  font-size: 50px !important;
  filter: grayscale(0.3);
  animation: emptyBounce 2s ease-in-out infinite;
}

@keyframes emptyBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ---- Enhanced Checkout Button ---- */
.btn-checkout {
  background: linear-gradient(135deg, #10b981, #059669, #0d9488) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 4s ease infinite !important;
  border-radius: 14px !important;
  font-size: 17px !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4) !important;
}

/* ---- Summary Total Styling ---- */
.total-iqd {
  font-size: 22px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--success), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.total-usd {
  font-size: 12px !important;
  background: linear-gradient(135deg, var(--info), #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Enhanced Cart Item ---- */
.cart-item-emoji {
  font-size: 28px !important;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
}

.cart-item-price {
  font-size: 11px !important;
  background: linear-gradient(135deg, var(--success), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-item-total {
  font-size: 13px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--primary-light), var(--info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Qty Buttons ---- */
.qty-btn {
  border-radius: 8px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.qty-btn:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.5) !important;
}

.qty-btn:active {
  transform: scale(0.9) !important;
}

.qty-value {
  font-size: 15px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Enhanced Scrollbar ---- */
.products-grid::-webkit-scrollbar {
  width: 5px !important;
}

.products-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.6), rgba(6, 182, 212, 0.4)) !important;
  border-radius: 10px !important;
}

/* ---- Enhanced Search Bar ---- */
.pos-search-bar {
  position: relative;
}

.pos-search-bar input {
  font-size: 14px !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
}

.btn-barcode {
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--info), #0891b2) !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) !important;
  font-size: 13px !important;
}

/* ---- Notification Badge ---- */
.notif-badge {
  animation: pulseBadge 2s ease infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}

/* ---- Store Logo ---- */
.store-logo {
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4) !important;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from {
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
  }

  to {
    box-shadow: 0 4px 30px rgba(167, 139, 250, 0.6), 0 0 0 3px rgba(167, 139, 250, 0.1);
  }
}

/* ---- Enhanced Splash ---- */
.splash-loader {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  height: 5px !important;
}

.loader-bar {
  background: linear-gradient(90deg, var(--primary), var(--info), var(--success), var(--primary)) !important;
  background-size: 300% 100% !important;
  border-radius: 10px !important;
  animation: loading 2s ease-in-out forwards, shimmer 1.2s ease infinite !important;
}

/* ---- Page Transition ---- */
.page.active {
  animation: pageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Enhanced Modal ---- */
.modal {
  border-radius: 24px !important;
}

.modal-header {
  border-radius: 24px 24px 0 0;
}

/* ---- Enhanced Navigation ---- */
.nav-section-title {
  font-size: 10px !important;
  letter-spacing: 2px !important;
  background: linear-gradient(135deg, var(--primary-light), var(--info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800 !important;
}

.nav-item {
  border-radius: 12px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-icon {
  font-size: 20px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease !important;
}

.nav-item:hover .nav-icon {
  background: rgba(167, 139, 250, 0.2);
  transform: scale(1.1);
}

.nav-item.active .nav-icon {
  background: rgba(167, 139, 250, 0.25);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

/* ---- Currency Display ---- */
.currency-display {
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(6, 182, 212, 0.08)) !important;
}

/* ---- Enhanced Pay Methods ---- */
.pay-method {
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.pay-method:hover {
  transform: translateY(-2px) !important;
}

/* ---- Light Mode Orbs ---- */
[data-theme="light"] .orb-1 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25), transparent 70%);
}

[data-theme="light"] .orb-2 {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
}

[data-theme="light"] .orb-3 {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
}

[data-theme="light"] .orb-4 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
}

/* Light mode gradient text fix */
[data-theme="light"] .login-header h2 {
  background: linear-gradient(135deg, #1e0a3c, #7c3aed) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .page-title {
  background: linear-gradient(135deg, var(--primary-dark), var(--info)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .product-price {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .total-iqd {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .cart-item-total {
  background: linear-gradient(135deg, var(--primary-dark), var(--info)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .nav-section-title {
  background: linear-gradient(135deg, var(--primary-dark), var(--info)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .cart-header h3 {
  background: linear-gradient(135deg, #1e0a3c, #4a3270) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .cart-item-emoji {
  background: rgba(167, 139, 250, 0.08) !important;
  border: 1px solid rgba(167, 139, 250, 0.12) !important;
}

[data-theme="light"] .nav-icon {
  background: rgba(167, 139, 250, 0.06) !important;
}

[data-theme="light"] .nav-item:hover .nav-icon {
  background: rgba(167, 139, 250, 0.12) !important;
}

[data-theme="light"] .qty-value {
  background: linear-gradient(135deg, #1e0a3c, #4a3270) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* =============================================
   PREMIUM HOME SCREEN DESIGN v4
   ============================================= */

/* Home Header Panel Glassmorphism */
.home-header-panel {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(25px) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 40px rgba(167, 139, 250, 0.04) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  padding: 30px 40px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Accent neon line at the bottom of the home header panel */
.home-header-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.4), rgba(236, 72, 153, 0.4), transparent);
}

[data-theme="light"] .home-header-panel {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  box-shadow: 0 20px 40px rgba(167, 139, 250, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 15px 30px rgba(167, 139, 250, 0.03) !important;
}

.home-header-logo {
  background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.35) !important;
  width: 78px !important;
  height: 78px !important;
  font-size: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: logoFloat 4s ease-in-out infinite !important;
  transition: transform 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.home-header-logo:hover {
  transform: scale(1.08) rotate(5deg) !important;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.home-header-text h1 {
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900 !important;
  font-size: 28px !important;
  letter-spacing: -0.5px !important;
}

[data-theme="light"] .home-header-text h1 {
  background: linear-gradient(135deg, #1e0a3c, #7c3aed, #db2777) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.home-status-badge {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #10b981 !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Pulsing dot in status badge */
.home-status-badge .status-dot {
  width: 8px !important;
  height: 8px !important;
  background: #10b981 !important;
  border-radius: 50% !important;
  position: relative !important;
  display: inline-block !important;
  margin-left: 0 !important;
  /* Reset margin */
  margin-right: 2px !important;
}

.home-status-badge .status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: #10b981;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Home Grid Layout */
.home-grid-container {
  gap: 20px !important;
}

/* Home Navigation Cards */
.home-nav-card {
  border-radius: 24px !important;
  padding: 35px 24px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(25px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

[data-theme="light"] .home-nav-card {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(167, 139, 250, 0.12) !important;
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.04) !important;
  color: #1e0a3c !important;
}

/* Card Accent Styling - Dark & Light Modes */
/* 1. Cashier (pos) */
.home-nav-card.pos {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(167, 139, 250, 0.02)) !important;
  border-color: rgba(167, 139, 250, 0.18) !important;
}

.home-nav-card.pos .home-card-icon-wrapper {
  background: rgba(167, 139, 250, 0.15) !important;
  color: #a78bfa !important;
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.15) !important;
}

.home-nav-card.pos:hover {
  border-color: rgba(167, 139, 250, 0.5) !important;
  box-shadow: 0 15px 35px rgba(167, 139, 250, 0.25) !important;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.pos {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.04)) !important;
  border-color: rgba(167, 139, 250, 0.25) !important;
}

[data-theme="light"] .home-nav-card.pos .home-card-icon-wrapper {
  background: rgba(167, 139, 250, 0.2) !important;
  color: #6d28d9 !important;
}

/* 2. Products */
.home-nav-card.products {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.02)) !important;
  border-color: rgba(6, 182, 212, 0.18) !important;
}

.home-nav-card.products .home-card-icon-wrapper {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #22d3ee !important;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15) !important;
}

.home-nav-card.products:hover {
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.25) !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.products {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.04)) !important;
  border-color: rgba(6, 182, 212, 0.25) !important;
}

[data-theme="light"] .home-nav-card.products .home-card-icon-wrapper {
  background: rgba(6, 182, 212, 0.2) !important;
  color: #0891b2 !important;
}

/* 3. Debts */
.home-nav-card.debts {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(236, 72, 153, 0.02)) !important;
  border-color: rgba(236, 72, 153, 0.18) !important;
}

.home-nav-card.debts .home-card-icon-wrapper {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #f472b6 !important;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15) !important;
}

.home-nav-card.debts:hover {
  border-color: rgba(236, 72, 153, 0.5) !important;
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.25) !important;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.debts {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.04)) !important;
  border-color: rgba(236, 72, 153, 0.25) !important;
}

[data-theme="light"] .home-nav-card.debts .home-card-icon-wrapper {
  background: rgba(236, 72, 153, 0.2) !important;
  color: #db2777 !important;
}

/* 4. Purchases */
.home-nav-card.purchases {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02)) !important;
  border-color: rgba(245, 158, 11, 0.18) !important;
}

.home-nav-card.purchases .home-card-icon-wrapper {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15) !important;
}

.home-nav-card.purchases:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25) !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.purchases {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.04)) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="light"] .home-nav-card.purchases .home-card-icon-wrapper {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #d97706 !important;
}

/* Vouchers */
.home-nav-card.vouchers {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02)) !important;
  border-color: rgba(16, 185, 129, 0.18) !important;
}

.home-nav-card.vouchers .home-card-icon-wrapper {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15) !important;
}

.home-nav-card.vouchers:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.vouchers {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.04)) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .home-nav-card.vouchers .home-card-icon-wrapper {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #059669 !important;
}

/* 5. Reports */
.home-nav-card.reports {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.02)) !important;
  border-color: rgba(59, 130, 246, 0.18) !important;
}

.home-nav-card.reports .home-card-icon-wrapper {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15) !important;
}

.home-nav-card.reports:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.reports {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.04)) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

[data-theme="light"] .home-nav-card.reports .home-card-icon-wrapper {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #2563eb !important;
}

/* 6. Discounts */
.home-nav-card.discounts {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(244, 63, 94, 0.02)) !important;
  border-color: rgba(244, 63, 94, 0.18) !important;
}

.home-nav-card.discounts .home-card-icon-wrapper {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #fb7185 !important;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.15) !important;
}

.home-nav-card.discounts:hover {
  border-color: rgba(244, 63, 94, 0.5) !important;
  box-shadow: 0 15px 35px rgba(244, 63, 94, 0.25) !important;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.discounts {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.04)) !important;
  border-color: rgba(244, 63, 94, 0.25) !important;
}

[data-theme="light"] .home-nav-card.discounts .home-card-icon-wrapper {
  background: rgba(244, 63, 94, 0.2) !important;
  color: #e11d48 !important;
}

/* 7. Settings */
.home-nav-card.settings {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.02)) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.home-nav-card.settings .home-card-icon-wrapper {
  background: rgba(148, 163, 184, 0.15) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.15) !important;
}

.home-nav-card.settings:hover {
  border-color: rgba(148, 163, 184, 0.5) !important;
  box-shadow: 0 15px 35px rgba(148, 163, 184, 0.25) !important;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.settings {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.04)) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

[data-theme="light"] .home-nav-card.settings .home-card-icon-wrapper {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #475569 !important;
}

/* 8. Notifications */
.home-nav-card.notifications {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(234, 179, 8, 0.02)) !important;
  border-color: rgba(234, 179, 8, 0.18) !important;
}

.home-nav-card.notifications .home-card-icon-wrapper {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #fef08a !important;
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.15) !important;
  position: relative;
}

.home-nav-card.notifications:hover {
  border-color: rgba(234, 179, 8, 0.5) !important;
  box-shadow: 0 15px 35px rgba(234, 179, 8, 0.25) !important;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05)) !important;
}

[data-theme="light"] .home-nav-card.notifications {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.04)) !important;
  border-color: rgba(234, 179, 8, 0.25) !important;
}

[data-theme="light"] .home-nav-card.notifications .home-card-icon-wrapper {
  background: rgba(234, 179, 8, 0.2) !important;
  color: #ca8a04 !important;
}

/* Hover effects for wrappers */
.home-nav-card:hover .home-card-icon-wrapper {
  transform: scale(1.18) rotate(-5deg) !important;
}

/* Home Card Text Styling */
.home-card-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  margin-top: 10px;
  color: #ffffff !important;
  letter-spacing: -0.5px;
}

[data-theme="light"] .home-card-title {
  color: #1e0a3c !important;
}

.home-card-desc {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 500 !important;
}

[data-theme="light"] .home-card-desc {
  color: #5b4b7a !important;
}

/* Home Actions Panel */
.home-actions-panel {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
-webkit-backdrop-filter:;
-filter:;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
  padding: 24px 30px !important;
}

[data-theme="light"] .home-actions-panel {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  box-shadow: 0 15px 35px rgba(167, 139, 250, 0.05) !important;
}

/* Exchange Rate Tag */
.home-currency-card {
  border-radius: 16px !important;
  padding: 12px 20px !important;
  background: rgba(167, 139, 250, 0.1) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
-webkit-backdrop-filter:;
-filter:;
}

[data-theme="light"] .home-currency-card {
  background: rgba(167, 139, 250, 0.08) !important;
  border-color: rgba(167, 139, 250, 0.15) !important;
  color: #1e0a3c !important;
}

/* Logout Button on Home Screen */
.btn-home-action.logout {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  padding: 12px 24px !important;
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
  font-weight: 800 !important;
}

.btn-home-action.logout:hover {
  background: #ef4444 !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* =============================================
   PREMIUM FLAT SOLID BUTTON OVERRIDES
   ============================================= */

/* Base Transitions, Border Radius, and Opaque style for all buttons */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-danger,
.btn-login,
.btn-checkout,
.btn-barcode,
.btn-home-action,
.btn-distribute,
.btn-pay-debt,
.btn-clear-cart,
.btn-home-header {
  border-radius: 14px !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  display: inline-flex;
  /* Removed !important to allow JS style display toggling */
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  outline: none !important;
}

/* Active Click Feedback */
.btn-primary:active,
.btn-secondary:active,
.btn-outline:active,
.btn-danger:active,
.btn-login:active,
.btn-checkout:active,
.btn-barcode:active,
.btn-home-action:active,
.btn-distribute:active,
.btn-pay-debt:active,
.btn-clear-cart:active,
.btn-home-header:active {
  transform: translateY(-1px) scale(0.96) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* ---- 1. Primary Buttons (Purple Solid) ---- */
.btn-primary,
.btn-login,
.btn-distribute {
  background: #8b5cf6 !important;
  border: 1px solid #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

.btn-primary:hover,
.btn-login:hover,
.btn-distribute:hover {
  transform: translateY(-3px) scale(1.02) !important;
  background: #7c3aed !important;
  border-color: #6d28d9 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.45) !important;
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-login,
[data-theme="light"] .btn-distribute {
  background: #7c3aed !important;
  border-color: #6d28d9 !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-login:hover,
[data-theme="light"] .btn-distribute:hover {
  background: #6d28d9 !important;
  border-color: #5b21b6 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.25) !important;
}

/* ---- 2. Success / Checkout Buttons (Green Solid) ---- */
.btn-checkout,
.btn-pay-debt {
  background: #10b981 !important;
  border: 1px solid #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.btn-checkout:hover,
.btn-pay-debt:hover {
  transform: translateY(-3px) scale(1.02) !important;
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
}

[data-theme="light"] .btn-checkout,
[data-theme="light"] .btn-pay-debt {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-checkout:hover,
[data-theme="light"] .btn-pay-debt:hover {
  background: #047857 !important;
  border-color: #065f46 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.25) !important;
}

/* ---- 3. Info / Barcode Buttons (Cyan Solid) ---- */
.btn-barcode {
  background: #06b6d4 !important;
  border: 1px solid #0891b2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3) !important;
}

.btn-barcode:hover {
  transform: translateY(-3px) scale(1.02) !important;
  background: #0891b2 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.45) !important;
}

[data-theme="light"] .btn-barcode {
  background: #0891b2 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-barcode:hover {
  background: #0369a1 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(3, 105, 161, 0.25) !important;
}

/* ---- 4. Danger & Clear Cart Buttons (Red Solid) ---- */
.btn-danger,
.btn-clear-cart {
  background: #ef4444 !important;
  border: 1px solid #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-danger:hover,
.btn-clear-cart:hover {
  transform: translateY(-3px) scale(1.02) !important;
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.45) !important;
}

[data-theme="light"] .btn-danger,
[data-theme="light"] .btn-clear-cart {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-danger:hover,
[data-theme="light"] .btn-clear-cart:hover {
  background: #b91c1c !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.25) !important;
}

/* ---- 5. Secondary & Outline Buttons (Solid Neutral) ---- */
.btn-secondary,
.btn-outline,
.btn-home-header {
  background: #1e1847 !important;
  border: 1px solid #2b2257 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-home-header:hover {
  transform: translateY(-3px) scale(1.02) !important;
  background: #2c2367 !important;
  border-color: #3a2f8b !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .btn-secondary,
[data-theme="light"] .btn-outline,
[data-theme="light"] .btn-home-header {
  background: #ede9fe !important;
  border-color: #c7d2fe !important;
  color: #4c1d95 !important;
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-outline:hover,
[data-theme="light"] .btn-home-header:hover {
  background: #ddd6fe !important;
  border-color: #b4c6fc !important;
  color: #2e1065 !important;
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.1) !important;
}

/* Shine Shift Animation Overlay inside buttons */
.btn-primary::after,
.btn-login::after,
.btn-checkout::after,
.btn-barcode::after,
.btn-distribute::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::after,
.btn-login:hover::after,
.btn-checkout:hover::after,
.btn-barcode:hover::after,
.btn-distribute:hover::after {
  left: 100%;
}

/* =============================================
   PREMIUM HEADER & HEADER ITEMS DESIGN
   ============================================= */

.top-header {
  height: 70px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(25px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
  padding: 0 30px !important;
}

[data-theme="light"] .top-header {
  background: rgba(255, 255, 255, 0.65) !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.15) !important;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.05) !important;
}

/* Date-Time Glass Pill */
.header-time {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 8px 18px !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
-webkit-backdrop-filter:;
-filter:;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .header-time {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #4a3270 !important;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.05) !important;
}

/* User Info Glass Pill */
.header-user {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 8px 18px !important;
  border-radius: 30px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
-webkit-backdrop-filter:;
-filter:;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  gap: 8px !important;
}

[data-theme="light"] .header-user {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #1e0a3c !important;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.05) !important;
}

/* Theme Toggle Button (Circular Glass) */
.theme-toggle-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
-webkit-backdrop-filter:;
-filter:;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.theme-toggle-btn:hover {
  transform: rotate(30deg) scale(1.08) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.3) !important;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #1e0a3c !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
  border-color: rgba(167, 139, 250, 0.5) !important;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.2) !important;
}

/* Notification Button (Circular Glass) */
.notifications-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
-webkit-backdrop-filter:;
-filter:;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
}

.notifications-btn:hover {
  transform: scale(1.08) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.3) !important;
}

[data-theme="light"] .notifications-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  color: #1e0a3c !important;
}

[data-theme="light"] .notifications-btn:hover {
  border-color: rgba(167, 139, 250, 0.5) !important;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.2) !important;
}

/* Red Notification Badge placement */
.notif-badge {
  position: absolute !important;
  top: -4px !important;
  left: -4px !important;
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  color: white !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Custom Language Dropdown */
.lang-selector-container {
  position: relative;
  display: inline-block;
}

.lang-toggle-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
-webkit-backdrop-filter:;
-filter:;
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: rgba(10, 0, 30, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
-webkit-backdrop-filter:;
-filter:;
  z-index: 1000;
  display: none;
  min-width: 140px;
  overflow: hidden;
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL positioning adjustments */
[dir="rtl"] .lang-dropdown-menu {
  left: auto;
  right: 0;
}

.lang-dropdown-menu.show {
  display: block;
}

.lang-option {
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
}

[dir="ltr"] .lang-option {
  text-align: left;
}

.lang-option:hover {
  background: rgba(167, 139, 250, 0.15);
  color: #ffffff;
}

.lang-option.active {
  background: rgba(167, 139, 250, 0.3);
  color: var(--primary-light);
  font-weight: 700;
}

[data-theme="light"] .lang-dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .lang-option {
  color: #333333;
}

[data-theme="light"] .lang-option:hover {
  background: rgba(167, 139, 250, 0.1);
  color: var(--primary-dark);
}

[data-theme="light"] .lang-option.active {
  background: rgba(167, 139, 250, 0.2);
  color: var(--primary-dark);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* === MERGED FROM responsive.css === */
/* =========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================= */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-right: 0;
  }

  .pos-container {
    grid-template-columns: 1fr 300px;
  }

  .pos-cart {
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 768px) {
  .pos-container {
    grid-template-columns: 1fr;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .pos-products {
    height: 60vh;
  }

  .pos-cart {
    height: 60vh;
    margin-top: 10px;
  }

  .modal-body.grid-2,
  .dash-grid,
  .dash-main {
    grid-template-columns: 1fr;
  }

  .products-table-container,
  .inventory-table-container,
  .reports-table-container,
  .customers-table-container,
  .debts-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    white-space: nowrap;
  }

  .header-left .header-time {
    display: none;
  }

  .login-card {
    padding: 30px 20px;
  }

  .page-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .page-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .page-actions input,
  .page-actions select,
  .page-actions button,
  .page-actions .date-picker-group {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .date-picker-group {
    justify-content: space-between !important;
  }

  .products-table-container,
  .inventory-table-container,
  .reports-tables,
  .report-table-card,
  .customers-table-container,
  .debts-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 480px) {
  .pos-products {
    height: 50vh;
  }

  .pos-cart {
    height: 55vh;
  }

  .store-info h3 {
    font-size: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .product-card {
    padding: 12px 8px;
  }

  .product-emoji {
    font-size: 28px;
  }

  .product-name {
    font-size: 12px;
  }

  .product-price {
    font-size: 13px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cart-item-price {
    width: 100%;
    text-align: left;
  }

  .reports-stats,
  .debts-summary-bar {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}


/* ===========================
   POS View Switcher (Tabs)
   =========================== */
.pos-view-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 20px 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: blur(20px);
}

.pos-view-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 15px;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  color: #7b8ca0;
  font-family: inherit;
}

.pos-view-btn .pvb-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.pos-view-btn .pvb-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.pos-view-btn:hover {
  color: var(--primary-light);
  background: rgba(167, 139, 250, 0.1);
}

.pos-view-btn:hover .pvb-icon {
  transform: scale(1.15);
}

.pos-view-btn.active {
  background: rgba(167, 139, 250, 0.2);
  color: var(--primary-light);
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.pos-view-btn.active .pvb-icon {
  transform: scale(1.1);
}

.pos-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 2px;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.5);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {

  0%,
  100% {
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.5);
  }

  50% {
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.8);
  }
}

@media (min-width: 992px) {
  .pos-view-switcher {
    display: none;
  }

  .pos-products {
    display: flex !important;
  }

  .pos-cart {
    display: flex !important;
  }
}


/* Old mobile tabs (removed) */
.pos-mobile-tabs {
  display: none !important;
}


/* ===========================
   Premium Debt Payment Buttons
   =========================== */

/* Header button: تسديد ديون عميل */
.btn-pay-debt-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-pay-debt-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.btn-pay-debt-main:hover::before {
  left: 100%;
}

.btn-pay-debt-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(17, 153, 142, 0.55);
}

.btn-pay-debt-main:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(17, 153, 142, 0.3);
}

.btn-pay-icon {
  font-size: 18px;
  animation: icon-bounce 2s infinite;
}

@keyframes icon-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* Full-width inner button: بلغ جزئي */
.btn-pay-debt-full {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  color: white;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 52, 96, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-pay-debt-full::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38ef7d, #11998e);
  border-radius: 0 16px 16px 0;
}

.btn-pay-debt-full:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 30px rgba(15, 52, 96, 0.6);
  background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #533483 100%);
}

.btn-pay-debt-full:active {
  transform: translateY(-1px);
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES (<= 768px)
   ========================================= */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100vw !important;
  }

  #main-app {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .main-content {
    width: 100% !important;
    max-width: 100vw !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  /* Header adjustments to prevent overflow */
  .top-header {
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .header-right {
    gap: 8px !important;
  }

  .header-left {
    gap: 8px !important;
  }

  .page-title {
    font-size: 15px !important;
  }

  .header-user {
    font-size: 12px !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
  }

  .header-time {
    display: none !important;
  }

  /* Two-column responsive products grid on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  .product-card {
    padding: 12px 8px !important;
    border-radius: 12px !important;
  }

  .product-name {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .product-price {
    font-size: 13px !important;
  }

  /* POS View Switcher custom sizing */
  .pos-view-switcher {
    margin: 10px !important;
    padding: 4px !important;
    border-radius: 12px !important;
    gap: 4px !important;
  }

  .pos-view-btn {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }

  .pos-view-btn .pvb-icon {
    font-size: 18px !important;
  }

  .pos-view-btn .pvb-label {
    font-size: 11px !important;
  }

  /* Category tabs margins */
  .category-tabs {
    padding: 0 10px 8px 10px !important;
    gap: 6px !important;
  }

  .cat-tab {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* Sidebar display corrections on mobile toggle */
  .sidebar {
    display: none !important;
  }

  .sidebar.active,
  .sidebar.open {
    display: flex !important;
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2000 !important;
    width: 260px !important;
    height: 100vh !important;
    transform: translateX(0) !important;
    transition: transform 0.3s ease !important;
  }

  /* =========================================
     NON-POS PAGES RESPONSIVENESS OVERRIDES
     ========================================= */

  /* Compact page padding */
  .page {
    padding: 12px 8px !important;
  }

  /* Grid layout overrides for statistics and dashboards */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .dashboard-charts,
  .dashboard-tables {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .dash-card {
    padding: 15px !important;
  }

  .dash-card h3 {
    font-size: 20px !important;
  }

  .dash-card p {
    font-size: 11px !important;
  }

  /* Horizontal scrolling for ALL tables */
  .products-table-container,
  .inventory-table-container,
  .reports-tables,
  .report-table-card,
  .customers-table-container,
  .debts-table-container,
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 16px !important;
  }

  .data-table {
    width: 100% !important;
    min-width: 650px !important;
    /* Forces table not to squish below readable size */
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  /* Date picker groups responsive wrapping */
  .date-picker-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
  }

  .date-picker-group input[type="date"] {
    flex: 1 1 110px !important;
    min-width: 110px !important;
    padding: 6px 10px !important;
  }

  /* Scrollable tabs bar for purchases, sales, accounts, discounts, barcode, activity log */
  .archive-tabs-bar,
  .tabs-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding: 8px !important;
    background: var(--bg-card) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 15px !important;
  }

  .archive-tab,
  .tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
  }

  /* Modal responsive improvements */
  .modal {
    width: 95% !important;
    max-width: 95vw !important;
    max-height: 85vh !important;
    margin: auto !important;
  }

  .modal-overlay {
    padding: 10px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-footer {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    padding: 12px 16px !important;
  }

  .modal-footer button {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 10px 16px !important;
  }

  /* Barcode svg/img responsiveness */
  #barcode-preview-area svg,
  #barcode-preview-area img {
    max-width: 100% !important;
    height: auto !important;
  }
}


/* === END MERGED responsive.css === */
/* تصميم بطاقات الإشعارات للموبايل */
.notif-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.notif-card:hover {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .notif-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-card-actions {
    flex-direction: row !important;
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
  }
}

/* تصميم تبويبات الصفحات الفرعية */
.archive-tabs-bar {
  margin-bottom: 30px;
  background: var(--bg-secondary);
  padding: 8px;
  border-radius: 100px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
-webkit-backdrop-filter:;
-filter:;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.archive-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-tab:hover {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.archive-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-weight: 700;
}

/* =============================================
   FINAL SOLID THEME OVERRIDES (BYPASS GLASS)
   ============================================= */

/* 1. Global Backdrop Filter Reset */
*, *::before, *::after {
-webkit-backdrop-filter:;
-filter:;
  -webkit-backdrop-filter: none !important;
}

/* 2. Component Backgrounds and Borders */
.login-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.login-form input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
}

.top-header {
  background: var(--bg-sidebar) !important;
  border-bottom: 1px solid var(--border) !important;
}

.pos-cart {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.cart-header {
  background: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border) !important;
}

.cart-item {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
}

.cart-item:hover {
  background: var(--bg-glass-strong) !important;
}

.cart-summary {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border) !important;
}

.pos-search-bar input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
}

.cat-tab {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
}

.product-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.product-card:hover {
  background: var(--bg-card-hover) !important;
}

.qty-btn {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

.pay-method {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
}

.currency-btn {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
}

.quick-amount-btn {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
}

.payment-section {
  border-top: 1px solid var(--border) !important;
}

.cash-input-group input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
}

/* Home Screen Elements */
.home-header-panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.home-nav-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.home-actions-panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.home-currency-card {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
}

/* Modals and Dialogs */
.modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

/* Sidebar overrides */
.sidebar {
  background: var(--bg-sidebar) !important;
  border-left: 1px solid var(--border) !important;
}

.nav-item:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-light) !important;
}

.nav-item.active {
  background: var(--bg-glass-strong) !important;
  border-color: var(--primary-light) !important;
}

/* ---- Cart Header Premium Action Buttons ---- */
.cart-header-actions {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}

.cart-header-actions .btn-barcode,
.cart-header-actions .btn-clear-cart {
  height: 38px !important;
  padding: 0 16px !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

/* Scanner Button - Glassmorphism base transition to glowing solid */
.cart-header-actions .btn-barcode {
  background: rgba(14, 165, 233, 0.08) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  color: #38bdf8 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.cart-header-actions .btn-barcode:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35) !important;
}

/* Clear Cart Button - Glassmorphism base transition to glowing solid */
.cart-header-actions .btn-clear-cart {
  background: rgba(244, 63, 94, 0.08) !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
  color: #fb7185 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.cart-header-actions .btn-clear-cart:hover {
  background: linear-gradient(135deg, #f43f5e, #dc2626) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35) !important;
}

/* Light Theme Contrast Optimization */
[data-theme="light"] .cart-header-actions .btn-barcode {
  background: rgba(2, 132, 199, 0.06) !important;
  border-color: rgba(2, 132, 199, 0.2) !important;
  color: #0284c7 !important;
}

[data-theme="light"] .cart-header-actions .btn-clear-cart {
  background: rgba(225, 29, 72, 0.06) !important;
  border-color: rgba(225, 29, 72, 0.2) !important;
  color: #e11d48 !important;
}

/* Common Active Click Animation */
.cart-header-actions .btn-barcode:active,
.cart-header-actions .btn-clear-cart:active {
  transform: translateY(0) scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Adjust SVG icon styling */
.cart-header-actions .cart-icon {
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover rotation/scale animation for icons */
.cart-header-actions .btn-barcode:hover .cart-icon {
  transform: scale(1.15) !important;
}

.cart-header-actions .btn-clear-cart:hover .cart-icon {
  transform: rotate(-12deg) scale(1.15) !important;
}

/* ---- POS Checkout Actions Panel ---- */
.pos-checkout-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 12px !important;
  width: 100% !important;
}

.pos-checkout-actions .row-actions {
  display: flex !important;
  gap: 10px !important;
  width: 100% !important;
}

.pos-checkout-actions button.btn-checkout {
  margin-top: 0 !important;
  padding: 0 16px !important;
  height: 46px !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  border: none !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

/* Ensure display state matches JS toggling while preserving flex internally */
.pos-checkout-actions button.btn-checkout {
  display: inline-flex !important;
}
.pos-checkout-actions button.btn-checkout[style*="display: none"] {
  display: none !important;
}
.pos-checkout-actions button.btn-checkout[style*="display:none"] {
  display: none !important;
}
.pos-checkout-actions .row-actions button.btn-checkout {
  flex: 1 !important;
  min-width: 120px !important;
}

/* Pay Button (Green Gradient) */
.pos-checkout-actions button.btn-checkout.btn-pay {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2) !important;
}

.pos-checkout-actions button.btn-checkout.btn-pay:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
  filter: brightness(1.05) !important;
}

/* Return Button (Red Gradient) */
.pos-checkout-actions button.btn-checkout.btn-return {
  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.2) !important;
}

.pos-checkout-actions button.btn-checkout.btn-return:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35) !important;
  filter: brightness(1.05) !important;
}

/* Debt Button (Gold/Amber Gradient) */
.pos-checkout-actions button.btn-checkout.btn-debt {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2) !important;
  width: 100% !important;
}

.pos-checkout-actions button.btn-checkout.btn-debt:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35) !important;
  filter: brightness(1.05) !important;
}

/* Light Theme Contrast Optimizations */
[data-theme="light"] .pos-checkout-actions button.btn-checkout.btn-pay {
  background: linear-gradient(135deg, #059669, #047857) !important;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.15) !important;
}

[data-theme="light"] .pos-checkout-actions button.btn-checkout.btn-return {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.15) !important;
}

[data-theme="light"] .pos-checkout-actions button.btn-checkout.btn-debt {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.15) !important;
}

/* Active Click Feedback */
.pos-checkout-actions button.btn-checkout:active {
  transform: translateY(0) scale(0.96) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* SVG icons within checkout buttons */
.pos-checkout-actions .checkout-icon {
  width: 18px !important;
  height: 18px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pos-checkout-actions button.btn-checkout:hover .checkout-icon {
  transform: scale(1.15) !important;
}

.pos-checkout-actions button.btn-checkout.btn-return:hover .checkout-icon {
  transform: translateX(-3px) scale(1.15) !important;
}

/* ---- Payment Methods 2x2 Grid ---- */
.payment-methods {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

.pay-method {
  height: 42px !important;
  padding: 0 12px !important;
  background: var(--bg-glass) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--text-secondary) !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
-webkit-backdrop-filter:;
-filter:;
  box-sizing: border-box !important;
  outline: none !important;
}

.pay-method:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: var(--bg-glass-strong) !important;
}

.pay-method .pay-icon {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pay-method:hover .pay-icon {
  transform: scale(1.15) !important;
}

/* --- Multi-Color Glow Active States --- */

/* Cash (Green) */
.pay-method.method-cash.active {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15) !important;
}

/* Card (Cyan/Blue) */
.pay-method.method-card.active {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: #0ea5e9 !important;
  color: #0ea5e9 !important;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15) !important;
}

/* Transfer (Indigo/Purple) */
.pay-method.method-transfer.active {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: #8b5cf6 !important;
  color: #8b5cf6 !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15) !important;
}

/* Debt (Amber/Orange) */
.pay-method.method-debt.active {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: #f59e0b !important;
  color: #f59e0b !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15) !important;
}

/* Light Theme Multi-Color Active States */
[data-theme="light"] .pay-method.method-cash.active {
  background: rgba(16, 185, 129, 0.05) !important;
  border-color: #059669 !important;
  color: #059669 !important;
}

[data-theme="light"] .pay-method.method-card.active {
  background: rgba(14, 165, 233, 0.05) !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .pay-method.method-transfer.active {
  background: rgba(139, 92, 246, 0.05) !important;
  border-color: #7c3aed !important;
  color: #7c3aed !important;
}

[data-theme="light"] .pay-method.method-debt.active {
  background: rgba(245, 158, 11, 0.05) !important;
  border-color: #d97706 !important;
  color: #d97706 !important;
}

/* Click feedback scaling */
.pay-method:active {
  transform: translateY(0) scale(0.96) !important;
}

/* ---- Centering Payment Method Contents ---- */
.pay-method {
  justify-content: center !important;
}

/* ---- Premium Segmented Currency Controls ---- */
.cash-currency {
  display: flex !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 3px !important;
  gap: 0 !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

[data-theme="light"] .cash-currency {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.cash-currency .currency-btn {
  flex: 1 !important;
  border: none !important;
  border-radius: 10px !important;
  height: 36px !important;
  padding: 0 !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
}

.cash-currency .currency-btn.active {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="light"] .cash-currency .currency-btn.active {
  background: #059669 !important;
  color: #ffffff !important;
}

/* ---- Premium Amount Paid Input Field ---- */
.cash-input-group label {
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 4px !important;
}

.cash-input-group input#cash-received {
  width: 100% !important;
  height: 48px !important;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
}

[data-theme="light"] .cash-input-group input#cash-received {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e1b4b !important;
}

.cash-input-group input#cash-received:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="light"] .cash-input-group input#cash-received:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2) !important;
}

/* ---- Premium Shopping Cart Sidebar Redesign ---- */

/* Customer Input Premium Style */
#cart-customer-input {
  height: 40px !important;
  padding: 0 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 13.5px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

[data-theme="light"] #cart-customer-input {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e1b4b !important;
}

#cart-customer-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="light"] #cart-customer-input:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
}

/* Empty Cart Display Premium Style */
.cart-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 16px !important;
  text-align: center !important;
}

.cart-empty .empty-icon {
  width: 56px !important;
  height: 56px !important;
  color: var(--text-muted) !important;
  margin-bottom: 14px !important;
  opacity: 0.55 !important;
  animation: floatCartIcon 3s ease-in-out infinite !important;
}

@keyframes floatCartIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.cart-empty p {
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  margin: 0 0 4px 0 !important;
}

.cart-empty small {
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

/* Calculations / Invoice Summary Card */
.cart-summary {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  margin: 12px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .cart-summary {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.summary-row {
  padding: 4px 0 !important;
  border: none !important;
}

/* Discount & Coupon Input Fields */
.discount-controls input,
#coupon-code-input {
  height: 32px !important;
  padding: 0 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-align: center !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .discount-controls input,
[data-theme="light"] #coupon-code-input {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e1b4b !important;
}

.discount-controls input:focus,
#coupon-code-input:focus {
  border-color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.discount-controls select {
  height: 32px !important;
  padding: 0 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text-secondary) !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  outline: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .discount-controls select {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e1b4b !important;
}

/* Total Row Styling */
.total-row {
  padding-top: 10px !important;
  margin-top: 6px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.15) !important;
  font-size: 16px !important;
}

[data-theme="light"] .total-row {
  border-top-color: rgba(0, 0, 0, 0.15) !important;
}

.total-amounts {
  align-items: flex-end !important;
}

.total-iqd {
  font-size: 21px !important;
  font-weight: 900 !important;
  color: #10b981 !important;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .total-iqd {
  color: #059669 !important;
  text-shadow: none !important;
}

.total-usd {
  font-size: 13.5px !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .total-usd {
  color: #0284c7 !important;
}

/* ---- Premium Custom Category Dropdown ---- */
.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 8px;
}

[data-theme="light"] .custom-dropdown-menu {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.custom-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  font-family: 'Noto Kufi Arabic', sans-serif;
}

.custom-dropdown-item:last-child {
  margin-bottom: 0;
}

.custom-dropdown-item:hover {
  background-color: var(--primary);
  color: white;
  transform: translateX(-4px); /* Moves left slightly in RTL */
}

/* Scrollbar for custom dropdown */
.custom-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

/* ---- Premium Image & Emoji Picker Redesign ---- */
.emoji-picker-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.3s ease;
}

[data-theme="light"] .emoji-picker-container {
  background: rgba(99, 102, 241, 0.03);
  border-color: rgba(99, 102, 241, 0.15);
}

.emoji-picker-container:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.emoji-preview {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: var(--bg-card);
  border: 2px dashed rgba(167, 139, 250, 0.4);
  border-radius: 12px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

[data-theme="light"] .emoji-preview {
  border-color: rgba(99, 102, 241, 0.3);
  background: #ffffff;
}

.emoji-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emoji-picker-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.emoji-picker-actions .btn-outline {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  background: var(--bg-card);
}

[data-theme="light"] .emoji-picker-actions .btn-outline {
  background: #ffffff;
}

/* ---- Premium Product Modal Full Redesign ---- */
#product-modal .modal {
  max-width: 650px !important; /* Slightly wider for better breathing room */
}

#product-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

#product-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 0 !important;
}

#product-modal .form-group {
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#product-modal input, #product-modal select, #product-modal textarea {
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  padding: 12px 14px !important;
  background: var(--bg-card) !important;
  transition: all 0.3s ease !important;
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  font-size: 14px !important;
}

[data-theme="light"] #product-modal input, 
[data-theme="light"] #product-modal select, 
[data-theme="light"] #product-modal textarea {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.1) !important;
}

#product-modal input:focus, #product-modal select:focus, #product-modal textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15) !important;
  background: rgba(167, 139, 250, 0.02) !important;
}

#product-modal label {
  font-weight: 700 !important;
  font-size: 13px !important;
  margin-bottom: 8px !important;
  color: var(--text-primary) !important;
}

#product-modal .input-with-btn {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

#product-modal .input-with-btn input {
  flex-grow: 1;
}

#product-modal .input-with-btn button {
  white-space: nowrap;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
}