:root {
  --ink: #0f1026;
  --ink-soft: #1e1b4b;
  --ink-muted: #4338ca;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #e0e7ff;
  --line-dark: #23274e;
  --paper: #f8f9fe;
  --paper-card: #ffffff;
  --white: #ffffff;
  
  /* OkaPos Brand Colors */
  --accent: #5b45ff;
  --accent-hover: #4a34eb;
  --accent-light: #ede9fe;
  --accent-cyan: #00c2ff;
  --accent-cyan-light: #e0f8ff;
  --success: #10b981;
  --success-dark: #059669;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --laser: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px -1px rgba(91, 69, 255, 0.04), 0 1px 3px -1px rgba(15, 16, 38, 0.03);
  --shadow-md: 0 16px 36px -6px rgba(91, 69, 255, 0.09), 0 4px 12px -2px rgba(15, 16, 38, 0.04);
  --shadow-lg: 0 26px 54px -12px rgba(91, 69, 255, 0.16), 0 8px 20px -4px rgba(15, 16, 38, 0.06);
  --shadow-glow: 0 0 50px -10px rgba(91, 69, 255, 0.3);
  
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-display: "Outfit", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --z-header: 50;
  --z-modal: 1000;
  --z-pos-modal: 1200;
  --z-progress: 60;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink-soft);
  background-color: var(--paper);
  background-image: 
    radial-gradient(1200px 600px at 90% -10%, rgba(91, 69, 255, 0.1), transparent 60%),
    radial-gradient(900px 500px at 0% 15%, rgba(0, 194, 255, 0.08), transparent 55%),
    radial-gradient(1000px 700px at 50% 60%, rgba(91, 69, 255, 0.05), transparent 65%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* AMBIENT 3D GLOWING SPHERES */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  top: 150px;
  right: -150px;
  background: radial-gradient(circle, rgba(91, 69, 255, 0.45), rgba(91, 69, 255, 0));
}

.orb-2 {
  width: 480px;
  height: 480px;
  top: 1200px;
  left: -180px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.4), rgba(0, 194, 255, 0));
  animation-duration: 24s;
  animation-delay: -5s;
}

.orb-3 {
  width: 650px;
  height: 650px;
  top: 2500px;
  right: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), rgba(124, 58, 237, 0));
  animation-duration: 28s;
  animation-delay: -10s;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: contents;
}

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

button {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.skip:focus {
  left: 16px;
}

.wrap {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* 3D TILT ENGINE BASE */
[data-tilt] {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

[data-tilt] > * {
  transform: translateZ(0);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: var(--z-progress);
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Announcement Top Banner */
.top-banner {
  background: #0f1026;
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.banner-badge {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.banner-link {
  color: var(--accent-cyan);
  font-weight: 600;
}

.banner-link:hover {
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding: 12px 16px 0;
  background: transparent;
  transition: transform 200ms var(--ease);
}

.header-shell {
  width: min(1240px, 100%);
  margin-inline: auto;
  min-height: 64px;
  padding: 8px 10px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(224, 231, 255, 0.9);
  box-shadow: 0 8px 26px -4px rgba(91, 69, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 240ms var(--ease);
}

.site-header.is-scrolled .header-shell {
  box-shadow: 0 14px 34px -4px rgba(91, 69, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.brand img {
  height: 38px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a:not(.btn):not(.btn-phone) {
  color: #475569;
  transition: color 150ms var(--ease);
  padding: 6px 2px;
  position: relative;
}

.site-nav a:not(.btn):not(.btn-phone)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:not(.btn):not(.btn-phone):hover::after {
  transform: scaleX(1);
}

.site-nav a:not(.btn):not(.btn-phone):hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #ede9fe;
  color: var(--accent);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.btn-phone:hover {
  background: #ddd6fe;
  color: var(--accent-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: #f5f3ff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Global Buttons with Magnetic Glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(91, 69, 255, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: var(--btn-y, 50%);
  left: var(--btn-x, 50%);
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 28px rgba(91, 69, 255, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f5f3ff;
  border-color: #c7d2fe;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 200ms var(--ease);
}

.btn-primary:hover .btn-ico {
  transform: translateX(3px);
}

/* REVEAL ANIMATIONS (PLAVNIY & YOQIMLI) */
.js .reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease-expo),
    transform 0.85s var(--ease-expo),
    filter 0.85s var(--ease-expo);
  transition-delay: calc(var(--d, 0) * 80ms);
  will-change: transform, opacity;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* SECTION COMMONS */
.section-header {
  margin-bottom: 44px;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  border: 1px solid rgba(91, 69, 255, 0.15);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0;
  max-width: 65ch;
  line-height: 1.6;
}

/* HERO SECTION */
.hero {
  padding: 56px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.live-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(91, 69, 255, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: balance;
}

.lede {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 34px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 38px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #f5f3ff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.metric-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.metric-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Hero Visual Stage */
.hero-stage {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(224, 231, 255, 0.9);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  cursor: pointer;
}

.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 8px);
}

/* Floating 3D Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(224, 231, 255, 0.95);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: badge-float 6s ease-in-out infinite;
}

.badge-top-left {
  top: 16px;
  left: -20px;
  animation-delay: 0s;
}

.badge-bottom-right {
  bottom: 24px;
  right: -20px;
  animation-delay: -2s;
}

.badge-top-right {
  top: 24px;
  right: -16px;
  animation-delay: -4s;
}

.badge-icon-wrap {
  font-size: 1.2rem;
}

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

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-dot.green { background: var(--success); }
.badge-dot.blue { background: var(--accent); }

.badge-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

/* MARQUEE */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 6px 0;
}

.loop-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  animation: loop-x var(--loop-time, 28s) linear infinite;
}

.loop-group {
  display: flex;
  flex: none;
  align-items: center;
}

@keyframes loop-x {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(var(--loop, 50%) * -1), 0, 0);
  }
}

.marquee-group span {
  flex: none;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee-group span::after {
  content: "✦";
  margin: 0 1.2em;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ------------------------------------------------------------------ */
/* --- 1. KASSA LAUNCH HERO CARD ON LANDING PAGE (#demo section) --- */
/* ------------------------------------------------------------------ */
.demo-section {
  padding: 90px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.kassa-launch-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fe 100%);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg), 0 0 50px -10px rgba(91, 69, 255, 0.15);
}

.launch-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.launch-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

.launch-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

/* Interactive Preview Frame */
.launch-preview-frame {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.launch-preview-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(91, 69, 255, 0.2);
}

.preview-mini-header {
  background: #0f172a;
  color: #94a3b8;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.p-dot.red { background: #ef4444; }
.p-dot.yellow { background: #f59e0b; }
.p-dot.green { background: #10b981; }

.p-title {
  margin-left: 6px;
  color: #cbd5e1;
}

.preview-mini-screen {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  font-size: 0.75rem;
}

.p-col-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-tile.green {
  background: #10b981;
  color: #fff;
  font-weight: 800;
  padding: 14px 8px;
  border-radius: 8px;
  text-align: center;
}

.p-col-mid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-row-check {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.p-row-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.p-row-item.active {
  border-color: var(--accent);
  background: #f5f3ff;
}

.p-col-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-num-mini {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
  color: #64748b;
}

.p-total-mini {
  font-size: 1.1rem;
  font-weight: 900;
  color: #10b981;
  text-align: center;
}

.p-btn-pay {
  background: #10b981;
  color: #fff;
  font-weight: 800;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
}

.preview-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 38, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.preview-overlay-btn span {
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}

.launch-preview-frame:hover .preview-overlay-btn {
  opacity: 1;
}

/* ------------------------------------------------------------------ */
/* --- 2. FULL-SCREEN AUTHENTIC OKAPOS UI 2 POS MODAL SYSTEM -------- */
/* ------------------------------------------------------------------ */
.pos-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: var(--z-pos-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.pos-modal-overlay.is-active {
  display: flex;
  animation: overlay-fade 200ms var(--ease);
}

@keyframes overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pos-modal-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  width: min(1440px, 98vw);
  height: min(900px, 96vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 100px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(91, 69, 255, 0.2);
  animation: modal-zoom 260ms var(--ease-expo);
  position: relative;
}

@keyframes modal-zoom {
  from {
    transform: scale(0.95) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* TOP STATUS BAR (MATCHES SCREENSHOT) */
.pos2-top-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.pos2-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pos2-time-box {
  display: flex;
  flex-direction: column;
}

.pos2-clock {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.1;
  font-family: var(--font-mono);
}

.pos2-sync {
  font-size: 0.72rem;
  color: #64748b;
}

.pos2-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos2-top-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease;
}

.pos2-top-btn:hover {
  background: #f1f5f9;
}

.pos2-status-dot.online {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: grid;
  place-items: center;
}

.wifi-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
}

.pos2-icon-ctrl {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.pos2-icon-ctrl:hover {
  background: #f1f5f9;
}

.pos2-zoom-ctrl {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.zoom-btn {
  background: transparent;
  border: none;
  padding: 2px 8px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}

.zoom-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0 4px;
}

.pos2-register-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0 4px;
}

/* Exit / Close Modal Button */
.pos2-btn-exit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 140ms ease;
  margin-left: 6px;
}

.pos2-btn-exit:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.esc-badge {
  background: rgba(0, 0, 0, 0.1);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
}

/* 3-COLUMN MAIN UI 2 GRID */
.pos2-main-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.55fr 1.05fr;
  flex: 1;
  min-height: 0;
  background: #ffffff;
}

/* COLUMN 1: CATALOG & FAVORITES */
.pos2-col-catalog {
  padding: 12px;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.pos2-cat-nav {
  display: flex;
  gap: 8px;
}

.pos2-tab-btn {
  background: transparent;
  color: #64748b;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.pos2-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
}

.pos2-search-row {
  display: flex;
  gap: 6px;
}

.pos2-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #94a3b8;
}

.pos2-search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.pos2-abc-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

/* EMERALD GREEN TOUCH TILES (MATCHES SCREENSHOT) */
.pos2-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  padding-right: 2px;
}

.pos2-green-tile {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 125px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  transition: transform 120ms ease, box-shadow 120ms ease;
  position: relative;
}

.pos2-green-tile:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.pos2-green-tile:active {
  transform: scale(0.96);
}

.tile-idx {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.tile-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.tile-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.tile-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.tile-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.74rem;
}

.tile-price {
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffffff;
}

.tile-stock {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.68rem;
}

/* COLUMN 2: CART & SLOTS (MIDDLE COLUMN) */
.pos2-col-cart {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
}

/* Slot Tabs Bar */
.pos2-slots-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.pos2-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #6366f1;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.slot-check-ico {
  font-size: 0.75rem;
}

.slot-qty-circle {
  background: #ffffff;
  color: #6366f1;
  font-size: 0.68rem;
  font-weight: 900;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.pos2-btn-new-slot {
  background: transparent;
  color: #059669;
  border: 1.5px solid #10b981;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.pos2-btn-new-slot:hover {
  background: #ecfdf5;
}

.pos2-btn-clear-cart {
  background: transparent;
  color: #ef4444;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  margin-left: auto;
}

.pos2-btn-clear-cart:hover {
  text-decoration: underline;
}

/* Customer & Totals Row */
.pos2-customer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.pos2-btn-customer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.pos2-cust-totals {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cust-qty-badge {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.cust-sum-badge {
  color: #10b981;
  font-size: 0.95rem;
  font-weight: 900;
}

/* Table Header */
.pos2-table-header {
  display: grid;
  grid-template-columns: 24px 1.4fr 80px 80px 85px 24px 24px;
  gap: 4px;
  align-items: center;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
}

.pos2-table-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pos2-cart-row {
  display: grid;
  grid-template-columns: 24px 1.4fr 80px 80px 85px 24px 24px;
  gap: 4px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #f8fafc;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 120ms ease;
}

.pos2-cart-row:hover {
  background: #f8fafc;
}

.pos2-cart-row.is-selected {
  background: #f5f3ff;
  border-left: 3px solid var(--accent);
}

.r-num {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
}

.r-name {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.r-price {
  color: #475569;
  font-weight: 700;
}

.r-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.r-step-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.r-step-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.r-qty-val {
  font-weight: 900;
  min-width: 16px;
  text-align: center;
}

.r-sum {
  font-weight: 900;
  color: var(--ink);
}

.r-edit-btn, .r-del-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: #94a3b8;
  padding: 2px;
}

.r-del-btn:hover {
  color: #ef4444;
}

/* COLUMN 3: NUMPAD & SIDEBAR (RIGHT COLUMN) */
.pos2-col-sidebar {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow: hidden;
}

.pos2-numpad-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 10px;
}

.n-tab {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}

.n-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.pos2-quick-mults {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 10px 6px;
}

.mult-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #8b5cf6;
  cursor: pointer;
}

.mult-pill:hover {
  background: #ede9fe;
}

/* 3x4 Numpad Grid */
.pos2-num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 10px 8px;
}

.pos2-key {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 120ms ease;
  display: grid;
  place-items: center;
}

.pos2-key:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.pos2-key:active {
  transform: scale(0.95);
}

.pos2-key.backspace {
  color: #f97316;
}

/* Payment Section */
.pos2-pay-section {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pos2-total-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.jami-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
}

.jami-amount {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: #10b981;
  font-variant-numeric: tabular-nums;
}

/* 2-Row Payment Tiles Grid */
.pos2-pay-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.p2-tile {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 7px 2px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  transition: all 120ms ease;
}

.p2-tile:hover {
  border-color: #6366f1;
}

.p2-tile.active {
  border-color: #6366f1;
  color: #6366f1;
  background: #f5f3ff;
}

.p2-tile.qarz {
  color: #7c3aed;
}

.p2-tile.xarajat {
  color: #dc2626;
}

.pos2-btn-split {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}

.pos2-btn-split:hover {
  background: #f8fafc;
}

/* Giant Green Checkout Button */
.pos2-btn-checkout {
  width: 100%;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 140ms ease;
}

.pos2-btn-checkout:hover {
  background: #059669;
}

.pos2-btn-checkout:active {
  transform: scale(0.98);
}

.f9-badge {
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- */
/* --- 3. COMMON CALCULATOR, MOSAIC, HARDWARE & FOOTER STYLES -- */
/* ------------------------------------------------------------- */
.calc-section {
  padding: 90px 0;
  background: #f5f3ff;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.calc-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.field-val {
  font-size: 1.1rem;
  color: var(--accent);
  font-family: var(--font-display);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #ede9fe;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(91, 69, 255, 0.45);
  cursor: pointer;
  transition: transform 120ms ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

.calc-results {
  background: #0f1026;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

.res-item.featured {
  padding-bottom: 16px;
  border-bottom: 1px solid #1e2246;
}

.res-label {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.res-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.1;
}

.res-sub {
  display: block;
  font-size: 0.78rem;
  color: #34d399;
  margin-top: 6px;
}

.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.res-mini {
  background: #141733;
  border: 1px solid #1e2246;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.res-mini-icon {
  font-size: 1.4rem;
}

.res-mini strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.2;
}

.res-mini span {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* BENTO MOSAIC SECTION */
.mosaic-section {
  padding: 90px 0;
  position: relative;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mosaic-item {
  position: relative;
  margin: 0;
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.mosaic-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(91, 69, 255, 0.12);
}

.mosaic-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 600ms var(--ease-expo);
}

.mosaic-item:hover img {
  transform: scale(1.05);
}

.mosaic-item.featured {
  grid-column: span 2;
}

.mosaic-item.wide {
  grid-column: span 3;
}

.mosaic-item.wide img {
  aspect-ratio: 21 / 9;
}

.item-overlay {
  padding: 22px 26px;
  background: #ffffff;
}

.module-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.item-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.item-overlay p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* HARDWARE COMPATIBILITY */
.hardware-section {
  padding: 90px 0;
  background: #ffffff;
  border-block: 1px solid var(--line-soft);
  position: relative;
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.hw-card {
  background: #f8f9fe;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.hw-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  background: #f5f3ff;
  box-shadow: var(--shadow-md);
}

.hw-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.hw-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.hw-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
}

.hw-tag {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* INDUSTRY SOLUTIONS */
.industry-section {
  padding: 90px 0;
  position: relative;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.ind-card {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.ind-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ind-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ind-emoji {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #ede9fe;
  display: grid;
  place-items: center;
}

.ind-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.ind-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ind-card li {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

/* WORKFLOW STEPS */
.day-section {
  padding: 90px 0;
  background: #ffffff;
  border-block: 1px solid var(--line-soft);
  position: relative;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.wf-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fe;
  border: 1px solid var(--line-soft);
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.wf-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #f5f3ff;
}

.wf-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.wf-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

.wf-content p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* FAQ SECTION */
.faq {
  padding: 90px 0;
  position: relative;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 840px;
  margin-inline: auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.faq-item[open] {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-sm);
  background: #fdfdff;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 160ms var(--ease);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

.faq-item a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

/* BOTTOM NOW CTA */
.now {
  padding: 40px 0 100px;
  position: relative;
}

.now-card {
  background: linear-gradient(135deg, #0f0c2a 0%, #1e1452 50%, #2e1065 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 64px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), 0 0 60px -10px rgba(91, 69, 255, 0.35);
}

.now-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(0, 194, 255, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.now-card h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3rem);
  max-width: 20ch;
  margin-bottom: 16px;
}

.now-card p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 0 32px;
}

.now-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.now-card .btn-primary {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.now-card .btn-primary:hover {
  background: #f8fafc;
}

.now-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 150ms var(--ease);
}

.now-phone:hover {
  color: var(--accent-cyan);
}

/* QUICK CONTACT MODAL POPUP */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 38, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-overlay.is-active {
  display: flex;
  animation: overlay-fade 200ms var(--ease);
}

.contact-modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: paper-slide 280ms var(--ease-expo);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f3ff;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

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

.modal-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 8px;
}

.modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.25;
}

.modal-head p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.modal-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: #f8f9fe;
  transition: all 180ms var(--ease);
}

.modal-contact-item:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  background: #f5f3ff;
}

.modal-contact-item.tg-action:hover {
  background: #e0f8ff;
  border-color: var(--accent-cyan);
}

.modal-contact-item.app-action:hover {
  background: #f8f9fe;
}

.m-icon {
  font-size: 1.6rem;
}

.m-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.m-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

.m-arrow {
  margin-left: auto;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}

/* Thermal Receipt Modal */
.receipt-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.receipt-success-overlay.is-active {
  display: flex;
  animation: overlay-fade 180ms ease;
}

.receipt-paper {
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 320px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  box-shadow: var(--shadow-lg);
  animation: paper-slide 260ms var(--ease-expo);
}

@keyframes paper-slide {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.receipt-header {
  text-align: center;
}

.receipt-brand {
  font-weight: 900;
  font-size: 1rem;
  color: #1e3a6e;
}

.receipt-meta {
  font-size: 0.72rem;
  color: #64748b;
}

.receipt-divider {
  color: #94a3b8;
  text-align: center;
  overflow: hidden;
  margin: 5px 0;
  font-size: 0.72rem;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow-y: auto;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 4px;
}

.receipt-pay-method {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 3px;
}

.receipt-footer {
  text-align: center;
  margin-top: 10px;
  font-size: 0.74rem;
}

.qr-placeholder {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-top: 4px;
}

.btn-close-receipt {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}

/* SITE FOOTER */
.site-footer {
  background: #090a18;
  color: #94a3b8;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-col img {
  height: 38px;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 32ch;
  margin: 0 0 16px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.86rem;
  color: #94a3b8;
  transition: color 150ms var(--ease);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-meta {
  color: #64748b;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .kassa-launch-card {
    grid-template-columns: 1fr;
  }
  
  .pos2-main-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  
  .pos2-col-catalog {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    max-height: 280px;
  }
  
  .pos2-col-cart {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    max-height: 280px;
  }
  
  .calc-card {
    grid-template-columns: 1fr;
  }
  
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: #ffffff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
    animation: menu-down 200ms var(--ease);
  }

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

  .nav-actions {
    margin-left: 0;
    flex-direction: column;
    width: 100%;
  }

  .btn-phone {
    width: 100%;
    justify-content: center;
  }

  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-item.featured,
  .mosaic-item.wide {
    grid-column: span 1;
  }

  .mosaic-item.wide img {
    aspect-ratio: 4 / 3;
  }

  .floating-badge {
    position: static;
    margin-top: 10px;
    animation: none;
  }
  
  .hero-frame {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 20px);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

  .btn-lg {
    width: 100%;
  }
  
  .res-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .btn,
  .mosaic-item img,
  .btn-ico {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .live-dot,
  .loop-track,
  .floating-badge,
  .ambient-orb {
    animation: none;
  }
}
