/* ==========================================================================
   SOFIZPAY DESIGN SYSTEM & DROPSHIP APPLICATION STYLES
   ========================================================================== */

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

:root {
  --font-arabic: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-latin: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* SofizPay Official Color Palette from Previous Projects */
  --primary: #0d6efd;
  --primary-hover: #0b5ed7;
  --primary-dark: #0c2a96;
  --primary-darker: #071a54;
  --cyan-accent: #02b8f5;
  --brand-purple: #6931ed;
  
  --sofizpay-gradient: linear-gradient(135deg, #0d6efd 0%, #0c2a96 58%, #02b8f5 100%);
  --sofizpay-gradient-hover: linear-gradient(135deg, #0b5ed7 0%, #081f6e 58%, #009fd4 100%);
  --sofizpay-radial: radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32rem);
  --sofizpay-glow: 0 12px 32px rgba(13, 110, 253, 0.24);
  
  /* Status Colors */
  --success: #16a34a;
  --success-bg: #e8f8f0;
  --warning: #eab308;
  --warning-bg: #fefce8;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  
  /* Neutral Surfaces */
  --bg-main: #f5f9ff;
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-secondary: #f8fafc;
  --border-light: rgba(13, 110, 253, 0.18);
  --border-focus: rgba(13, 110, 253, 0.6);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(13, 42, 96, 0.12);
  --shadow-sofiz: 0 12px 40px rgba(13, 42, 96, 0.08);
  --shadow-sofiz-primary: 0 12px 32px rgba(13, 110, 253, 0.24);
}

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

body {
  font-family: var(--font-arabic);
  background: 
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(2, 184, 245, 0.06), transparent 28rem),
    linear-gradient(180deg, #f5f9ff 0%, #ebf3fe 100%);
  background-attachment: fixed;
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: #071a54;
  line-height: 1.3;
}

.latin-numbers {
  font-family: var(--font-latin);
  direction: ltr;
  display: inline-block;
}

td.latin-numbers,
th.latin-numbers {
  display: table-cell !important;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* SofizPay Header & Navbar */
.sofiz-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(13, 110, 253, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sofiz);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sofiz-header .container {
  max-width: 1440px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
}

@media (max-width: 768px) {
  .navbar-inner {
    height: 3.85rem;
    gap: 0.5rem;
  }
}

/* Authentic SofizPay Brand Badge & Logo */
.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-badge:hover {
  transform: translateY(-1px);
}

.brand-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.brand-badge:hover .brand-logo-wrapper {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: #071a54;
  letter-spacing: -0.5px;
  line-height: 1.15;
  gap: 0.15rem;
}

.brand-pay-text {
  color: var(--primary);
  font-weight: 900;
}

.brand-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary);
  border: 1px solid rgba(13, 110, 253, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  text-transform: uppercase;
  vertical-align: middle;
  display: inline-block;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Authentication Page Logo Presentation (Direct Clean Logo - No Background Box) */
.auth-brand-logo-wrapper {
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-logo-ring {
  width: 4.25rem;
  height: 4.25rem;
  background: transparent;
  padding: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  position: relative;
}

.auth-logo-ring:hover {
  transform: scale(1.05);
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .brand-logo-wrapper {
    width: 2.25rem;
    height: 2.25rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .brand-logo-img {
    border-radius: 0;
  }
  .brand-name {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .brand-badge {
    gap: 0.5rem;
  }
  .brand-subtitle {
    display: none;
  }
  .brand-name {
    font-size: 1.05rem;
  }
}

@media (max-width: 350px) {
  .brand-tag {
    display: none;
  }
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-desktop {
  display: flex;
}

.nav-link {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .brand-subtitle {
    display: none;
  }
  .nav-links {
    gap: 0.4rem;
  }
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.88rem;
  }
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(13, 110, 253, 0.08);
}

.nav-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 110, 253, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  white-space: nowrap;
}

.nav-logout-btn {
  color: #ef4444 !important;
  padding: 0.45rem 0.65rem !important;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-logout-btn:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #dc2626 !important;
  transform: scale(1.05);
}

[data-theme="dark"] .nav-logout-btn {
  color: #f87171 !important;
}

[data-theme="dark"] .nav-logout-btn:hover {
  background: rgba(239, 68, 68, 0.18) !important;
}

[dir="rtl"] .fa-arrow-right-from-bracket {
  transform: scaleX(-1);
}

.nav-btn-compact {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
}

/* Mobile Header Top Info (screens < 992px) */
.nav-mobile-top {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 991px) {
  .nav-desktop {
    display: none !important;
  }
  .nav-mobile-top {
    display: flex !important;
  }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (Screens < 992px)
   Floating Glassmorphism Dock with Active Rounded Pill (like topup-microapp)
   ========================================================================== */
.sofiz-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@media (max-width: 991px) {
  .sofiz-bottom-nav {
    display: flex !important;
  }
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .toast-container {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 992px) {
  .sofiz-bottom-nav {
    display: none !important;
  }
}

/* Floating Glassmorphism Dock */
.bottom-nav-dock {
  pointer-events: auto;
  margin: 0 0.75rem 0.75rem 0.75rem;
  width: calc(100% - 1.5rem);
  max-width: 520px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 1.5rem;
  padding: 0.35rem 0.45rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Individual Bottom Nav Tab Item */
.bottom-nav-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border-radius: 1rem;
  padding: 0.45rem 0.25rem;
  text-align: center;
  color: #94a3b8;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  margin: 0;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
  color: #334155;
  text-decoration: none;
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

/* Active Tab Pill Indicator */
.bottom-nav-item.active {
  color: #0d6efd !important;
  background: rgba(13, 110, 253, 0.1) !important;
  border-color: rgba(13, 110, 253, 0.2) !important;
}

.bottom-nav-item.active::after {
  display: none !important;
}

.bottom-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.08);
}

.bottom-nav-label {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge styling for count */
.bnav-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 9999px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
  line-height: 1;
  border: 1.5px solid #ffffff;
}

[dir="rtl"] .bnav-badge {
  right: auto;
  left: -9px;
}

/* Logout Tab item */
.bottom-nav-item.bnav-logout-item {
  color: #ef4444 !important;
}

.bottom-nav-item.bnav-logout-item:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
  color: #dc2626 !important;
}

.bottom-nav-item.bnav-logout-item:active {
  transform: scale(0.92);
}

/* Center Prominent Glowing Floating Button for Extractor */
.bottom-nav-center-item {
  position: relative;
  overflow: visible;
}

.bottom-nav-center-item .bottom-nav-bubble {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-top: -1.35rem;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.45);
  border: 3.5px solid #ffffff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.bottom-nav-center-item:active .bottom-nav-bubble {
  transform: scale(0.9);
  box-shadow: 0 2px 10px rgba(13, 110, 253, 0.35);
}

.bottom-nav-center-item.active .bottom-nav-bubble {
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2), 0 6px 20px rgba(13, 110, 253, 0.55);
}

.bottom-nav-center-item::after {
  display: none !important;
}

/* Extra touch target comfort */
@media (max-width: 480px) {
  .bottom-nav-label {
    font-size: 0.68rem;
  }
  .bottom-nav-icon {
    font-size: 1.15rem;
  }
  .bottom-nav-center-item .bottom-nav-bubble {
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.25rem;
    margin-top: -1.15rem;
  }
}

/* SofizPay Buttons (Previous Clean Design - Non-Glossy) */
.sofiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sofiz-btn-primary {
  background: radial-gradient(at left top, #0d6efd, #0c2a96), radial-gradient(at right top, #0c2a96, transparent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.28);
}

.sofiz-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.36);
}

.sofiz-btn-primary:active {
  transform: translateY(0);
}

.sofiz-btn-secondary {
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary);
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.sofiz-btn-secondary:hover {
  background: rgba(13, 110, 253, 0.16);
  transform: translateY(-1px);
}

.sofiz-btn-secondary:active {
  transform: translateY(0);
}

[data-theme="dark"] .sofiz-btn-secondary {
  background: rgba(13, 110, 253, 0.18);
  color: #60a5fa;
  border-color: rgba(13, 110, 253, 0.35);
}

.sofiz-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.sofiz-btn-outline:hover {
  background: rgba(13, 110, 253, 0.08);
}

.sofiz-btn-success {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
}

.sofiz-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: var(--radius-xl);
}

.sofiz-btn-block {
  width: 100%;
}

.sofiz-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Cards & Glassmorphism */
.sofiz-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sofiz);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.sofiz-card:hover {
  box-shadow: 0 16px 45px rgba(13, 42, 96, 0.12);
  border-color: rgba(13, 110, 253, 0.28);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0 1.25rem;
  }
}

.hero-title {
  font-size: clamp(1.65rem, 5.5vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.hero-title .gradient-text {
  background: var(--sofizpay-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Timeline Step Classes */
.timeline-step {
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.timeline-step.active {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
}

.timeline-step.completed {
  background: #dcfce7;
  color: #16a34a;
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 3.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Extraction Search Bar */
.extractor-box {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 0.6rem;
  box-shadow: 0 16px 40px rgba(13, 42, 96, 0.1);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
  transition: all 0.25s ease;
}

.extractor-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 20px 48px rgba(13, 110, 253, 0.2);
}

.extractor-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.extractor-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  color: #0f172a;
  background: transparent;
}

.extractor-input::placeholder {
  color: #94a3b8;
}

@media (max-width: 640px) {
  .extractor-box {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    gap: 0.65rem;
  }

  .extractor-input-group {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.65rem;
  }

  .extractor-input {
    font-size: 0.92rem;
    padding: 0.65rem 0.5rem;
  }

  #btn-extract {
    width: 100% !important;
    min-width: 100% !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    border-radius: var(--radius-lg) !important;
  }
}

/* Sample Links Chips */
.quick-samples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.sample-chip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sample-chip:hover, .sample-chip:active {
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 480px) {
  .quick-samples {
    gap: 0.4rem;
    margin-top: 1rem;
  }

  .sample-chip {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Product Detail Section */
.product-showcase {
  margin-top: 2.5rem;
  margin-bottom: 4rem;
}

.product-showcase-card {
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .product-showcase-card {
    padding: 1.25rem 1rem !important;
  }
}

.trust-guarantees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .trust-guarantees-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.recent-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 520px) {
  .recent-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
  }
}

img {
  max-width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.product-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* Gallery Slider */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  position: relative;
}

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

.main-image-container:hover img {
  transform: scale(1.03);
}

.thumbnails-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnail-item {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.thumbnail-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

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

/* Price Box & Breakdown */
.pricing-banner {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.06) 0%, rgba(2, 184, 245, 0.08) 100%);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.main-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price-dzd-tag {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.price-dzd-unit {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-right: 0.35rem;
}

.original-usd-badge {
  font-size: 0.95rem;
  color: var(--text-muted);
  background: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

@media (max-width: 576px) {
  .pricing-banner {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-lg);
  }

  .main-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .price-dzd-tag {
    font-size: 1.85rem;
  }
}

.price-breakdown-list {
  border-top: 1px dashed rgba(13, 110, 253, 0.25);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .price-breakdown-list {
    font-size: 0.82rem;
  }
}

/* Variants Selection */
.variants-container {
  margin: 1.5rem 0;
}

.variants-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #1e293b;
}

.variants-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-chip {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.variant-chip.active {
  border-color: var(--primary);
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
  font-weight: 800;
}

.variant-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  object-fit: cover;
}

.property-group {
  margin-bottom: 1.25rem;
}

.property-group-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-group-name span.current-val {
  font-weight: 800;
  color: var(--primary);
}

.property-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prop-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  user-select: none;
  max-width: 100%;
}

.prop-btn:hover {
  border-color: var(--primary);
  background: #f0f7ff;
  transform: translateY(-1px);
}

.prop-btn.active {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.prop-btn.sold-out {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #f8fafc;
}

.prop-thumb {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  border: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  display: block !important;
}

@media (max-width: 480px) {
  .property-values {
    gap: 0.4rem;
  }

  .prop-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }
}

/* Quantity Counter */
.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
}

.qty-btn {
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  color: #334155;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #f1f5f9;
}

.qty-input {
  width: 3.5rem;
  text-align: center;
  font-family: var(--font-latin);
  font-size: 1.15rem;
  font-weight: bold;
  border: none;
  outline: none;
}

/* Modal System (SofizPay Style) */
.sofiz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 35, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.sofiz-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(7, 26, 84, 0.25);
  transform: translateY(20px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

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

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748b;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.modal-body {
  padding: 1.75rem;
}

@media (max-width: 640px) {
  .sofiz-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .sofiz-modal-dialog {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
    width: 100%;
    max-width: 100%;
    transform: translateY(100%);
  }

  .sofiz-modal-overlay.open .sofiz-modal-dialog {
    transform: translateY(0);
  }

  .modal-header {
    padding: 1.15rem 1.25rem 0.85rem;
  }

  .modal-body {
    padding: 1.25rem 1rem 2rem;
  }
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Payment Badges (CIB & EDAHABIA) */
.payment-methods-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
}

.card-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.card-badge img {
  height: 1.75rem;
  object-fit: contain;
}

@media (max-width: 520px) {
  .payment-methods-strip {
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    flex-wrap: wrap;
  }

  .payment-methods-strip > div[style*="width: 1px"] {
    display: none;
  }
}

/* Dashboard Styles */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.kpi-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.kpi-icon.primary { background: rgba(13, 110, 253, 0.1); color: var(--primary); }
.kpi-icon.success { background: var(--success-bg); color: var(--success); }
.kpi-icon.warning { background: var(--warning-bg); color: var(--warning); }
.kpi-icon.purple  { background: #ede9ff; color: var(--brand-purple); }

.kpi-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #071a54;
  line-height: 1.2;
}

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

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .kpi-card {
    padding: 1rem;
    gap: 0.75rem;
    border-radius: var(--radius-lg);
  }

  .kpi-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
  }

  .kpi-value {
    font-size: 1.35rem;
  }

  .kpi-label {
    font-size: 0.75rem;
  }
}

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

/* Dashboard 2-Column Responsive Grid */
.dashboard-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 991px) {
  .dashboard-two-col-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Dashboard Tabs Strip */
.dashboard-tabs-strip {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.dashboard-tabs-strip::-webkit-scrollbar {
  display: none;
}

.dashboard-tab-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Orders Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.table-scroll-hint {
  display: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  align-items: center;
  gap: 0.4rem;
}

.sofiz-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.sofiz-table th {
  background: #f8fafc;
  padding: 1rem;
  font-weight: 800;
  color: #334155;
  border-bottom: 2px solid #e2e8f0;
  text-align: right;
  white-space: nowrap;
}

.sofiz-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

/* Interactive Table Rows */
.sofiz-table tbody tr,
table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sofiz-table tbody tr:hover td,
table tbody tr:hover td {
  background: rgba(13, 110, 253, 0.05);
}

.sofiz-table tbody tr:active td,
table tbody tr:active td {
  background: rgba(13, 110, 253, 0.09);
}

/* Centered Row Details Modal (SofizPay Style) */
.sofiz-row-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 35, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1090;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.sofiz-row-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  box-shadow: 0 24px 60px rgba(7, 26, 84, 0.25);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.sofiz-row-modal-overlay.open .sofiz-row-modal-dialog {
  transform: scale(1) translateY(0);
}

.sofiz-row-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.sofiz-row-modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sofiz-row-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #071a54;
  margin: 0;
  line-height: 1.25;
}

.sofiz-row-modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.sofiz-row-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* SofizPay Product Highlight Banner */
.sofiz-row-hero {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sofiz-row-hero-img {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.sofiz-row-hero-info {
  flex: 1;
  min-width: 0;
}

.sofiz-row-hero-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sofiz-row-hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Fields Grid */
.sofiz-row-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.sofiz-row-field-card {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.18s ease;
}

.sofiz-row-field-card.full-width {
  grid-column: 1 / -1;
}

.sofiz-row-field-card:hover {
  background: #ffffff;
  border-color: rgba(13, 110, 253, 0.28);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.04);
}

.sofiz-row-field-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sofiz-row-field-label i {
  color: var(--primary);
  font-size: 0.72rem;
}

.sofiz-row-field-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
}

/* Modal Footer */
.sofiz-row-modal-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important; /* Never wrap on desktop / large screens */
  gap: 1rem;
  flex-shrink: 0;
}

.sofiz-row-footer-actions-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}

.sofiz-row-footer-actions-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.sofiz-row-modal-footer .sofiz-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  height: 2.5rem !important;
  padding: 0 1.15rem !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-md) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  cursor: pointer;
}

@media (max-width: 640px) {
  .sofiz-row-modal-overlay {
    padding: 0.75rem !important;
    align-items: center !important;
  }

  .sofiz-row-modal-dialog {
    max-height: 88vh;
    border-radius: var(--radius-xl) !important;
    width: 100% !important;
  }

  .sofiz-row-fields-grid {
    grid-template-columns: 1fr;
  }

  .sofiz-row-modal-header {
    padding: 1rem 1.15rem;
  }

  .sofiz-row-modal-body {
    padding: 1.15rem 1rem;
  }

  .sofiz-row-modal-footer {
    padding: 0.85rem 1rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .sofiz-row-footer-actions-left,
  .sofiz-row-footer-actions-right {
    width: 100% !important;
    display: flex !important;
    justify-content: stretch !important;
    gap: 0.5rem !important;
  }

  .sofiz-row-footer-actions-right .sofiz-btn,
  .sofiz-row-footer-actions-left .sofiz-btn {
    flex: 1 !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: flex;
  }

  .sofiz-table th, .sofiz-table td {
    padding: 0.75rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* Customer Profile & Orders Grid Utilities */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .quick-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 400px) {
  .quick-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Order Item Card Responsive Layout */
.my-order-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
  background: #ffffff;
}

.my-order-body {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.my-order-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.my-order-details {
  flex: 1;
  min-width: 220px;
}

.my-order-actions-box {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .my-order-card {
    padding: 1rem;
  }

  .my-order-body {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .my-order-thumb {
    width: 3.75rem;
    height: 3.75rem;
  }

  .my-order-details {
    min-width: 0;
    width: 100%;
  }

  .my-order-actions-box {
    text-align: right;
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    width: 100%;
  }
}

/* Order Tracking Timeline Responsive Grid */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

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

  .timeline-step {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .timeline-step i {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-paid { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef9c3; color: #a16207; }
.badge-failed { background: #fee2e2; color: #b91c1c; }
.badge-new { background: #e0f2fe; color: #0369a1; }
.badge-ordered { background: #ede9fe; color: #6d28d9; }
.badge-shipped { background: #ffedd5; color: #c2410c; }
.badge-delivered { background: #dcfce7; color: #15803d; }

/* Spinner */
.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.spinner-primary {
  border-color: rgba(13, 110, 253, 0.2);
  border-top-color: var(--primary);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications - Modern Floating System */
.toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  width: calc(100% - 2rem);
  max-width: 440px;
}

@media (max-width: 991px) {
  .toast-container {
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.5rem);
  }
}

.toast-card {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.15rem;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 0.85rem 1rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: toastEntrance 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-card.is-dismissing {
  opacity: 0;
  transform: scale(0.94) translateY(-6px);
}

@keyframes toastEntrance {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Success Toast */
.toast-success {
  border-color: rgba(16, 185, 129, 0.35);
}
.toast-success .toast-icon-wrap {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

/* Error Toast */
.toast-error {
  border-color: rgba(239, 68, 68, 0.35);
}
.toast-error .toast-icon-wrap {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Info Toast */
.toast-info {
  border-color: rgba(13, 110, 253, 0.35);
}
.toast-info .toast-icon-wrap {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
}

/* Warning Toast */
.toast-warning {
  border-color: rgba(245, 158, 11, 0.35);
}
.toast-warning .toast-icon-wrap {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-message {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
}

.toast-progress-fill {
  width: 100%;
  height: 100%;
}
.toast-success .toast-progress-fill { background: #10b981; }
.toast-error .toast-progress-fill { background: #ef4444; }
.toast-info .toast-progress-fill { background: #0d6efd; }
.toast-warning .toast-progress-fill { background: #f59e0b; }

/* Dark mode toast styles */
[data-theme="dark"] .toast-card {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toast-message {
  color: #f8fafc;
}

[data-theme="dark"] .toast-close {
  color: #64748b;
}

[data-theme="dark"] .toast-close:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive Utilities */
.w-100 { width: 100% !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
}

/* Authentication & Registration Shared Layout */
.auth-wrapper {
  max-width: 520px;
  margin: 3.5rem auto 5rem;
  padding: 0 1rem;
}

.auth-card {
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
}

@media (max-width: 768px) {
  .auth-wrapper {
    margin: 2.25rem auto 3.5rem;
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .auth-wrapper {
    margin: 1.75rem auto 3rem;
    padding: 0 0.5rem;
  }
  .auth-card {
    padding: 1.5rem 1.15rem !important;
  }
}

/* ==========================================================================
   THEME TOGGLE BUTTON & LANGUAGE SELECTOR
   ========================================================================== */
.theme-toggle-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1rem;
  position: relative;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn .theme-icon-sun {
  display: none;
  color: #f59e0b;
}

.theme-toggle-btn .theme-icon-moon {
  display: inline-block;
  color: #475569;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon-sun {
  display: inline-block;
  animation: spinSlow 8s linear infinite;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon-moon {
  display: none;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Language Selector Dropdown */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.lang-dropdown-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-chevron {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline-end: 0;
  min-width: 155px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInDown 0.15s ease-out;
}

.lang-dropdown-menu.show {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
  text-align: inherit;
}

.lang-option:hover {
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
}

.lang-option.active {
  background: rgba(13, 110, 253, 0.14);
  color: var(--primary);
  font-weight: 800;
}

.lang-option .lang-check {
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0;
}

.lang-option.active .lang-check {
  opacity: 1;
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
  margin-inline-end: 0.4rem;
}

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

/* ==========================================================================
   LTR SUPPORT (FRENCH & ENGLISH)
   ========================================================================== */
[dir="ltr"] body {
  font-family: var(--font-latin), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .sofiz-btn,
[dir="ltr"] .extractor-input,
[dir="ltr"] .form-control {
  font-family: var(--font-latin), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[dir="ltr"] .sofiz-table th {
  text-align: left;
}

[dir="ltr"] .bnav-badge {
  left: auto;
  right: -8px;
}

[dir="ltr"] .price-dzd-unit {
  margin-right: 0;
  margin-left: 0.35rem;
}

/* ==========================================================================
   COMPREHENSIVE DARK THEME SYSTEM
   ========================================================================== */
[data-theme="dark"] {
  --bg-main: #070a14;
  --bg-card: rgba(10, 14, 35, 0.90);
  --bg-card-secondary: #0f172a;
  --border-light: rgba(12, 42, 150, 0.45);
  --border-focus: rgba(59, 130, 246, 0.6);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.7);
  --shadow-sofiz: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-sofiz-primary: 0 12px 32px rgba(13, 110, 253, 0.35);
}

[data-theme="dark"] body {
  background: 
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(12, 42, 150, 0.25), transparent 30rem),
    linear-gradient(180deg, #0a0e23 0%, #0f1729 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-main);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
  color: #f1f5f9;
}

[data-theme="dark"] .brand-name {
  color: #ffffff;
}

[data-theme="dark"] .brand-subtitle {
  color: var(--text-muted);
}

[data-theme="dark"] .sofiz-header {
  background: rgba(10, 14, 35, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom-color: rgba(12, 42, 150, 0.45) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .sofiz-card {
  background: rgba(10, 14, 35, 0.90) !important;
  border-color: rgba(12, 42, 150, 0.5) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .sofiz-bottom-nav {
  background: transparent;
  border-top-color: transparent;
  box-shadow: none;
}

[data-theme="dark"] .bottom-nav-dock {
  background: rgba(7, 10, 20, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .bottom-nav-item {
  color: #64748b;
}

[data-theme="dark"] .bottom-nav-item:hover,
[data-theme="dark"] .bottom-nav-item:focus {
  color: #cbd5e1;
}

[data-theme="dark"] .bottom-nav-item.active {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .bnav-badge {
  border-color: #070a14;
}

[data-theme="dark"] .bottom-nav-item.bnav-logout-item {
  color: #f87171 !important;
}

[data-theme="dark"] .bottom-nav-item.bnav-logout-item:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
}

[data-theme="dark"] .bottom-nav-center-item .bottom-nav-bubble {
  border-color: #131c31;
}

[data-theme="dark"] .nav-link {
  color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #38bdf8;
  background: rgba(13, 110, 253, 0.16);
}

[data-theme="dark"] .nav-badge-pill {
  background: #19243a;
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

[data-theme="dark"] .nav-user-pill {
  background: rgba(13, 110, 253, 0.18);
  color: #93c5fd;
}

[data-theme="dark"] .extractor-box {
  background: #131c31;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .extractor-input {
  color: #f8fafc;
}

[data-theme="dark"] .extractor-input::placeholder {
  color: #64748b;
}

@media (max-width: 640px) {
  [data-theme="dark"] .extractor-input-group {
    background: #0a0f1d;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

[data-theme="dark"] .sample-chip {
  background: #1a253c;
  border-color: rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
}

[data-theme="dark"] .sample-chip:hover,
[data-theme="dark"] .sample-chip:active {
  background: rgba(13, 110, 253, 0.22);
  color: #38bdf8;
  border-color: #3b82f6;
}

[data-theme="dark"] .main-image-container {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .thumbnail-item {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pricing-banner {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(2, 184, 245, 0.12) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .price-dzd-tag {
  color: #60a5fa;
}

[data-theme="dark"] .original-usd-badge {
  background: #1a253c;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

[data-theme="dark"] .variants-title,
[data-theme="dark"] .property-group-name {
  color: #e2e8f0;
}

[data-theme="dark"] .variant-chip {
  background: #1a253c;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

[data-theme="dark"] .variant-chip.active {
  background: rgba(13, 110, 253, 0.25);
  border-color: #3b82f6;
  color: #93c5fd;
}

[data-theme="dark"] .prop-btn {
  background: #1a253c;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

[data-theme="dark"] .prop-btn:hover {
  background: #253349;
  border-color: #38bdf8;
}

[data-theme="dark"] .prop-btn.active {
  background: rgba(13, 110, 253, 0.25);
  border-color: #3b82f6;
  color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .prop-thumb {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .qty-control {
  background: #1a253c;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .qty-btn {
  color: #cbd5e1;
}

[data-theme="dark"] .qty-btn:hover {
  background: #253349;
}

[data-theme="dark"] .qty-input {
  background: transparent;
  color: #f8fafc;
}

[data-theme="dark"] .form-control {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

[data-theme="dark"] .form-control:focus {
  border-color: #3b82f6;
  background: #0a0f1d;
  color: #ffffff;
}

[data-theme="dark"] .form-label {
  color: #cbd5e1;
}

[data-theme="dark"] .sofiz-modal-dialog {
  background: #131c31;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .modal-close-btn {
  background: #1a253c;
  color: #94a3b8;
}

[data-theme="dark"] .modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

[data-theme="dark"] .payment-methods-strip {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .card-badge {
  color: #cbd5e1;
}

[data-theme="dark"] .kpi-card {
  background: #131c31;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .kpi-value {
  color: #f8fafc;
}

[data-theme="dark"] .dashboard-tabs-strip {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sofiz-table th {
  background: #0d1527;
  color: #94a3b8;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sofiz-table td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

[data-theme="dark"] .sofiz-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .my-order-card {
  background: #131c31;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .my-order-thumb {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .timeline-step {
  background: #1a253c;
  color: #64748b;
}

[data-theme="dark"] .timeline-step.active {
  background: rgba(2, 184, 245, 0.18);
  color: #38bdf8;
}

[data-theme="dark"] .timeline-step.completed {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
}

[data-theme="dark"] .badge-paid {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
}

[data-theme="dark"] .badge-pending {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
}

[data-theme="dark"] .badge-failed {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

[data-theme="dark"] .badge-new {
  background: rgba(13, 110, 253, 0.2);
  color: #60a5fa;
}

[data-theme="dark"] .badge-ordered {
  background: rgba(109, 40, 217, 0.25);
  color: #c084fc;
}

[data-theme="dark"] .badge-shipped {
  background: rgba(234, 88, 12, 0.2);
  color: #fb923c;
}

[data-theme="dark"] footer.sofiz-footer {
  background: #070b14 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .auth-tab-btn.active {
  background: #1a253c !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .auth-tab-btn.inactive {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .profile-info-grid > div {
  background: #111a2e !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .profile-info-grid > div > div:last-child {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .profile-info-grid strong {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .sofiz-card h3 {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .my-order-details h4 {
  color: #f8fafc !important;
}

[data-theme="dark"] .my-order-card > div:first-child {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] #edit-profile-modal .sofiz-card {
  background: #131c31 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] #edit-profile-modal div[style*="border-bottom"] {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   DARK THEME: TABLE ROWS & CENTERED ROW DETAILS MODAL (SOFIZPAY STYLE)
   ========================================================================== */

[data-theme="dark"] .sofiz-table tbody tr:hover td,
[data-theme="dark"] table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .sofiz-table tbody tr:active td,
[data-theme="dark"] table tbody tr:active td {
  background: rgba(59, 130, 246, 0.22) !important;
}

[data-theme="dark"] .sofiz-row-modal-overlay {
  background: rgba(3, 7, 18, 0.78) !important;
}

[data-theme="dark"] .sofiz-row-modal-dialog {
  background: #131c31 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75) !important;
}

[data-theme="dark"] .sofiz-row-modal-header {
  background: #131c31 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .sofiz-row-modal-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .sofiz-row-modal-subtitle {
  color: #94a3b8 !important;
}

[data-theme="dark"] .sofiz-row-hero {
  background: #0d1527 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .sofiz-row-hero-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .sofiz-row-hero-meta {
  color: #94a3b8 !important;
}

[data-theme="dark"] .sofiz-row-field-card {
  background: #0d1527 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .sofiz-row-field-card:hover {
  background: #111a2f !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-theme="dark"] .sofiz-row-field-label {
  color: #94a3b8 !important;
}

[data-theme="dark"] .sofiz-row-field-value {
  color: #f8fafc !important;
}

[data-theme="dark"] .sofiz-row-modal-footer {
  background: #0d1527 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .sofiz-row-modal-footer .sofiz-btn-secondary {
  background: #1a253c !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .sofiz-row-modal-footer .sofiz-btn-secondary:hover {
  background: #253349 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .sofiz-row-modal-footer .sofiz-btn-outline {
  border-color: #3b82f6 !important;
  color: #60a5fa !important;
  background: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="dark"] .sofiz-row-modal-footer .sofiz-btn-outline:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
}


