/* ═══════════════════════════════════════════════════════════════════════
   PorulHub Marketing Page & Live Demo CSS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Typography & Base Token Definitions ────────────────────────────── */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  
  --transition-fast: 0.15s ease;
  --transition-std: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.4);
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
}

/* ── Theme Definitions ──────────────────────────────────────────────── */

/* 1. DARK THEME (Default) */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #0a0a0d;
  --bg-secondary: #121217;
  --bg-card: #181820;
  --bg-input: #1b1b24;
  --accent-color: #ff9f43;
  --accent-dim: rgba(255, 159, 67, 0.12);
  --accent-glow: rgba(255, 159, 67, 0.3);
  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted: #58586c;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --success-color: #00c896;
  --danger-color: #ff5a5a;
  --info-color: #4db5ff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
}

/* 2. LIGHT THEME */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f5f6fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f0f1f6;
  --accent-color: #6366f1;
  --accent-dim: rgba(99, 102, 241, 0.1);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --text-primary: #1e1e2f;
  --text-secondary: #606775;
  --text-muted: #959da8;
  --border-color: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.14);
  --success-color: #10b981;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(99, 102, 241, 0.08);
}

/* 3. OCEAN CYAN */
[data-theme="ocean"] {
  color-scheme: dark;
  --bg-primary: #050d1a;
  --bg-secondary: #0a162b;
  --bg-card: #0e203c;
  --bg-input: #12294e;
  --accent-color: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --text-primary: #e0f2fe;
  --text-secondary: #709bc0;
  --text-muted: #40688c;
  --border-color: rgba(34, 211, 238, 0.08);
  --border-strong: rgba(34, 211, 238, 0.18);
  --success-color: #34d399;
  --danger-color: #f87171;
  --info-color: #38bdf8;
  --glass-bg: rgba(34, 211, 238, 0.02);
  --glass-border: rgba(34, 211, 238, 0.08);
}

/* 4. MIDNIGHT PURPLE */
[data-theme="midnight"] {
  color-scheme: dark;
  --bg-primary: #060514;
  --bg-secondary: #0d0c24;
  --bg-card: #141235;
  --bg-input: #1b1945;
  --accent-color: #a78bfa;
  --accent-dim: rgba(167, 139, 250, 0.12);
  --accent-glow: rgba(167, 139, 250, 0.35);
  --text-primary: #ede9fe;
  --text-secondary: #8c82c4;
  --text-muted: #544d85;
  --border-color: rgba(167, 139, 250, 0.08);
  --border-strong: rgba(167, 139, 250, 0.18);
  --success-color: #34d399;
  --danger-color: #f87171;
  --info-color: #818cf8;
  --glass-bg: rgba(167, 139, 250, 0.02);
  --glass-border: rgba(167, 139, 250, 0.08);
}

/* 5. NEBULA PINK */
[data-theme="nebula"] {
  color-scheme: dark;
  --bg-primary: #0a0614;
  --bg-secondary: #130b24;
  --bg-card: #1d1036;
  --bg-input: #271649;
  --accent-color: #e879f9;
  --accent-dim: rgba(232, 121, 249, 0.12);
  --accent-glow: rgba(232, 121, 249, 0.35);
  --text-primary: #fae8ff;
  --text-secondary: #b58bd4;
  --text-muted: #6e4d8c;
  --border-color: rgba(232, 121, 249, 0.08);
  --border-strong: rgba(232, 121, 249, 0.2);
  --success-color: #34d399;
  --danger-color: #f87171;
  --info-color: #c084fc;
  --glass-bg: rgba(232, 121, 249, 0.02);
  --glass-border: rgba(232, 121, 249, 0.08);
}

/* 6. EMBER GOLD */
[data-theme="ember"] {
  color-scheme: dark;
  --bg-primary: #0f0b06;
  --bg-secondary: #1a120b;
  --bg-card: #261b0f;
  --bg-input: #332414;
  --accent-color: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.35);
  --text-primary: #fef3c7;
  --text-secondary: #b28854;
  --text-muted: #6b4e2d;
  --border-color: rgba(245, 158, 11, 0.08);
  --border-strong: rgba(245, 158, 11, 0.18);
  --success-color: #10b981;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  --glass-bg: rgba(245, 158, 11, 0.02);
  --glass-border: rgba(245, 158, 11, 0.08);
}

/* 7. FOREST GREEN */
[data-theme="forest"] {
  color-scheme: light;
  --bg-primary: #f2f7f4;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #e8efe9;
  --accent-color: #16a34a;
  --accent-dim: rgba(22, 163, 74, 0.1);
  --accent-glow: rgba(22, 163, 74, 0.25);
  --text-primary: #0d2a1b;
  --text-secondary: #4a6857;
  --text-muted: #859c8f;
  --border-color: rgba(22, 163, 74, 0.08);
  --border-strong: rgba(22, 163, 74, 0.18);
  --success-color: #059669;
  --danger-color: #dc2626;
  --info-color: #0891b2;
  --glass-bg: rgba(22, 163, 74, 0.02);
  --glass-border: rgba(22, 163, 74, 0.08);
}

/* 8. WINDOWS CLASSIC RETRO */
[data-theme="windows"] {
  color-scheme: light;
  --bg-primary: #d4d0c8;
  --bg-secondary: #d4d0c8;
  --bg-card: #d4d0c8;
  --bg-input: #ffffff;
  --accent-color: #000080;
  --accent-dim: rgba(0, 0, 128, 0.1);
  --accent-glow: rgba(0, 0, 128, 0.3);
  --text-primary: #000000;
  --text-secondary: #404040;
  --text-muted: #808080;
  --border-color: #808080;
  --border-strong: #000000;
  --success-color: #008000;
  --danger-color: #800000;
  --info-color: #0000ff;
  --glass-bg: transparent;
  --glass-border: #808080;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
}

/* ── General Reset ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  transition: background var(--transition-slow), color var(--transition-slow);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  color: var(--text-primary);
  font-weight: 700;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  filter: brightness(1.15);
}

/* ── Background Animations ────────────────────────────────────────────── */
.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  animation: float 20s infinite alternate ease-in-out;
  transition: background var(--transition-slow);
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-color);
  top: 10%;
  left: -10%;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--info-color);
  top: 40%;
  right: -10%;
  animation-delay: -5s;
}
.orb-3 {
  width: 450px;
  height: 450px;
  background: var(--success-color);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, 60px) scale(1.1);
  }
  100% {
    transform: translate(-40px, -80px) scale(0.9);
  }
}

/* ── Custom Scrollbars ───────────────────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  transition: background var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* ── Header Styling ───────────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(var(--bg-secondary), 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-slow);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  cursor: pointer;
}
.logo-icon {
  font-size: 1.6rem;
}
.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}
.header-logo:hover .logo-img {
  transform: scale(1.08);
}
.logo-text {
  letter-spacing: -0.02em;
}
.logo-text span {
  color: var(--accent-color);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-nav a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-fast);
}
.header-nav a:hover::after {
  width: 100%;
}
.header-nav a.nav-btn-highlight {
  background: var(--accent-color);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px var(--accent-dim);
}
.header-nav a.nav-btn-highlight::after {
  display: none;
}
.header-nav a.nav-btn-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

/* Theme Dropdown */
.theme-selector-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.theme-select {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  font-weight: 500;
  transition: border-color var(--transition-fast);
}
.theme-select:focus {
  border-color: var(--accent-color);
}

/* ── Hero Section ────────────────────────────────────────────────────── */
.hero-section {
  padding: 100px 24px 80px 24px;
  text-align: center;
  position: relative;
}
.hero-container {
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-color);
  color: var(--accent-color);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}
.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

/* Generic Button utility */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}
.btn-primary {
  background: var(--accent-color);
  color: #fff !important;
  box-shadow: 0 8px 20px var(--accent-dim);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-input);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Stats Cards Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform var(--transition-std), border-color var(--transition-std);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}
.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.stat-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Section Header Layout ───────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
  padding: 0 24px;
}
.section-tag {
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Features Section ────────────────────────────────────────────────── */
.features-section {
  padding: 80px 24px;
  background: rgba(var(--bg-secondary), 0.3);
  position: relative;
}
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-std);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}
.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.feature-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-yellow { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.feature-icon {
  font-size: 1.5rem;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── Interactive POS Simulator Section ────────────────────────────────── */
.simulator-section {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Simulated App window */
.pos-simulation-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  height: 600px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Cart Panel (Left) */
.pos-sim-sidebar {
  width: 360px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  flex-shrink: 0;
}

.sim-bill-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cashier-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.cashier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}
.invoice-number {
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.sim-bill-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.empty-cart-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  color: var(--text-muted);
}
.empty-cart-msg span {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.empty-cart-msg p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

/* Cart item style */
.cart-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition-fast);
}
.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.85rem;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-remove {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.cart-item-remove:hover {
  color: var(--danger-color);
}
.cart-item-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item-price {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.cart-item-qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}
.cart-qty-btn {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.85rem;
  user-select: none;
  color: var(--text-secondary);
}
.cart-qty-btn:hover {
  color: var(--text-primary);
}
.cart-qty-val {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}
.cart-item-total {
  font-weight: 700;
  font-size: 0.85rem;
}

.sim-bill-footer {
  padding: 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.tax-row {
  font-size: 0.76rem;
  margin-bottom: 4px;
}
.discount-row {
  margin: 10px 0;
  padding: 6px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}
.discount-input-wrapper {
  display: flex;
  gap: 4px;
}
.discount-input {
  width: 60px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  outline: none;
  font-size: 0.8rem;
  text-align: right;
  font-weight: 700;
}
.discount-type-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 4px;
  outline: none;
  font-size: 0.8rem;
  cursor: pointer;
}
.total-row-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 800;
}
.net-total-val {
  font-size: 1.25rem;
  color: var(--accent-color);
}

.btn-checkout {
  width: 100%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px var(--accent-dim);
  transition: all var(--transition-fast);
}
.btn-checkout:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-checkout:active {
  transform: translateY(0);
}
.btn-clear-cart {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.78rem;
  margin-top: 8px;
  cursor: pointer;
  font-weight: 600;
}
.btn-clear-cart:hover {
  color: var(--danger-color);
}

/* Catalog Panel (Right) */
.pos-sim-catalog {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.catalog-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 16px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color var(--transition-fast);
}
.catalog-search-bar:focus-within {
  border-color: var(--accent-color);
}
.search-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-right: 10px;
}
.sim-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 12px 0;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
}
.shortcut-hint {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: monospace;
}

.catalog-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  flex-shrink: 0;
  scrollbar-width: none; /* Firefox */
}
.catalog-categories::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}
.cat-tab {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.cat-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.cat-tab.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.sim-product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding-bottom: 10px;
}

/* Sim product card */
.sim-prod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  height: 140px;
  transition: all var(--transition-fast);
}
.sim-prod-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sim-prod-card:active {
  transform: scale(0.97);
}
.sim-prod-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sim-prod-name {
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.3;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sim-prod-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sim-prod-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.sim-prod-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.sim-prod-add {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

/* ── Business Modes Showcase ─────────────────────────────────────────── */
.modes-section {
  padding: 80px 24px;
  background: rgba(var(--bg-secondary), 0.2);
}
.modes-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}

/* Mode Navigator List */
.modes-sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.mode-nav-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-std);
  width: 100%;
}
.mode-nav-item:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}
.mode-nav-item.active {
  background: var(--accent-dim);
  border-color: var(--accent-color);
}
.mode-icon {
  font-size: 2rem;
  background: var(--bg-primary);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mode-text h3 {
  font-size: 1.02rem;
  margin: 0;
}
.mode-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

/* Mode Display Card */
.mode-display-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-slow);
}
.mode-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mode-card-header h3 {
  font-size: 1.6rem;
  margin: 0;
}
.mode-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}
.mode-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 28px 0;
  line-height: 1.5;
}

/* Mockup window inside display card */
.mode-mockup-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  overflow: hidden;
}
.mode-mockup-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-dot-window {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.mock-window-title {
  margin-left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-muted);
}

.mode-mockup-content {
  padding: 16px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Mockup Table */
.mockup-table {
  width: 100%;
  border-collapse: collapse;
}
.mockup-table th {
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 8px;
  font-weight: 700;
  color: var(--text-primary);
}
.mockup-table td {
  padding: 6px 8px;
  border-bottom: 1px dashed var(--border-color);
}
.alert-text-red {
  color: var(--danger-color);
  font-weight: 700;
}
.highlight-green {
  color: var(--success-color);
  font-weight: 700;
}

.mode-bullets {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mode-bullets li {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── Keyboard Shortcuts Section ───────────────────────────────────────── */
.shortcuts-section {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.shortcuts-grid {
  display: flex;
  gap: 32px;
}

/* On-screen virtual keyboard */
.keyboard-visualizer-container {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.keyboard-top-info {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}
.visualizer-status {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent-color);
}

.virtual-keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-primary);
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.keyboard-row {
  display: flex;
  gap: 5px;
}
.vkey {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  flex: 1;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  position: relative;
  box-shadow: 0 2px 0 var(--border-strong);
}
.vkey:hover {
  background: var(--border-color);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--border-strong);
}
.vkey.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(2px);
  box-shadow: 0 0px 0 transparent;
}
.vkey-lbl {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-top: 1px;
}
.vkey.active .vkey-lbl {
  color: #fff;
}
.fn-key {
  border-color: var(--border-strong);
}
.wide-1 { flex: 1.5; }
.wide-1-5 { flex: 1.8; }
.wide-2 { flex: 2.2; }

/* Info list cards */
.shortcuts-info-panel {
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}
.shortcut-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-lg);
}
.shortcut-list-card h3 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.shortcut-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: background var(--transition-fast);
  cursor: pointer;
}
.shortcut-item-row:hover {
  background: var(--accent-dim);
}
.shortcut-item-row kbd {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.78rem;
  min-width: 60px;
  text-align: center;
  box-shadow: 0 1.5px 0 var(--border-strong);
}
.shortcut-item-row span {
  color: var(--text-secondary);
}
.shortcut-item-row:hover span {
  color: var(--text-primary);
}

/* ── Gallery Section ─────────────────────────────────────────────────── */
.gallery-section {
  padding: 80px 24px;
  background: rgba(var(--bg-secondary), 0.3);
}
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-std);
}
.gallery-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}
.gallery-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}
.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-std);
}
.gallery-item-card:hover .gallery-img-wrapper img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  backdrop-filter: blur(2px);
}
.gallery-item-card:hover .gallery-overlay {
  opacity: 1;
}
.zoom-icon {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.gallery-info {
  padding: 16px 20px;
}
.gallery-info h4 {
  font-size: 0.98rem;
  margin-bottom: 10px;
}
.gallery-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* ── Installation Section ─────────────────────────────────────────────── */
.installation-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.install-steps-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.install-step {
  display: flex;
  gap: 20px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--accent-dim);
}
.step-detail h3 {
  font-size: 1.15rem;
  margin: 0 0 10px 0;
}
.step-detail p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px 0;
}
.creds-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}
.creds-box div span {
  color: var(--text-muted);
  width: 80px;
  display: inline-block;
}
.creds-box div code {
  color: var(--accent-color);
  font-family: monospace;
  font-weight: 700;
  font-size: 0.88rem;
}

.install-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.install-info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.install-info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0;
}
.cli-mock {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.glow-txt {
  color: var(--accent-color);
  font-weight: 700;
  text-shadow: 0 0 8px var(--accent-dim);
}
.cli-sub {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0;
}

/* CLI Terminal box */
.cli-terminal {
  background: #050508;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 14px;
}
.terminal-header {
  background: #14141c;
  padding: 8px 14px;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-body {
  padding: 14px;
  font-family: monospace;
  font-size: 0.78rem;
  color: #fff;
  line-height: 1.4;
}
.cmd-prompt {
  color: #5af78e;
}
.cmd-out {
  color: #a8a8b3;
}

/* ── Lightbox Zoom Image Modal ──────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-std);
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-std);
}
.lightbox-overlay.active img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-caption {
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 0.88rem;
  font-family: var(--font-heading);
  text-align: center;
}

/* ── Checkout Simulated Receipt Modal ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.checkout-receipt-modal {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ddd;
  width: 380px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  font-family: monospace;
  padding: 24px;
  animation: modalPop var(--transition-std);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.receipt-header {
  text-align: center;
}
.receipt-header h2 {
  font-size: 1.25rem;
  color: #000;
  margin-bottom: 4px;
}
.receipt-header p {
  font-size: 0.72rem;
  color: #555;
  margin: 0;
}
.receipt-divider {
  border-top: 1px dashed #444;
  margin: 14px 0;
}
.receipt-details {
  font-size: 0.78rem;
  line-height: 1.4;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
}
.receipt-items-list {
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.receipt-item-row {
  display: flex;
  flex-direction: column;
}
.receipt-item-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}
.receipt-item-bottom {
  display: flex;
  justify-content: space-between;
  color: #444;
  font-size: 0.72rem;
}
.receipt-summary {
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.receipt-total {
  font-size: 0.95rem;
  margin-top: 6px;
  border-top: 1px solid #000;
  padding-top: 6px;
}
.receipt-footer {
  text-align: center;
  font-size: 0.72rem;
}
.receipt-footer p {
  margin: 4px 0;
}
.receipt-qr-code {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  display: flex;
  justify-content: center;
}
.qr-placeholder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}
.qr-placeholder small {
  color: #10b981;
}
.btn-close-modal {
  margin-top: 16px;
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #000;
  color: #fff !important;
}

/* ── Notification Banner Toast ───────────────────────────────────────── */
.notification-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent-color);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(150px);
  opacity: 0;
  transition: all var(--transition-std);
  z-index: 9999;
}
.notification-toast.active {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon {
  font-size: 1.1rem;
}
.toast-msg {
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.app-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px;
  margin-top: 60px;
  position: relative;
  z-index: 10;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-left {
  max-width: 450px;
}
.footer-left h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.footer-left p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
}
.copyright {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}

.footer-right h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.footer-right ul li code {
  color: var(--text-primary);
  font-family: monospace;
  font-weight: 600;
}


/* ── ERP Simulator Tabs & Sections ───────────────────────────────────── */
.pos-sim-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pos-sim-tabs::-webkit-scrollbar {
  display: none;
}
.pos-tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  outline: none;
}
.pos-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}
.pos-tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: var(--bg-card);
}

.pos-tab-contents {
  flex: 1;
  overflow: hidden;
  height: calc(100% - 49px);
  position: relative;
}

.pos-tab-panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}
.pos-tab-panel.active {
  display: block;
}

.pos-billing-layout {
  display: flex;
  height: 100%;
  margin: -20px; /* Offset the tab panel padding for a full bleed billing view */
}

/* ERP table utility */
.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}
.erp-table th, .erp-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
}
.erp-table th {
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-strong);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.erp-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Dashboard styling */
.erp-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}
.erp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.erp-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.erp-stat-box .stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}
.erp-stat-box .stat-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.erp-stat-box .stat-trend {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 8px;
  color: var(--text-muted);
}
.trend-up {
  color: var(--success-color) !important;
}
.trend-down {
  color: var(--danger-color) !important;
}

.erp-dashboard-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.erp-chart-panel, .erp-reports-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.erp-chart-panel h3, .erp-reports-panel h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.sim-chart-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100px;
  padding: 10px 20px 0 20px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 15px;
}
.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.chart-bar {
  width: 20px;
  background: linear-gradient(to top, var(--accent-color), var(--accent-glow));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  animation: growBar 1s ease-out;
}
.chart-bar-wrapper span {
  font-size: 0.65rem;
  color: var(--text-secondary);
}
@keyframes growBar {
  from { height: 0; }
}

.report-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.report-option:hover {
  border-color: var(--border-strong);
}
.report-option input:checked + .opt-desc strong {
  color: var(--accent-color);
}
.report-option.active {
  border-color: var(--accent-color);
  background: var(--accent-dim);
}
.report-option input {
  margin-top: 3px;
  cursor: pointer;
}
.opt-desc {
  display: flex;
  flex-direction: column;
}
.opt-desc strong {
  font-size: 0.8rem;
  color: var(--text-primary);
}
.opt-desc span {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* progress bar */
.excel-progress-container {
  margin-top: 15px;
  text-align: center;
}
.progress-bar-bg {
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--success-color);
  border-radius: 3px;
  transition: width 0.1s ease;
}
.progress-text {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* Procurement styles */
.erp-procurement-container, .erp-claims-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  height: 100%;
}
.procure-left, .procure-right, .claims-left, .claims-right {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow-y: auto;
}
.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.panel-header-row h3 {
  font-size: 1rem;
  margin: 0;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}
.pos-list-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.po-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--success-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.po-info {
  display: flex;
  flex-direction: column;
}
.po-number {
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
}
.po-vendor {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.po-badge {
  background: rgba(0, 200, 150, 0.1);
  color: var(--success-color);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
}

.quotation-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}
.q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.q-header strong {
  font-size: 0.8rem;
  color: var(--text-primary);
}
.q-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(77, 181, 255, 0.1);
  color: var(--info-color);
  font-weight: 700;
}
.customer-badge {
  background: rgba(255, 159, 67, 0.1);
  color: var(--accent-color);
}
.q-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.q-body strong {
  color: var(--text-primary);
  font-size: 0.78rem;
}

/* Claims styles */
.badge-status {
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-block;
}
.status-expired {
  background: rgba(255, 90, 90, 0.1);
  color: var(--danger-color);
}
.status-claimed {
  background: rgba(0, 200, 150, 0.1);
  color: var(--success-color);
}
.status-pending {
  background: rgba(255, 159, 67, 0.1);
  color: var(--accent-color);
}
.debit-note-preview {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
}
.dn-placeholder {
  text-align: center;
  color: var(--text-muted);
}
.dn-placeholder span {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.dn-placeholder p {
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
}

/* Actual Debit note content */
.dn-paper {
  width: 100%;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-primary);
  text-align: left;
}
.dn-paper h4 {
  text-align: center;
  margin: 0 0 8px 0;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.dn-divider {
  border-top: 1px dashed var(--text-muted);
  margin: 8px 0;
}
.dn-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

/* ── Device Responsiveness (Media Queries) ────────────────────────────── */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pos-simulation-container {
    flex-direction: column;
    height: auto;
  }
  .pos-billing-layout {
    flex-direction: column;
    height: auto;
    margin: 0;
  }
  .pos-sim-sidebar {
    width: 100%;
    height: 400px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .pos-tab-panel {
    height: auto;
    overflow-y: visible;
  }
  .erp-dashboard-main, .erp-procurement-container, .erp-claims-container {
    grid-template-columns: 1fr;
  }
  .erp-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .modes-container {
    flex-direction: column;
  }
  .modes-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  .mode-nav-item {
    width: auto;
    flex-shrink: 0;
  }
  .shortcuts-grid {
    flex-direction: column;
  }
  .shortcuts-info-panel {
    width: 100%;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .install-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .header-nav {
    display: none; /* Hide nav links on mobile for simplicity */
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .erp-stats-row {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .modes-sidebar {
    padding-bottom: 10px;
  }
  .mode-display-card {
    padding: 24px;
  }
  .keyboard-visualizer-container {
    display: none; /* Hide virtual keyboard on small mobile devices */
  }
}

/* ── Video Demonstration Section ────────────────────────────────────── */
.video-section {
  padding: 80px 24px;
  background: rgba(var(--bg-secondary), 0.3);
  position: relative;
}
.video-mockup-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
}
.video-mockup-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: border-color var(--transition-std), box-shadow var(--transition-std);
}
.video-mockup-wrapper:hover {
  border-color: var(--accent-color);
  box-shadow: 0 12px 36px var(--accent-glow);
}
.video-mockup-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.video-header-left {
  display: flex;
  gap: 6px;
}
.video-header-left .mock-dot-window {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.video-header-left .dot-red { background: #ff5a5a; }
.video-header-left .dot-yellow { background: #ff9f43; }
.video-header-left .dot-green { background: #00c896; }
.video-quality-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 13, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--transition-std), visibility var(--transition-std);
  z-index: 10;
}
.video-play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.play-button-glow {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.video-play-overlay:hover .play-button-glow {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--accent-color);
}
.play-icon {
  font-size: 1.8rem;
  color: #fff;
  margin-left: 6px;
}
.play-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .video-section {
    padding: 60px 16px;
  }
  .play-button-glow {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  .play-icon {
    font-size: 1.4rem;
    margin-left: 4px;
  }
  .play-text {
    font-size: 0.88rem;
  }
  .video-mockup-header {
    padding: 8px 14px;
  }
}

/* ── Pricing Plans Section ───────────────────────────────────────────── */
.pricing-section {
  padding: 80px 24px;
  background: rgba(var(--bg-secondary), 0.2);
  position: relative;
}
.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-std);
}
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured {
  border-color: var(--accent-color);
  box-shadow: 0 10px 40px var(--accent-dim);
  background: linear-gradient(180deg, rgba(255, 159, 67, 0.03) 0%, var(--bg-card) 100%);
}
.pricing-card.featured:hover {
  box-shadow: 0 15px 50px var(--accent-glow);
}
.card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px var(--accent-dim);
  white-space: nowrap;
}
.card-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0 0 24px 0;
}
.card-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
}
.card-price .currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-right: 4px;
}
.card-price .amount {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
.card-price .period {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-left: 6px;
}
.card-sub-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.card-divider {
  height: 1px;
  background: var(--border-color);
  margin: 24px 0;
}
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.card-features li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-primary);
}
.card-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}
.card-features li .check-icon {
  color: var(--success-color);
  font-weight: bold;
  flex-shrink: 0;
}
.btn-block {
  width: 100%;
  text-align: center;
}

/* Add-ons styling */
.pricing-addons {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.addon-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-fast);
}
.addon-box:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}
.addon-icon {
  font-size: 1.8rem;
  background: var(--bg-card);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}
.addon-text {
  flex: 1;
}
.addon-text h4 {
  font-size: 1rem;
  margin: 0 0 8px 0;
}
.addon-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
.addon-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
  text-align: right;
}
.addon-period {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: normal;
  display: block;
}

/* Responsiveness for Pricing */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pricing-addons {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.pricing-footnote {
  text-align: center;
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  max-width: 900px;
  margin: 32px auto 0 auto;
}
.pricing-footnote strong {
  color: var(--accent-color);
}

.pricing-brochure-banner {
  text-align: center;
  margin-top: 32px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.pricing-brochure-banner .btn-link {
  color: var(--accent-color);
  text-decoration: underline;
  transition: opacity var(--transition-fast);
}
.pricing-brochure-banner .btn-link:hover {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .pricing-brochure-banner {
    flex-direction: column;
    gap: 6px;
    padding: 0 10px;
  }
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ── SEO FAQ Section Styling ─────────────────────────────────────────── */
.faq-section {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-container {
  margin-top: 30px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.faq-item:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-sm);
}
.faq-item details {
  width: 100%;
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-family: var(--font-heading);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}
.faq-item details[open] summary::after {
  transform: rotate(180deg);
  color: var(--accent-color);
}
.faq-content {
  padding: 0 24px 20px 24px;
  border-top: 1px dashed var(--border-color);
  animation: slideDown 0.3s ease-out;
}
.faq-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 12px 0 0 0;
}

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