/**
 * XEYROX Homepage - Section 04: XEYROX PRODUCTS SHOWCASE
 * Alternating Side-by-Side Editorial Storytelling System
 *
 * Implements DESIGN.md and Brand DNA specifications:
 * - 120px to 160px row spacing
 * - 5 cols text + 7 cols visual (desktop)
 * - Strict typography: Be Vietnam Pro
 * - Custom layered UI compositions with atmospheric backgrounds and floating cards
 */

/* ==========================================================================
   01. SECTION LAYOUT & ATMOSPHERE
   ========================================================================== */
.products-showcase-section {
  position: relative;
  padding: 140px 0 64px;
  background-color: var(--x-white, #FFFFFF);
  overflow: hidden;
}

.products-showcase-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.products-bg-glow {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 241, 255, 0.45) 0%, rgba(232, 250, 255, 0.2) 45%, transparent 70%);
  filter: blur(80px);
}

.products-showcase-container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   02. COMPACT SECTION INTRO
   ========================================================================== */
.products-showcase-intro {
  max-width: min(690px, calc(100% - 320px));
  margin-bottom: 120px;
}

.products-intro-eyebrow {
  display: inline-block;
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--x-blue-700, #155EEF);
  margin-bottom: 16px;
}

.products-intro-headline {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--x-navy-900, #0B1733);
  margin-bottom: 18px;
}

.products-intro-body {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--x-text-secondary, #536581);
  max-width: 680px;
  margin: 0;
}

/* ==========================================================================
   02b. REX MASCOT & ENERGY TRAIL OVERLAY
   ========================================================================== */
.products-rex-stage {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 300px;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.products-rex-float {
  position: relative;
  width: 100%;
  height: 100%;
  animation: products-rex-float 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes products-rex-float {
  0%,
  100% {
    transform: translateY(0px);
  }

  40% {
    transform: translateY(-9px);
  }

  70% {
    transform: translateY(-4px);
  }
}

.products-rex-trail {
  position: absolute;
  top: -56px;
  right: -6px;
  width: 311px;
  height: 311px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  display: block;
}

.products-rex-trail-bg {
  z-index: 1;
}

.products-rex-character {
  position: absolute;
  top: -27px;
  right: 0;
  width: 274px;
  height: 248px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  display: block;
  z-index: 2;
}

.products-rex-trail-fg {
  z-index: 3;
  clip-path: polygon(0% 62%, 85% 62%, 85% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 62%, 85% 62%, 85% 100%, 0% 100%);
}

/* ==========================================================================
   03. ALTERNATING ROW SYSTEM
   ========================================================================== */
.products-showcase-list {
  display: flex;
  flex-direction: column;
}

.product-showcase-row {
  margin-bottom: 150px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-showcase-row:last-child {
  margin-bottom: 0 !important;
}

.product-showcase-row.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.product-row-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  align-items: center;
}

/* ROW VARIANT 1: TEXT LEFT (5 cols) + VISUAL RIGHT (7 cols) */
.product-row-text-left .product-text-block {
  grid-column: 1 / 6;
}

.product-row-text-left .product-visual-block {
  grid-column: 6 / 13;
}

/* ROW VARIANT 2: VISUAL LEFT (7 cols) + TEXT RIGHT (5 cols) */
.product-row-visual-left .product-visual-block {
  grid-column: 1 / 8;
  order: 1;
}

.product-row-visual-left .product-text-block {
  grid-column: 8 / 13;
  order: 2;
  padding-left: 12px;
}

/* ==========================================================================
   04. PRODUCT TEXT BLOCK
   ========================================================================== */
.product-text-block {
  display: flex;
  flex-direction: column;
}

.product-category-eyebrow {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--x-blue-700, #155EEF);
  margin-bottom: 14px;
}

.product-name-title {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: clamp(38px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--x-navy-900, #0B1733);
  margin: 0 0 18px;
}

.product-brand-title {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
}

.product-name-logo {
  height: clamp(26px, 2.2vw, 32px);
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

.product-supporting-statement {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--x-navy-900, #0B1733);
  margin: 0 0 16px;
}

.product-description-copy {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--x-text-secondary, #536581);
  margin: 0 0 28px;
}

.product-cta-wrap {
  margin-top: 4px;
}

.product-text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--x-blue-700, #155EEF);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-text-cta:hover {
  color: var(--x-blue-600, #1769FF);
}

.product-text-cta .cta-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-text-cta:hover .cta-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   05. PRODUCT VISUAL - PURE IMAGE PRESENTATION (NO BOX / NO ATMOSPHERE)
   ========================================================================== */
.product-visual-block {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.product-visual-img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.product-visual-img:hover {
  transform: translateY(-3px) scale(1.01);
}

/* ==========================================================================
   06. MAIN PRODUCT UI CARD (Engineered, Real UI)
   ========================================================================== */
.product-main-ui {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  background: var(--x-white, #FFFFFF);
  border: 1px solid var(--x-border, #DCE6F2);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(11, 23, 51, 0.07), 0 2px 8px rgba(11, 23, 51, 0.03);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-main-ui:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(11, 23, 51, 0.09), 0 4px 12px rgba(11, 23, 51, 0.04);
}

/* UI Card Header */
.ui-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--x-border, #DCE6F2);
}

.ui-header-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ui-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--x-blue-700, #155EEF);
}

.ui-header-dot.dot-green {
  background: var(--x-green-500, #19C88B);
}

.ui-header-name {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--x-navy-900, #0B1733);
}

.ui-status-chip {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.chip-live, .chip-blue {
  background: var(--x-blue-100, #E8F1FF);
  color: var(--x-blue-700, #155EEF);
}

.chip-green {
  background: var(--x-green-100, #E8FBF4);
  color: #0E8055;
}

/* Generic UI Badges */
.ui-badge {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-blue {
  background: #EEF4FF;
  color: var(--x-blue-700, #155EEF);
}

.badge-green {
  background: #EAFBF4;
  color: #0E8055;
}

.badge-cyan {
  background: #E8FAFF;
  color: #087D9C;
}

/* ==========================================================================
   07. PRODUCT SPECIFIC VISUAL LAYOUTS
   ========================================================================== */

/* --- RENTEVO --- */
.ui-table-wrapper {
  display: flex;
  flex-direction: column;
}

.ui-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid #F0F4F8;
}

.ui-table-row:last-child {
  border-bottom: none;
}

.ui-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ui-item-title {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--x-navy-900, #0B1733);
}

.ui-item-sub {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 12px;
  color: var(--x-text-muted, #71809A);
}

.rentevo-timeline-strip {
  padding: 12px 20px 16px;
  background: #FAFCFE;
  border-top: 1px solid #EDF2F7;
}

.timeline-label {
  display: block;
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--x-text-muted, #71809A);
  margin-bottom: 8px;
}

.timeline-bar-track {
  position: relative;
  height: 24px;
  background: #EAF0F6;
  border-radius: 6px;
  overflow: hidden;
}

.timeline-bar-booked,
.timeline-bar-available {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-bar-booked {
  background: #2D7BFF;
  color: #FFFFFF;
}

.timeline-bar-available {
  background: #28D9B0;
  color: #074735;
}

/* --- EVENTEVO / EVENTINO --- */
.eventevo-stages-bar,
.eventino-stages-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: #FAFCFE;
  border-bottom: 1px solid #EDF2F7;
  overflow-x: auto;
}

.stage-step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
  color: var(--x-text-muted, #71809A);
}

.stage-step .step-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: #E5ECF4;
  color: #71809A;
}

.stage-step.is-complete {
  color: var(--x-navy-900, #0B1733);
}

.stage-step.is-complete .step-bullet {
  background: var(--x-green-500, #19C88B);
  color: #FFFFFF;
}

.stage-step.is-active {
  color: var(--x-blue-700, #155EEF);
  font-weight: 600;
}

.stage-step.is-active .step-bullet {
  background: var(--x-blue-700, #155EEF);
  color: #FFFFFF;
}

.eventevo-task-list,
.eventino-task-list {
  padding: 6px 0;
}

.eventevo-task-row,
.eventino-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #F0F4F8;
}

.eventevo-task-row:last-child,
.eventino-task-row:last-child {
  border-bottom: none;
}

.task-marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.marker-done { background: var(--x-green-500, #19C88B); }
.marker-progress { background: var(--x-blue-700, #155EEF); }

.task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-title {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--x-navy-900, #0B1733);
}

.task-meta {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
  color: var(--x-text-muted, #71809A);
}

/* --- ACCOUNTS --- */
.accounts-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 20px;
  background: #FAFBFD;
  border-bottom: 1px solid #EDF2F7;
}

.acc-metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acc-metric-label {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--x-text-muted, #71809A);
}

.acc-metric-val {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 14px;
  font-weight: 700;
}

.val-green { color: #0E8055; }
.val-navy { color: var(--x-navy-900, #0B1733); }
.val-blue { color: var(--x-blue-700, #155EEF); }

.accounts-tx-table {
  padding: 4px 0;
}

.acc-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #F0F4F8;
}

.acc-tx-row:last-child {
  border-bottom: none;
}

.tx-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-title {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--x-navy-900, #0B1733);
}

.tx-meta {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
  color: var(--x-text-muted, #71809A);
}

.tx-amount {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13px;
  font-weight: 700;
}

.tx-in { color: #0E8055; }
.tx-out { color: var(--x-navy-900, #0B1733); }

/* --- WHATSAPP BOT --- */
.whatsapp-chat-stream {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FDFEFE;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bubble-inbound {
  align-self: flex-start;
  background: #F1F4F8;
  color: var(--x-navy-900, #0B1733);
  border-bottom-left-radius: 4px;
}

.bubble-sender {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--x-blue-700, #155EEF);
}

.bubble-outbound {
  align-self: flex-end;
  background: #E8F7F0;
  color: #064E3B;
  border-bottom-right-radius: 4px;
}

.bubble-text {
  margin: 0;
}

.bubble-time {
  font-size: 10px;
  color: var(--x-text-muted, #71809A);
  align-self: flex-end;
}

.chat-ai-suggestion-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #F0F7FF;
  border: 1px dashed #BFDBFE;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--x-blue-700, #155EEF);
  font-weight: 500;
}

.ai-sparkle-icon {
  color: var(--x-blue-700, #155EEF);
  font-size: 13px;
}

.chat-quick-actions {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: #FAFBFD;
  border-top: 1px solid #EDF2F7;
  overflow-x: auto;
}

.action-pill {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: #FFFFFF;
  border: 1px solid var(--x-border, #DCE6F2);
  border-radius: 6px;
  color: var(--x-navy-900, #0B1733);
  white-space: nowrap;
}

/* --- INVENTORY --- */
.inventory-table-wrap {
  display: flex;
  flex-direction: column;
}

.inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #F0F4F8;
}

.inventory-row:last-child {
  border-bottom: none;
}

.inv-item-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-name {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--x-navy-900, #0B1733);
}

.inv-sku {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
  color: var(--x-text-muted, #71809A);
}

.inv-qty-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.inv-stock-num {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--x-navy-900, #0B1733);
}

.inv-stock-status {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.inv-stock-status.in-stock {
  background: #E8FBF4;
  color: #0E8055;
}

.inv-stock-status.low-stock {
  background: #FFF4E5;
  color: #B45309;
}

.inventory-movement-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: #FAFBFD;
  border-top: 1px solid #EDF2F7;
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
  color: var(--x-text-secondary, #536581);
}

.movement-pill strong {
  color: var(--x-navy-900, #0B1733);
}

.move-arrow-down { color: #0E8055; font-weight: 600; }
.move-arrow-up { color: var(--x-blue-700, #155EEF); font-weight: 600; }

/* --- XBOARD --- */
.xboard-queue-list {
  padding: 4px 0;
}

.xboard-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #F0F4F8;
}

.xboard-queue-item:last-child {
  border-bottom: none;
}

.channel-pill-tag {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.tag-linkedin { background: #E8F0FE; color: #155EEF; }
.tag-instagram { background: #FCE7F3; color: #9D174D; }
.tag-x { background: #F1F5F9; color: #0F172A; }

.post-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.post-title {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--x-navy-900, #0B1733);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-timing {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11px;
  color: var(--x-text-muted, #71809A);
}

.xboard-channels-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #FAFBFD;
  border-top: 1px solid #EDF2F7;
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
}

.summary-label {
  color: var(--x-text-muted, #71809A);
}

.platform-name {
  color: var(--x-navy-900, #0B1733);
  font-weight: 600;
}

.platform-dot {
  color: var(--x-text-muted, #71809A);
}

/* ==========================================================================
   08. FLOATING INFORMATION CARDS
   ========================================================================== */
.product-floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--x-white, #FFFFFF);
  border: 1px solid var(--x-border, #DCE6F2);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(20, 50, 90, 0.08), 0 2px 6px rgba(20, 50, 90, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.product-floating-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(20, 50, 90, 0.12);
}

.float-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-icon-box svg {
  width: 18px;
  height: 18px;
}

.float-icon-box.icon-blue {
  background: var(--x-blue-100, #E8F1FF);
  color: var(--x-blue-700, #155EEF);
}

.float-icon-box.icon-mint {
  background: var(--x-green-100, #E8FBF4);
  color: #0E8055;
}

.float-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.float-title {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--x-navy-900, #0B1733);
  white-space: nowrap;
}

.float-sub {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 11px;
  color: var(--x-text-secondary, #536581);
  white-space: nowrap;
}

/* Floating card coordinates */
.rentevo-float-top {
  top: -16px;
  right: 18px;
  animation: floatSubtleA 6s ease-in-out infinite alternate;
}

.rentevo-float-bottom {
  bottom: -16px;
  left: 18px;
  animation: floatSubtleB 6.5s ease-in-out infinite alternate;
}

.eventevo-float-top,
.eventino-float-top {
  top: -16px;
  left: 18px;
  animation: floatSubtleB 6.2s ease-in-out infinite alternate;
}

.eventevo-float-bottom,
.eventino-float-bottom {
  bottom: -16px;
  right: 18px;
  animation: floatSubtleA 5.8s ease-in-out infinite alternate;
}

.accounts-float-top {
  top: -16px;
  right: 18px;
  animation: floatSubtleA 6.4s ease-in-out infinite alternate;
}

.accounts-float-bottom {
  bottom: -16px;
  left: 18px;
  animation: floatSubtleB 6.1s ease-in-out infinite alternate;
}

.whatsapp-float-top {
  top: -16px;
  left: 18px;
  animation: floatSubtleB 6.6s ease-in-out infinite alternate;
}

.whatsapp-float-bottom {
  bottom: -16px;
  right: 18px;
  animation: floatSubtleA 5.9s ease-in-out infinite alternate;
}

.inventory-float-top {
  top: -16px;
  right: 18px;
  animation: floatSubtleA 6.3s ease-in-out infinite alternate;
}

.inventory-float-bottom {
  bottom: -16px;
  left: 18px;
  animation: floatSubtleB 6.7s ease-in-out infinite alternate;
}

.xboard-float-top {
  top: -16px;
  left: 18px;
  animation: floatSubtleB 6.2s ease-in-out infinite alternate;
}

.xboard-float-bottom {
  bottom: -16px;
  right: 18px;
  animation: floatSubtleA 6.0s ease-in-out infinite alternate;
}

/* Restrained Floating Keyframes */
@keyframes floatSubtleA {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-7px); }
}

@keyframes floatSubtleB {
  0% { transform: translateY(0px); }
  100% { transform: translateY(7px); }
}

/* ==========================================================================
   09. SECTION CONCLUSION TRANSITION
   ========================================================================== */
.products-section-end-transition {
  margin-top: 110px;
  text-align: center;
}

.products-transition-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--x-border, #DCE6F2) 50%, transparent 100%);
  margin-bottom: 30px;
}

.products-transition-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.products-transition-label {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--x-navy-900, #0B1733);
}

.products-transition-sub {
  font-family: var(--font-primary, "Be Vietnam Pro", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--x-blue-700, #155EEF);
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .products-showcase-section {
    padding: 90px 0 48px;
  }

  .products-showcase-intro {
    max-width: min(580px, calc(100% - 250px));
    margin-bottom: 120px;
  }

  .product-showcase-row {
    margin-bottom: 110px;
  }

  .product-row-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Force mobile order: TEXT first, VISUAL second for ALL rows */
  .product-row-text-left .product-text-block,
  .product-row-visual-left .product-text-block {
    grid-column: 1 / -1;
    order: 1 !important;
    padding-left: 0;
  }

  .product-row-text-left .product-visual-block,
  .product-row-visual-left .product-visual-block {
    grid-column: 1 / -1;
    order: 2 !important;
  }
}

@media (max-width: 768px) {
  .products-showcase-section {
    padding: 70px 0 32px;
  }

  .products-showcase-intro {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .products-intro-eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
  }

  .products-intro-headline {
    font-size: clamp(28px, 6.5vw, 36px);
    line-height: 1.2;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .products-intro-body {
    font-size: 16px;
    line-height: 1.55;
    max-width: 100%;
  }

  .product-showcase-row {
    margin-bottom: 104px;
  }

  .product-row-grid {
    gap: 32px;
  }

  .product-name-title {
    font-size: clamp(28px, 5.5vw, 36px);
    margin-bottom: 14px;
  }

  .product-brand-title {
    margin-bottom: 16px;
  }

  .product-name-logo {
    height: 26px;
  }

  .product-supporting-statement {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .product-description-copy {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* Floating cards adapt to mobile bounds */
  .product-floating-card {
    position: static;
    margin-top: 12px;
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
    animation: none !important;
  }

  .rentevo-float-top,
  .eventevo-float-top,
  .eventino-float-top,
  .accounts-float-top,
  .whatsapp-float-top,
  .inventory-float-top,
  .xboard-float-top {
    margin-bottom: 12px;
    margin-top: 0;
  }

  .product-visual-stage {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .product-main-ui {
    max-width: 100%;
  }

  .accounts-metrics-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .products-transition-content {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .products-showcase-section {
    padding: 55px 0 24px;
  }

  .products-intro-headline {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.22;
  }

  .products-intro-body {
    font-size: 15px;
    line-height: 1.55;
  }

  .product-showcase-row {
    margin-bottom: 96px;
  }

  .product-row-grid {
    gap: 24px;
  }

  .product-category-eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .product-name-title {
    font-size: 26px;
  }

  .product-supporting-statement {
    font-size: 16px;
    line-height: 1.45;
  }

  .product-description-copy {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
}

/* ==========================================================================
   11. REX MASCOT RESPONSIVE RULES & ACCESSIBILITY
   ========================================================================== */
@media (max-width: 1279px) and (min-width: 1025px) {
  .products-rex-stage {
    transform: scale(0.85);
    transform-origin: top right;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .products-rex-stage {
    transform: scale(0.72);
    transform-origin: top right;
    top: -10px;
    right: 0;
  }
}

/* Mobile: Centered Mascot Stage Between Intro and Product Showcase */
@media (max-width: 768px) {
  .products-rex-stage {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 8px auto 64px;
    width: 320px;
    height: 195px;
    transform: scale(0.70);
    transform-origin: center top;
    display: block;
    overflow: visible;
  }

  .products-rex-trail {
    top: -56px;
    right: auto;
    left: 4px;
  }

  .products-rex-character {
    top: -27px;
    right: auto;
    left: 23px;
  }
}

/* Small Mobile: Scaled Stage */
@media (max-width: 480px) {
  .products-rex-stage {
    transform: scale(0.58);
    height: 160px;
    margin: 4px auto 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-rex-stage,
  .products-rex-float,
  .products-rex-trail,
  .products-rex-character {
    animation: none !important;
    transition: none !important;
  }
}
