/**
 * Task4Pay Creative Kinetic Homepage Stylesheet
 * 3D Tilt Cards, Cursor Spotlight, Gesture Swipe Tracks, Light/Dark & RTL/LTR Adaptive
 */

/* ==========================================================================
   CSS Variables & Theme Tokens
   ========================================================================== */
:root {
  --hm-glass-bg: rgba(20, 20, 26, 0.72);
  --hm-glass-border: rgba(255, 255, 255, 0.09);
  --hm-glass-border-hover: rgba(255, 45, 85, 0.5);
  --hm-glass-shadow: 0 18px 42px -12px rgba(0, 0, 0, 0.55);
  --hm-glow-red: rgba(255, 45, 85, 0.24);
  --hm-glow-amber: rgba(255, 170, 0, 0.2);
  --hm-glow-emerald: rgba(0, 230, 118, 0.2);
  --hm-glow-blue: rgba(56, 189, 248, 0.2);
  --hm-radius-xl: 22px;
  --hm-radius-lg: 16px;
  --hm-radius-md: 12px;
  --hm-radius-sm: 8px;
}

[data-theme="light"] {
  --hm-glass-bg: rgba(255, 255, 255, 0.88);
  --hm-glass-border: rgba(15, 23, 42, 0.09);
  --hm-glass-border-hover: rgba(255, 0, 0, 0.45);
  --hm-glass-shadow: 0 16px 38px -12px rgba(15, 23, 42, 0.1);
  --hm-glow-red: rgba(255, 0, 0, 0.1);
  --hm-glow-amber: rgba(245, 158, 11, 0.12);
  --hm-glow-emerald: rgba(16, 185, 129, 0.12);
  --hm-glow-blue: rgba(14, 165, 233, 0.12);
}

/* ==========================================================================
   Hero Shell & Ambient Motion Orbs
   ========================================================================== */
.hm-hero-section {
  position: relative;
  padding: 2.6rem 1.25rem 2.2rem;
  overflow: hidden;
  isolation: isolate;
}

.hm-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
  animation: hmFloatOrb 14s ease-in-out infinite alternate;
}

.hm-orb-1 {
  width: 420px;
  height: 420px;
  top: -160px;
  inset-inline-start: 10%;
  background: radial-gradient(circle, var(--hm-glow-red), transparent 70%);
}

.hm-orb-2 {
  width: 360px;
  height: 360px;
  top: 40px;
  inset-inline-end: 8%;
  background: radial-gradient(circle, var(--hm-glow-amber), transparent 70%);
  animation-delay: -5s;
}

.hm-orb-3 {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: 42%;
  background: radial-gradient(circle, var(--hm-glow-emerald), transparent 70%);
  animation-delay: -9s;
}

@keyframes hmFloatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(28px, -22px, 0) scale(1.12); }
}

.hm-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Live Status Pill */
.hm-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  background: var(--hm-glass-bg);
  border: 1px solid var(--hm-glass-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.1rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.hm-pill-badge:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--primary-color);
}

.hm-pill-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: hmPulseDot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes hmPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.35); }
}

/* Kinetic Gradient Headline */
.hm-hero-title {
  font-size: clamp(1.9rem, 4.4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  max-width: 880px;
}

.hm-gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, #ff4b6a 45%, #ffaa00 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hmTextShimmer 6s linear infinite;
  display: inline-block;
}

[data-theme="light"] .hm-gradient-text {
  background: linear-gradient(120deg, #0f172a 0%, #dc2626 45%, #d97706 75%, #0f172a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes hmTextShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hm-hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 1.45rem;
  min-height: 1.6em;
}

/* ==========================================================================
   Smart Campaign AI Compact Command Bar
   ========================================================================== */
.hm-cmd-wrap {
  width: 100%;
  max-width: 820px;
  background: var(--hm-glass-bg);
  border: 1px solid var(--hm-glass-border);
  border-radius: var(--hm-radius-xl);
  padding: 0.9rem 1.05rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--hm-glass-shadow);
  margin-bottom: 1.8rem;
  text-align: start;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hm-cmd-wrap:focus-within {
  border-color: rgba(255, 45, 85, 0.55);
  box-shadow: 0 20px 46px -12px rgba(255, 0, 0, 0.25);
  transform: translateY(-2px);
}

.hm-search-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hm-cmd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--hm-radius-md);
  background: rgba(255, 45, 85, 0.14);
  color: #ff4b6a;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.hm-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.4rem;
  outline: none;
}

.hm-search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.75;
}

.hm-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  background: linear-gradient(135deg, #ff1a40, #ff5e00);
  color: #fff;
  border: none;
  border-radius: var(--hm-radius-md);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 30, 60, 0.32);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.hm-search-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(255, 30, 60, 0.5);
}

.hm-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
}

[data-theme="light"] .hm-search-chips {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.hm-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hm-glass-border);
  border-radius: 999px;
  padding: 0.24rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, color 0.2s, border-color 0.2s;
}

[data-theme="light"] .hm-chip {
  background: rgba(15, 23, 42, 0.04);
}

.hm-chip:hover {
  transform: translateY(-2px);
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ==========================================================================
   Kinetic Cards System: 3D Tilt + Cursor Spotlight + Hover Micro-Motion
   ========================================================================== */
.hm-kcard {
  position: relative;
  background: var(--hm-glass-bg);
  border: 1px solid var(--hm-glass-border);
  border-radius: var(--hm-radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--hm-glass-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.35s ease;
}

/* Cursor tracking radial glow */
.hm-kcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--card-glow, rgba(255, 45, 85, 0.16)), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

/* Top glowing edge bar on hover */
.hm-kcard::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--card-accent, linear-gradient(90deg, #ff2d55, #ffaa00));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.hm-kcard:hover {
  border-color: var(--card-border-hover, var(--hm-glass-border-hover));
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.55), 0 0 24px -6px var(--card-glow, rgba(255, 45, 85, 0.2));
}

[data-theme="light"] .hm-kcard:hover {
  box-shadow: 0 20px 42px -12px rgba(15, 23, 42, 0.14), 0 0 20px -6px var(--card-glow, rgba(255, 45, 85, 0.16));
}

.hm-kcard:hover::before {
  opacity: 1;
}

.hm-kcard:hover::after {
  transform: scaleX(1);
}

.hm-kcard > * {
  position: relative;
  z-index: 1;
}

.hm-kcard-ic {
  width: 46px;
  height: 46px;
  border-radius: var(--hm-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hm-glass-border);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
  flex-shrink: 0;
}

[data-theme="light"] .hm-kcard-ic {
  background: rgba(15, 23, 42, 0.04);
}

.hm-kcard:hover .hm-kcard-ic {
  transform: translateY(-4px) scale(1.12) rotate(-5deg);
}

.hm-kcard-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

[data-theme="light"] .hm-kcard-arrow {
  background: rgba(15, 23, 42, 0.06);
}

.hm-kcard:hover .hm-kcard-arrow {
  transform: translateX(4px);
  background: var(--primary-color);
  color: #fff;
}

[dir="rtl"] .hm-kcard:hover .hm-kcard-arrow {
  transform: translateX(-4px);
}

/* Reveal entrance animation */
.hm-reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.hm-reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   Ecosystem Kinetic Bento Grid (All 6 Features Concisely)
   ========================================================================== */
.hm-bento-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 1.6rem;
  text-align: start;
}

.hm-bento-swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  opacity: 0.85;
}

.hm-bento-swipe-hint span.hand {
  display: inline-block;
  animation: hmSwipeHint 2s ease-in-out infinite;
}

@keyframes hmSwipeHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

.hm-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.05rem;
}

.hm-bcard {
  grid-column: span 3;
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 168px;
}

.hm-bcard.is-wide {
  grid-column: span 6;
  padding: 1.4rem 1.5rem;
  min-height: 184px;
}

.hm-bcard-body {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

/* Color themes & ambient corner tints per pillar */
.hm-bcard.tone-gold {
  --card-glow: rgba(255, 170, 0, 0.22);
  --card-accent: linear-gradient(90deg, #ffaa00, #ff6b00);
  --card-border-hover: rgba(255, 170, 0, 0.55);
  background-image: radial-gradient(circle at 100% 0%, rgba(255, 170, 0, 0.09), transparent 55%);
}

.hm-bcard.tone-ai {
  --card-glow: rgba(255, 45, 85, 0.24);
  --card-accent: linear-gradient(90deg, #ff2d55, #a855f7);
  --card-border-hover: rgba(255, 45, 85, 0.55);
  background-image: radial-gradient(circle at 100% 0%, rgba(255, 45, 85, 0.09), transparent 55%);
}

.hm-bcard.tone-green {
  --card-glow: rgba(0, 230, 118, 0.2);
  --card-accent: linear-gradient(90deg, #00e676, #06b6d4);
  --card-border-hover: rgba(0, 230, 118, 0.5);
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 230, 118, 0.08), transparent 55%);
}

.hm-bcard.tone-blue {
  --card-glow: rgba(56, 189, 248, 0.22);
  --card-accent: linear-gradient(90deg, #38bdf8, #6366f1);
  --card-border-hover: rgba(56, 189, 248, 0.5);
  background-image: radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.08), transparent 55%);
}

.hm-bcard.tone-purple {
  --card-glow: rgba(168, 85, 247, 0.22);
  --card-accent: linear-gradient(90deg, #a855f7, #ec4899);
  --card-border-hover: rgba(168, 85, 247, 0.5);
  background-image: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.08), transparent 55%);
}

/* Colored Icon Wells */
.tone-gold .hm-kcard-ic { background: rgba(255, 170, 0, 0.14); border-color: rgba(255, 170, 0, 0.32); }
.tone-ai .hm-kcard-ic { background: rgba(255, 45, 85, 0.14); border-color: rgba(255, 45, 85, 0.32); }
.tone-green .hm-kcard-ic { background: rgba(0, 230, 118, 0.13); border-color: rgba(0, 230, 118, 0.3); }
.tone-blue .hm-kcard-ic { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.32); }
.tone-purple .hm-kcard-ic { background: rgba(168, 85, 247, 0.14); border-color: rgba(168, 85, 247, 0.32); }

[data-theme="light"] .hm-bcard {
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.hm-bcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.hm-bcard-head {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.hm-bcard-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.22rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.tone-gold .hm-bcard-tag { background: rgba(255, 170, 0, 0.15); color: #ffaa00; }
.tone-ai .hm-bcard-tag { background: rgba(255, 45, 85, 0.15); color: #ff4b6a; }
.tone-green .hm-bcard-tag { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.tone-blue .hm-bcard-tag { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.tone-purple .hm-bcard-tag { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

[data-theme="light"] .tone-gold .hm-bcard-tag { color: #b45309; }
[data-theme="light"] .tone-ai .hm-bcard-tag { color: #e11d48; }
[data-theme="light"] .tone-green .hm-bcard-tag { color: #047857; }
[data-theme="light"] .tone-blue .hm-bcard-tag { color: #0369a1; }
[data-theme="light"] .tone-purple .hm-bcard-tag { color: #7e22ce; }

.hm-bcard-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.28;
}

.hm-bcard.is-wide .hm-bcard-title {
  font-size: 1.16rem;
}

.hm-bcard-desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

[data-theme="light"] .hm-bcard-desc {
  color: #475569;
}

/* Micro 3-step & partner pills inside Bento cards */
.hm-micro-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.hm-micro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  white-space: nowrap;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.hm-micro-arrow {
  font-size: 0.72rem;
  opacity: 0.55;
  font-weight: 800;
}

[data-theme="light"] .hm-micro-pill {
  background: rgba(15, 23, 42, 0.045);
  border-color: rgba(15, 23, 42, 0.09);
}

.hm-bcard:hover .hm-micro-pill {
  border-color: rgba(255, 255, 255, 0.22);
}

[data-theme="light"] .hm-bcard:hover .hm-micro-pill {
  border-color: rgba(15, 23, 42, 0.2);
}

.hm-bcard-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.68rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

[data-theme="light"] .hm-bcard-foot {
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

.hm-bcard-metric {
  color: var(--money, #00e676);
  font-weight: 800;
  white-space: nowrap;
}

.hm-bcard-cta-lbl {
  white-space: nowrap;
}

/* Bento Mobile Dots */
.hm-bento-dots {
  display: none;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.hm-bento-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.hm-bento-dot.is-active {
  width: 22px;
  background: var(--primary-color);
}

/* Compact Inline Trust Bar */
.hm-trust-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--hm-glass-bg);
  border: 1px solid var(--hm-glass-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.hm-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hm-trust-chip b {
  color: var(--text-primary);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hm-trust-chip b.green { color: var(--money, #00e676); }
.hm-trust-chip b.accent { color: #ff4b6a; }

/* ==========================================================================
   Live Services Infinite Marquee Ticker
   ========================================================================== */
.hm-ticker-section {
  padding: 1.6rem 0 0.8rem;
  overflow: hidden;
  position: relative;
}

.hm-ticker-header {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hm-ticker-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
}

.hm-ticker-cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.2s ease;
}

.hm-ticker-cta:hover {
  transform: translateX(3px);
}

[dir="rtl"] .hm-ticker-cta:hover {
  transform: translateX(-3px);
}

.hm-marquee-wrap {
  width: 100%;
  overflow: hidden;
  user-select: none;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.hm-marquee-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: hmMarquee 36s linear infinite;
  padding: 0.4rem 0 0.9rem;
}

.hm-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes hmMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

[dir="rtl"] .hm-marquee-track {
  animation-direction: reverse;
}

.hm-ticker-card {
  background: var(--hm-glass-bg);
  border: 1px solid var(--hm-glass-border);
  border-radius: var(--hm-radius-md);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 240px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.hm-ticker-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.hm-tcard-ic {
  width: 34px;
  height: 34px;
  border-radius: var(--hm-radius-sm);
  background: rgba(255, 45, 85, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.hm-tcard-body { display: flex; flex-direction: column; }
.hm-tcard-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.hm-tcard-sub { font-size: 0.7rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.3rem; }
.hm-tcard-badge { color: #00e676; font-weight: 700; }

/* ==========================================================================
   Kinetic Offerwalls Section + Gesture Track
   ========================================================================== */
.hm-ofw-section {
  position: relative;
  max-width: 1200px;
  margin: 2.5rem auto 2rem;
  padding: 0 1.25rem;
}

.hm-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.6rem;
}

.hm-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.hm-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 0.45rem;
}

.hm-section-sub {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Compact 3-Step Kinetic Progress Strip */
.hm-ofw-steps-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 980px;
  margin: 0 auto 1.8rem;
}

.hm-ofw-step-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--hm-radius-lg);
  background: var(--hm-glass-bg);
  border: 1px solid var(--hm-glass-border);
  text-align: start;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.hm-ofw-step-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 170, 0, 0.5);
}

.hm-ofw-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 900;
  background: rgba(255, 170, 0, 0.16);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.35);
  flex-shrink: 0;
}

.hm-ofw-step-txt b {
  display: block;
  font-size: 0.86rem;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.hm-ofw-step-txt span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Draggable Gesture Carousel Shell */
.hm-gesture-shell {
  position: relative;
}

.hm-gesture-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1.2rem;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.hm-gesture-track:active {
  cursor: grabbing;
}

.hm-gesture-track::-webkit-scrollbar {
  display: none;
}

.hm-ofw-card {
  flex: 0 0 262px;
  scroll-snap-align: start;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  --card-glow: rgba(255, 170, 0, 0.22);
  --card-accent: linear-gradient(90deg, #ffaa00, #ff2d55);
  --card-border-hover: rgba(255, 170, 0, 0.5);
}

.hm-ofw-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hm-ofw-card-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hm-ofw-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hm-ofw-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.14);
  color: var(--money, #00e676);
  white-space: nowrap;
}

.hm-ofw-card-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

.hm-ofw-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

[data-theme="light"] .hm-ofw-card-foot {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.hm-ofw-rate {
  font-weight: 800;
  color: #ffaa00;
}

.hm-gesture-nav {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hm-glass-bg);
  border: 1px solid var(--hm-glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hm-gesture-nav:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.hm-gesture-nav.prev { inset-inline-start: -12px; }
.hm-gesture-nav.next { inset-inline-end: -12px; }
[dir="rtl"] .hm-gesture-nav { transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .hm-gesture-nav:hover { transform: translateY(-50%) scaleX(-1) scale(1.08); }

.hm-ofw-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.hm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.45rem;
  border-radius: var(--hm-radius-md);
  background: linear-gradient(135deg, #ff1a40, #ff5e00);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 8px 22px -4px rgba(255, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.hm-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px -4px rgba(255, 0, 0, 0.5);
}

.hm-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--hm-radius-md);
  border: 1px solid var(--hm-glass-border);
  background: var(--hm-glass-bg);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hm-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

/* ==========================================================================
   Wallets, Why & How Compact Kinetic Cards
   ========================================================================== */
.hm-wallets-section {
  padding: 3rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hm-wallets-head {
  text-align: center;
  margin-bottom: 1.8rem;
}

.hm-wallet-card {
  background: var(--hm-glass-bg);
  border: 1px solid var(--hm-glass-border);
  border-radius: var(--hm-radius-lg);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.hm-wallet-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-color);
}

.hm-wallet-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  margin-bottom: 0.75rem;
}

.hm-wallet-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hm-wallet-logo span { font-size: 1.8rem; }
.hm-wallet-name { font-size: 0.98rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.2rem; }
.hm-wallet-limits { font-size: 0.76rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; margin-bottom: 0.5rem; }
.hm-wallet-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.7rem; font-weight: 700; padding: 0.18rem 0.55rem;
  border-radius: 999px; background: rgba(0, 230, 118, 0.12); color: var(--money, #00e676);
}

.hm-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.hm-feature-card {
  padding: 1.45rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: start;
}

.hm-feature-title { font-size: 1.06rem; font-weight: 800; color: var(--text-primary); margin: 0; }
.hm-feature-desc { font-size: 0.84rem; line-height: 1.52; color: var(--text-secondary); margin: 0; }

.hm-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.8rem;
}

.hm-step-card {
  padding: 1.55rem 1.4rem;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hm-step-num {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.2rem;
  font-size: 2.3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}

[data-theme="light"] .hm-step-num {
  color: rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   Site-wide Homepage Section Polish (Light/Dark Unity)
   ========================================================================== */
[data-theme="light"] .hm-kcard {
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .hm-ofw-step-pill,
[data-theme="light"] .hm-wallet-card,
[data-theme="light"] .hm-ticker-card,
[data-theme="light"] .hm-trust-pill,
[data-theme="light"] .hm-cmd-wrap {
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 8px 22px -6px rgba(15, 23, 42, 0.07);
}

.gifts-section .section-title,
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--text-primary);
  text-shadow: none;
  line-height: 1.3;
  margin-bottom: 0.45rem !important;
}

.gifts-section .section-subtitle,
.section-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 0.35rem !important;
  margin-bottom: 1.8rem !important;
  max-width: 680px;
  margin-inline: auto;
}

[data-theme="light"] .gifts-section .section-subtitle,
[data-theme="light"] .section-subtitle {
  color: #475569;
}

.gift-slider-wrapper {
  padding: 0 1.4rem;
}

.gifts-section .home-gift-card,
.gifts-section .gift-card {
  border-radius: var(--hm-radius-xl);
  border-color: var(--hm-glass-border);
  box-shadow: var(--hm-glass-shadow);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.34s ease;
}

[data-theme="light"] .gifts-section .home-gift-card,
[data-theme="light"] .gifts-section .gift-card {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.home-gift-icon {
  border-radius: 20px !important;
  box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--card-from, #ff2d55) 45%, transparent) !important;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-gift-card:hover .home-gift-icon {
  transform: translateY(-4px) scale(1.08) rotate(-4deg);
}

.home-gift-btn {
  border-radius: 12px !important;
  font-weight: 800 !important;
  padding: 0.72rem 1.2rem !important;
  letter-spacing: 0.02em;
}

.swp-zone {
  margin-top: 1.4rem !important;
}

.swp-card {
  border-radius: var(--hm-radius-xl) !important;
  border-color: var(--hm-glass-border) !important;
}

[data-theme="light"] .swp-card {
  border-color: rgba(15, 23, 42, 0.11) !important;
  box-shadow: 0 16px 38px -10px rgba(15, 23, 42, 0.12) !important;
}

/* ==========================================================================
   Responsive & Touch Gesture Swipe Modes
   ========================================================================== */
@media (max-width: 1120px) {
  .hm-bcard, .hm-bcard.is-wide { grid-column: span 6; }
  .hm-ofw-steps-bar { grid-template-columns: 1fr; gap: 0.6rem; }
  .hm-steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hm-hero-section { padding: 1.8rem 0.9rem 1.5rem; }
  .hm-cmd-wrap { padding: 0.75rem 0.8rem; }
  .hm-search-form { flex-wrap: wrap; }
  .hm-cmd-badge { display: none; }
  .hm-search-btn { width: 100%; }

  /* Mobile Bento transforms into Touch Swipe Gesture Deck */
  .hm-bento-swipe-hint { display: flex; }
  .hm-bento-dots { display: flex; }
  .hm-bento {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    padding: 0.35rem 0.15rem 0.8rem;
    scrollbar-width: none;
  }
  .hm-bento::-webkit-scrollbar { display: none; }
  .hm-bcard, .hm-bcard.is-wide {
    flex: 0 0 86%;
    min-height: 164px;
    scroll-snap-align: center;
  }
  .hm-gesture-nav { display: none; }
  .hm-trust-pill {
    border-radius: var(--hm-radius-lg);
    padding: 0.7rem 1rem;
    gap: 0.55rem 1rem;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-orb, .hm-pill-pulse, .hm-gradient-text, .hm-marquee-track, .hm-bento-swipe-hint span.hand {
    animation: none !important;
  }
  .hm-kcard, .hm-reveal, .hm-kcard-ic, .hm-kcard-arrow {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
