html {
  scroll-behavior: smooth;
}

:root {
  font-family: "DM Sans", sans-serif;
  color: #20251f;
  background: #f5f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #20251f;
  --muted: #8b918a;
  --green: #2c684b;
  --green-dark: #20543b;
  --line: #e9ece7;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.app-startup {
  display: none;
}

.app-initializing #subscription-gate,
.app-initializing #public-home-content,
.app-initializing .workspace {
  display: none !important;
}

.app-initializing .app-startup {
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  color: #39483e;
  text-align: center;
}

.app-startup p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.app-startup-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #dce8dd;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: app-startup-spin 800ms linear infinite;
}

.app-initializing .app-startup .secondary-action {
  padding: 0 18px;
  text-align: center;
}

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

.store-opening-screen[hidden] {
  display: none;
}

.store-opening-screen {
  position: fixed;
  z-index: 99998;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, #ffffff 0, #f3f7f1 45%, #e7efe6 100%);
  opacity: 1;
}

.store-opening-screen.is-leaving {
  animation: store-opening-reveal 450ms ease-in forwards;
}

.store-opening-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  perspective: 1800px;
}

.store-opening-sign {
  position: absolute;
  z-index: 2;
  top: clamp(24px, 6vh, 58px);
  left: 50%;
  min-width: min(300px, calc(100vw - 40px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 28px;
  border: 1px solid #dfe8df;
  border-radius: 18px;
  background: #ffffffed;
  box-shadow: 0 12px 34px #203c2c20;
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  transform: translateX(-50%);
}

.store-opening-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 34px;
  letter-spacing: -2px;
}

.store-opening-entry {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  border: 0;
  background: #dceadd;
}

.store-opening-interior {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 30%, #fff 0, #f5f8f2 65%),
    #f5f8f2;
  color: #344a39;
  text-align: center;
}

.store-opening-welcome {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.store-opening-counter {
  font-family: Manrope, sans-serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
}

.store-opening-shelf {
  width: min(540px, 76vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
  margin-top: 24px;
}

.store-opening-shelf i {
  position: relative;
  height: clamp(12px, 2vh, 18px);
  overflow: hidden;
  border: 1px solid #d4e2d5;
  border-radius: 999px;
  background: #e2ebe1;
  box-shadow: inset 0 1px 2px #24452b12;
}

.store-opening-shelf i::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2c684b, #70a17d 70%, #b1d0b4);
  content: "";
  transform: scaleX(.05);
  transform-origin: left center;
  animation: store-progress-fill 1350ms ease-in-out infinite alternate;
}

.store-opening-shelf i:nth-child(2)::after {
  animation-delay: 180ms;
}

.store-opening-shelf i:nth-child(3)::after {
  animation-delay: 360ms;
}

@keyframes store-progress-fill {
  0% { transform: scaleX(.08); opacity: .7; }
  100% { transform: scaleX(1); opacity: 1; }
}

.store-opening-door {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 50%;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, #ffffff1c, transparent 22%),
    linear-gradient(145deg, #397857, #20543b 72%);
  box-shadow: inset 0 0 0 1px #ffffff38;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.store-opening-door::before {
  position: absolute;
  inset: 4vh 3vw;
  border: 1px solid #ffffff35;
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.store-opening-door-left {
  left: 0;
  transform-origin: left center;
}

.store-opening-door-right {
  right: 0;
  transform-origin: right center;
}

.store-opening-handle {
  width: 10px;
  height: clamp(52px, 10vh, 96px);
  border: 1px solid #d9e8d8;
  border-radius: 8px;
  background: #f4f7ed;
  box-shadow: 0 2px 6px #173a2b55;
}

.store-opening-door-left .store-opening-handle {
  justify-self: end;
  margin-right: clamp(16px, 3vw, 44px);
}

.store-opening-door-right .store-opening-handle {
  justify-self: start;
  margin-left: clamp(16px, 3vw, 44px);
}

.store-opening-screen.is-opening .store-opening-door-left {
  animation: store-door-open-left 1050ms cubic-bezier(.4, 0, .2, 1) 250ms forwards;
}

.store-opening-screen.is-opening .store-opening-door-right {
  animation: store-door-open-right 1050ms cubic-bezier(.4, 0, .2, 1) 250ms forwards;
}

.store-opening-message {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 16px;
  margin: 0;
  color: #344a39;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: .1px;
  text-align: center;
}

@keyframes store-door-open-left {
  to { transform: translateX(-10%) rotateY(-105deg); }
}

@keyframes store-door-open-right {
  to { transform: translateX(10%) rotateY(105deg); }
}

@keyframes store-opening-reveal {
  to { opacity: 0; visibility: hidden; }
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.15%;
  background: #fff;
  border-bottom: 1px solid #eef0ed;
}

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

.mobile-cart-shortcut {
  display: none;
}

.mobile-cart-close {
  display: none;
}

.mobile-cart-dialog {
  width: min(520px, calc(100vw - 24px));
  max-width: none;
  max-height: min(88dvh, 760px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.mobile-cart-dialog::backdrop {
  background: rgba(18, 30, 21, .5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.6px;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease, opacity 150ms ease;
}

.brand:hover {
  color: var(--green-dark);
}

.brand:hover .brand-mark {
  background: var(--green-dark);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green);
  color: white;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -2.5px;
  padding: 0 2px 4px 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 12px;
}

.topbar-actions .customer-orders-button,
.topbar-actions .manage-catalog-button {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.topbar-actions .customer-orders-button:hover,
.topbar-actions .manage-catalog-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.topbar-actions .customer-orders-button:active,
.topbar-actions .manage-catalog-button:active {
  transform: scale(.98);
}

.topbar-actions .manage-catalog-button:disabled,
.topbar-actions .customer-orders-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.store-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
  margin-right: 10px;
  padding: 7px 11px 7px 7px;
  border: 1px solid #e9ece7;
  border-radius: 11px;
  background: white;
  font-size: 13px;
  font-weight: 600;
}

.store-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef3ee;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.store-chevron {
  margin-left: 3px;
  color: #858c84;
}

.icon-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.install-button-icon {
  display: none;
}

.account-button {
  margin-left: 0;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.account-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.topbar-actions[hidden],
.store-switcher[hidden],
.account-button[hidden] {
  display: none !important;
}

.workspace {
  width: min(1340px, 100%);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  margin: 0 auto;
  padding: 42px 5.15% 48px;
}

.public-home-content {
  overflow: hidden;
  background: #fff;
}

.home-section {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 28px;
}

.home-section-heading {
  max-width: 660px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-section-heading .eyebrow,
.about-section .eyebrow {
  color: var(--green);
}

.home-section-heading h2,
.about-section h2 {
  margin: 0 0 12px;
  font-family: Manrope, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.home-section-heading > p:last-child,
.about-section > p {
  margin: 0;
  color: #70796f;
  font-size: 16px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 220px;
  padding: 26px 24px;
  border: 1px solid #e8ede7;
  border-radius: 16px;
  background: #fbfcfa;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #eaf2eb;
  color: var(--green);
  font-size: 21px;
  font-weight: 800;
}

.feature-card h3,
.how-steps h3 {
  margin: 0 0 9px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  letter-spacing: -.3px;
}

.feature-card p,
.how-steps p {
  margin: 0;
  color: #727a71;
  font-size: 16px;
  line-height: 1.65;
}

.online-shop-section {
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
  background: #f5f8f4;
}

.online-shop-copy > .eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.online-shop-copy h2 {
  margin: 0 0 14px;
  font-family: Manrope, sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.6px;
  line-height: 1.12;
}

.online-shop-intro {
  margin: 0;
  color: #687368;
  font-size: 16px;
  line-height: 1.7;
}

.online-shop-steps {
  display: grid;
  gap: 18px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.online-shop-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.online-shop-steps li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e3eee5;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.online-shop-steps h3 {
  margin: 0 0 3px;
  font-family: Manrope, sans-serif;
  font-size: 15px;
}

.online-shop-steps p {
  margin: 0;
  color: #727a71;
  font-size: 14px;
  line-height: 1.5;
}

.online-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.online-shop-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   ONLINE SHOP DELIVERY STAGE SHOWCASE (Cinematic Vector Animation)
   ============================================================ */

.online-delivery-stage {
  position: relative;
  width: 100%;
  max-width: 860px;
  min-height: auto;
  margin: 0 auto;
}

.delivery-stage-card {
  position: relative;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 15%, #132b1d 0%, #09130d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 197, 94, 0.12);
  padding: 18px 22px 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.delivery-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.delivery-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.delivery-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  animation: delivery-live-pulse 1.8s ease-out infinite;
}

@keyframes delivery-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.delivery-phase-badge {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 34px;
  padding: 4px 18px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.delivery-phase-badge .phase-text {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

/* 15s Animation Cycle for Phase Badge */
.online-delivery-stage .phase-1 { animation: phase1-vis 15s infinite; }
.online-delivery-stage .phase-2 { animation: phase2-vis 15s infinite; }
.online-delivery-stage .phase-3 { animation: phase3-vis 15s infinite; }
.online-delivery-stage .phase-4 { animation: phase4-vis 15s infinite; }
.online-delivery-stage .phase-5 { animation: phase5-vis 15s infinite; }

@keyframes phase1-vis {
  0%, 19.5% { opacity: 1; visibility: visible; }
  20%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes phase2-vis {
  0%, 19.9% { opacity: 0; visibility: hidden; }
  20%, 39.5% { opacity: 1; visibility: visible; }
  40%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes phase3-vis {
  0%, 39.9% { opacity: 0; visibility: hidden; }
  40%, 57.5% { opacity: 1; visibility: visible; }
  58%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes phase4-vis {
  0%, 57.9% { opacity: 0; visibility: hidden; }
  58%, 75.5% { opacity: 1; visibility: visible; }
  76%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes phase5-vis {
  0%, 75.9% { opacity: 0; visibility: hidden; }
  76%, 97.5% { opacity: 1; visibility: visible; }
  98%, 100% { opacity: 0; visibility: hidden; }
}

.delivery-scene-wrap {
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #09130d;
}

.delivery-scene-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   SVG INNER ANIMATIONS (Keyed to 15s Loop)
   ============================================================ */

/* 1. Customer Order Bubble (Phase 1: 0% to 20%) */
.anim-order-bubble {
  opacity: 0;
  transform-origin: 160px 140px;
  animation: order-bubble-fly 15s ease-in-out infinite;
}

@keyframes order-bubble-fly {
  0%, 3% {
    opacity: 0;
    transform: scale(0.6) translateY(10px);
  }
  5%, 11% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  14% {
    opacity: 1;
    transform: translate(180px, -20px) scale(0.9);
  }
  17.5% {
    opacity: 0.9;
    transform: translate(380px, 0px) scale(0.7);
  }
  19.5%, 100% {
    opacity: 0;
    transform: translate(420px, 0px) scale(0.4);
  }
}

/* Phone screen pulse */
.phone-screen-glow {
  animation: phone-glow 15s ease-in-out infinite;
}

@keyframes phone-glow {
  0%, 4% { fill: #34d399; opacity: 0.7; }
  6%, 12% { fill: #86efac; opacity: 1; filter: drop-shadow(0 0 3px #86efac); }
  15%, 100% { fill: #34d399; opacity: 0.6; }
}

/* 2. Seller Accept Bubble & Packed Parcel (Phase 2: 20% to 40%) */
.anim-seller-bubble {
  opacity: 0;
  transform-origin: 590px 140px;
  animation: seller-bubble-pop 15s ease-in-out infinite;
}

@keyframes seller-bubble-pop {
  0%, 19% {
    opacity: 0;
    transform: scale(0.6) translateY(8px);
  }
  21%, 36% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  38.5%, 100% {
    opacity: 0;
    transform: scale(0.8) translateY(-6px);
  }
}

.anim-packed-parcel {
  opacity: 0;
  animation: packed-parcel-anim 15s ease-in-out infinite;
}

@keyframes packed-parcel-anim {
  0%, 21% {
    opacity: 0;
    transform: translateY(10px);
  }
  24%, 37% {
    opacity: 1;
    transform: translateY(0);
  }
  38.5%, 100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.8);
  }
}

.tablet-screen-glow {
  animation: tablet-glow 15s ease-in-out infinite;
}

@keyframes tablet-glow {
  0%, 19% { fill: #22c55e; opacity: 0.6; }
  21%, 36% { fill: #4ade80; opacity: 1; }
  38%, 100% { fill: #22c55e; opacity: 0.6; }
}

/* 3. Parcel on Scooter Load */
.scooter-box-load {
  opacity: 0;
  animation: scooter-load-anim 15s ease-in-out infinite;
}

@keyframes scooter-load-anim {
  0%, 37.9% { opacity: 0; }
  38%, 73% { opacity: 1; }
  73.1%, 100% { opacity: 0; }
}

/* 4. Moving Scooter (Phase 3 & 4: 40% to 70%) */
.anim-scooter-group {
  transform: translateX(475px);
  animation: scooter-trip 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scooter-trip {
  0%, 40% {
    transform: translateX(475px);
  }
  /* Starts driving */
  42% {
    transform: translateX(475px) translateY(-1px);
  }
  /* Glides across street */
  45% {
    transform: translateX(440px) translateY(1px);
  }
  52% {
    transform: translateX(330px) translateY(-1.5px);
  }
  58% {
    transform: translateX(250px) translateY(1px);
  }
  64% {
    transform: translateX(180px) translateY(-1px);
  }
  68%, 94% {
    transform: translateX(120px) translateY(0);
  }
  97%, 100% {
    transform: translateX(475px);
    opacity: 0;
  }
}

/* Wheels Rotation while moving */
.scooter-wheel {
  animation: wheels-spin 15s linear infinite;
  transform-origin: 0 0;
}

@keyframes wheels-spin {
  0%, 42% { transform: rotate(0deg); }
  68% { transform: rotate(-1440deg); }
  69%, 100% { transform: rotate(-1440deg); }
}

/* Road center dashes motion while scooter moves */
.anim-road-dashes {
  animation: road-move 15s linear infinite;
}

@keyframes road-move {
  0%, 42% { stroke-dashoffset: 0; }
  68% { stroke-dashoffset: -180; }
  69%, 100% { stroke-dashoffset: -180; }
}

/* Headlight beam */
.scooter-headlight-beam {
  opacity: 0;
  animation: headlight-glow 15s ease-in-out infinite;
}

@keyframes headlight-glow {
  0%, 39% { opacity: 0; }
  41%, 70% { opacity: 0.85; }
  72%, 100% { opacity: 0; }
}

/* Exhaust smoke puffs */
.scooter-exhaust-smoke {
  opacity: 0;
  animation: exhaust-smoke 15s ease-out infinite;
}

@keyframes exhaust-smoke {
  0%, 41% { opacity: 0; transform: scale(0.6); }
  43%, 64% { opacity: 0.7; transform: scale(1.1); }
  67%, 100% { opacity: 0; transform: scale(1.4); }
}

/* Floating Rider Status Banner */
.anim-rider-status-bubble {
  opacity: 0;
  transform: translate(500px, 205px);
  animation: rider-status-follow 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rider-status-follow {
  0%, 40% {
    opacity: 0;
    transform: translate(500px, 205px);
  }
  42%, 44% {
    opacity: 1;
    transform: translate(500px, 205px);
  }
  52% {
    opacity: 1;
    transform: translate(370px, 203px);
  }
  62% {
    opacity: 1;
    transform: translate(260px, 205px);
  }
  68%, 70% {
    opacity: 1;
    transform: translate(170px, 205px);
  }
  73%, 100% {
    opacity: 0;
    transform: translate(170px, 200px);
  }
}

/* 5. Customer Received Box (Phase 5: 72% to 94%) */
.customer-received-box {
  opacity: 0;
  transform-origin: 183px 207px;
  animation: customer-box-receive 15s ease-in-out infinite;
}

@keyframes customer-box-receive {
  0%, 72.9% {
    opacity: 0;
    transform: scale(0.5);
  }
  74%, 93.9% {
    opacity: 1;
    transform: scale(1);
  }
  95%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }
}

/* Phase 5 Cash Payment & Sparkles (Safely positioned above customer) */
.anim-cash-payment {
  opacity: 0;
  transform-origin: 170px 115px;
  animation: cash-payment-pop 15s ease-in-out infinite;
}

@keyframes cash-payment-pop {
  0%, 74.9% {
    opacity: 0;
    transform: translateY(8px) scale(0.7);
  }
  76%, 93.9% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  96%, 100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.8);
  }
}

/* Customer smiling & celebrating */
.character-customer {
  animation: customer-bounce 15s ease-in-out infinite;
}

@keyframes customer-bounce {
  0%, 72% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
  78% { transform: translateY(0); }
  81% { transform: translateY(-3px); }
  84%, 100% { transform: translateY(0); }
}

/* Merchant cheerful nod upon receiving order */
.character-merchant {
  animation: merchant-cheer 15s ease-in-out infinite;
  transform-origin: 596px 257px;
}

@keyframes merchant-cheer {
  0%, 20% { transform: translateY(0); }
  24% { transform: translateY(-3px); }
  28% { transform: translateY(0); }
  32% { transform: translateY(-2px); }
  36%, 100% { transform: translateY(0); }
}

/* Rider gentle road bounce while driving */
.character-rider {
  animation: rider-road-bounce 15s ease-in-out infinite;
}

@keyframes rider-road-bounce {
  0%, 42% { transform: translateY(0); }
  45% { transform: translateY(-1px); }
  48% { transform: translateY(0.8px); }
  52% { transform: translateY(-1.2px); }
  56% { transform: translateY(0.8px); }
  60% { transform: translateY(-1px); }
  64% { transform: translateY(0.8px); }
  68%, 100% { transform: translateY(0); }
}

/* ============================================================
   BOTTOM PROGRESS TIMELINE TRACK
   ============================================================ */
.delivery-timeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding: 4px 6px;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.timeline-step .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.timeline-step.active,
.timeline-step:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #fff;
}

.timeline-step.active .step-num {
  background: #10b981;
  color: #fff;
}

/* Animated timeline step highlight */
.online-delivery-stage .timeline-step.step-1 { animation: step1-glow 15s infinite; }
.online-delivery-stage .timeline-step.step-2 { animation: step2-glow 15s infinite; }
.online-delivery-stage .timeline-step.step-3 { animation: step3-glow 15s infinite; }
.online-delivery-stage .timeline-step.step-4 { animation: step4-glow 15s infinite; }
.online-delivery-stage .timeline-step.step-5 { animation: step5-glow 15s infinite; }

@keyframes step1-glow {
  0%, 19.9% { background: rgba(16, 185, 129, 0.25); border-color: #34d399; color: #fff; }
  20%, 100% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
}
@keyframes step2-glow {
  0%, 19.9% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
  20%, 39.9% { background: rgba(16, 185, 129, 0.25); border-color: #34d399; color: #fff; }
  40%, 100% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
}
@keyframes step3-glow {
  0%, 39.9% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
  40%, 57.9% { background: rgba(16, 185, 129, 0.25); border-color: #34d399; color: #fff; }
  58%, 100% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
}
@keyframes step4-glow {
  0%, 57.9% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
  58%, 75.9% { background: rgba(16, 185, 129, 0.25); border-color: #34d399; color: #fff; }
  76%, 100% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
}
@keyframes step5-glow {
  0%, 75.9% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
  76%, 97.9% { background: rgba(16, 185, 129, 0.25); border-color: #34d399; color: #fff; }
  98%, 100% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
}

.timeline-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}

@media (max-width: 640px) {
  .delivery-stage-card {
    padding: 14px 12px 16px;
    border-radius: 18px;
  }

  .delivery-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .delivery-live-tag {
    font-size: 10.5px;
    letter-spacing: 0.6px;
  }

  .delivery-phase-badge {
    min-height: 30px;
    font-size: 11.5px;
    padding: 3px 12px;
    max-width: 100%;
  }

  .delivery-scene-wrap {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #09130d;
  }

  .delivery-scene-svg {
    transform: none;
  }

  .anim-order-bubble,
  .anim-seller-bubble,
  .anim-cash-payment {
    transform-origin: center center;
    scale: 1;
  }

  .delivery-timeline-track {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
  }

  .timeline-connector {
    display: none;
  }

  .timeline-step {
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
  }

  .timeline-step .step-num {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

.online-shop-hero-slide {
  position: relative;
  z-index: 2;
  display: none;
  width: 100%;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 5vw, 84px) clamp(56px, 6vw, 76px);
  box-sizing: border-box;
}

.subscription-gate:not(.show-online-shop-slide) > .online-shop-hero-slide,
.online-shop-hero-slide[hidden] {
  display: none !important;
}

.subscription-gate.show-online-shop-slide {
  min-height: calc(100vh - 72px);
  height: auto;
  overflow: visible;
  padding: 0;
}

.subscription-gate.show-online-shop-slide > div:first-child,
.subscription-gate.show-online-shop-slide > .welcome-entry-actions,
.subscription-gate.show-online-shop-slide > .welcome-visual,
.subscription-gate.show-online-shop-slide .welcome-orbit,
.subscription-gate.show-online-shop-slide .produce-float,
.subscription-gate.show-online-shop-slide .counter-preview,
.subscription-gate.show-online-shop-slide .preview-float {
  display: none !important;
}

.subscription-gate.show-online-shop-slide > .online-shop-hero-slide {
  display: grid !important;
  animation: heroFadeSlide 0.4s ease-out;
}

.subscription-gate:not(.show-online-shop-slide) > div:first-child,
.subscription-gate:not(.show-online-shop-slide) > .welcome-entry-actions,
.subscription-gate:not(.show-online-shop-slide) > .welcome-visual {
  animation: heroFadeSlide 0.4s ease-out;
}

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

.subscription-gate.is-locked .home-carousel-controls,
.subscription-gate.is-locked .online-shop-hero-slide {
  display: none !important;
}

.online-shop-hero-slide .online-shop-copy {
  max-width: 520px;
}

.online-shop-hero-slide .online-shop-copy h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.online-shop-hero-slide .online-shop-intro {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.45;
  margin-bottom: 16px;
}

.online-shop-hero-slide .online-shop-steps {
  gap: 12px;
  margin: 14px 0 16px;
}

.online-shop-hero-slide .online-shop-steps li {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.online-shop-hero-slide .online-shop-steps li > span {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.online-shop-hero-slide .online-shop-steps h3 {
  font-size: 14px;
  margin-bottom: 2px;
}

.online-shop-hero-slide .online-shop-steps p {
  font-size: 13px;
  line-height: 1.35;
}

.online-shop-hero-slide .online-shop-demo {
  width: 100%;
  min-height: 440px;
}

.home-carousel-controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.home-carousel-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.home-carousel-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9eaea0;
  content: "";
  transition: width 180ms ease, border-radius 180ms ease, background 180ms ease;
}

.home-carousel-dot.is-active::before {
  width: 22px;
  border-radius: 99px;
  background: var(--green);
}

.home-carousel-dot:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.subscription-gate.is-locked .home-carousel-controls {
  display: none;
}

.how-section {
  width: 100%;
  max-width: none;
  padding-right: clamp(24px, 5vw, 80px);
  padding-left: clamp(24px, 5vw, 80px);
  background: #f5f8f4;
  text-align: center;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  width: 100%;
  max-width: 1440px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.how-steps li {
  min-height: 190px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 28px;
  border: 1px solid #e4ebe3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px #263d2a0d;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.how-steps li:hover {
  transform: translateY(-3px);
  border-color: #cdddcf;
  box-shadow: 0 18px 36px #263d2a14;
}

.how-steps li > div {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.how-step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eaf2eb;
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.how-steps h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.35;
}

.how-steps p {
  color: #687368;
  font-size: 15px;
  line-height: 1.55;
}

.home-cta-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.home-cta-button:hover {
  transform: translateY(-1px);
  background: var(--green-dark);
}

.guide-section {
  padding-top: clamp(58px, 8vw, 88px);
  padding-bottom: clamp(58px, 8vw, 88px);
}

.guide-section .home-section-heading {
  margin-bottom: 28px;
}

/* Guide Video Navigation Tabs */
.guide-tabs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin: 0 auto 34px;
  max-width: 960px;
  flex-wrap: wrap;
}

.guide-tab {
  flex: 1 1 260px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1.5px solid #e1e7e0;
  border-radius: 14px;
  background: #ffffff;
  color: #2b3b2e;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: 0 2px 8px rgba(38, 61, 42, 0.04);
}

.guide-tab:hover {
  border-color: #2e693b;
  background: #f7f9f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(38, 61, 42, 0.08);
}

.guide-tab.is-active {
  border-color: #215c32;
  background: #215c32;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 92, 50, 0.22);
}

.guide-tab-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-tab-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.guide-tab-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.guide-tab-badge {
  font-size: 12px;
  font-weight: 500;
  color: #6d7b6f;
  line-height: 1.2;
}

.guide-tab.is-active .guide-tab-badge {
  color: #d2edd7;
}

/* Guide Panels */
.guide-panels {
  position: relative;
  width: 100%;
}

.guide-panel {
  display: none;
}

.guide-panel.is-active {
  display: block;
  animation: guideFadeIn 0.25s ease-out;
}

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

.guide-video-frame {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #e8ede7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px #263d2a12;
}

.guide-video-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 1280 / 740;
  border-radius: 10px;
  background: #151915;
  object-fit: contain;
}

/* Mobile Video Frame */
.guide-video-frame.guide-video-mobile {
  max-width: 380px;
  margin: 0 auto;
  padding: 14px 12px 12px;
  border-radius: 36px;
  border: 3px solid #1f2d22;
  background: #152017;
  box-shadow: 0 24px 60px rgba(18, 38, 24, 0.22);
}

.guide-mobile-phone-wrap {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.guide-video-frame.guide-video-mobile video {
  width: 100%;
  display: block;
  aspect-ratio: 384 / 832;
  border-radius: 24px;
  background: #000;
  object-fit: contain;
}

.guide-video-frame.guide-video-mobile figcaption {
  color: #8c988d;
  padding: 14px 4px 4px;
}

.guide-video-frame.guide-video-mobile figcaption span:first-child {
  color: #e2ede4;
  font-weight: 700;
}

.guide-video-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 14px 8px 4px;
  color: #788176;
  font-size: 16px;
}

.guide-video-frame figcaption span:first-child {
  color: #39483a;
  font-weight: 700;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
}

.public-footer {
  border-top: 1px solid #edf0eb;
  background: #fbfcfa;
  width: 100%;
}

.public-footer-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 44px 28px 40px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) auto minmax(180px, auto) minmax(210px, auto);
  justify-content: space-between;
  align-items: start;
  gap: clamp(24px, 3.5vw, 48px);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 320px;
}

.footer-brand {
  justify-self: start;
  gap: 8px;
  font-size: 21px;
  letter-spacing: -1px;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 22px;
}

.footer-tagline {
  margin: 0;
  color: #6a7469;
  font-size: 14.5px;
  line-height: 1.45;
}

.footer-copyright {
  margin-top: 6px;
  color: #8b918a;
  font-size: 13.5px;
}

.footer-nav {
  display: flex;
  gap: clamp(32px, 5vw, 64px);
  align-items: flex-start;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  margin: 0 0 2px;
  color: #233124;
  font-family: Manrope, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.footer-nav a,
.footer-contact a {
  color: #556257;
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.footer-location {
  font-size: 13.5px;
  color: #556257;
  line-height: 1.4;
}

.footer-social-ai {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 200px;
}

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

.footer-mono-label {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f2d24;
}

.footer-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-btn,
.ai-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.social-btn:hover,
.ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.social-btn:active,
.ai-btn:active {
  transform: translateY(0);
}

/* Social Buttons */
.social-btn-linkedin {
  background: #000000;
  color: #ffffff;
}

.social-btn-x {
  background: #000000;
  color: #ffffff;
}

.social-btn-fb {
  background: #1877f2;
  color: #ffffff;
}

.social-btn-fb:hover {
  background: #0d65d9;
}

/* AI Buttons */
.ai-btn-chatgpt {
  background: #74aa9c;
  color: #ffffff;
}

.ai-btn-claude {
  background: #cc6b49;
  color: #ffffff;
}

.ai-btn-perplexity {
  background: #191a1a;
  color: #ffffff;
}

.ai-btn-gemini {
  background: #ffffff;
  border: 1px solid #dbe2da;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.subscription-gate {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  padding: clamp(38px, 8vw, 112px) clamp(28px, 9vw, 142px);
  background:
    radial-gradient(ellipse at 82% 28%, #d9e8d9 0, #d9e8d900 32%),
    radial-gradient(ellipse at 12% 90%, #eee7d7 0, #eee7d700 38%),
    linear-gradient(135deg, #f8faf6 0%, #f1f5ef 55%, #f8f7f1 100%);
}

.subscription-gate::before,
.subscription-gate::after {
  position: absolute;
  z-index: 0;
  border: 1px solid #2c684b12;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.subscription-gate::before {
  width: min(64vw, 700px);
  aspect-ratio: 1;
  right: -9%;
  top: 8%;
}

.subscription-gate::after {
  width: min(45vw, 500px);
  aspect-ratio: 1;
  right: -2%;
  top: 18%;
}

.subscription-gate > div:first-child {
  position: relative;
  z-index: 2;
  max-width: min(600px, 48%);
}

.welcome-entry-actions {
  position: relative;
  width: 100%;
  max-width: 470px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  border: 1px solid #c9dbc9;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(38, 61, 42, 0.06);
}

.subscription-gate .eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.subscription-gate h1 {
  max-width: 540px;
  margin: 0 0 14px;
  font-family: Manrope, sans-serif;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.14;
}

.subscription-gate p:not(.eyebrow) {
  max-width: 440px;
  margin: 0;
  color: #778076;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.6;
}

.welcome-copy {
  display: grid;
  justify-items: start;
  width: 100%;
  max-width: 470px;
  gap: 18px;
}

.subscription-gate p.welcome-trial {
  display: grid;
  justify-items: start;
  width: 100%;
  max-width: 470px;
  gap: 7px;
  padding: 20px 22px;
  border: 1px solid #c9dbc9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px #253b2515;
  color: #172b20;
  font-size: 16px;
  line-height: 1.5;
}

.welcome-trial-label {
  margin-bottom: 2px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #e8f2e9;
  color: #20543b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.welcome-trial strong {
  color: #172b20;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

.welcome-trial-chai {
  display: block;
  margin-top: 6px;
  color: #000000;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.chai-inline-unit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  vertical-align: middle;
}

.chai-glass-gif {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.subscription-gate p.welcome-signin {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.signin-subtext {
  font-size: 14.5px;
  font-weight: 600;
  color: #000000;
  line-height: 1.25;
}

.signin-highlight {
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark, #183b27);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.welcome-entry-actions .gate-action {
  flex-shrink: 0;
  min-height: 48px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--green-dark, #183b27);
  color: #ffffff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(24, 59, 39, 0.2);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.welcome-entry-actions .gate-action:hover {
  background: #0f271a;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(24, 59, 39, 0.3);
}

.welcome-entry-actions .gate-action:active {
  transform: translateY(0);
}

.gate-action {
  flex: 0 0 auto;
  min-width: 150px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 26px #2c684b24;
  cursor: pointer;
}

.gate-action:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.gate-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gate-action::after {
  content: "→";
  font-size: 18px;
  transition: transform 180ms ease;
}

.gate-action:hover {
  box-shadow: 0 16px 32px #2c684b35;
}

.gate-action:hover::after {
  transform: translateX(4px);
}

.gate-action:active {
  transform: translateY(1px) scale(.98);
}

.gate-action:focus-visible {
  outline: 3px solid #83a98f;
  outline-offset: 4px;
}

.welcome-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: welcome-visual-in 900ms cubic-bezier(.2, .75, .25, 1) both;
}

.welcome-orbit {
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(88vw, 1100px);
  aspect-ratio: 1;
  border: 1px solid #2c684b16;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: welcome-orbit 28s linear infinite;
}

.welcome-orbit::before,
.welcome-orbit::after {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #9db9a2;
  box-shadow: 0 0 0 7px #9db9a21c;
  content: "";
}

.welcome-orbit::before {
  top: 15%;
  left: 18%;
}

.welcome-orbit::after {
  right: 6%;
  bottom: 26%;
  width: 7px;
  height: 7px;
}

.produce-float {
  position: absolute;
  z-index: 0;
  display: grid;
  width: clamp(52px, 5.8vw, 84px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(229, 236, 227, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(48, 75, 50, 0.12), 0 2px 8px rgba(48, 75, 50, 0.05);
  font-size: clamp(30px, 3.6vw, 48px);
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}

.produce-float:hover {
  box-shadow: 0 20px 42px rgba(48, 75, 50, 0.22), 0 0 0 2px rgba(44, 104, 75, 0.22);
  filter: brightness(1.03);
}

.produce-junk {
  border-color: rgba(255, 226, 196, 0.95);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 34px rgba(186, 92, 34, 0.13), 0 2px 8px rgba(186, 92, 34, 0.05);
}

.produce-junk:hover {
  box-shadow: 0 20px 42px rgba(186, 92, 34, 0.24), 0 0 0 2px rgba(220, 100, 30, 0.3);
  filter: brightness(1.03);
}

.produce-roamer {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.produce-icon {
  display: inline-block;
  line-height: 1;
  transform-origin: center center;
  animation: produce-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.roam-1 { animation: produce-roam-1 16s ease-in-out infinite; }
.roam-2 { animation: produce-roam-2 20s ease-in-out infinite; }
.roam-3 { animation: produce-roam-3 24s ease-in-out infinite; }
.roam-4 { animation: produce-roam-4 18s ease-in-out infinite; }

.produce-float:nth-child(2n) .produce-icon { animation-delay: -1.2s; }
.produce-float:nth-child(3n) .produce-icon { animation-delay: -2.3s; }
.produce-float:nth-child(5n) .produce-icon { animation-delay: -3.4s; }
.produce-float:nth-child(7n) .produce-icon { animation-delay: -0.7s; }

.produce-float:nth-child(2n) .produce-roamer { animation-delay: -3.2s; }
.produce-float:nth-child(3n) .produce-roamer { animation-delay: -7.5s; }
.produce-float:nth-child(4n) .produce-roamer { animation-delay: -11.1s; }
.produce-float:nth-child(5n) .produce-roamer { animation-delay: -14.6s; }

/* Junk Food home positions */
.produce-pizza { top: 7%; left: 7%; }
.produce-burger { top: 11%; left: 33%; }
.produce-fries { top: 24%; left: 21%; }
.produce-donut { top: 5%; right: 26%; }
.produce-hotdog { top: 12%; right: 7%; }
.produce-popcorn { top: 32%; right: 3%; }
.produce-icecream { top: 55%; right: 4%; }
.produce-taco { bottom: 18%; right: 6%; }
.produce-cookie { bottom: 5%; right: 22%; }
.produce-soda { bottom: 7%; right: 38%; }

/* Groceries home positions */
.produce-carrot { top: 17%; left: 51%; }
.produce-greens { top: 76%; right: 14%; }
.produce-milk { bottom: 13%; left: 14%; }
.produce-cheese { top: 43%; right: 21%; }
.produce-tomato { top: 61%; left: 42%; }
.produce-fruit { bottom: 15%; left: 29%; }
.produce-rice { top: 18%; right: 16%; }
.produce-beans { top: 41%; left: 32%; }
.produce-daal { bottom: 23%; right: 28%; }
.produce-avocado { top: 45%; left: 4%; }
.produce-croissant { top: 68%; left: 7%; }
.produce-strawberry { bottom: 4%; left: 3%; }
.produce-banana { bottom: 6%; left: 48%; }
.produce-corn { top: 31%; right: 34%; }

.counter-preview {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(30px, 5vw, 76px);
  width: min(42vw, 610px);
  padding: 24px;
  border: 1px solid #e7ece5;
  border-radius: 22px;
  background: #ffffffed;
  box-shadow: 0 30px 70px #304b321c, 0 5px 15px #304b320d;
  transform: translateY(-50%) rotate(-3deg);
  animation: preview-float 6s ease-in-out infinite;
}

.preview-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #758076;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.preview-mark {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  background: #eaf1eb;
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -1px;
}

.preview-menu {
  margin-left: auto;
  color: #a7afa6;
  letter-spacing: 2px;
}

.preview-greeting {
  margin: 17px 0 12px;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.preview-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-bottom: 1px solid #edf0eb;
}

.preview-items {
  overflow: hidden;
  border: 1px solid #edf0eb;
  border-radius: 13px;
  background: #fff;
}

.preview-product-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 11px;
  background: #f2e9df;
  font-size: 16px;
}

.preview-product strong,
.preview-product small,
.preview-float strong,
.preview-float small {
  display: block;
}

.preview-product strong {
  font-size: 10px;
}

.preview-product > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.preview-product small,
.preview-float small {
  margin-top: 3px;
  color: #8b938a;
  font-size: 8px;
}

.preview-product .preview-price {
  margin-left: auto;
  font-size: 10px;
}

.preview-checkout {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.preview-checkout b {
  margin-left: 7px;
  font-size: 14px;
}

.preview-float {
  position: absolute;
  right: clamp(16px, 4vw, 56px);
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px 13px 12px;
  border: 1px solid #e8eee7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px #304b321a;
  animation: preview-bob 4.5s ease-in-out infinite;
}

.preview-float-check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e9f3e9;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

.preview-float strong {
  font-size: 10px;
}

.subscription-gate.is-locked .welcome-visual {
  display: none;
}

@keyframes welcome-visual-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes welcome-orbit {
  to {
    rotate: 360deg;
  }
}

@keyframes preview-float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes preview-bob {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@keyframes produce-roam-1 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(28px, -24px, 0) rotate(6deg); }
  50% { transform: translate3d(-20px, -40px, 0) rotate(-5deg); }
  75% { transform: translate3d(-34px, 18px, 0) rotate(4deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes produce-roam-2 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(-30px, 26px, 0) rotate(-6deg); }
  50% { transform: translate3d(24px, 36px, 0) rotate(5deg); }
  75% { transform: translate3d(36px, -18px, 0) rotate(-4deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes produce-roam-3 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  30% { transform: translate3d(-32px, -28px, 0) rotate(7deg); }
  60% { transform: translate3d(28px, -36px, 0) rotate(-6deg); }
  85% { transform: translate3d(-18px, 24px, 0) rotate(4deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes produce-roam-4 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(24px, 32px, 0) rotate(5deg); }
  50% { transform: translate3d(-26px, 22px, 0) rotate(-6deg); }
  75% { transform: translate3d(20px, -26px, 0) rotate(4deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes produce-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.subscription-gate.is-locked {
  min-height: unset;
  margin: 18px auto 0;
  padding: 18px 5.15%;
  background: linear-gradient(110deg, #eef4ed, #fafaf6);
}

.subscription-gate.is-locked::before,
.subscription-gate.is-locked::after {
  display: none;
}

.subscription-gate.is-locked > div {
  max-width: 780px;
}

.subscription-gate.is-locked .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}

.subscription-gate.is-locked h1 {
  margin-bottom: 4px;
  font-size: clamp(19px, 2.5vw, 25px);
  letter-spacing: -.7px;
}

.subscription-gate.is-locked p:not(.eyebrow) {
  font-size: 12px;
}

.subscription-gate.is-locked .gate-action {
  min-height: 42px;
  font-size: 12px;
}

.subscription-gate.is-locked .welcome-entry-actions {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  justify-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  backdrop-filter: none;
}

.catalog-panel {
  min-width: 0;
}

.subscription-expiry-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #fffdf8 0%, #fef8eb 100%);
  border: 1px solid #f3dcab;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.06);
  margin-bottom: 4px;
}

.subscription-expiry-banner[hidden] {
  display: none !important;
}

.expiry-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.expiry-banner-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.expiry-banner-text {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: #78350f;
  line-height: 1.45;
}

.expiry-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.expiry-banner-cta {
  background: var(--green-dark, #183b27);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.expiry-banner-cta:hover {
  background: #0f271a;
  transform: translateY(-1px);
}

.expiry-banner-cta:active {
  transform: translateY(0);
}

.expiry-banner-dismiss {
  background: transparent;
  border: none;
  color: #92400e;
  font-size: 1.25rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.expiry-banner-dismiss:hover {
  opacity: 1;
  background: rgba(180, 83, 9, 0.1);
}

@media (max-width: 768px) {
  .subscription-expiry-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }
  .expiry-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  .expiry-banner-cta {
    flex: 1;
    text-align: center;
  }
}

.merchant-setup-notice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid #e8d9af;
  border-radius: 14px;
  background: #fffaf0;
}

.merchant-setup-copy h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.merchant-setup-copy > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: #77766c;
  font-size: 12px;
  line-height: 1.6;
}

.merchant-setup-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merchant-setup-steps li {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #f0e8d6;
  border-radius: 10px;
  background: #fff;
}

.merchant-setup-step-label {
  font-size: 12px;
  font-weight: 700;
}

.merchant-setup-status {
  color: #8a7250;
  font-size: 10px;
}

.pos-setup-locked {
  opacity: 0.58;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #9ba199;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Manrope, sans-serif;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 700;
  letter-spacing: -1.3px;
}

.subtitle {
  margin: 0;
  color: #818780;
  font-size: 13px;
}

.storefront-settings-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(900px, calc(100dvh - 32px));
  overflow-y: auto;
}

.storefront-orders-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(900px, calc(100dvh - 32px));
  overflow-y: auto;
}

.storefront-link-tools {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e6ebe4;
  border-radius: 10px;
  background: #f9fbf8;
}

.storefront-link-tools label {
  display: grid;
  gap: 6px;
  color: #485348;
  font-size: 13px;
}

.storefront-link-tools input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e3e9e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.storefront-share-actions,
.storefront-orders-heading-actions,
.storefront-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.storefront-share-actions .secondary-action,
.storefront-orders-heading-actions .secondary-action {
  min-height: 40px;
  border: 1px solid #dfe6de;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  text-align: center;
}

.storefront-orders-heading-actions {
  justify-content: flex-end;
}

.storefront-orders-list {
  display: grid;
  gap: 12px;
}

/* Customer Orders Toolbar & Filter Pills */
.storefront-filter-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebf0ec;
}

.storefront-filter-pill {
  border: 1px solid #d5dfd8;
  border-radius: 20px;
  background: #fff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4b584e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.storefront-filter-pill:hover {
  background: #f4f8f5;
  color: #1e5e3a;
  border-color: #c0d1c5;
}

.storefront-filter-pill.active {
  background: #1e5e3a;
  color: #fff;
  border-color: #1e5e3a;
}

.storefront-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e8f3ec;
  color: #1e5e3a;
  font-size: 11px;
  font-weight: 700;
}

.storefront-filter-pill.active .storefront-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.storefront-order-card {
  border: 1px solid #e1e7e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  margin-bottom: 12px;
}

.storefront-order-card:hover {
  border-color: #c4d4c8;
  box-shadow: 0 3px 8px rgba(30, 94, 58, 0.06);
}

.storefront-order-card.expanded {
  border-color: #1e5e3a;
  box-shadow: 0 4px 14px rgba(30, 94, 58, 0.1);
}

.storefront-order-summary {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
}

.storefront-order-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.storefront-order-customer-brief {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.storefront-customer-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #1a251e;
}

.storefront-phone-label {
  font-size: 12.5px;
  color: #606d64;
}

.storefront-total-amount {
  font-size: 17px;
  font-weight: 800;
  color: #1a251e;
}

.storefront-order-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.storefront-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
}

.storefront-status-pill.status-new {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.storefront-status-pill.status-accepted {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.storefront-status-pill.status-ready {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.storefront-status-pill.status-out_for_delivery {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.storefront-status-pill.status-completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.storefront-status-pill.status-cancelled,
.storefront-status-pill.status-declined {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.storefront-payment-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.storefront-payment-pill.paid {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.storefront-payment-pill.unpaid {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #ffedd5;
}

.storefront-order-collapsed-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  font-size: 12.5px;
}

.storefront-collapsed-items {
  color: #556258;
  font-weight: 500;
  max-width: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-expand-toggle {
  color: #1e5e3a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.storefront-order-details {
  padding: 16px;
  background: #fafcfa;
  border-top: 1px solid #e5ebe4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.storefront-order-status-line {
  margin: 6px 0;
  font-size: 13.5px;
  font-weight: 700 !important;
  color: #18271d !important;
  line-height: 1.5;
}

.storefront-order-address {
  margin: 6px 0;
  font-size: 13.5px;
  font-weight: 700 !important;
  color: #18271d !important;
  background: #f1f6f2;
  border-left: 3.5px solid #1e5e3a;
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.5;
}

.storefront-order-delivered-line {
  margin: 6px 0;
  font-size: 13.5px;
  font-weight: 700 !important;
  color: #0b4f2c !important;
  background: #ebf9f0;
  border: 1px solid #a4e6bd;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.5;
}

.storefront-order-seller-note {
  margin: 6px 0;
  font-size: 13px;
  color: #165e38;
  background: #eef7f1;
  border: 1px solid #cae8d4;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.45;
}

.storefront-order-cancelled-reason {
  margin: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.45;
}

.storefront-order-heading span {
  color: #687368;
  font-size: 12.5px;
  line-height: 1.5;
}

.storefront-order-items {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  color: #2b392e;
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0;
}

.storefront-order-items li {
  font-weight: 500;
}

.storefront-order-actions {
  margin-top: 12px;
}

.storefront-order-actions button {
  min-height: 38px;
  padding: 0 11px;
  font-size: 12px;
}

.storefront-order-actions .storefront-confirm-payment {
  border: 1px solid #bb7130;
  border-radius: 8px;
  background: #fff8f0;
  color: #75451c;
  font-weight: 700;
  cursor: pointer;
}

.storefront-order-closed {
  color: #657168;
  font-size: 12px;
}

@media (max-width: 600px) {
  .storefront-settings-dialog,
  .storefront-orders-dialog {
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .storefront-orders-heading-actions {
    gap: 5px;
  }

  .storefront-orders-heading-actions .secondary-action {
    padding: 0 8px;
  }
}

.customer-orders-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.customer-orders-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.icon-button:hover {
  border-color: #c2d2c5;
}

.customer-orders-button:active,
.account-button:active,
.manage-catalog-button:active {
  transform: scale(.98);
}

.orders-icon {
  color: white;
  font-size: 15px;
}

.new-order-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d64237;
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.search-box {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid #e5e9e3;
  border-radius: 10px;
  background: #fff;
}

.search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1.7px solid #9ba29a;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.7px;
  background: #9ba29a;
  content: "";
  transform: rotate(48deg);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-box input::placeholder {
  color: #a2a8a1;
}

.search-box kbd {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid #edf0eb;
  border-radius: 5px;
  color: #a3a9a2;
  font: 10px "DM Sans", sans-serif;
}

.category-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 16px 0 20px;
  padding: 8px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f5f7f4;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #e6eae4;
  border-radius: 8px;
  background: white;
  color: #7e857d;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: 150ms ease;
}

.category-button.active,
.category-button:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  scroll-margin-top: 64px;
}

.section-label h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.section-label span {
  color: #9ba199;
  font-size: 11px;
}

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

.manage-catalog-button {
  padding: 9px 13px;
  border: 1px solid var(--green);
  border-radius: 9px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.manage-catalog-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

#product-grid,
.product-grid-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.category-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 64px;
}

.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  border-bottom: 1.5px solid #e7ebe5;
}

.category-block-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-block-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #20251f;
  letter-spacing: -.2px;
}

.category-block-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf1eb;
  color: #556153;
  font-size: 11px;
  font-weight: 600;
}

.product-grid,
.category-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  min-width: 0;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 12px 10px 10px;
  border: 1px solid #e1e7e0;
  border-radius: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(35, 60, 40, 0.04);
}

.product-discount-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #e8f5ed;
  color: #28694b;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #9ec3aa;
  box-shadow: 0 6px 18px rgba(35, 60, 40, 0.08);
}

.product-card:active {
  transform: scale(.98);
}

.product-card-controls {
  width: 100%;
  margin-top: auto;
}

.product-card-btn-add,
.product-card-add-hint {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid #28694b;
  border-radius: 8px;
  background: #28694b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, transform 0.12s ease;
}

.product-card-btn-add:hover,
.product-card-add-hint:hover,
.product-card:hover .product-card-btn-add,
.product-card:hover .product-card-add-hint {
  background: #1f543c;
  border-color: #1f543c;
  color: #fff;
}

.product-card-btn-add:active,
.product-card-add-hint:active {
  transform: scale(0.96);
}

.product-card-stepper {
  width: 100%;
  min-height: 34px;
  margin-top: 4px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  border: 1px solid #28694b;
  border-radius: 8px;
  background: #28694b;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.product-card-stepper-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  background: #28694b;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 0;
}

.product-card-stepper-btn:hover {
  background: #1e523a;
}

.product-card-stepper-btn:active {
  transform: scale(0.92);
}

.product-card-stepper-qty {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  user-select: none;
  line-height: 1;
}

.product-card-out-of-stock {
  opacity: 0.62;
  cursor: not-allowed;
}

.product-stock-availability {
  margin: 1px 0 0;
  max-width: 100%;
  overflow: hidden;
  color: #647568;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-out-of-stock .product-stock-availability {
  color: #a2493f;
}

.product-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f1f5f0;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}

.product-icon:is(img) {
  object-fit: cover;
}

.product-image-field {
  display: grid;
  gap: 5px;
}

.product-image-field > label {
  display: grid;
  gap: 7px;
}

.product-image-field input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.product-description-field {
  display: grid;
  gap: 5px;
}

.product-description-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8e2d9;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
}

.product-image-field small,
.product-description-field small {
  color: #4a574d;
  font-size: 12.5px;
  line-height: 1.45;
}

.product-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.product-images-grid[hidden] {
  display: none;
}

.product-image-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 9px;
  border: 1px solid #e3e9e1;
  background: #f3f6f2;
  overflow: hidden;
}

.product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-delete:hover {
  background: rgba(200, 0, 0, 0.85);
}

.product-image-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-image-preview-wrap img {
  width: 72px;
  height: 72px;
  border: 1px solid #e3e9e1;
  border-radius: 9px;
  background: #f3f6f2;
  object-fit: cover;
}

.product-image-preview-wrap[hidden] {
  display: none;
}

.product-card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

.product-name {
  width: 100%;
  margin: 0;
  color: #1a251e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.product-qty {
  margin: 0;
  color: #667568;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  margin: 2px 0 0;
  color: #28694b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.no-products {
  grid-column: 1 / -1;
  padding: 40px 10px;
  color: #8b918a;
  font-size: 12px;
  text-align: center;
}

.cart-panel {
  position: sticky;
  top: 20px;
  height: calc(100vh - 112px);
  min-height: 500px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7ebe5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px #263d2a08;
}

@media (max-width: 760px) {
  .merchant-setup-notice {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .merchant-setup-steps li {
    grid-template-columns: minmax(95px, 1fr) auto;
  }

  .merchant-setup-status {
    grid-column: 1;
    grid-row: 2;
  }

  .merchant-setup-steps .secondary-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 17px;
  border-bottom: 1px solid #edf0eb;
}

.cart-heading .eyebrow {
  margin-bottom: 6px;
}

.cart-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.5px;
}

#cart-item-count {
  color: #9ca39b;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.text-button {
  padding: 5px;
  border: 0;
  background: none;
  color: #899087;
  font-size: 11px;
  cursor: pointer;
}

.text-button:hover {
  color: #a3483f;
}

.cart-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.empty-cart {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
}

.empty-cart-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 19px;
  background: #f3f6f2;
  color: #97aa99;
}

.empty-cart-icon svg {
  width: 39px;
  height: 39px;
}

.empty-cart strong {
  margin-bottom: 6px;
  font-size: 12px;
}

.empty-cart span {
  color: #959c94;
  font-size: 10px;
}

.cart-lines {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto auto;
  column-gap: 8px;
  row-gap: 0;
  padding: 4px 20px;
}

.cart-line {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2ef;
}

.cart-line-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f3f6f2;
  font-size: 15px;
  line-height: 1;
}

.cart-line-icon:is(img) {
  object-fit: cover;
}

.cart-line-info {
  min-width: 0;
}

.cart-line-name {
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line-price {
  margin: 0;
  color: #8c938b;
  font-size: 10px;
}

.cart-line-amount-label {
  color: #8c938b;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  justify-self: start;
}

.cart-line-amount-value {
  color: #26352b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
  justify-self: end;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  justify-self: end;
}

.quantity-control button {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #28694b;
  border-radius: 7px;
  background: #28694b;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease;
}

.quantity-control button:hover {
  border-color: #1d533a;
  background: #1d533a;
  color: #fff;
}

.quantity-control span {
  min-width: 10px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.checkout-area {
  padding: 15px 20px 18px;
  border-top: 1px solid #edf0eb;
  background: #fff;
}

.subtotal-row,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subtotal-row.discount-row strong {
  color: #2c684b;
}

.subtotal-row {
  margin-bottom: 12px;
  color: #878e86;
  font-size: 11px;
}

.subtotal-row strong {
  color: #525a51;
  font-weight: 600;
}

.tax-summary {
  display: grid;
  gap: 7px;
  margin: -3px 0 12px;
  color: #858d83;
  font-size: 10px;
}

.tax-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tax-summary-row strong {
  color: #525a51;
  font-weight: 600;
}

.tax-setup-notice {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 20px;
  color: #748174;
  font-size: 11px;
}

.tax-setup-notice strong {
  color: #344a38;
}

.total-row {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}

.total-row strong {
  font-family: Manrope, sans-serif;
  font-size: 19px;
  letter-spacing: -.5px;
}

.checkout-button {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.checkout-button:enabled:hover {
  background: var(--green-dark);
}

.checkout-button:enabled:active {
  transform: scale(.99);
}

.checkout-button:disabled {
  background: #b3c4b6;
  cursor: not-allowed;
}

.checkout-button span:last-child {
  font-size: 13px;
}

.secure-note {
  margin: 14px 0 0;
  color: #314238;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

.secure-note span {
  margin-right: 4px;
  color: #28694b;
  font-size: 14px;
}

.payment-dialog,
.sales-dialog,
.catalog-dialog,
.invoice-dialog,
.account-dialog {
  width: min(440px, calc(100% - 24px));
  padding: 24px 26px;
  border: 1px solid #e6ebe4;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px #17271d29;
  box-sizing: border-box;
}

.payment-dialog,
#billing-dialog,
#printer-settings-dialog,
#map-picker-dialog {
  max-height: min(840px, calc(100dvh - 30px));
  overflow-y: auto;
}

dialog::backdrop,
.payment-dialog::backdrop,
.sales-dialog::backdrop,
.catalog-dialog::backdrop,
.invoice-dialog::backdrop,
.account-dialog::backdrop {
  background: #19251d70;
  backdrop-filter: blur(3px);
}

.razorpay-container {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

.razorpay-backdrop {
  z-index: 1 !important;
  pointer-events: auto !important;
}

.razorpay-checkout-frame,
.razorpay-container > iframe {
  z-index: 10 !important;
  pointer-events: auto !important;
}

.payment-dialog form {
  position: relative;
}

.dialog-close {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #edf0eb;
  border-radius: 8px;
  background: #fff;
  color: #818880;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.payment-dialog .dialog-close {
  position: absolute;
  top: -9px;
  right: -8px;
}

.payment-dialog h2,
.sales-dialog h2,
.account-dialog h2 {
  max-width: 290px;
  margin: 0 0 5px;
  font-size: 21px;
  letter-spacing: -.8px;
}

.account-dialog {
  width: min(440px, calc(100% - 28px));
}

.sales-dialog.product-quantity-dialog {
  width: min(360px, calc(100% - 28px));
}

.invoice-dialog {
  width: min(460px, calc(100% - 24px));
}

.sales-dialog {
  width: min(1060px, calc(100% - 32px));
  max-height: min(900px, calc(100dvh - 32px));
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.sales-report-filters {
  display: grid;
  grid-template-columns: minmax(190px, 2fr) repeat(2, minmax(130px, 1fr)) repeat(2, minmax(145px, 1fr));
  align-items: end;
  gap: 12px;
  margin: 18px 0;
  padding: 15px;
  border: 1px solid #e9ede7;
  border-radius: 12px;
  background: #fafcf9;
  box-sizing: border-box;
  width: 100%;
}

.sales-report-filters label {
  display: grid;
  gap: 6px;
  color: #687168;
  font-size: 10px;
  font-weight: 600;
  min-width: 0;
  box-sizing: border-box;
}

.sales-report-filters input,
.sales-report-filters select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #e3e9e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.sales-report-filters input[type="date"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 6px;
  font-size: 11px;
  -webkit-appearance: none;
  appearance: none;
}

.sales-report-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.sales-report-actions .secondary-action,
.sales-report-filters .secondary-action {
  width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--green) !important;
  border-radius: 9px !important;
  background: var(--green) !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.sales-report-actions .secondary-action:hover:not(:disabled),
.sales-report-filters .secondary-action:hover:not(:disabled) {
  border-color: var(--green-dark) !important;
  background: var(--green-dark) !important;
  color: #ffffff !important;
}

.sales-report-actions .secondary-action:active,
.sales-report-filters .secondary-action:active {
  transform: scale(0.98);
}

.sales-report-actions .secondary-action:disabled,
.sales-report-filters .secondary-action:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sales-report-summary {
  margin: 0 0 14px;
  color: #58665a;
  font-size: 12px;
  line-height: 1.6;
}

.sales-chart-card {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #e3e9e2;
  border-radius: 12px;
  background: #fbfcfa;
}

.sales-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sales-chart-heading h3 {
  margin: 0;
  color: #26372a;
  font-size: 14px;
}

.sales-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #626d63;
  font-size: 11px;
}

.sales-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sales-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.sales-chart-legend-sales,
.sales-chart-sales-bar {
  background: #31845a;
  fill: #31845a;
}

.sales-chart-legend-profit,
.sales-chart-profit-bar {
  background: #e19a36;
  fill: #e19a36;
}

.sales-chart-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.sales-chart svg {
  display: block;
  max-width: none;
  height: auto;
}

.sales-chart-gridline {
  stroke: #e6ebe5;
  stroke-width: 1;
}

.sales-chart-axis-label {
  fill: #687368;
  font-family: inherit;
  font-size: 10px;
}

.sales-chart-note,
.sales-chart-empty {
  margin: 8px 0 0;
  color: #687368;
  font-size: 11px;
  line-height: 1.5;
}

.invoice-actions > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.whatsapp-invoice-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #168b4b;
  border-radius: 8px;
  background: #1b9b55;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.whatsapp-invoice-button:hover:not(:disabled) {
  background: #147d43;
}

.whatsapp-invoice-button:active:not(:disabled) {
  transform: scale(.98);
}

.whatsapp-invoice-button:disabled {
  cursor: wait;
  opacity: .7;
}

.whatsapp-invoice-button:focus-visible {
  outline: 3px solid #83a98f;
  outline-offset: 3px;
}

.invoice-success-message {
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid #b8d8be;
  border-radius: 10px;
  background: #edf7ee;
  color: #245b38;
  font-size: 13px;
  font-weight: 650;
}

.invoice-content {
  max-height: min(68vh, 700px);
  overflow: auto;
  color: #30372f;
}

.receipt-paper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 18px 16px;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.receipt-header {
  text-align: center;
  margin-bottom: 8px;
}

.receipt-store-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #000;
}

.receipt-legal-name {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
}

.receipt-address,
.receipt-gstin {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #000;
}

.receipt-title {
  font-size: 14px;
  font-weight: 900;
  margin-top: 8px;
  letter-spacing: 0.5px;
  color: #000;
  text-transform: uppercase;
}

.receipt-meta {
  font-size: 11.5px;
  font-weight: 700;
  margin: 6px 0;
  color: #000;
}

.receipt-meta-grid {
  display: flex;
  justify-content: space-between;
  line-height: 1.45;
}

.receipt-meta-grid .meta-left {
  text-align: left;
}

.receipt-meta-grid .meta-right {
  text-align: right;
}

.receipt-divider {
  border-top: 1.5px dashed #000;
  margin: 7px 0;
}

.receipt-table-header {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 12.5px;
  padding: 2px 0;
  color: #000;
}

.receipt-table-header .col-item {
  flex: 1;
  text-align: left;
}

.receipt-table-header .col-price {
  width: 75px;
  text-align: right;
}

.receipt-table-header .col-amount {
  width: 80px;
  text-align: right;
}

.receipt-table-header-sub {
  font-weight: 900;
  font-size: 11.5px;
  color: #000;
  text-align: left;
}

.receipt-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 3px 0;
}

.receipt-item-row {
  font-size: 12px;
  line-height: 1.35;
}

.receipt-item-line1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
}

.receipt-item-line1 .col-item-name {
  flex: 1;
  text-align: left;
  font-weight: 900;
  font-size: 12.5px;
  color: #000;
  word-break: break-word;
}

.receipt-item-line1 .col-price {
  width: 75px;
  text-align: right;
  font-weight: 800;
  font-size: 12.5px;
  color: #000;
}

.receipt-item-line1 .col-amount {
  width: 80px;
  text-align: right;
  font-weight: 900;
  font-size: 12.5px;
  color: #000;
}

.receipt-item-line2 {
  display: flex;
  justify-content: flex-start;
  color: #000;
  font-weight: 800;
  font-size: 11.5px;
  padding-left: 2px;
}

.receipt-totals-section {
  font-size: 12px;
  color: #000;
}

.receipt-calc-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  padding: 2px 0;
}

.receipt-calc-label {
  display: flex;
  justify-content: space-between;
  width: 110px;
}

.receipt-calc-val {
  text-align: right;
  font-weight: 800;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
  padding: 4px 0;
  color: #000;
}

.receipt-total-row .receipt-calc-label {
  width: 110px;
}

.receipt-total-row .receipt-calc-val {
  font-size: 17px;
  font-weight: 900;
}

.receipt-gst-section {
  margin-top: 6px;
  font-size: 11.5px;
  color: #000;
}

.receipt-gst-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-weight: 900;
  text-align: right;
  padding: 2px 0;
  color: #000;
}

.receipt-gst-header span:first-child {
  text-align: left;
}

.receipt-gst-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.receipt-gst-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: right;
  font-weight: 800;
  color: #000;
}

.receipt-gst-row span:first-child {
  text-align: left;
}

.receipt-gst-total-row {
  text-align: right;
  font-weight: 900;
  font-size: 12px;
  margin-top: 4px;
  color: #000;
}

.receipt-footer-section {
  margin-top: 8px;
  text-align: center;
}

.receipt-thank-you {
  font-weight: 800;
  font-size: 11px;
  color: #000;
}

.invoice-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #e9ede7;
  border-bottom: 1px solid #e9ede7;
}

.invoice-party h3 {
  margin: 0 0 9px;
  color: #788174;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.invoice-party strong {
  font-size: 13px;
}

.invoice-party p {
  margin: 5px 0 0;
  color: #697267;
  font-size: 11px;
  line-height: 1.5;
}

.invoice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 13px 0;
  color: #697267;
  font-size: 10px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.invoice-table th,
.invoice-table td {
  padding: 9px 7px;
  border-bottom: 1px solid #edf0eb;
  text-align: right;
  white-space: nowrap;
}

.invoice-table th:first-child,
.invoice-table td:first-child {
  text-align: left;
  white-space: normal;
}

.invoice-table th {
  background: #f7f9f6;
  color: #5f695e;
  font-size: 9px;
}

.invoice-totals {
  display: grid;
  justify-items: end;
  gap: 8px;
  padding: 16px 4px;
  font-size: 11px;
}

.invoice-totals strong {
  padding-top: 10px;
  border-top: 1px solid #dfe5dd;
  color: var(--green-dark);
  font-size: 15px;
}

.invoice-disclaimer {
  margin-top: 12px;
  color: #91988f;
  font-size: 9px;
}

.invoice-signature {
  width: 200px;
  margin: 32px 0 8px auto;
  padding-top: 8px;
  border-top: 1px solid #cfd7cc;
  color: #697267;
  font-size: 10px;
  text-align: center;
}

.subscription-dialog {
  max-height: min(760px, calc(100dvh - 30px));
  overflow-y: auto;
}

.subscription-plans {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.subscription-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  padding: 14px;
  border: 1px solid #e7ece5;
  border-radius: 11px;
  background: #fbfcfa;
}

.subscription-plan h3 {
  margin: 0;
  font-size: 13px;
}

.subscription-plan strong {
  color: var(--green);
  font-size: 19px;
}

.subscription-plan > span {
  grid-column: 1;
  color: #818a80;
  font-size: 10px;
}

.subscription-plan .add-product-button {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 112px;
  padding: 0 10px;
}

.subscription-plan .add-product-button:disabled {
  background: #aeb8ae;
  cursor: not-allowed;
}

.cancel-subscription-button {
  width: 100%;
  margin: 0 0 10px;
}

.subscription-product-lock {
  align-self: center;
  padding: 28px 12px;
  border: 1px dashed #dce5da;
  border-radius: 12px;
  background: #fbfcfa;
  color: #758075;
  font-size: 13px;
  text-align: center;
}

.subscription-cart-lock {
  min-height: 130px;
  justify-content: center;
  border: 1px dashed #dce5da;
  border-radius: 12px;
  background: #fbfcfa;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 0 17px;
  padding: 4px;
  border-radius: 9px;
  background: #f2f5f1;
}

.auth-tab {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7b8479;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #28372a12;
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-form label {
  display: grid;
  gap: 6px;
  color: #646d63;
  font-size: 10px;
  font-weight: 600;
}

.account-form input:not([type="checkbox"]),
.account-form select,
.account-form textarea {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid #e3e9e1;
  border-radius: 7px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
  resize: vertical;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.account-form input:not([type="checkbox"]):focus,
.account-form select:focus,
.account-form textarea:focus {
  border-color: #8dae95;
  box-shadow: 0 0 0 3px #2c684b14;
}

.account-form input:disabled {
  background: #f5f7f4;
  color: #90988e;
}

.billing-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  color: #646d63 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.billing-checkbox[hidden] {
  display: none !important;
}

.billing-checkbox input,
.billing-checkbox input[type="checkbox"],
.product-form .billing-checkbox input,
.account-form .billing-checkbox input {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1.5px solid #d0d7cf !important;
  border-radius: 4px !important;
  outline: none !important;
  box-shadow: none !important;
  accent-color: var(--green) !important;
  cursor: pointer;
  flex-shrink: 0 !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
}

.account-form input::placeholder,
.account-form textarea::placeholder {
  color: #aab0a9;
}

.form-footnote {
  margin: 0;
  color: #38463b;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
}

#welcome-description {
  white-space: pre-line;
}

.auth-recovery-link {
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.auth-recovery-link:hover {
  text-decoration: underline;
}

.form-error {
  min-height: 0;
  margin: 0;
  color: #a7463e;
  font-size: 10px;
  line-height: 1.4;
}

.form-error:empty {
  display: none;
}

.account-actions {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.secondary-action,
.logout-button {
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid #e5eae3;
  border-radius: 8px;
  background: #fff;
  color: #39443a;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.disconnect-button {
  width: 100%;
  margin-top: 10px;
}

.optional-label {
  color: #939b91;
  font-weight: 400;
}

.secondary-action:hover,
.logout-button:hover {
  border-color: #bfd0c1;
  background: #fafcfa;
}

.logout-button {
  color: #a34c43;
}

.account-delete-button {
  display: block;
  width: 100%;
  margin: 14px auto 4px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #b91c1c;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.15s ease;
}

.account-delete-button:hover {
  color: #991b1b;
  text-decoration-thickness: 2px;
}

.account-delete-button strong {
  font-weight: 800;
  color: #991b1b;
}

.refund-warning {
  margin: 0;
  color: #996a39;
  font-size: 9px;
  line-height: 1.5;
}

.refund-submit-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #9f493e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.refund-submit-button:hover {
  background: #863b32;
}

.refund-description {
  margin: -7px 0 17px;
  color: #818a80;
  font-size: 10px;
  line-height: 1.5;
}

dialog:not([open]),
.sales-dialog:not([open]),
.account-dialog:not([open]),
.payment-dialog:not([open]),
.catalog-dialog:not([open]),
.invoice-dialog:not([open]),
.pos-alert-dialog:not([open]),
.support-dialog-modal:not([open]) {
  display: none !important;
}

/* Merchant Support Dialog & Help Desk */
.sales-dialog.support-dialog-modal {
  width: min(680px, calc(100% - 24px));
  max-height: min(840px, calc(100dvh - 30px));
  padding: 24px 26px;
  box-sizing: border-box;
}

.sales-dialog.support-dialog-modal[open] {
  display: flex;
  flex-direction: column;
}

.support-dialog-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #ebf0ec;
  margin-bottom: 16px;
}

.support-dialog-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #606d64;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}

.support-dialog-tab:hover {
  color: #1e5e3a;
}

.support-dialog-tab.active {
  color: #1e5e3a;
  border-bottom-color: #1e5e3a;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e6f3eb;
  color: #1e5e3a;
  font-size: 11px;
  font-weight: 700;
}

.support-view-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.support-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.support-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.support-pill {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
  border: 1px solid #d5dfd8;
  background: #fff;
  color: #556358;
  cursor: pointer;
  transition: all 0.15s ease;
}

.support-pill:hover {
  background: #f2f7f4;
  color: #1e5e3a;
}

.support-pill.active {
  background: #1e5e3a;
  color: #fff;
  border-color: #1e5e3a;
}

.support-refresh-btn {
  background: #fff;
  border: 1px solid #d5dfd8;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #4b584e;
  cursor: pointer;
  transition: all 0.15s ease;
}

.support-refresh-btn:hover {
  background: #f2f7f4;
  border-color: #1e5e3a;
  color: #1e5e3a;
}

.support-tickets-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}

.merchant-ticket-card {
  border: 1px solid #dde5e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.merchant-ticket-card:hover {
  border-color: #c4d4c8;
  box-shadow: 0 3px 8px rgba(30, 94, 58, 0.06);
}

.merchant-ticket-card.expanded {
  border-color: #1e5e3a;
  box-shadow: 0 4px 12px rgba(30, 94, 58, 0.1);
}

.merchant-ticket-summary {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-summary-subject {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2d24;
  line-height: 1.35;
  flex: 1;
}

.support-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

.support-status-badge.status-open {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.support-status-badge.status-in_progress {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.support-status-badge.status-resolved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.support-status-badge.status-closed {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.ticket-summary-preview {
  margin: 0;
  font-size: 12.5px;
  color: #556258;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-admin-badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eaf4ee;
  color: #1a633a;
  border: 1px solid #cce3d4;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 3px;
}

.ticket-summary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11.5px;
  color: #7b887f;
}

.ticket-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-expand-indicator {
  font-size: 12px;
  font-weight: 700;
  color: #1e5e3a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.merchant-ticket-detail {
  padding: 16px;
  background: #f8faf8;
  border-top: 1px solid #e2eae4;
}

.support-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.support-msg {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 90%;
  word-break: break-word;
}

.support-msg-merchant {
  background: #ffffff;
  border: 1px solid #dce4de;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.support-msg-admin {
  background: #eaf5ee;
  border: 1px solid #c2e2ce;
  align-self: flex-end;
  box-shadow: 0 1px 4px rgba(30, 94, 58, 0.05);
}

.support-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.support-msg-merchant .support-msg-header {
  color: #556258;
}

.support-msg-admin .support-msg-header {
  color: #165b34;
}

.support-msg-body {
  color: #1f2d24;
  white-space: pre-wrap;
}

.support-reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e2eae4;
}

.support-reply-form textarea {
  width: 100%;
  min-height: 60px;
  max-height: 160px;
  padding: 10px 12px;
  border: 1px solid #ccd8cf;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.support-reply-form textarea:focus {
  border-color: #1e5e3a;
  box-shadow: 0 0 0 2px rgba(30, 94, 58, 0.15);
}

.support-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.support-reply-btn {
  background: #1e5e3a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.support-reply-btn:hover {
  background: #16492d;
}

.support-reply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.support-resolved-note {
  padding: 10px 12px;
  background: #edf7ef;
  border: 1px solid #cbe5d3;
  border-radius: 8px;
  font-size: 12px;
  color: #1b5e37;
  line-height: 1.4;
  margin-top: 8px;
}

.support-empty-state {
  text-align: center;
  padding: 36px 16px;
  color: #7b887f;
  font-size: 13.5px;
}

.support-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.support-form-actions button {
  flex: 1;
}


.sale-controls {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.refund-button {
  padding: 5px 8px;
  border: 1px solid #e8d6d3;
  border-radius: 7px;
  background: #fffaf9;
  color: #a04b40;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.refund-button:hover {
  border-color: #d7b6b1;
  background: #fff4f1;
}

.cancel-order-button {
  padding: 5px 8px;
  border: 1px solid #e2e8e0;
  border-radius: 7px;
  background: white;
  color: #687168;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.cancel-order-button:hover {
  border-color: #cbd4ca;
  background: #f7f9f6;
}

.dialog-total {
  margin: 9px 0 20px;
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.checkout-customer {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #edf0eb;
  border-radius: 10px;
  background: #fafcf9;
  box-sizing: border-box;
}

.checkout-customer label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #556052;
  font-size: 11px;
  font-weight: 600;
}

.checkout-customer input,
.checkout-customer select {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  box-sizing: border-box;
  transition: border-color 140ms ease;
}

.checkout-customer input:focus,
.checkout-customer select:focus {
  outline: none;
  border-color: var(--green);
}

.tax-checkout-summary {
  margin: 0;
  color: #657764;
  font-size: 10px;
  line-height: 1.5;
}

.payment-options {
  display: grid;
  gap: 9px;
}

.payment-option {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e9ede7;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.payment-option:hover {
  border-color: #b8cfbc;
  background: #fbfdfb;
}

.payment-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 700;
}

.upi-symbol {
  background: #eef3fa;
  color: #41678c;
}

.cash-symbol {
  background: #edf5ec;
  color: #47734c;
}

.card-symbol {
  background: #f7f0e9;
  color: #947248;
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.payment-option small {
  color: #929990;
  font-size: 10px;
}

.payment-arrow {
  color: #a2aaa1;
  font-size: 14px;
}

.dialog-footnote,
.sales-footnote {
  margin: 17px 0 0;
  color: #38463b;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
}

.sales-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.catalog-dialog {
  width: min(1040px, calc(100% - 24px));
  max-height: min(900px, calc(100dvh - 30px));
  box-sizing: border-box;
}

.catalog-dialog[open] {
  display: flex;
  flex-direction: column;
}

.catalog-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.catalog-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-product-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--green, #1e5e3a);
  color: #fff;
  border: 0;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(30, 94, 58, 0.2);
}

.add-product-toggle-btn:hover {
  background: var(--green-dark, #16492d);
  box-shadow: 0 3px 8px rgba(30, 94, 58, 0.3);
}

.add-product-toggle-btn.active {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: none;
}

.add-product-container {
  flex-shrink: 0;
  margin-bottom: 14px;
}

.add-product-container[hidden] {
  display: none !important;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebf0ec;
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 440px;
}

.catalog-search-icon {
  position: absolute;
  left: 12px;
  pointer-events: none;
  font-size: 13px;
  opacity: 0.55;
}

.catalog-search-input {
  width: 100%;
  min-height: 38px;
  padding: 6px 12px 6px 36px;
  border: 1px solid #d4ded6;
  border-radius: 8px;
  font-size: 13.5px;
  background: #fff;
  color: #19251d;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-search-input:focus {
  border-color: #1e5e3a;
  box-shadow: 0 0 0 2px rgba(30, 94, 58, 0.15);
}

.catalog-product-count {
  font-size: 13px;
  font-weight: 600;
  color: #556257;
  white-space: nowrap;
}

.product-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe6de;
  border-radius: 11px;
  background: #fafdfa;
  box-sizing: border-box;
}

.product-form[hidden] {
  display: none !important;
}

.product-form label:not(.billing-checkbox) {
  display: grid;
  gap: 6px;
  color: #646d63;
  font-size: 10px;
  font-weight: 600;
}

.product-form label.billing-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  color: #646d63 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.product-form input:not([type="checkbox"]),
.product-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid #e3e9e1;
  border-radius: 7px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 11px;
}

.product-form input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1.5px solid #d0d7cf !important;
  border-radius: 4px !important;
  outline: none !important;
  box-shadow: none !important;
  accent-color: var(--green) !important;
  cursor: pointer;
  flex-shrink: 0 !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
}

.product-form select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #e3e9e1;
  border-radius: 7px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 11px;
}

.product-form input:focus,
.product-form textarea:focus,
.product-form select:focus {
  border-color: #8dae95;
  box-shadow: 0 0 0 3px #2c684b14;
}

.product-form input::placeholder,
.product-form textarea::placeholder {
  color: #aab0a9;
}

.product-form small {
  color: #818a80;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

.product-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 10px;
}

.product-form-row.product-category-row {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.product-form-row.product-discount-row {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
}

.product-stock-quantity-field > span {
  display: block;
}

.add-product-button {
  min-height: 39px;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.add-product-button:hover {
  background: var(--green-dark);
}

.catalog-list {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-top: 4px;
}

.catalog-product-item {
  border: 1px solid #e1e7e2;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.catalog-product-item:hover {
  border-color: #bcd2c1;
  box-shadow: 0 3px 8px rgba(30, 94, 58, 0.06);
}

.catalog-product-item.is-editing {
  border: 2px solid #1e5e3a;
  background: #fbfdfb;
  box-shadow: 0 4px 16px rgba(30, 94, 58, 0.12);
}

.catalog-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  flex-wrap: wrap;
}

.catalog-product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.catalog-product-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2ece4;
  background: #f4f7f4;
  flex-shrink: 0;
}

.catalog-product-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #f0f4f1;
}

.catalog-product-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.catalog-product-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-product-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #19251d;
  margin: 0;
}

.catalog-badge-hidden {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
  border: 1px solid #fecaca;
}

.catalog-badge-category {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #edf5ef;
  color: #1e5e3a;
  font-weight: 700;
  border: 1px solid #d4e6d8;
}

.catalog-price-highlight {
  font-size: 14.5px;
  font-weight: 800;
  color: #19251d;
}

.catalog-product-meta {
  font-size: 12.5px;
  color: #4b584e;
  line-height: 1.5;
  margin: 0;
}

.catalog-product-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.catalog-edit-button {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #1e5e3a;
  background: #1e5e3a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.catalog-edit-button:hover {
  background: #16492d;
  border-color: #16492d;
}

.catalog-product-item.is-editing .catalog-edit-button {
  background: #fff;
  color: #b91c1c;
  border-color: #fca5a5;
}

.catalog-product-item.is-editing .catalog-edit-button:hover {
  background: #fee2e2;
}

.catalog-tax-button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d0ded3;
  background: #fff;
  color: #374151;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.catalog-tax-button:hover {
  background: #f4f8f5;
  border-color: #b0c9b6;
  color: #1e5e3a;
}

.remove-product-button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #fed7d7;
  background: #fff;
  color: #c53030;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.remove-product-button:hover {
  background: #fff5f5;
  border-color: #feb2b2;
}

/* Inline Edit Slot right below selected product */
.catalog-product-edit-slot {
  width: 100%;
  box-sizing: border-box;
}

.catalog-product-edit-slot:not(:empty) {
  padding: 0 14px 14px;
  border-top: 1px dashed #cde0d2;
  margin-top: 4px;
}

.product-quantity-dialog .account-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e3e9e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.product-quantity-dialog .account-form input[type="number"] {
  font-size: 20px;
  font-weight: 650;
}

.catalog-product-name {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-product-meta {
  margin: 0;
  color: #929990;
  font-size: 9px;
}

.remove-product-button {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: #fbf1ef;
  color: #a5574b;
  font-size: 9px;
  cursor: pointer;
}

.remove-product-button:hover {
  background: #f7e5e1;
}

.sales-dialog-heading .eyebrow {
  margin-bottom: 7px;
}

.sales-dialog h2 {
  margin-bottom: 0;
}

.sales-list {
  max-height: min(58vh, 580px);
  overflow-y: auto;
}

.sales-empty {
  padding: 28px 10px;
  border: 1px dashed #e2e8e0;
  border-radius: 10px;
  color: #899187;
  font-size: 11px;
  text-align: center;
}

.sale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eff1ee;
}

.sale-row:last-child {
  border-bottom: 0;
}

.sale-reference {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.sale-meta {
  margin: 0;
  color: #91988f;
  font-size: 10px;
}

.sale-customer {
  margin: 5px 0 0;
  color: #687168;
  font-size: 10px;
}

.sale-amount {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 24px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid #315e43;
  border-radius: 10px;
  background: #243d2e;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (min-width: 1450px) {
  .workspace {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 22px;
    padding-right: 3.5%;
    padding-left: 3.5%;
  }

  .product-grid,
  .category-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 10px;
  }

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

  .online-shop-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .subscription-gate:not(.show-online-shop-slide) > .online-shop-hero-slide {
    display: none !important;
  }

  .subscription-gate.show-online-shop-slide > .online-shop-hero-slide {
    display: grid !important;
    position: relative;
    inset: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-right: clamp(32px, 7vw, 88px);
    padding-left: clamp(32px, 7vw, 88px);
  }

  .subscription-gate.show-online-shop-slide {
    min-height: calc(100vh - 72px);
    overflow: visible;
    padding: 0;
  }

  .online-shop-hero-slide .online-shop-demo {
    width: 100%;
    min-height: 0;
    padding-bottom: 24px;
  }

  .online-shop-hero-slide .online-shop-copy {
    max-width: 720px;
  }

  .online-shop-hero-slide .online-shop-copy h2 {
    max-width: 700px;
    font-size: clamp(32px, 4vw, 42px);
  }

  .online-shop-hero-slide .online-shop-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
  }

  .online-shop-hero-slide .online-shop-steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .online-shop-hero-slide .online-shop-steps p {
    font-size: 12px;
  }

  .online-shop-copy {
    max-width: 720px;
  }

  .online-shop-demo {
    width: 100%;
    max-width: 700px;
    justify-self: center;
  }
}

@media (min-width: 1051px) and (max-height: 860px) {
  .subscription-gate.show-online-shop-slide {
    min-height: calc(100vh - 72px);
    overflow: visible;
    padding: 0;
  }

  .subscription-gate.show-online-shop-slide > .online-shop-hero-slide {
    position: relative;
    inset: auto;
    min-height: calc(100vh - 72px);
    align-items: center;
    padding: 24px clamp(24px, 4vw, 60px) 68px;
    gap: 28px;
  }

  .online-shop-hero-slide .online-shop-copy h2 {
    font-size: clamp(26px, 2.8vw, 38px);
    margin: 0 0 8px;
  }

  .online-shop-hero-slide .online-shop-intro {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .online-shop-hero-slide .online-shop-steps {
    gap: 10px;
    margin: 12px 0 14px;
  }

  .online-shop-hero-slide .online-shop-demo {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body {
    background: #fff;
    --mobile-topbar-height: 60px;
  }

  body.merchant-signed-in {
    --mobile-topbar-height: 104px;
  }

  .topbar {
    position: sticky;
    z-index: 2;
    top: 0;
    height: calc(var(--mobile-topbar-height) + env(safe-area-inset-top));
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: repeat(2, minmax(36px, 1fr));
    grid-template-areas:
      "brand account"
      "actions store";
    gap: 8px 10px;
    padding: env(safe-area-inset-top) 12px 0;
  }

  body:not(.merchant-signed-in) .topbar {
    grid-template-rows: 1fr;
    grid-template-areas: "brand account";
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    gap: 7px;
    font-size: 19px;
    letter-spacing: -0.9px;
    font-weight: 800;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 20px;
    letter-spacing: -1.6px;
    padding: 0 1px 2px 0;
  }

  .topbar-actions {
    grid-area: actions;
    justify-self: start;
    margin: 0;
  }

  .store-switcher {
    grid-area: store;
    justify-self: end;
    max-width: 100%;
    margin: 0;
  }

  .topbar-account-actions {
    grid-area: account;
    justify-self: end;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  .topbar-contact-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .topbar-contact-button span {
    display: none;
  }

  .topbar-contact-button .whatsapp-icon {
    width: 18px;
    height: 18px;
    margin: 0;
  }

  .mobile-cart-shortcut:not([hidden]) {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--green);
    border-radius: 9px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .mobile-cart-shortcut svg {
    width: 17px;
    height: 17px;
  }

  .topbar .account-button,
  .account-button {
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
  }

  @keyframes cart-bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.26); }
    50% { transform: scale(0.92); }
    75% { transform: scale(1.12); }
    100% { transform: scale(1); }
  }

  .cart-added-pulse {
    animation: cart-bounce 0.52s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }

  .cart-added-toast {
    position: fixed;
    z-index: 1000;
    top: calc(var(--mobile-topbar-height, 60px) + 8px + env(safe-area-inset-top));
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #1b4d35;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    animation: toast-slide-down 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
    pointer-events: auto;
    cursor: pointer;
  }

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

  .mobile-cart-shortcut:focus-visible {
    outline: 3px solid #9bd4b2;
    outline-offset: 3px;
  }

  .mobile-cart-shortcut svg {
    width: 17px;
    height: 17px;
  }

  .mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    padding: 0 3px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d64236;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-cart-dialog .cart-panel {
    width: 100%;
    height: min(82dvh, 720px);
    min-height: 0;
    max-height: calc(100dvh - 32px);
  }

  .mobile-cart-dialog .mobile-cart-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e1e7e0;
    border-radius: 8px;
    background: #fff;
    color: #314238;
    font-size: 22px;
    cursor: pointer;
  }

  .home-section {
    padding: 58px 22px;
  }

  .feature-grid,
  .how-steps,
  .about-section {
    grid-template-columns: 1fr;
  }

  .how-steps {
    gap: 16px;
    margin-bottom: 26px;
  }

  .how-steps li {
    min-height: 0;
    gap: 16px;
    padding: 22px;
  }

  .feature-card {
    min-height: 0;
  }

  .online-shop-section {
    gap: 30px;
  }

  .online-shop-copy h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .online-shop-demo {
    min-height: 0;
  }

  .how-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .public-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 22px calc(28px + env(safe-area-inset-bottom));
  }

  .footer-brand-col {
    max-width: 100%;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-contact,
  .footer-social-ai {
    justify-self: start;
    min-width: 0;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  .topbar-actions .customer-orders-button,
  .topbar-actions .manage-catalog-button {
    height: 32px;
    padding: 0 9px;
    font-size: 11px;
    gap: 5px;
    border-radius: 8px;
  }

  .topbar-actions .customer-orders-label {
    display: none;
  }

  .topbar-actions .customer-orders-button::after {
    content: "Orders";
  }

  .subscription-gate {
    min-height: calc(100dvh - var(--mobile-topbar-height, 60px) - env(safe-area-inset-top));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    padding: 24px 18px 48px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .subscription-gate.show-online-shop-slide {
    min-height: calc(100dvh - var(--mobile-topbar-height, 60px) - env(safe-area-inset-top));
    display: block;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .subscription-gate:not(.show-online-shop-slide) > .online-shop-hero-slide {
    display: none !important;
  }

  .subscription-gate.show-online-shop-slide > .online-shop-hero-slide {
    display: grid !important;
    position: relative;
    inset: auto;
    align-content: start;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
    overflow: visible;
    padding: 14px 16px 44px;
  }

  .online-shop-hero-slide .online-shop-copy h2 {
    font-size: clamp(23px, 6.5vw, 32px);
    line-height: 1.18;
    margin: 0 0 6px;
  }

  .online-shop-hero-slide .online-shop-intro {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .online-shop-hero-slide .online-shop-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 8px 0 10px;
  }

  .online-shop-hero-slide .online-shop-steps li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .online-shop-hero-slide .online-shop-steps li > span {
    width: 26px;
    height: 26px;
    font-size: 10.5px;
  }

  .online-shop-hero-slide .online-shop-steps h3 {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .online-shop-hero-slide .online-shop-steps p {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .online-shop-hero-slide .online-shop-demo {
    min-height: 0;
  }

  .home-carousel-controls {
    bottom: 12px;
  }

  .welcome-entry-actions {
    position: relative;
    top: auto;
    right: auto;
    order: unset;
    align-self: stretch;
    width: 100%;
    margin-bottom: 0;
    padding: 13px 16px;
    gap: 12px;
  }

  .welcome-entry-actions .gate-action {
    min-height: 42px;
    padding: 9px 18px;
    font-size: 14px;
  }

  .subscription-gate > div:not(.welcome-visual) {
    max-width: 100%;
  }

  .subscription-gate h1 {
    max-width: 520px;
    font-size: clamp(28px, 6vw, 40px);
    letter-spacing: -1.4px;
  }

  .welcome-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-top: 6px;
    pointer-events: auto;
  }

  .welcome-orbit,
  .welcome-visual .produce-float {
    display: none !important;
  }

  .counter-preview {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 440px;
    margin: 8px auto 0;
    padding: 12px;
    border-radius: 17px;
    transform: none;
  }

  .preview-greeting {
    margin: 9px 0 7px;
    font-size: 12px;
  }

  .preview-product {
    gap: 7px;
    padding: 4px 7px;
  }

  .preview-product-icon {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .preview-product strong {
    font-size: 9px;
    white-space: nowrap;
  }

  .preview-product small {
    display: none;
  }

  .preview-checkout {
    margin-top: 7px;
    padding: 8px;
    font-size: 9px;
  }

  .preview-float {
    right: -4%;
    bottom: 1%;
    gap: 7px;
    padding: 9px 11px 9px 8px;
  }

  .preview-float-check {
    width: 25px;
    height: 25px;
  }

  .preview-float strong {
    font-size: 9px;
  }

  .preview-float small {
    font-size: 8px;
  }

  .preview-float {
    display: none;
  }

  .sales-dialog,
  .catalog-dialog {
    width: calc(100% - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .sales-report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 11px;
    box-sizing: border-box;
    width: 100%;
  }

  .sales-report-filters label {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sales-report-filters label:first-child {
    grid-column: 1 / -1;
  }

  .sales-report-filters input[type="date"] {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
    font-size: 11px;
    -webkit-appearance: none;
    appearance: none;
  }

  .sales-report-actions {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
  }

  .sales-report-actions .download-report-btn {
    grid-column: 1 / -1;
  }

  .sales-report-actions .secondary-action {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
    padding: 0 8px !important;
    justify-content: center !important;
  }

  .sales-report-summary {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .sales-chart-card {
    min-width: 0;
    padding: 10px;
  }

  .sales-chart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .sales-chart-legend {
    gap: 10px;
    font-size: 10px;
  }

  .sales-chart-scroll {
    width: 100%;
    overflow-x: hidden;
  }

  .sales-chart,
  .sales-chart svg {
    width: 100%;
    max-width: 100%;
  }

  .sales-chart svg {
    height: auto;
  }

  .sale-row {
    align-items: flex-start;
    gap: 8px;
  }

  .sale-controls {
    flex-shrink: 0;
  }

  .invoice-parties {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .invoice-table {
    min-width: 600px;
  }

  .invoice-actions .secondary-action {
    padding: 8px;
  }

  .subscription-gate::before {
    width: 92vw;
    right: -34%;
    top: 17%;
  }

  .subscription-gate::after {
    width: 65vw;
    right: -20%;
    top: 25%;
  }

  .subscription-gate h1 {
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: -1.2px;
  }

  .subscription-gate.is-locked {
    min-height: unset;
    align-items: stretch;
    gap: 14px;
    margin: 12px 14px 0;
    padding: 16px;
  }

  .subscription-gate.is-locked h1 {
    font-size: 20px;
  }

  .subscription-gate.is-locked .gate-action {
    width: 100%;
  }

  .subscription-gate.is-locked .welcome-entry-actions {
    order: 0;
    align-self: stretch;
    margin-bottom: 0;
  }

  .brand {
    gap: 9px;
    font-size: 24px;
    flex-shrink: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 26px;
  }

  .store-switcher {
    margin: 0;
    padding: 4px 7px 4px 5px;
    font-size: 11px;
    max-width: clamp(100px, 28vw, 150px);
  }

  .store-name {
    max-width: clamp(65px, 20vw, 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-button {
    margin-left: 0;
    padding: 8px 10px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .manage-catalog-button {
    padding: 8px;
    font-size: 10px;
  }

  .store-avatar {
    width: 25px;
    height: 25px;
  }

  .install-button {
    padding: 8px;
    font-size: 10px;
  }

  .install-button[hidden] {
    display: none;
  }

  .workspace {
    min-height: unset;
    display: flex;
    flex-direction: column;
    gap: 21px;
    padding: 26px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .page-heading {
    margin-bottom: 20px;
  }

  .page-heading .eyebrow {
    margin-bottom: 7px;
  }

  .page-heading h1 {
    max-width: 250px;
    font-size: 23px;
  }

  .subtitle {
    max-width: 220px;
    font-size: 11px;
  }

  .customer-orders-button {
    gap: 6px;
    padding: 9px;
    font-size: 11px;
  }

  .search-box {
    height: 44px;
  }

  .search-box kbd {
    display: none;
  }

  .category-list {
    top: calc(var(--mobile-topbar-height, 60px) + env(safe-area-inset-top));
    background: #fff;
    margin: 12px -18px 16px;
    padding: 8px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }

  .section-label {
    scroll-margin-top: calc(var(--mobile-topbar-height, 60px) + 58px + env(safe-area-inset-top));
  }

  #product-grid,
  .product-grid-container {
    gap: 18px;
  }

  .category-block {
    gap: 8px;
    scroll-margin-top: calc(var(--mobile-topbar-height) + 58px + env(safe-area-inset-top));
  }

  .product-grid,
  .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    min-height: 160px;
    padding: 10px 8px 8px;
    border-radius: 12px;
  }

  .product-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    font-size: 24px;
    border-radius: 10px;
    margin-bottom: 4px;
  }

  .product-name {
    font-size: 12.5px;
    line-height: 1.25;
    min-height: 30px;
  }

  .product-qty {
    font-size: 10.5px;
  }

  .product-price {
    font-size: 12.5px;
  }

  .cart-lines {
    padding: 3px 16px;
    column-gap: 7px;
  }

  .cart-panel {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    border-radius: 12px;
    box-shadow: none;
    scroll-margin-top: calc(var(--mobile-topbar-height, 60px) + env(safe-area-inset-top) + 10px);
  }

  .cart-heading {
    padding: 16px;
  }

  .cart-heading .eyebrow {
    font-size: 8px;
  }

  .cart-content {
    max-height: 280px;
  }

  .empty-cart {
    min-height: 177px;
  }

  .cart-lines {
    padding: 3px 16px;
  }

  .checkout-area {
    padding: 14px 16px 15px;
    border-radius: 0 0 12px 12px;
  }

  .toast {
    left: 50%;
    right: auto;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(8px);
  }

  .toast.visible {
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .online-delivery-stage * {
    animation: none !important;
  }
}

.print-container {
  display: none !important;
}

@media print {
  @page {
    margin: 4mm;
    size: auto;
  }

  html,
  body {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Completely REMOVE the entire web app, dialogs, banners, and overlays from layout */
  .app-shell,
  dialog,
  .toast,
  .offline-banner,
  .welcome-visual {
    display: none !important;
  }

  /* Show ONLY the dedicated print container */
  .print-container {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  /* Thermal roll receipt styling (80mm / 78mm) */
  .print-container:not(.printing-a4) .receipt-paper {
    width: 76mm !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #000 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* A4 paper styling */
  .print-container.printing-a4 .receipt-paper {
    width: 100% !important;
    max-width: 180mm !important;
    margin: 4mm auto !important;
    padding: 8mm 10mm !important;
    border: 1px solid #c2cdc4 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #000 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-container.printing-a4 .receipt-store-name {
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }

  .print-container.printing-a4 .receipt-legal-name,
  .print-container.printing-a4 .receipt-address,
  .print-container.printing-a4 .receipt-gstin {
    font-size: 11px !important;
  }

  .print-container.printing-a4 .receipt-title {
    font-size: 13px !important;
    margin-top: 8px !important;
  }

  .print-container.printing-a4 .receipt-meta,
  .print-container.printing-a4 .receipt-table-header,
  .print-container.printing-a4 .receipt-item-row,
  .print-container.printing-a4 .receipt-totals-section,
  .print-container.printing-a4 .receipt-gst-section,
  .print-container.printing-a4 .receipt-paymode {
    font-size: 11.5px !important;
  }

  .print-container.printing-a4 .receipt-total-val {
    font-size: 15px !important;
  }
}

@media (max-width: 370px) {
  .topbar .store-switcher {
    padding: 4px;
  }

  .topbar .store-name,
  .topbar .store-chevron {
    display: none;
  }

  .topbar .account-button {
    padding: 0 8px;
    font-size: 10px;
  }

  .topbar .install-button {
    width: 30px;
    padding: 0;
  }

  .install-button-label {
    display: none;
  }

  .install-button-icon {
    display: inline;
    font-size: 16px;
  }

  .workspace {
    padding-right: 13px;
    padding-left: 13px;
  }

  .category-list {
    margin-right: -13px;
    margin-left: -13px;
    padding-right: 13px;
    padding-left: 13px;
  }
}

.form-footnote,
.dialog-footnote,
.sales-footnote,
.refund-description,
.secure-note,
.subscription-plan > span,
.product-form small,
.payment-option small {
  color: #314238;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
}

.form-error {
  color: #9c3028;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.refund-warning {
  color: #80501d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.account-form label,
.product-form label:not(.billing-checkbox),
.checkout-customer label,
.sales-report-filters label {
  color: #485348;
  font-size: 14px;
}

.toast {
  font-size: 15px;
  line-height: 1.5;
}

.sales-dialog .sales-report-filters input,
.sales-dialog .sales-report-filters select {
  height: 44px;
  font-size: 15px;
}

.sales-dialog .sales-report-filters input[type="date"] {
  font-size: 14px;
}

.sales-dialog .sales-report-filters label {
  font-size: 14px;
}

.sales-dialog .sales-report-actions .secondary-action {
  min-height: 44px;
  font-size: 14px;
}

.sales-dialog .sales-report-summary {
  font-size: 14px;
}

.sales-dialog .sales-empty {
  font-size: 14px;
}

.sales-dialog .sale-reference {
  font-size: 15px;
}

.sales-dialog .sale-meta,
.sales-dialog .sale-customer {
  font-size: 13px;
}

.sales-dialog .sale-amount {
  font-size: 16px;
}

.sales-dialog .sale-controls button {
  min-height: 40px;
  padding: 7px 10px;
  font-size: 13px;
}

.catalog-dialog .product-form input:not([type="checkbox"]),
.catalog-dialog .product-form textarea,
.catalog-dialog .product-form select {
  min-height: 44px;
  font-size: 15px;
}

.catalog-dialog .product-form textarea {
  min-height: 96px;
}

.catalog-dialog .product-form .billing-checkbox {
  font-size: 14px !important;
}

.catalog-dialog .product-form .add-product-button,
.catalog-dialog .product-form .secondary-action {
  min-height: 44px;
  font-size: 15px;
}

.catalog-dialog .catalog-product-name {
  font-size: 15px;
}

.catalog-dialog .catalog-product-meta {
  font-size: 12px;
  line-height: 1.5;
}

.auth-terms-consent {
  width: 100% !important;
  align-items: flex-start !important;
  font-size: 13px !important;
  line-height: 1.5;
}

.auth-terms-consent input {
  margin-top: 2px !important;
}

.auth-terms-consent a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .product-form-row,
  .product-form-row.product-category-row,
  .product-form-row.product-discount-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.catalog-dialog .catalog-product-actions button {
  min-height: 40px;
  padding: 7px 11px;
  font-size: 13px;
}

#account-dialog .account-form label,
#billing-dialog .account-form label,
#printer-settings-dialog .account-form label,
#payments-dialog .account-form label,
#support-dialog .account-form label {
  font-size: 15px;
}

#account-dialog .account-form input:not([type="checkbox"]),
#account-dialog .account-form select,
#account-dialog .account-form textarea,
#billing-dialog .account-form input:not([type="checkbox"]),
#billing-dialog .account-form select,
#billing-dialog .account-form textarea,
#printer-settings-dialog .account-form input:not([type="checkbox"]),
#printer-settings-dialog .account-form select,
#printer-settings-dialog .account-form textarea,
#payments-dialog .account-form input:not([type="checkbox"]),
#payments-dialog .account-form select,
#payments-dialog .account-form textarea,
#support-dialog .account-form input:not([type="checkbox"]),
#support-dialog .account-form select,
#support-dialog .account-form textarea {
  font-size: 15px;
}

#account-dialog .auth-tab,
#account-dialog .auth-recovery-link,
#account-dialog .account-actions button,
#account-dialog .account-form .add-product-button,
#account-dialog .account-form .secondary-action,
#billing-dialog .account-form button,
#printer-settings-dialog .account-form button,
#payments-dialog .account-form button,
#payments-dialog .disconnect-button,
#support-dialog .account-form button,
#subscription-dialog button {
  font-size: 15px;
}

#account-dialog .form-footnote,
#billing-dialog .form-footnote,
#printer-settings-dialog .form-footnote,
#subscription-dialog .form-footnote,
#payments-dialog .form-footnote,
#support-dialog .sales-footnote {
  font-size: 14px;
}

#subscription-dialog .subscription-plan h3 {
  font-size: 16px;
}

#subscription-dialog .subscription-plan > span {
  font-size: 14px;
}

.pos-alert-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(18, 30, 21, 0.32);
  overflow: hidden;
  z-index: 2147483640;
}

.pos-alert-dialog::backdrop {
  background: rgba(18, 30, 21, 0.6);
  backdrop-filter: blur(2px);
}

.pos-alert-card {
  padding: 26px 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pos-alert-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 12px;
}

.pos-alert-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: #1a251e;
  letter-spacing: -0.3px;
}

.pos-alert-message {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #314238;
  background: #fdf5f5;
  border: 1px solid #fed7d7;
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  word-break: break-word;
}

/* Status variants for alert modal */
.pos-alert-card.is-success .pos-alert-message {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.pos-alert-card.is-warning .pos-alert-message {
  background: #fdf5f5;
  border-color: #fed7d7;
  color: #991b1b;
}

.pos-alert-card.is-info .pos-alert-message {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #075985;
}

.pos-alert-ok {
  min-height: 42px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  background: #1e5e3a;
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pos-alert-ok:hover {
  background: #16492d;
}

.storefront-badge-cod-unpaid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff4e5;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
}

.storefront-badge-cod-paid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
}

.storefront-customer-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.storefront-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.storefront-contact-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.storefront-contact-wa {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.storefront-contact-wa:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.storefront-order-cancelled-reason {
  margin: 6px 0;
  padding: 6px 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 600;
}

.storefront-order-seller-note {
  margin: 6px 0;
  padding: 6px 10px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 6px;
  color: #166534;
  font-size: 11.5px;
}

.storefront-print-slip-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 600;
}

.storefront-print-slip-btn:hover {
  background: #f1f5f9;
}

/* ============================================================
   CONTACT US (DIRECT TO FOUNDER WHATSAPP & PHONE)
   ============================================================ */

.topbar-contact-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.08);
}

.topbar-contact-button .whatsapp-icon {
  width: 17px;
  height: 17px;
  color: #16a34a;
  flex-shrink: 0;
  transition: transform 150ms ease;
}

.topbar-contact-button:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #14532d;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22, 101, 52, 0.15);
}

.topbar-contact-button:hover .whatsapp-icon {
  transform: scale(1.12);
}

.topbar-contact-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.08);
}

/* Contact Us Dialog Modal */
.contact-dialog-modal {
  width: min(480px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.contact-dialog-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.contact-dialog-card {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.contact-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.contact-dialog-title-wrap h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.contact-dialog-desc {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.contact-buyer-notice {
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.45;
}

.contact-buyer-notice strong {
  color: #0f172a;
}

/* Topic Pills */
.contact-topics-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-topics-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-topic-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}

.contact-topic-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.contact-topic-pill.active {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
}

/* Action Cards */
.contact-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 150ms ease;
  border: 1px solid transparent;
}

.contact-card-whatsapp {
  background: #f0fdf4;
  border-color: #86efac;
}

.contact-card-whatsapp:hover {
  background: #dcfce7;
  border-color: #4ade80;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.18);
}

.contact-card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-right: 13px;
}

.contact-card-icon-wrap.whatsapp-bg {
  background: #25D366;
  color: #ffffff;
}

.contact-card-icon-wrap.call-bg {
  background: #e0f2fe;
  color: #0284c7;
}

.contact-card-icon-wrap.email-bg {
  background: #f1f5f9;
  color: #475569;
}

.contact-card-call {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.contact-card-call:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.contact-card-email {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.contact-card-email:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.contact-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #15803d;
  text-transform: uppercase;
}

.contact-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.contact-card-sub {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card-arrow {
  font-size: 18px;
  font-weight: 700;
  color: #15803d;
  margin-left: 8px;
}

.contact-card-badge {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}



/* Store Map Location Settings UI */
.store-location-setting-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  margin-top: 4px;
  margin-bottom: 4px;
}

.store-location-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.store-location-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.store-location-optional-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.store-location-hint {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.store-location-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-location-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
  border: 1px solid transparent;
}

.btn-detect-gps {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.btn-detect-gps:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}

.store-location-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.store-location-status-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.store-location-pin-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.store-location-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.store-location-status-text strong {
  font-size: 12.5px;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-location-preview-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #166534;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-remove-location {
  background: none;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 120ms ease;
}

.btn-remove-location:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.store-location-input-wrap input {
  font-size: 12px !important;
  padding: 8px 10px !important;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}


/* ============================================================
   BIOMETRIC / FACE ID / TOUCH ID AUTHENTICATION
   ============================================================ */

.biometric-settings-card {
  margin: 18px 0 14px;
  padding: 16px;
  border-radius: 14px;
  background: #f8faf9;
  border: 1px solid #e1e9e2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.biometric-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.biometric-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  flex-shrink: 0;
}

.biometric-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.biometric-card-info strong {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.biometric-card-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.biometric-card-action {
  display: flex;
  justify-content: flex-end;
}

.btn-biometric-toggle {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  transition: all 120ms ease;
}

.btn-biometric-toggle:hover {
  background: #f1f5f9;
}

.btn-danger-outline {
  border-color: #fecdd3 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
}

.btn-danger-outline:hover {
  background: #ffe4e6 !important;
}

.biometric-login-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.biometric-login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.biometric-login-divider::before,
.biometric-login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.biometric-login-divider span {
  padding: 0 10px;
}

.biometric-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}

.biometric-login-button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.biometric-login-button svg {
  color: #059669;
}

/* ==========================================================================
   AI Overview Dialog (Telnyx-style instant AI answer with prompt and results)
   ========================================================================== */
.ai-overview-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(88dvh, 820px);
  padding: 0;
  border: 1px solid #2d3531;
  border-radius: 20px;
  background: #141716;
  color: #e5eee8;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.ai-overview-dialog::backdrop {
  background: rgba(10, 14, 12, 0.75);
  backdrop-filter: blur(8px);
}

.ai-modal-card {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 820px);
  background: #141716;
}

.ai-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #242c28;
  gap: 12px;
}

.ai-model-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-model-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #2b3530;
  background: #1c2320;
  color: #a2b2a7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-model-tab:hover {
  background: #252e2a;
  color: #ffffff;
}

.ai-model-tab.active {
  background: #2a3730;
  border-color: #3b5245;
  color: #ffffff;
  box-shadow: 0 0 0 1px #3b5245;
}

.ai-tab-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.ai-badge-chatgpt { background: #10a37f; }
.ai-badge-claude { background: #d97757; }
.ai-badge-gemini { background: #4285f4; }

.ai-modal-close {
  background: transparent;
  border: 0;
  color: #8c9d92;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.ai-modal-close:hover {
  color: #ffffff;
  background: #252e2a;
}

.ai-prompt-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 20px 8px;
  padding: 12px 16px;
  background: #1c2320;
  border: 1px solid #2a3530;
  border-radius: 14px;
}

.ai-prompt-icon {
  color: #72877a;
  margin-top: 2px;
  flex-shrink: 0;
}

.ai-prompt-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #e5eee8;
  font-weight: 500;
}

.ai-response-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #cfdad2;
}

.ai-lead-text {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #dbe7df;
}

.ai-hl-blue {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.ai-section-title {
  margin: 22px 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.ai-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-bullet-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}

.ai-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 3px;
  top: 0;
  color: #38bdf8;
  font-size: 18px;
  line-height: 1.4;
}

.ai-bullet-list strong {
  color: #ffffff;
  font-weight: 600;
}

.ai-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #233128;
  color: #86efac;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

.ai-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 16px;
  border-top: 1px solid #242c28;
  background: #171b19;
  gap: 12px;
}

.ai-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid #323d37;
  background: #1f2723;
  color: #cfdad2;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-copy-btn:hover {
  background: #28332d;
  color: #ffffff;
  border-color: #3f4e46;
}

.ai-launch-external-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ai-launch-external-btn:hover {
  background: #173b2a;
  transform: translateY(-1px);
}


/* ==========================================================================
   Interactive Live Demo Counter Sandbox
   ========================================================================== */

.demo-sandbox-bar {
  position: sticky;
  top: 0;
  z-index: 250;
  background: #0d281a;
  color: #e2f5ea;
  border-bottom: 1.5px solid #1e5939;
  padding: 8px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.demo-sandbox-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.demo-bar-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #4ade80;
  font-size: 12px;
}

.demo-bar-store {
  color: #a7f3d0;
  font-size: 12px;
}

.demo-bar-store em {
  font-style: normal;
  font-weight: 700;
  color: #ffffff;
}

.demo-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: demoPulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
  flex-shrink: 0;
}

@keyframes demoPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.demo-bar-hint {
  font-size: 12.5px;
  color: #d1fae5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-bar-orders-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #14532d;
  color: #f0fdf4;
  border: 1px solid #22c55e;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.demo-bar-orders-btn:hover {
  background: #166534;
  border-color: #4ade80;
  transform: translateY(-1px);
}

.demo-bar-orders-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.2;
}

.storefront-view-bill-btn {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border-color: #86efac !important;
  font-weight: 700 !important;
}

.storefront-view-bill-btn:hover {
  background: #dcfce7 !important;
  border-color: #4ade80 !important;
}

.demo-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.demo-bar-claim-btn {
  background: #22c55e;
  color: #052e16;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.demo-bar-claim-btn:hover {
  background: #4ade80;
  transform: translateY(-1px);
}

.demo-bar-exit-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #e2f5ea;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.demo-bar-exit-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Topbar Live Demo Button */
body.merchant-signed-in .topbar-demo-button,
.topbar-demo-button[hidden] {
  display: none !important;
}

.topbar-demo-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid #22c55e;
  background: #f0fdf4;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-demo-button:hover {
  background: #dcfce7;
  border-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22, 101, 52, 0.15);
}

.topbar-demo-icon {
  font-size: 13px;
}

/* Hero CTA Live Demo Button */
.hero-demo-callout {
  margin-top: 14px;
}

.btn-live-demo-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #15803d 0%, #0d3822 100%);
  border: 1.5px solid #22c55e;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.25);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.btn-live-demo-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.35);
  border-color: #4ade80;
  background: linear-gradient(135deg, #16a34a 0%, #0f4429 100%);
}

.demo-bolt-icon {
  font-size: 22px;
  line-height: 1;
}

.demo-btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.demo-btn-text strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #f0fdf4;
  letter-spacing: -0.2px;
}

.demo-btn-text small {
  font-size: 12px;
  color: #bbf7d0;
  font-weight: 500;
}

.demo-live-pill {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: #22c55e;
  color: #052e16;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Hero preview interactive trigger */
.preview-checkout#preview-demo-trigger {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.preview-checkout#preview-demo-trigger:hover {
  transform: scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* How Section CTA Group */
.how-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.home-demo-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid #2e7d52;
  background: transparent;
  color: #1e5e3a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-demo-button:hover {
  background: #e8f5ed;
  border-color: #1b5334;
  transform: translateY(-1px);
}

/* Receipt Conversion Banner */
.demo-receipt-conversion-banner {
  margin: 10px 0 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  text-align: center;
}

.demo-conversion-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.demo-conversion-text {
  font-size: 13px;
  color: #14532d;
  margin: 0 0 10px;
  line-height: 1.4;
}

.btn-demo-claim-trial {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.btn-demo-claim-trial:hover {
  background: #166534;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.35);
}

@media (max-width: 768px) {
  .demo-sandbox-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .demo-bar-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .demo-bar-hint {
    font-size: 11.5px;
  }
}
