/**
 * POS UAE — Modern Public Website Stylesheet (Light Theme)
 * 
 * High-end corporate SaaS aesthetic: Clean white & slate surfaces,
 * UAE Royal Blue & Emerald accents, crisp typography, responsive layout,
 * and single-line navigation.
 */

:root {
  --site-bg: #f8fafc;
  --site-bg-alt: #f1f5f9;
  --site-surface: #ffffff;
  --site-card-bg: #ffffff;
  --site-card-hover: #ffffff;
  --site-card-border: #e2e8f0;
  --site-card-border-hover: #cbd5e1;
  
  --site-primary: #1e40af;
  --site-primary-hover: #1d4ed8;
  --site-primary-light: #eff6ff;
  --site-primary-glow: rgba(30, 64, 175, 0.15);
  
  --site-cyan: #0284c7;
  --site-cyan-light: #f0f9ff;
  --site-cyan-glow: rgba(2, 132, 199, 0.15);
  
  --site-emerald: #059669;
  --site-emerald-light: #ecfdf5;
  --site-emerald-glow: rgba(5, 150, 105, 0.15);
  
  --site-amber: #d97706;
  --site-amber-light: #fffbeb;
  
  --site-text: #0f172a;
  --site-text-muted: #475569;
  --site-text-dim: #64748b;
  
  --site-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --site-radius-sm: 8px;
  --site-radius: 12px;
  --site-radius-lg: 16px;
  --site-radius-full: 9999px;
  
  --site-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --site-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --site-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --site-shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --site-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Reset & Global */
html {
  scroll-behavior: smooth;
  color-scheme: light;
}

section[id],
.pos-section[id],
.pos-tab-content[id],
[id^="tab"] {
  scroll-margin-top: 85px;
}

body.pos-site-body {
  font-family: var(--site-font);
  background-color: var(--site-bg);
  color: var(--site-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(5, 150, 105, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(2, 132, 199, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Light Theme overrides for legacy dark utility classes */
.pos-site-body .text-light {
  color: var(--site-text) !important;
}

.pos-site-body .border-secondary {
  border-color: var(--site-card-border) !important;
}

.pos-site-body .bg-dark {
  background-color: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid var(--site-card-border) !important;
}

.pos-site-body .bg-dark .text-muted {
  color: #64748b !important;
}

.pos-site-body .bg-dark .text-light,
.pos-site-body .bg-dark .fw-bold,
.pos-site-body .bg-dark strong {
  color: #0f172a !important;
}

/* Neutralize legacy inline dark background styles on cards */
.pos-site-body .pos-card[style*="rgba(15, 23, 42"],
.pos-site-body div[style*="rgba(15, 23, 42"],
.pos-site-body div[style*="background: rgba(30, 41, 59"] {
  background: #ffffff !important;
  border-color: var(--site-card-border) !important;
  color: var(--site-text) !important;
}

/* Physical register simulator screen exception */
.pos-register-sim,
.pos-register-sim .bg-dark,
.pos-code-block.bg-dark {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

.pos-register-sim .text-light {
  color: #ffffff !important;
}

/* Top Trust Bar */
.pos-trust-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 7px 0;
  font-size: 0.8rem;
  color: #475569;
}

.pos-trust-bar strong {
  color: #0f172a;
}

/* Badges */
.pos-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--site-radius-full);
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid rgba(30, 64, 175, 0.25);
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.06);
}

.pos-badge.emerald {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.06);
}

.pos-badge.cyan {
  background: #f0f9ff;
  color: #0369a1;
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.06);
}

.pos-badge.amber {
  background: #fffbeb;
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.06);
}

/* Navigation Header */
.pos-site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--site-card-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--site-transition);
  padding: 10px 0;
}

/* Tabler Reset for Clean Light Navbar */
.pos-site-navbar .navbar {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.pos-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--site-text);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pos-navbar-brand:hover {
  color: var(--site-primary);
}

.pos-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--site-radius-sm);
  background: linear-gradient(135deg, #1e40af, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.3);
  flex-shrink: 0;
}

.pos-brand-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: var(--site-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: var(--site-emerald);
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 4px;
  vertical-align: middle;
}

/* Desktop Single-Line Navigation Rules */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .pos-site-navbar .navbar-toggler {
    display: none !important;
  }
}

.pos-nav-link {
  color: var(--site-text-muted) !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 8px 14px !important;
  border-radius: var(--site-radius-sm);
  transition: var(--site-transition);
  text-decoration: none;
  white-space: nowrap !important;
  display: inline-block;
}

.pos-nav-link:hover {
  color: var(--site-text) !important;
  background: #f1f5f9;
}

.pos-nav-link.active {
  color: var(--site-primary) !important;
  background: var(--site-primary-light);
  font-weight: 600;
}

.pos-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Buttons */
.pos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--site-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--site-transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.pos-btn-primary {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.pos-btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
  transform: translateY(-1px);
}

.pos-btn-outline {
  background: #ffffff;
  color: #1e293b !important;
  border-color: #cbd5e1;
  box-shadow: var(--site-shadow-sm);
}

.pos-btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.pos-btn-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.pos-btn-emerald:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
}

.pos-btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 10px;
}

/* Cards & Surface */
.pos-card {
  background: var(--site-card-bg);
  border: 1px solid var(--site-card-border);
  border-radius: var(--site-radius);
  padding: 30px;
  transition: var(--site-transition);
  position: relative;
  box-shadow: var(--site-shadow);
}

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

.pos-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--site-radius-sm);
  background: var(--site-primary-light);
  color: var(--site-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(30, 64, 175, 0.15);
}

.pos-card-icon.cyan {
  background: var(--site-cyan-light);
  color: var(--site-cyan);
  border-color: rgba(2, 132, 199, 0.15);
}

.pos-card-icon.emerald {
  background: var(--site-emerald-light);
  color: var(--site-emerald);
  border-color: rgba(5, 150, 105, 0.15);
}

.pos-card-icon.amber {
  background: var(--site-amber-light);
  color: var(--site-amber);
  border-color: rgba(217, 119, 6, 0.15);
}

/* Hero Section */
.pos-hero {
  padding: 70px 0 50px;
  position: relative;
}

.pos-hero-title {
  font-size: clamp(1.75rem, 4vw + 0.6rem, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.pos-title-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #065f46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.pos-hero-lead {
  font-size: clamp(0.95rem, 1.1vw + 0.55rem, 1.15rem);
  color: var(--site-text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 540px;
}

/* Sections */
.pos-section {
  padding: 80px 0;
}

.pos-section-alt {
  background: var(--site-bg-alt);
  border-top: 1px solid var(--site-card-border);
  border-bottom: 1px solid var(--site-card-border);
}

.pos-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.pos-section-title {
  font-size: clamp(1.35rem, 2.2vw + 0.5rem, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 15px;
  margin-bottom: 15px;
  color: var(--site-text);
}

.pos-section-desc {
  font-size: 1.05rem;
  color: var(--site-text-muted);
  line-height: 1.65;
}

/* Checklists */
.pos-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pos-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--site-text-muted);
}

.pos-check-item:last-child {
  margin-bottom: 0;
}

.pos-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--site-emerald-light);
  color: var(--site-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pos-num-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--site-primary-light);
  color: var(--site-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(30, 64, 175, 0.2);
}

/* Stats Proof Section */
.pos-stats-strip {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--site-shadow-sm);
  padding: 28px 0;
}

.pos-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.pos-stat-label {
  font-size: 0.88rem;
  color: var(--site-text-muted);
  font-weight: 500;
}

/* Interactive Register Simulator (Sleek Modern Terminal Chassis) */
.pos-register-sim {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--site-radius-lg);
  padding: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.pos-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

.pos-sim-dots {
  display: flex;
  gap: 6px;
}

.pos-sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pos-sim-dot.red { background: #ef4444; }
.pos-sim-dot.yellow { background: #f59e0b; }
.pos-sim-dot.green { background: #10b981; }

.pos-sim-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pos-sim-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .pos-sim-body {
    grid-template-columns: 1fr;
  }
}

.pos-sim-cart {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--site-radius-sm);
  padding: 12px;
}

.pos-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.pos-cart-item:last-child {
  border-bottom: none;
}

.pos-sim-keypad {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pos-sim-totals {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--site-radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}

.pos-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.pos-total-row.grand {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.pos-sim-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pos-sim-btn {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--site-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  touch-action: manipulation;
}

.pos-sim-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pos-sim-btn.pay-card {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  border: none;
}

.pos-sim-btn.pay-cash {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border: none;
}

/* Industry Tabs */
.pos-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.pos-tab-content {
  display: none;
}

.pos-tab-content.active {
  display: block;
}

.pos-tab-btn,
.pos-tab-pill {
  padding: 10px 22px;
  border-radius: var(--site-radius-full);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--site-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--site-shadow-sm);
}

.pos-tab-btn:hover,
.pos-tab-pill:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.pos-tab-btn.active,
.pos-tab-pill.active {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

/* Quotation Calculator & Sliders */
.pos-calc-box,
.pos-calc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--site-radius-lg);
  padding: 35px;
  box-shadow: var(--site-shadow);
}

.pos-range-slider,
.pos-calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 15px 0 20px;
}

.pos-range-slider::-webkit-slider-thumb,
.pos-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e40af;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
  border: 2px solid #ffffff;
}

/* Call to Action Banner */
.pos-cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #065f46 100%);
  border-radius: var(--site-radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--site-shadow-lg);
  color: #ffffff;
}

.pos-cta-banner h2,
.pos-cta-banner p {
  color: #ffffff !important;
}

.pos-cta-banner .pos-btn-outline {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(8px);
}

.pos-cta-banner .pos-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.pos-cta-banner .text-muted,
body.pos-site-body .pos-cta-banner .text-muted,
.pos-cta-banner .pos-cta-footer-strip,
.pos-cta-banner .pos-cta-footer-strip span {
  color: #f8fafc !important;
}

.pos-cta-banner .pos-cta-footer-strip .pos-cta-dot {
  color: #34d399 !important;
}

.pos-cta-banner .pos-badge {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #6ee7b7 !important;
  border-color: rgba(110, 231, 183, 0.45) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pos-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Footer (Crisp Light Corporate Design) */
.pos-site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 70px 0 25px;
  color: #475569;
}

.pos-footer-col-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.pos-footer-link {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  color: #475569;
  text-decoration: none;
  margin-bottom: 6px;
  font-size: 0.9rem;
  transition: var(--site-transition);
  touch-action: manipulation;
}

.pos-footer-link:hover {
  color: #1e40af;
  transform: translateX(3px);
}

[dir="rtl"] .pos-footer-link:hover {
  transform: translateX(-3px);
}

.pos-footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 15px;
  color: #64748b;
}

.pos-footer-bottom-link,
.pos-footer-bottom .pos-footer-link {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  min-height: auto !important;
  color: #64748b;
  text-decoration: none;
  font-size: 0.84rem;
  transition: var(--site-transition);
  margin-bottom: 0 !important;
  white-space: nowrap;
}

.pos-footer-bottom-link:hover,
.pos-footer-bottom .pos-footer-link:hover {
  color: #1e40af !important;
  transform: none !important;
}

/* Forms */
.pos-form-control {
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--site-radius-sm);
  color: #0f172a;
  font-size: 0.95rem;
  transition: var(--site-transition);
}

.pos-form-control:focus {
  outline: none;
  border-color: var(--site-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.pos-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #1e293b;
}

/* Tables in Light Theme */
.pos-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: var(--site-radius-sm);
  overflow: hidden;
}

.pos-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.88rem;
}

.pos-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.9rem;
}

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

.pos-table tr:hover td {
  background: #f8fafc;
}

/* Code Snippet Box (Peppol XML & Architecture) */
.pos-code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--site-radius-sm);
  padding: 16px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  border: 1px solid #334155;
  overflow-x: auto;
}

/* Light Theme Utility Neutralizers for Template Harmony */
body.pos-site-body .text-light {
  color: var(--site-text) !important;
}

body.pos-site-body .text-muted {
  color: #475569 !important;
}

body.pos-site-body p {
  color: #334155;
}

/* Missing Color Utility Tokens */
.text-emerald {
  color: #059669 !important;
}

.text-cyan {
  color: #0284c7 !important;
}

.text-amber {
  color: #d97706 !important;
}

/* Dedicated High-Contrast Badge System for Public Pages */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.35;
  transition: var(--site-transition);
}

.badge.bg-white {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.badge.bg-success-lt,
.badge.text-success {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
}

.badge.bg-primary-lt,
.badge.text-primary {
  background-color: #eff6ff !important;
  color: #1e40af !important;
  border: 1px solid rgba(30, 64, 175, 0.2) !important;
}

.badge.bg-warning-lt,
.badge.text-warning {
  background-color: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
}

.badge.bg-danger-lt,
.badge.text-danger {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
}

.badge.bg-info-lt,
.badge.text-info {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

.badge.bg-secondary-lt {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid rgba(100, 116, 139, 0.25) !important;
}

/* Terminal & Register Simulator Badges (Crisp contrast on dark screens) */
.pos-register-sim .badge.bg-success-lt {
  background-color: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
}

.pos-register-sim .badge.bg-primary-lt {
  background-color: rgba(59, 130, 246, 0.18) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
}

/* Maintain crisp white text strictly inside dark code blocks, terminal screens, and primary buttons */
.pos-register-sim .text-light,
.pos-register-sim-screen .text-light,
.pos-code-block,
.pos-code-block .text-light,
.pos-terminal-screen,
.pos-terminal-screen .text-light,
.btn-primary,
.btn-primary .text-light,
.btn-dark,
.btn-dark .text-light,
.pos-btn-primary,
.pos-btn-primary .text-light,
.pos-nav-cta,
.pos-nav-cta .text-light,
.pos-sim-btn,
.pos-sim-btn .text-light {
  color: #ffffff !important;
}

/* Neutralize generic bg-dark boxes into modern light corporate surfaces */
body.pos-site-body .bg-dark:not(.pos-code-block):not(.pos-register-sim):not(.pos-terminal-screen):not(.font-monospace) {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: var(--site-text) !important;
}

/* Dark monospace blocks (e.g., XML payloads, tax invoice terminal preview) */
body.pos-site-body .bg-dark.font-monospace,
body.pos-site-body .pos-terminal-screen {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

body.pos-site-body .border-secondary {
  border-color: #e2e8f0 !important;
}

/* Modern Sub-Card Component (Light Theme Feature Tiles) */
.pos-subcard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--site-radius-sm);
  padding: 16px;
  transition: var(--site-transition);
}

.pos-subcard:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Comparison Matrix Table */
.pos-matrix-table {
  width: 100%;
  min-width: 580px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: var(--site-radius);
  overflow: hidden;
  background: #ffffff;
}

.pos-matrix-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.9rem;
}

.pos-matrix-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.9rem;
  vertical-align: middle;
}

.pos-matrix-table th:not(:first-child),
.pos-matrix-table td:not(:first-child) {
  text-align: center;
}

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

.pos-matrix-table tr:hover td {
  background: #f8fafc;
}

/* Interactive Accordion / FAQ */
.pos-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--site-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--site-transition);
}

.pos-faq-item:hover {
  border-color: #cbd5e1;
}

.pos-faq-trigger {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.pos-faq-chevron {
  transition: transform 0.25s ease;
  color: #64748b;
}

.pos-faq-item.active .pos-faq-chevron {
  transform: rotate(180deg);
  color: var(--site-primary);
}

.pos-faq-body {
  display: none;
  padding: 0 22px 18px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.pos-faq-item.active .pos-faq-body {
  display: block;
}

/* Interactive Compliance Checklist */
.pos-checklist-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--site-radius);
  padding: 24px;
}

.pos-check-toggle-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: var(--site-radius-sm);
  transition: var(--site-transition);
  cursor: pointer;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.pos-check-toggle-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pos-check-toggle-item.checked {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.pos-check-toggle-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--site-transition);
}

.pos-check-toggle-item.checked .pos-check-toggle-box {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

/* Interactive Quote Step Selector */
.pos-quote-step {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--site-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.pos-quote-option {
  border: 2px solid #e2e8f0;
  border-radius: var(--site-radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--site-transition);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #334155;
  background: #f8fafc;
}

.pos-quote-option:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.pos-quote-option.selected {
  border-color: var(--site-primary);
  background: #eff6ff;
  color: var(--site-primary);
  font-weight: 600;
}

/* Sub-Page Navigation Pills */
.pos-subnav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.pos-subnav-pill {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--site-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-subnav-pill:hover,
.pos-subnav-pill.active {
  background: var(--site-primary);
  border-color: var(--site-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

/* Quick Jump Pill Links (for Features & Modules) */
.pos-quickjump-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--site-radius-full);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--site-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--site-transition);
  white-space: nowrap;
}

.pos-quickjump-link:hover,
.pos-quickjump-link.active,
.pos-quickjump-link:focus {
  background: var(--site-primary-light);
  border-color: var(--site-primary);
  color: var(--site-primary);
}

/* Dedicated Sticky Sub-navigation (docked seamlessly below 64px main navbar on desktop) */
.pos-subnav-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 61px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--site-card-border);
  border-bottom: 1px solid var(--site-card-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--site-transition);
}

@media (max-width: 991.98px) {
  .pos-subnav-sticky {
    position: relative;
    top: 0;
  }
}

/* ==========================================================================
   Comprehensive Mobile & Desktop Responsive System
   ========================================================================== */

/* Swipeable subnav and pill strip utility on mobile devices */
.pos-horizontal-scroll-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 767.98px) {
  .pos-horizontal-scroll-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 12px 10px !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    scroll-padding: 0 12px;
    scroll-snap-type: x mandatory;
  }
  .pos-horizontal-scroll-strip::-webkit-scrollbar {
    display: none !important;
  }
  .pos-horizontal-scroll-strip > * {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

.pos-footer-col ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 3px 0;
}

/* iOS Safari form zoom prevention & touch-friendly form controls */
@media (max-width: 768px) {
  .pos-form-control,
  select.pos-form-control,
  textarea.pos-form-control,
  input.pos-form-control,
  .form-control,
  .form-select {
    font-size: 16px !important;
    padding: 12px 16px !important;
    min-height: 46px;
  }
}

/* Interactive touch target accessibility */
.pos-btn,
.pos-nav-link,
.pos-tab-btn,
.pos-tab-pill,
.pos-subnav-pill,
.pos-faq-trigger {
  touch-action: manipulation;
}

/* Touch active feedback */
.pos-btn:active,
.pos-tab-btn:active,
.pos-tab-pill:active,
.pos-sim-btn:active {
  transform: scale(0.98);
}

/* Smooth momentum scrolling for tables and code previews */
.table-responsive,
.pos-code-block,
#simCartItemList {
  -webkit-overflow-scrolling: touch;
}

/* Responsive Breakpoints & Refinements */
@media (max-width: 991.98px) {
  .pos-nav-link {
    padding: 10px 14px !important;
    font-size: 1rem !important;
  }

  .pos-site-navbar .navbar-toggler {
    padding: 8px 10px;
    border-radius: var(--site-radius-sm);
    border: 1px solid var(--site-card-border) !important;
    background: #ffffff;
    color: var(--site-text);
  }

  .pos-site-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
    outline: none;
  }

  .navbar-collapse {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--site-radius);
    padding: 20px;
    margin-top: 12px;
    box-shadow: var(--site-shadow-lg);
  }

  .pos-nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
  }

  .pos-nav-cta .pos-btn {
    width: 100%;
    padding: 11px 18px;
    font-size: 0.95rem;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .pos-hero {
    padding: 45px 0 25px;
  }
  .pos-section {
    padding: 55px 0;
  }
  .pos-card {
    padding: 22px;
  }
  .pos-calc-box,
  .pos-calc-card {
    padding: 22px;
  }
}

@media (max-width: 575.98px) {
  .pos-trust-bar {
    font-size: 0.74rem;
    padding: 6px 0;
  }
  .pos-trust-bar .container-xl {
    justify-content: center !important;
    text-align: center;
  }
  .pos-hero {
    padding: 35px 0 20px;
  }
  .pos-section {
    padding: 45px 0;
  }
  .pos-hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .pos-hero-btns .pos-btn {
    width: 100%;
  }
  .pos-card {
    padding: 18px;
  }
  .pos-stat-number {
    font-size: 1.85rem;
  }
  .pos-stat-label {
    font-size: 0.78rem;
  }
  .pos-cta-banner {
    padding: 35px 20px;
  }
  .pos-site-footer {
    padding: 45px 0 20px;
  }
}

/* ==========================================================================
   Multilingual & RTL Layout Support (Arabic / العربية)
   ========================================================================== */

[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] body.pos-site-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: normal !important;
}

[dir="rtl"] p,
[dir="rtl"] .pos-hero-lead,
[dir="rtl"] .pos-section-desc {
  line-height: 1.75;
}

/* Enforce zero letter-spacing on all Arabic text to prevent disjointed cursive ligatures */
[dir="rtl"] .pos-badge,
[dir="rtl"] .badge,
[dir="rtl"] .pos-btn,
[dir="rtl"] .pos-hero-title,
[dir="rtl"] .pos-section-title,
[dir="rtl"] .pos-stat-number,
[dir="rtl"] .pos-stat-label,
[dir="rtl"] .pos-brand-tag,
[dir="rtl"] .pos-sim-title,
[dir="rtl"] .pos-nav-link {
  letter-spacing: normal !important;
  text-transform: none !important;
}

[dir="rtl"] .pos-badge svg {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .pos-btn svg {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .pos-card-icon {
  margin-right: 0;
  margin-left: 14px;
}

[dir="rtl"] .pos-card-icon.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

[dir="rtl"] .pos-check-icon {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .pos-check-item {
  text-align: right;
}

/* Comparison Matrix in RTL */
[dir="rtl"] .pos-matrix-table th:first-child,
[dir="rtl"] .pos-matrix-table td:first-child {
  text-align: right;
}

[dir="rtl"] .pos-matrix-table th:not(:first-child),
[dir="rtl"] .pos-matrix-table td:not(:first-child) {
  text-align: center;
}

/* FAQ Accordion in RTL */
[dir="rtl"] .pos-faq-trigger {
  text-align: right !important;
}

[dir="rtl"] .pos-faq-trigger .pos-faq-chevron {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .pos-nav-link {
  font-size: 0.95rem;
}

[dir="rtl"] .pos-hero-title {
  line-height: 1.35;
}

[dir="rtl"] .pos-form-control {
  text-align: right;
}

[dir="rtl"] .pos-form-control option {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .pos-footer-col h4::after {
  right: 0;
  left: auto;
}

[dir="rtl"] .pos-footer-col ul li a {
  padding-left: 0;
  padding-right: 0;
}

[dir="rtl"] .pos-trust-bar .container-xl {
  direction: rtl;
}

[dir="rtl"] .pos-lang-switch {
  letter-spacing: normal !important;
}

[dir="rtl"] .pos-code-block,
[dir="rtl"] pre,
[dir="rtl"] code {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .pos-check-toggle-box {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .pos-quickjump-link {
  font-size: 0.88rem;
}

[dir="rtl"] .pos-subnav-pill {
  font-size: 0.92rem;
}

/* ==========================================================================
   Mobile Offcanvas Drawer Navigation
   ========================================================================== */

.pos-mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1055;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 320px;
  background-color: #ffffff;
  background-clip: padding-box;
  outline: 0;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.16);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.pos-mobile-drawer.offcanvas-end {
  right: 0;
  left: auto;
  transform: translateX(100%);
  border-left: 1px solid rgba(226, 232, 240, 0.8);
}

.pos-mobile-drawer.offcanvas-start {
  left: 0;
  right: auto;
  transform: translateX(-100%);
  border-right: 1px solid rgba(226, 232, 240, 0.8);
}

.pos-mobile-drawer.show {
  visibility: visible;
  transform: none !important;
}

/* RTL Drawer Support */
[dir="rtl"] .pos-mobile-drawer.offcanvas-end {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  border-left: none;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.16);
}

[dir="rtl"] .pos-mobile-drawer.offcanvas-start {
  left: auto;
  right: 0;
  transform: translateX(100%);
  border-right: none;
  border-left: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.16);
}

[dir="rtl"] .pos-mobile-drawer.show {
  transform: none !important;
}

/* Offcanvas Backdrop Overlay */
.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.offcanvas-backdrop.show {
  opacity: 1;
}

/* Drawer Inner Elements */
.pos-mobile-drawer .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.pos-mobile-drawer .offcanvas-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pos-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 48px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pos-drawer-link:hover,
.pos-drawer-link:focus {
  background-color: rgba(30, 64, 175, 0.06);
  color: #1e40af;
}

.pos-drawer-link.active {
  background-color: rgba(30, 64, 175, 0.1);
  color: #1e40af;
  font-weight: 700;
}


