/* ==========================================================================
   FLOWSTOCK ERP - LANDING PAGE STYLESHEET
   Supports: Dark & Light Themes | Full RTL (Arabic) & LTR (French/English)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- Root Variables & Theme Tokens --- */
:root {
  --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-current: var(--font-latin);

  /* Primary Palette */
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --primary-200: #C7D2FE;
  --primary-400: #818CF8;
  --primary-500: #6366F1;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  
  /* Accent Colors */
  --accent-cyan: #06B6D4;
  --accent-violet: #8B5CF6;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;

  /* Dark Theme (Default) */
  --bg-body: #07090E;
  --bg-surface: #0E131F;
  --bg-surface-elevated: #151D2E;
  --bg-surface-trans: rgba(14, 19, 31, 0.75);
  --bg-card: rgba(21, 29, 46, 0.65);
  --bg-card-hover: rgba(28, 38, 60, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(99, 102, 241, 0.35);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-inverse: #07090E;

  --glow-primary: rgba(99, 102, 241, 0.25);
  --glow-cyan: rgba(6, 182, 212, 0.2);
  --glow-emerald: rgba(16, 185, 129, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px var(--glow-primary);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-surface-trans: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #FFFFFF;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-bright: rgba(99, 102, 241, 0.4);

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #94A3B8;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-current);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

main, section, .hero-section, .usb-order-section {
  overflow-x: clip;
  max-width: 100%;
}

/* RTL (Arabic) Font and Layout rules */
[dir="rtl"] {
  --font-current: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Spacing */
.section {
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-400);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Ambient Background Glow Container */
.ambient-glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Radiant Background Glow Effects */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.bg-glow-1 {
  width: 480px;
  height: 480px;
  top: -100px;
  left: -100px;
  background: var(--glow-primary);
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  bottom: 0;
  right: 0;
  background: var(--glow-cyan);
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface-trans);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(99, 102, 241, 0.18);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-violet) 50%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand:hover .brand-logo-img {
  transform: scale(1.06);
}

.plan-quote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px dashed var(--primary-500);
  border-radius: var(--radius-md);
  color: var(--primary-400);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  text-align: center;
}

[data-theme="light"] .plan-quote-badge {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary-600);
}

.brand-text span {
  color: #5028D0;
  background: linear-gradient(135deg, #7C4DFF, #5028D0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--transition-fast);
}

[data-theme="light"] .brand-text span {
  color: #5028D0;
  background: linear-gradient(135deg, #5028D0, #4018C0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  display: none;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-cyan));
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Nav Actions (Lang, Theme, Demo CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language Switcher Dropdown */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--border-bright);
  background: var(--bg-surface-elevated);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  display: none;
  min-width: 140px;
  z-index: 100;
  animation: fadeInDown 0.2s ease-out forwards;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.show {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover, .lang-option.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-main);
}

.lang-option.active {
  font-weight: 700;
  color: var(--primary-400);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-bright);
  background: var(--bg-surface-elevated);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5rem 0 7rem 0;
  position: relative;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.18), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: var(--primary-400);
  margin-bottom: 1.5rem;
  animation: pulseGlow 3s infinite alternate;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-pill .live-pulse {
  flex-shrink: 0;
}

.hero-pill span[data-i18n="hero_badge"] {
  text-wrap: balance;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #06B6D4 60%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

/* Trust Badges / Stats */
.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Hero Visual / Interactive Glass Card */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.hero-window-mockup {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(20px);
  position: relative;
  transition: transform var(--transition-smooth);
}

.hero-window-mockup:hover {
  transform: translateY(-4px) rotateX(1deg);
}

.window-header {
  height: 48px;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.window-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-badge-live {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: blinker 1.5s infinite;
}

/* Window Content: Simulated Dashboard */
.window-body {
  padding: 1.5rem;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-fast);
}

.stat-box:hover {
  border-color: var(--border-bright);
}

.stat-box-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-box-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-box-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-top: 0.25rem;
}

.stat-box-sub.alert {
  color: var(--accent-rose);
}

/* Mini Chart Visual */
.mini-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.chart-svg {
  width: 100%;
  height: 70px;
}

/* Floating Real-time Transaction Toast */
.floating-tx-card {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite;
}

[dir="rtl"] .floating-tx-card {
  right: auto;
  left: -22px;
}

.tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-info {
  display: flex;
  flex-direction: column;
}

.tx-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.tx-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.tx-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SIMULATOR / INTERACTIVE TOUR SECTION
   ========================================================================== */
.simulator-container {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Tabs Bar */
.sim-tabs-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem;
  overflow-x: auto;
  gap: 0.5rem;
}

.sim-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.sim-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.sim-tab-btn.active {
  background: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Panels */
.sim-panel {
  display: none;
  padding: 2.25rem;
}

.sim-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* POS Terminal Simulation Layout */
.pos-sim-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.pos-catalog-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pos-search-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
}

.pos-search-input {
  width: 100%;
  color: var(--text-main);
  font-size: 0.95rem;
}

.pos-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pos-item-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  text-align: left;
  transition: all var(--transition-fast);
}

[dir="rtl"] .pos-item-btn {
  align-items: flex-start;
  text-align: right;
}

.pos-item-btn:hover {
  border-color: var(--primary-500);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.pos-item-btn:active {
  transform: scale(0.98);
}

.pos-item-icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.pos-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.3;
}

.pos-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* POS Receipt Cart Panel */
.pos-receipt-panel {
  background: #FFF;
  color: #111827;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

/* Paper cut zigzag effect top/bottom */
.pos-receipt-panel::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: radial-gradient(circle, transparent, transparent 50%, #FFF 50%, #FFF 100%);
  background-size: 16px 16px;
}

.receipt-header {
  border-bottom: 2px dashed #D1D5DB;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.receipt-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.receipt-subtitle {
  font-size: 0.8rem;
  color: #6B7280;
}

.receipt-items-list {
  flex-grow: 1;
  min-height: 150px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.receipt-row-qty {
  color: #6B7280;
  font-size: 0.8rem;
  margin-inline-end: 0.5rem;
}

.receipt-empty-msg {
  color: #9CA3AF;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 3rem;
  font-style: italic;
}

.receipt-totals {
  border-top: 2px dashed #D1D5DB;
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #4B5563;
}

.total-line.final {
  font-size: 1.25rem;
  font-weight: 900;
  color: #111827;
  margin-top: 0.25rem;
}

.receipt-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Stock Transfer Simulator */
.stock-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.wh-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wh-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.wh-table {
  width: 100%;
  border-collapse: collapse;
}

.wh-table th, .wh-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-size: 0.88rem;
}

[dir="rtl"] .wh-table th, [dir="rtl"] .wh-table td {
  text-align: right;
}

.wh-table th {
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.wh-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stock-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.stock-tag.optimal {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.stock-tag.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

/* Manufacturing & BOM Simulator */
.prod-sim-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.prod-bom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.bom-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.bom-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* Mobile Simulator Phone Mockup */
.mobile-sim-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.phone-mockup {
  width: 290px;
  height: 580px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--glow-primary);
  border: 3px solid #2A3347;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0B1120;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #000;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.scanner-viewfinder {
  width: 200px;
  height: 200px;
  margin: 4rem auto 2rem auto;
  border: 2px dashed var(--accent-cyan);
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laser-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #FF0055;
  box-shadow: 0 0 12px #FF0055;
  animation: laserScan 2s ease-in-out infinite alternate;
}

/* ==========================================================================
   CORE MODULES SECTION (GRID)
   ========================================================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.module-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 25px var(--glow-primary);
}

.module-card:hover::before {
  opacity: 1;
}

.module-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.module-card:hover .module-icon-wrap {
  background: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

.module-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.module-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.module-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.module-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.module-feature-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   HARDWARE COMPATIBILITY
   ========================================================================== */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.hardware-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all var(--transition-fast);
}

.hardware-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.hw-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hw-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.hw-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   COMPARISON SECTION - ULTRA-MODERN PREMIUM SAAS UI
   ========================================================================== */
.comparison-table-wrap {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: all var(--transition-normal);
  margin-top: 1rem;
}

[data-theme="light"] .comparison-table-wrap {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08);
}

.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 780px;
}

/* Table Header */
.comp-table thead th {
  padding: 1.5rem 1.75rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .comp-table thead th {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.comp-table th.col-criteria {
  width: 32%;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
}

[dir="rtl"] .comp-table th.col-criteria {
  text-align: right;
}

.comp-table th.col-others {
  width: 34%;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
}

[dir="rtl"] .comp-table th.col-others {
  text-align: right;
}

/* Winner Column Header (Flowstock) */
.comp-table th.flowstock-col {
  width: 34%;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-inline-start: 1.5px solid rgba(99, 102, 241, 0.35);
  border-inline-end: 1.5px solid rgba(99, 102, 241, 0.35);
  position: relative;
  text-align: left;
}

[dir="rtl"] .comp-table th.flowstock-col {
  text-align: right;
}

[data-theme="light"] .comp-table th.flowstock-col {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.09) 0%, rgba(99, 102, 241, 0.03) 100%);
  border-inline-start: 1.5px solid rgba(99, 102, 241, 0.25);
  border-inline-end: 1.5px solid rgba(99, 102, 241, 0.25);
}

.fs-th-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fs-champ-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

[dir="rtl"] .fs-champ-pill {
  align-self: flex-start;
}

.fs-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.fs-comp-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fs-comp-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

[data-theme="light"] .fs-comp-name {
  color: #312E81;
}

/* Rows & Cells */
.comp-table tbody tr {
  transition: background-color var(--transition-fast);
}

.comp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .comp-table tbody tr:hover {
  background: #F8FAFC;
}

.comp-table td {
  padding: 1.2rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 0.92rem;
  line-height: 1.5;
}

[data-theme="light"] .comp-table td {
  border-bottom: 1px solid #F1F5F9;
}

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

/* Column 1: Criteria */
.comp-table td.col-criteria {
  color: var(--text-main);
  font-weight: 700;
}

[data-theme="light"] .comp-table td.col-criteria {
  color: #1E293B;
}

.crit-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.crit-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-400);
}

[data-theme="light"] .crit-icon {
  background: #EEF2FF;
  color: #4F46E5;
}

.crit-name {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Column 2: Flowstock Highlighted Column */
.comp-table td.flowstock-col {
  background: rgba(99, 102, 241, 0.06);
  border-inline-start: 1.5px solid rgba(99, 102, 241, 0.35);
  border-inline-end: 1.5px solid rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .comp-table td.flowstock-col {
  background: rgba(99, 102, 241, 0.025);
  border-inline-start: 1.5px solid rgba(99, 102, 241, 0.25);
  border-inline-end: 1.5px solid rgba(99, 102, 241, 0.25);
}

.comp-badge-win {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comp-icon-win {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .comp-icon-win {
  background: #D1FAE5;
  color: #059669;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

.comp-text-win {
  font-weight: 700;
  color: #10B981;
  font-size: 0.93rem;
}

[data-theme="light"] .comp-text-win {
  color: #047857;
}

/* Column 3: Others */
.comp-table td.col-others {
  color: var(--text-dim);
}

.comp-badge-loss {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comp-icon-loss {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 63, 94, 0.12);
  color: #F43F5E;
}

[data-theme="light"] .comp-icon-loss {
  background: #FEE2E2;
  color: #DC2626;
}

.comp-text-loss {
  color: var(--text-muted);
  font-size: 0.9rem;
}

[data-theme="light"] .comp-text-loss {
  color: #64748B;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem;
}

.billing-toggle-btn {
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.billing-toggle-btn.active {
  background: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
}

.discount-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-inline-start: 0.4rem;
}

.currency-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.currency-btn {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.currency-btn.active {
  border-color: var(--primary-500);
  color: var(--primary-400);
  background: rgba(99, 102, 241, 0.1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-bright);
}

.pricing-card.popular {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--primary-500);
  box-shadow: var(--shadow-lg), 0 0 35px var(--glow-primary);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-violet));
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.35rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.plan-tag {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.plan-period {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 600;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.plan-feature-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.onetime-notice-banner {
  text-align: center;
  margin-top: 3.5rem;
  padding: 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--transition-fast);
}

.testimonial-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.test-stars {
  color: #FBBF24;
  display: flex;
  gap: 3px;
  font-size: 1rem;
}

.test-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
}

.test-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-cyan));
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.open {
  border-color: var(--border-bright);
  background: var(--bg-surface-elevated);
}

.faq-trigger {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

[dir="rtl"] .faq-trigger {
  text-align: right;
}

.faq-icon-arrow {
  color: var(--text-dim);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--primary-400);
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-item.open .faq-content {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner-section {
  padding: 5rem 0;
}

.cta-banner-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.85) 0%, rgba(139, 92, 246, 0.85) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-banner-box h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.cta-banner-box p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   MODAL DIALOG (LEAD GENERATION / DEMO REQUEST)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.show .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 1.75rem 1.75rem 1rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.5rem;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

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

.form-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-500);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 1rem;
  text-align: center;
}

/* Modal Success State */
.modal-success-state {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.modal-success-state.show {
  display: flex;
}

.success-icon-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 2rem;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating Action Buttons */
.floating-actions-bar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[dir="rtl"] .floating-actions-bar {
  right: auto;
  left: 2rem;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

.float-whatsapp {
  background: #25D366;
  color: #FFF;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  background: #20BD5A;
}

.float-back-top {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
}

.float-back-top.visible {
  opacity: 1;
  visibility: visible;
}

.float-back-top:hover {
  color: var(--text-main);
  border-color: var(--border-bright);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-400);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-item a,
.contact-item bdi,
.phone-link,
.wa-phone-link {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[dir="rtl"] .contact-item a,
[dir="rtl"] .contact-item bdi,
[dir="rtl"] .phone-link,
[dir="rtl"] .wa-phone-link {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

[dir="rtl"] input[type="tel"] {
  direction: ltr !important;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); }
  100% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.45); }
}

@keyframes blinker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes laserScan {
  0% { top: 10px; }
  100% { top: 190px; }
}

/* ==========================================================================
   MOBILE & RESPONSIVE UTILITIES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-table-hint {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-500);
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .mobile-table-hint {
  background: #EEF2FF;
  border-color: #A5B4FC;
  color: #4F46E5;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-cta {
  display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .mobile-sim-container {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Layout & Container */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-header {
    margin: 0 auto 2.25rem auto;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.85rem;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .section-desc {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* Header & Navigation */
  .navbar {
    height: 70px;
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .nav-actions .btn-trigger-demo {
    display: none !important;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .lang-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }

  .mobile-nav-toggle {
    display: flex;
    width: 38px;
    height: 38px;
  }

  .mobile-nav-toggle .close-icon {
    display: none;
  }

  .mobile-nav-toggle.open .hamburger-icon {
    display: none;
  }

  .mobile-nav-toggle.open .close-icon {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border-bottom: 2px solid var(--border-bright);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    padding: 1.25rem 1.25rem 1.75rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    z-index: 999;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out, visibility 0.25s;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    display: flex;
  }

  .nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
  }

  [dir="rtl"] .nav-link {
    text-align: right;
    justify-content: flex-start;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-500);
    border-color: var(--border-bright);
  }

  .nav-link::after {
    display: none;
  }

  .nav-mobile-cta {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-mobile-cta .btn,
  .nav-mobile-cta .btn-usb-order {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 0.5rem !important;
    font-size: clamp(0.74rem, 3.2vw, 0.88rem) !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0 3rem 0;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-pill {
    font-size: clamp(0.72rem, 3.2vw, 0.8rem);
    padding: 0.45rem 0.95rem;
    max-width: 100%;
    width: fit-content;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }

  .hero-pill span[data-i18n="hero_badge"] {
    text-wrap: balance;
  }

  .hero-title br {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.2vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 1rem;
    text-wrap: balance;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
    white-space: normal;
    box-sizing: border-box;
  }

  .hero-delivery-pill {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 0.7rem 0.95rem;
    font-size: clamp(0.78rem, 3.2vw, 0.85rem);
    line-height: 1.45;
    justify-content: center;
    text-align: center;
    margin-top: 0.75rem;
    text-wrap: balance;
  }

  .hero-trust-grid {
    gap: 0.85rem;
    padding-top: 1.25rem;
  }

  .trust-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .trust-text {
    font-size: 0.82rem;
  }

  .hero-visual {
    perspective: none;
  }

  .hero-window-mockup {
    border-radius: var(--radius-md);
  }

  .hero-window-mockup:hover {
    transform: none;
  }

  .window-body {
    padding: 0.9rem;
  }

  .dashboard-stats-grid {
    gap: 0.75rem;
    margin-bottom: 0.9rem;
  }

  .stat-box {
    padding: 0.75rem 0.85rem;
  }

  .stat-box-val {
    font-size: 1.18rem;
  }

  .stat-box-label {
    font-size: 0.75rem;
  }

  .floating-tx-card {
    display: none;
  }

  /* Interactive Simulator */
  .simulator-container {
    border-radius: var(--radius-md);
  }

  .sim-tabs-bar {
    padding: 0.4rem;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .sim-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .sim-tab-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
  }

  .sim-panel {
    padding: 1rem 0.75rem;
  }

  .pos-sim-grid, .stock-sim-grid, .prod-sim-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pos-search-bar {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  .pos-search-bar .stock-tag {
    display: none;
  }

  .pos-receipt-panel {
    padding: 1.15rem 0.85rem;
  }

  .receipt-actions {
    flex-direction: column;
    gap: 0.65rem;
  }

  .receipt-actions .btn {
    width: 100%;
  }

  .wh-card {
    padding: 1.1rem 0.85rem;
  }

  .wh-table th, .wh-table td {
    padding: 0.65rem 0.45rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .phone-mockup {
    width: 260px;
    height: 500px;
    max-width: 100%;
    margin: 0 auto;
  }

  .scanner-viewfinder {
    width: 170px;
    height: 170px;
    margin: 3rem auto 1.5rem auto;
  }

  /* Modules & Hardware */
  .modules-grid, .hardware-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .module-card {
    padding: 1.5rem 1.25rem;
  }

  .module-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  .module-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .hardware-card {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .hw-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  /* Comparison Section */
  .mobile-table-hint {
    display: block;
  }

  .comp-table {
    min-width: 620px;
  }

  .comp-table thead th {
    padding: 1rem 0.85rem;
  }

  .comp-table td {
    padding: 0.85rem;
    font-size: 0.85rem;
  }

  .crit-title-wrap {
    gap: 0.5rem;
  }

  .crit-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .crit-name {
    font-size: 0.85rem;
  }

  .comp-icon-win, .comp-icon-loss {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .comp-text-win, .comp-text-loss {
    font-size: 0.84rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 1.75rem 1.25rem;
  }

  .pricing-card.popular {
    transform: none;
  }

  .plan-price {
    font-size: 2.2rem;
  }

  .plan-quote-badge {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .onetime-notice-banner {
    margin-top: 2rem;
    padding: 1rem;
    font-size: 0.88rem;
  }

  /* Testimonials & FAQ */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-card {
    padding: 1.5rem 1.25rem;
  }

  .test-quote {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .faq-trigger {
    padding: 1.1rem 1rem;
    font-size: 0.95rem;
  }

  .faq-content {
    padding: 0 1rem 1.15rem 1rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* CTA Banner */
  .cta-banner-section {
    padding: 3rem 0;
  }

  .cta-banner-box {
    padding: 2.25rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .cta-banner-box h2 {
    font-size: 1.65rem;
    margin-bottom: 0.75rem;
  }

  .cta-banner-box p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cta-banner-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .cta-banner-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer {
    padding: 3.5rem 0 2rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-brand-col {
    align-items: flex-start;
    text-align: left;
  }

  [dir="rtl"] .footer-brand-col {
    align-items: flex-start;
    text-align: right;
  }

  .footer-title {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Floating Actions */
  .floating-actions-bar {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.6rem;
  }

  [dir="rtl"] .floating-actions-bar {
    right: auto;
    left: 1.25rem;
  }

  .float-btn {
    width: 46px;
    height: 46px;
  }

  /* Demo Modal & Form */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-dialog {
    max-height: 94vh;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-desc {
    font-size: 0.82rem;
  }

  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
  }

  [dir="rtl"] .modal-close-btn {
    right: auto;
    left: 1rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-input, .form-select, .form-textarea {
    font-size: 16px;
    padding: 0.7rem 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-section {
    padding: 1.5rem 0 2.5rem 0;
  }

  .hero-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .hero-ctas .btn {
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    gap: 0.45rem;
  }

  .hero-delivery-pill {
    font-size: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    gap: 0.4rem;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .trust-item {
    padding: 0.65rem 0.75rem;
  }

  .trust-text {
    font-size: 0.82rem;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .pos-items-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .pos-item-btn {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
  }

  .receipt-row {
    font-size: 0.82rem;
  }

  .phone-mockup {
    width: 240px;
    height: 460px;
    border-radius: 32px;
    padding: 8px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .scanner-viewfinder {
    width: 140px;
    height: 140px;
    margin: 2rem auto 1rem auto;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   USB FLASH DISK HOME DELIVERY SHOWCASE & ORDER MODAL (PREMIUM STYLING)
   ========================================================================== */

/* --- Navbar USB Delivery Button --- */
.btn-usb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #059669 0%, #10B981 60%, #84CC16 100%);
  border: 1px solid rgba(163, 230, 53, 0.4);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-usb-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 0 15px rgba(163, 230, 53, 0.4);
}

.btn-outline-usb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  border: 1.5px dashed rgba(16, 185, 129, 0.45);
  color: #10B981;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline-usb:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10B981;
  color: #10B981;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-outline-usb {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.45);
}

/* --- Hero Delivery Trust Pill --- */
.hero-delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.2rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: #10B981;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
  width: fit-content;
}

[data-theme="light"] .hero-delivery-pill {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #047857;
}

.hero-delivery-pill:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.truck-bounce {
  display: inline-block;
  animation: truckBounce 2s ease-in-out infinite;
}

@keyframes truckBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

[dir="rtl"] .truck-bounce {
  animation: truckBounceRtl 2s ease-in-out infinite;
}

@keyframes truckBounceRtl {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

/* --- Main USB Delivery Showcase in Pricing Section --- */
.usb-delivery-showcase {
  position: relative;
  margin-top: 4rem;
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.95) 0%, rgba(20, 29, 50, 0.9) 100%);
  border: 1.5px solid rgba(163, 230, 53, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(16, 185, 129, 0.2);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

[data-theme="light"] .usb-delivery-showcase {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 45px -10px rgba(16, 185, 129, 0.18), 0 4px 15px rgba(0, 0, 0, 0.05);
}

.usb-showcase-glow {
  position: absolute;
  top: -60px;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.2) 0%, rgba(16, 185, 129, 0.1) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

[dir="rtl"] .usb-showcase-glow {
  right: auto;
  left: 0;
}

.usb-showcase-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* --- Visual Column with Floating USB --- */
.usb-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.usb-card-floating {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.1);
  text-align: center;
  width: 100%;
  max-width: 330px;
}

[data-theme="light"] .usb-card-floating {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.usb-badge-speed {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.4);
  border-radius: var(--radius-full);
  color: #84CC16;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

[data-theme="light"] .usb-badge-speed {
  background: rgba(132, 204, 22, 0.15);
  color: #4D7C0F;
}

.usb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 0;
}

.usb-disk-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 25px rgba(163, 230, 53, 0.35));
  animation: floatUsb 4.5s ease-in-out infinite;
  transition: transform 0.4s ease;
}

[data-theme="light"] .usb-disk-img {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
}

.usb-disk-img:hover {
  transform: scale(1.06) rotate(2deg);
}

@keyframes floatUsb {
  0%, 100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

.usb-chip-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 1.8s infinite;
}

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

/* --- Details Column --- */
.usb-details-col {
  display: flex;
  flex-direction: column;
}

.usb-pill-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-full);
  color: #10B981;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1rem;
}

[data-theme="light"] .usb-pill-banner {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.usb-showcase-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.usb-gradient-text {
  background: linear-gradient(135deg, #10B981 0%, #84CC16 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.usb-showcase-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- USB Price Box Display --- */
.usb-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .usb-price-box {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.usb-price-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.usb-price-figure {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.usb-price-val {
  font-size: 2.15rem;
  font-weight: 900;
  color: #10B981;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0.35rem;
}

[data-theme="light"] .usb-price-val {
  color: #059669;
}

.usb-price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.usb-price-cod-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: rgba(163, 230, 53, 0.15);
  border: 1px solid rgba(163, 230, 53, 0.45);
  border-radius: var(--radius-full);
  color: #84CC16;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

[data-theme="light"] .usb-price-cod-badge {
  background: rgba(132, 204, 22, 0.15);
  color: #4D7C0F;
}

/* --- Perks Grid --- */
.usb-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.usb-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.usb-perk-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
  flex-shrink: 0;
}

[data-theme="light"] .usb-perk-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.usb-perk-item h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.usb-perk-item p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* --- CTA Row --- */
.usb-cta-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.btn-usb-order {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #84CC16 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.5), 0 0 25px rgba(132, 204, 22, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-usb-order:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px -5px rgba(16, 185, 129, 0.65), 0 0 35px rgba(132, 204, 22, 0.5);
}

.btn-usb-order:active {
  transform: translateY(0) scale(0.99);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
  transform: translateX(-150%) skewX(-20deg);
  animation: btnShineSweep 3.5s infinite;
}

@keyframes btnShineSweep {
  0% { transform: translateX(-150%) skewX(-20deg); }
  35%, 100% { transform: translateX(250%) skewX(-20deg); }
}

.usb-guarantee-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.usb-guarantee-note svg {
  color: #10B981;
  flex-shrink: 0;
}

/* --- Direct Delivery Modal Enhancements --- */
.modal-dialog-delivery {
  max-width: 680px;
}

.modal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.modal-badge-delivery {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-full);
  color: #10B981;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

[data-theme="light"] .modal-badge-delivery {
  color: #047857;
}

.modal-title-with-thumb {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.thumb-usb-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

[data-theme="light"] .thumb-usb-wrap {
  background: #F1F5F9;
}

.thumb-usb-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* --- Modal Product & Price Card (Fixed Turnkey 22 000 DA) --- */
.modal-product-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(132, 204, 22, 0.08) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .modal-product-price-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(241, 245, 249, 0.95) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.modal-prod-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.modal-prod-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #10B981;
  text-transform: uppercase;
}

[data-theme="light"] .modal-prod-badge {
  color: #059669;
}

.modal-prod-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.modal-prod-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.modal-prod-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
  flex-shrink: 0;
}

[dir="rtl"] .modal-prod-pricing {
  align-items: flex-start;
  text-align: left;
}

.modal-prod-price {
  font-size: 1.65rem;
  font-weight: 900;
  color: #10B981;
  letter-spacing: -0.01em;
  font-family: var(--font-heading);
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0.35rem;
}

[dir="rtl"] .modal-prod-price {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

[data-theme="light"] .modal-prod-price {
  color: #059669;
}

.modal-prod-cod {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

[data-theme="light"] .modal-prod-cod {
  background: rgba(0, 0, 0, 0.05);
}

/* --- Pricing USB Banner --- */
.pricing-usb-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(132, 204, 22, 0.08) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .pricing-usb-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.pricing-usb-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 280px;
}

.pricing-usb-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.pricing-usb-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #10B981;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="light"] .pricing-usb-badge {
  color: #059669;
}

.pricing-usb-title {
  margin: 0.2rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.pricing-usb-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-usb-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pricing-usb-price-wrap {
  text-align: right;
}

[dir="rtl"] .pricing-usb-price-wrap {
  text-align: left;
}

.pricing-usb-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: #10B981;
  font-family: var(--font-heading);
  line-height: 1;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0.35rem;
}

[dir="rtl"] .pricing-usb-price {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

[data-theme="light"] .pricing-usb-price {
  color: #059669;
}

.pricing-usb-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.15rem;
}

/* --- Pack Radio Card Selector in Modal --- */
.pack-radio-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.pack-radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pack-radio-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-card-hover);
}

.pack-radio-card input[type="radio"] {
  position: absolute;
  top: 10px;
  right: 10px;
  accent-color: #10B981;
}

[dir="rtl"] .pack-radio-card input[type="radio"] {
  right: auto;
  left: 10px;
}

.pack-radio-card:has(input[type="radio"]:checked) {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.pack-radio-card.popular {
  border-color: rgba(163, 230, 53, 0.4);
}

.pack-radio-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 1.25rem;
}

[dir="rtl"] .pack-radio-content {
  padding-right: 0;
  padding-left: 1.25rem;
}

.pack-radio-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.pack-radio-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --- 2 Column Form Row --- */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Delivery Summary Box --- */
.delivery-summary-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.25rem 0;
}

[data-theme="light"] .delivery-summary-box {
  background: rgba(16, 185, 129, 0.06);
}

.del-sum-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.del-sum-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.del-sum-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.del-sum-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.del-security-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.45;
}

.del-order-ref {
  display: inline-block;
  margin: 1rem 0 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px dashed #10B981;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
}

.del-order-ref strong {
  font-family: var(--font-mono);
  color: #10B981;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-left: 0.5rem;
}

[dir="rtl"] .del-order-ref strong {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* --- Responsive Adaptations for USB Delivery --- */
@media (max-width: 992px) {
  .usb-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .usb-visual-col {
    order: -1;
  }

  .usb-card-floating {
    max-width: 280px;
    margin: 0 auto;
  }

  .usb-disk-img {
    max-width: 200px;
  }

  .usb-delivery-showcase {
    padding: 2.25rem 1.75rem;
  }

  .usb-showcase-title {
    font-size: 1.75rem;
  }

  .pack-radio-selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .btn-usb-nav {
    display: none; /* Keep header clean on small phones, available in mobile drawer */
  }

  .usb-hero-feature-section {
    padding: 1.5rem 0 2rem 0 !important;
  }

  .usb-delivery-showcase {
    margin-top: 1.25rem !important;
    padding: 1.5rem 1.15rem !important;
    border-radius: var(--radius-md) !important;
  }

  .usb-price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
  }

  [dir="rtl"] .usb-price-box {
    align-items: flex-start;
  }

  .usb-price-val {
    font-size: 1.85rem;
  }

  .usb-perks-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .usb-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  /* --- Delivery Modal Mobile Responsiveness --- */
  .modal-dialog-delivery {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 0.5rem auto !important;
    padding: 1.25rem 1rem !important;
    max-height: calc(100vh - 1.5rem) !important;
    border-radius: var(--radius-md) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .modal-dialog-delivery .modal-body {
    padding: 0 !important;
  }

  .modal-header-top {
    margin-bottom: 0.5rem;
  }

  .modal-title-with-thumb {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .thumb-usb-wrap {
    width: 52px !important;
    height: 52px !important;
  }

  .modal-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  .modal-desc {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.85rem !important;
  }

  /* Modal Product Price Card on Mobile */
  .modal-product-price-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .modal-prod-pricing {
    align-items: flex-start !important;
    text-align: left !important;
    width: 100%;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(16, 185, 129, 0.3);
  }

  [dir="rtl"] .modal-prod-pricing {
    align-items: flex-start !important;
    text-align: right !important;
  }

  .modal-prod-price {
    font-size: 1.55rem;
  }

  /* Form Fields Mobile Fix (Font 16px to prevent iOS auto-zoom) */
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .modal-form .form-input,
  .modal-form .form-select,
  .modal-form select,
  .modal-form input {
    font-size: 16px !important;
    padding: 0.75rem 0.85rem !important;
    min-height: 48px !important;
    border-radius: var(--radius-sm) !important;
  }

  .form-label {
    font-size: 0.84rem !important;
    margin-bottom: 0.3rem !important;
  }

  /* Summary Box & Submit on Mobile */
  .delivery-summary-box {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
    padding: 0.75rem 0.85rem !important;
    margin: 1rem 0 !important;
  }

  .del-sum-item {
    gap: 0.65rem !important;
  }

  #delSubmitBtn,
  .btn-usb-order {
    width: 100% !important;
    font-size: 0.98rem !important;
    padding: 0.95rem 1.25rem !important;
    min-height: 50px !important;
    border-radius: var(--radius-md) !important;
  }

  .pricing-usb-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .pricing-usb-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pricing-usb-actions .btn-usb-order {
    width: 100% !important;
  }
}

/* ==========================================================================
   DIRECT FACEBOOK AD ORDER PAGE (commander.html / order.html)
   ========================================================================== */
.direct-order-body {
  background: var(--bg-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.direct-order-header {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.direct-order-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.direct-order-wrapper {
  max-width: 980px;
  width: 100%;
  margin: 2rem auto 4rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.direct-order-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 880px) {
  .direct-order-grid {
    grid-template-columns: 100% !important;
    gap: 1.5rem;
  }
  .direct-order-summary-card {
    position: static !important;
  }
}

.direct-order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
  min-width: 0;
  box-sizing: border-box;
}

.direct-order-form-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

[data-theme="light"] .direct-order-form-card {
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.direct-badge-ad {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: #10B981;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .direct-badge-ad {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.direct-usb-img-wrap {
  width: 100%;
  max-width: 240px;
  margin: 1rem auto;
  text-align: center;
}

.direct-usb-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.25));
  border-radius: var(--radius-md);
}

.direct-price-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(132, 204, 22, 0.08) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  text-align: center;
  margin: 1.25rem 0;
}

.direct-price-val {
  font-size: 2.15rem;
  font-weight: 900;
  color: #10B981;
  font-family: var(--font-heading);
  line-height: 1.1;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0.35rem;
}

[dir="rtl"] .direct-price-val {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

[data-theme="light"] .direct-price-val {
  color: #059669;
}

.direct-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-subtle);
}

.direct-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.4;
}

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

.direct-order-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}



/* ============================================================
   DEMO DIRECT DOWNLOAD PANEL (success state)
   ============================================================ */
.dl-panel {
  margin: 20px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 280px;
  animation: dlPulse 2.4s ease-in-out infinite;
}
.dl-btn .dl-ico { flex-shrink: 0; }
@keyframes dlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
  50%      { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}
.dl-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.demo-credentials {
  width: min(100%, 360px);
  margin: 0 0 14px;
  padding: 12px 14px;
  text-align: start;
  color: var(--text-muted);
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.demo-credentials-title {
  display: block;
  margin-bottom: 6px;
  color: var(--text-main);
}
.demo-credentials-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}
.demo-credentials-row code {
  color: var(--text-main);
  font-weight: 700;
}
.dl-fallback {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.dl-fallback a {
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.dl-note {
  text-align: start;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 4px 0 18px;
}
.dl-note strong { color: var(--text-main); display: block; margin-bottom: 3px; }
[dir="rtl"] .dl-note { text-align: start; }
