/*
   TAPSAY PREMIUM PAYWALL STYLES
   Customized for rich aesthetics, glassmorphism, animations and responsive precision.
*/

/* Discount Code Input */
.discount-code-wrap {
  margin-bottom: var(--space-2, 8px);
}
.discount-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.discount-input-row input {
  flex: 1;
  min-width: 0;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.08);
  color: var(--fg, #fff);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body, inherit);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.discount-input-row input:focus {
  border-color: var(--accent, #10b981);
  background: rgba(255,255,255,0.12);
}
.discount-input-row input:disabled {
  opacity: 0.6;
}
.discount-apply-btn {
  padding: var(--space-2) 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.08);
  color: var(--fg, #fff);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-body, inherit);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.discount-apply-btn:hover:not(:disabled) {
  border-color: var(--accent, #10b981);
  background: rgba(255,255,255,0.12);
}
.discount-apply-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.discount-status {
  font-size: 12px;
  margin-top: 4px;
  padding-left: 2px;
  min-height: 16px;
}
.discount-status.success {
  color: #10b981;
}
.discount-status.error {
  color: #ef4444;
}
[data-theme="light"] .discount-input-row input {
  background: var(--bg, #fff);
  border-color: var(--fg-muted, #94a3b8);
  color: var(--fg, #1e293b);
}
[data-theme="light"] .discount-apply-btn {
  background: var(--bg, #fff);
  border-color: var(--fg-muted, #94a3b8);
  color: var(--fg, #1e293b);
}

.features-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  margin: 32px 0 20px;
  text-align: left;
  letter-spacing: 0.02em;
}

[data-theme="light"] .features-section-title {
  color: var(--fg);
}

.gesture-guide-status-bar {
  display: flex;
  justify-content: center;
  margin: 0 0 32px 0;
  position: sticky;
  top: -1px;
  z-index: 1000;
  padding: 10px 0;
}

.status-pill {
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
  text-transform: uppercase;
  pointer-events: none;
}

.paywall-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0 32px;
  width: 100%;
}

.paywall-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.paywall-feature-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.paywall-feature-row:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.paywall-feature-row:hover::before {
  opacity: 1;
}

.feature-info {
  flex: 1;
  padding-top: 0px;
  text-align: left;
}

.feature-info h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 850;
  color: var(--fg);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.feature-info p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* REAL MINI CARD DEMO UI */
.real-mini-card {
  width: 80px;
  flex-shrink: 0;
  aspect-ratio: 0.72;
  background: #000;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Base Card Sections */
.rm-top {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--fg);
  font-family: var(--font-display);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.rm-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.rm-top span, .rm-top div {
  transform: rotate(180deg);
}

.rm-bottom {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: var(--fg);
  font-family: var(--font-display);
  overflow: hidden;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Divider like real card */
.rm-divider {
  height: 2px;
  background: rgba(255,255,255,0.1);
  width: 100%;
  position: relative;
  z-index: 10;
}
.rm-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #222;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.rm-flag {
  position: absolute;
  font-size: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  line-height: 1;
}

.rm-flag-top {
  top: 4px;
  right: 4px;
  transform: rotate(180deg) !important;
}

.rm-flag-bot {
  bottom: 4px;
  right: 4px;
}

.rm-counter {
  position: absolute;
  top: 4px;
  left: 4px;
  font-family: var(--font-display);
  font-size: 5px;
  font-weight: 900;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scrubber Dots exactly mimicking right edge scrubber */
.rm-scrubber {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 20;
}
.rm-scrubber i {
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

/* ANIMATION ELEMENTS */

/* Finger Base (Looks like semi-transparent glass touch point) */
.anim-finger {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.9);
  backdrop-filter: blur(2px);
  z-index: 100;
}

/* Base text styling for all absolute positioned slides */
.swipe-text-v1, .tap-text-v1, .scrub-icon-v1, .audio-vtext {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  font-weight: 850;
  font-size: 10px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  opacity: 0;
  padding: 0 4px;
}
.sf-word-hl { color: #fcd34d; font-weight: 900; }
.swipe-text-u1, .tap-text-u1, .scrub-name-u1, .audio-utext {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 750;
  font-size: 8px;
  line-height: 1.1;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
  opacity: 0;
  padding: 0 4px;
}

/* 1. Offline Phrases: Swipe (Slide Up transition) */
@keyframes swVop1 { 0%, 25% { opacity:1; transform: translateY(-50%) rotate(180deg); } 30%, 100% { opacity:0; transform: translateY(-80%) rotate(180deg); } }
@keyframes swVop2 { 0%, 28% { opacity:0; transform: translateY(-20%) rotate(180deg); } 33%, 58% { opacity:1; transform: translateY(-50%) rotate(180deg); } 63%, 100% { opacity:0; transform: translateY(-80%) rotate(180deg); } }
@keyframes swVop3 { 0%, 61% { opacity:0; transform: translateY(-20%) rotate(180deg); } 66%, 95% { opacity:1; transform: translateY(-50%) rotate(180deg); } 100% { opacity:0; transform: translateY(-80%) rotate(180deg); } }

@keyframes swUop1 { 0%, 25% { opacity:1; transform: translateY(-50%); } 30%, 100% { opacity:0; transform: translateY(-80%); } }
@keyframes swUop2 { 0%, 28% { opacity:0; transform: translateY(-20%); } 33%, 58% { opacity:1; transform: translateY(-50%); } 63%, 100% { opacity:0; transform: translateY(-80%); } }
@keyframes swUop3 { 0%, 61% { opacity:0; transform: translateY(-20%); } 66%, 95% { opacity:1; transform: translateY(-50%); } 100% { opacity:0; transform: translateY(-80%); } }

.sf-ph1 { animation: swVop1 3s infinite cubic-bezier(0.25, 1, 0.5, 1); }
.sf-ph2 { animation: swVop2 3s infinite cubic-bezier(0.25, 1, 0.5, 1); }
.sf-ph3 { animation: swVop3 3s infinite cubic-bezier(0.25, 1, 0.5, 1); }

.swipe-text-u1.sf-ph1 { animation-name: swUop1; }
.swipe-text-u1.sf-ph2 { animation-name: swUop2; }
.swipe-text-u1.sf-ph3 { animation-name: swUop3; }

.swipe-finger {
  bottom: 0px;
  left: 50%;
  margin-left: -8px;
  animation: swipeFingerAnim 3s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes swipeFingerAnim {
  0%, 15% { transform: translateY(20px) scale(1); opacity: 0; }
  20% { transform: translateY(10px) scale(0.85); opacity: 1; }
  35% { transform: translateY(-20px) scale(0.85); opacity: 1; }
  45% { transform: translateY(-20px) scale(1); opacity: 0; }
  60% { transform: translateY(20px) scale(1); opacity: 0; }
  70% { transform: translateY(10px) scale(0.85); opacity: 1; }
  85% { transform: translateY(-20px) scale(0.85); opacity: 1; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* 2. Power Tap: Fast flashing */
@keyframes tapOp1 { 0%, 33.3% { opacity: 1; } 33.4%, 100% { opacity: 0; } }
@keyframes tapOp2 { 0%, 33.3% { opacity: 0; } 33.4%, 66.6% { opacity: 1; } 66.7%, 100% { opacity: 0; } }
@keyframes tapOp3 { 0%, 66.6% { opacity: 0; } 66.7%, 100% { opacity: 1; } }

.tf-ph1 { animation: tapOp1 2s infinite steps(1, end); }
.tf-ph2 { animation: tapOp2 2s infinite steps(1, end); }
.tf-ph3 { animation: tapOp3 2s infinite steps(1, end); }

.tap-finger {
  bottom: 6px;
  right: 18px;
  animation: tapFingerAnim 2s infinite;
}
/* 3. Variation Toggle: Word Tap */
.variation-finger {
  bottom: 15px;
  left: 50%;
  margin-left: -8px;
  animation: varFingerAnim 4s infinite;
}
@keyframes varFingerAnim {
  0%, 10% { transform: scale(1) translateY(10px); opacity: 0; }
  15% { transform: scale(1) translateY(0); opacity: 1; }
  20% { transform: scale(0.8); opacity: 1; }
  25% { transform: scale(1); opacity: 1; }
  30% { transform: scale(0.8); opacity: 1; }
  35% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1) translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}

.variation-ripple {
   position: absolute;
   bottom: 22px;
   left: 50%;
   margin-left: -15px;
   width: 30px;
   height: 30px;
   border: 2px solid var(--accent);
   border-radius: 50%;
   opacity: 0;
   transform: scale(0.5);
   animation: varRippleAnim 4s infinite;
}
/* Variation animations */
@keyframes varPh1 { 0%, 20% { opacity:1; } 25%, 70% { opacity:0; } 75%, 100% { opacity:1; } }
@keyframes varPh2 { 0%, 20% { opacity:0; } 25%, 70% { opacity:1; } 75%, 100% { opacity:0; } }

/* Scrubber label mimicking real app label */
.scrub-name-u1 {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 6px;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  width: auto;
  max-width: 90%;
}

@keyframes scPh1 { 0%, 25% { opacity:1; transform: translateY(-50%) scale(1.1); background: var(--accent); color:#000; } 30%, 100% { opacity:0; transform: translateY(-80%); } }
@keyframes scPh2 { 0%, 28% { opacity:0; transform: translateY(-20%); } 33%, 58% { opacity:1; transform: translateY(-50%) scale(1.1); background: var(--accent); color:#000; } 63%, 100% { opacity:0; transform: translateY(-80%); } }
@keyframes scPh3 { 0%, 61% { opacity:0; transform: translateY(-20%); } 66%, 95% { opacity:1; transform: translateY(-50%) scale(1.1); background: var(--accent); color:#000; } 100% { opacity:0; transform: translateY(-80%); } }

.sc-ph1 { animation: scPh1 3s infinite cubic-bezier(0.25, 1, 0.5, 1); }
.sc-ph2 { animation: scPh2 3s infinite cubic-bezier(0.25, 1, 0.5, 1); }
.sc-ph3 { animation: scPh3 3s infinite cubic-bezier(0.25, 1, 0.5, 1); }

.tap-ripple {
  position: absolute;
  bottom: 6px;
  right: 18px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: tapRippleAnim 2s infinite;
  z-index: 55;
  opacity: 0;
}
@keyframes tapRippleAnim {
  0%, 19% { transform: scale(0.5); opacity: 0; }
  20% { transform: scale(0.5); opacity: 1; }
  29% { transform: scale(3.5); opacity: 0; }
  
  39% { transform: scale(0.5); opacity: 0; }
  40% { transform: scale(0.5); opacity: 1; }
  49% { transform: scale(3.5); opacity: 0; }
  
  59% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(0.5); opacity: 1; }
  69% { transform: scale(3.5); opacity: 0; }
  
  79% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(0.5); opacity: 1; }
  89% { transform: scale(3.5); opacity: 0; }
  
  90%, 100% { transform: scale(0.5); opacity: 0; }
}

/* 3. Scrubber: Background color and text crossfade */
.scrub-bg {
  animation: scrubBgAnim 3s infinite linear;
}
@keyframes scrubBgAnim {
  0%, 25% { background: #10b981; }
  40%, 65% { background: #8b5cf6; }
  80%, 100% { background: #ec4899; }
}

@keyframes scrubOp1 { 0%, 30% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes scrubOp2 { 0%, 30% { opacity: 0; } 35%, 65% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes scrubOp3 { 0%, 65% { opacity: 0; } 70%, 100% { opacity: 1; } }

.sc-ph1 { animation: scrubOp1 3s infinite ease-in-out; }
.sc-ph2 { animation: scrubOp2 3s infinite ease-in-out; }
.sc-ph3 { animation: scrubOp3 3s infinite ease-in-out; }

.scrub-finger {
  right: 0px;
  top: 15px;
  animation: scrubFingerAnim 3s infinite ease-in-out;
}
@keyframes scrubFingerAnim {
  0%, 10% { transform: translateY(-10px) scale(1); opacity: 0; }
  15%, 20% { transform: translateY(0px) scale(0.85); opacity: 1; }
  45%, 55% { transform: translateY(35px) scale(0.85); opacity: 1; }
  80%, 90% { transform: translateY(70px) scale(0.85); opacity: 1; }
  95%, 100% { transform: translateY(80px) scale(1); opacity: 0; }
}

/* 4. Speak Out Loud */
.audio-vtext, .audio-utext {
  opacity: 1;
}

.audio-finger {
  top: 12px;
  left: 50%;
  margin-left: -8px;
  animation: audioFingerAnim 3s infinite;
}
@keyframes audioFingerAnim {
  0%, 10% { transform: scale(1) translateY(10px); opacity: 0; }
  20% { transform: scale(0.85) translateY(0); opacity: 1; }
  25%, 75% { transform: scale(0.85); opacity: 1; }
  85%, 100% { transform: scale(1) translateY(10px); opacity: 0; }
}

.audio-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: audioSpeakerFade 3s infinite;
  z-index: 20;
}
.audio-icon svg {
  transform: rotate(180deg);
}
@keyframes audioSpeakerFade {
  0%, 25% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  35%, 65% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
  75%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.audio-vtext {
  animation: audioTextFade 3s infinite;
  z-index: 15;
}
@keyframes audioTextFade {
  0%, 25% { opacity: 1; }
  35%, 65% { opacity: 0; }
  75%, 100% { opacity: 1; }
}

.audio-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(180deg);
  opacity: 0;
  animation: audioRippleAnim 3s infinite;
  z-index: 45;
  pointer-events: none;
}
@keyframes audioRippleAnim {
  0%, 30% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  35% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  65%, 100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

/* 5. Swipe Categories: Left/Right */
.anim-swipe-h .sf-cat {
  animation: scrubOp1 3s infinite ease-in-out;
}
.cat-ph1 { animation: scrubOp1 3s infinite ease-in-out; }
.cat-ph2 { animation: scrubOp2 3s infinite ease-in-out; }
.cat-ph3 { animation: scrubOp3 3s infinite ease-in-out; }

.swipe-h-finger {
  bottom: 20px;
  left: 10px;
  animation: swipeHFingerAnim 3s infinite ease-in-out;
}
@keyframes swipeHFingerAnim {
  0%, 10% { transform: translateX(0px) scale(1); opacity: 0; }
  15%, 20% { transform: translateX(0px) scale(0.85); opacity: 1; }
  40%, 60% { transform: translateX(40px) scale(0.85); opacity: 1; }
  80%, 90% { transform: translateX(0px) scale(0.85); opacity: 1; }
  95%, 100% { transform: translateX(-10px) scale(1); opacity: 0; }
}

/* 6. Variation Toggle: Tap Word */
.variation-finger {
  bottom: 12px;
  left: 20px;
  animation: variationFingerAnim 2s infinite;
}
@keyframes variationFingerAnim {
  0%, 10% { transform: scale(1) translateY(10px); opacity: 0; }
  15% { transform: scale(0.85) translateY(0); opacity: 1; }
  25%, 75% { transform: scale(0.85); opacity: 1; }
  85%, 100% { transform: scale(1) translateY(10px); opacity: 0; }
}
.variation-ripple {
  position: absolute;
  bottom: 12px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: rgba(var(--accent-rgb, 239, 68, 68), 0.4);
  border-radius: 50%;
  animation: tapRippleAnim 2s infinite;
  z-index: 55;
  opacity: 0;
}
.v-text-highlight {
  color: var(--accent, #ef4444);
  font-weight: 900;
  border-bottom: 1px dashed var(--accent, #ef4444);
}
@keyframes varTextChange {
  0%, 45% { content: "HELLO"; }
  55%, 100% { content: "HI"; }
}
.v-text-word::after {
  content: "HELLO";
  animation: varTextChange 2s infinite steps(1);
}

/* 7. Flag Switcher: Tap Flag */
.flag-finger {
  bottom: 4px;
  right: 4px;
  animation: variationFingerAnim 2s infinite;
}
.flag-ripple {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: tapRippleAnim 2s infinite;
  z-index: 55;
  opacity: 0;
}

/* 8. Swipe Down: Dismiss */
.anim-dismiss {
  animation: dismissCardContainer 3s infinite cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes dismissCardContainer {
  0%, 20% { transform: translateY(0); opacity: 1; }
  45%, 75% { transform: translateY(40px); opacity: 0; }
  85%, 100% { transform: translateY(0); opacity: 1; }
}
.dismiss-finger {
  top: 10px;
  left: 50%;
  margin-left: -8px;
  animation: dismissFingerAnim 3s infinite cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes dismissFingerAnim {
  0%, 15% { transform: translateY(-20px) scale(1); opacity: 0; }
  20% { transform: translateY(0px) scale(0.85); opacity: 1; }
  45%, 75% { transform: translateY(40px) scale(0.85); opacity: 1; }
  85%, 100% { transform: translateY(40px) scale(1); opacity: 0; }
}

/* Enhanced Comparison Section */
.comparison-wrap {
  margin: 32px 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.01);
}

.chart-row {
  margin-bottom: 18px;
}
.chart-row:last-child {
  margin-bottom: 0;
}

.chart-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.chart-label span:first-child {
  color: rgba(255, 255, 255, 0.85);
}

.chart-bar-bg {
  height: 9px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.3);
}
.chart-bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar-paid {
  background: linear-gradient(90deg, var(--accent), #fff);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.5);
}
.chart-bar-free {
  background: rgba(255, 255, 255, 0.12);
}

/* Light Mode Precision Overrides */
[data-theme="light"] .feature-info h4 { color: var(--fg); }
[data-theme="light"] .feature-info p { color: var(--fg-muted); }

[data-theme="light"] .real-mini-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .rm-bottom {
  background: #f8fafc;
  color: var(--fg);
}
[data-theme="light"] .rm-divider {
  background: #cbd5e1;
}
[data-theme="light"] .rm-divider::after {
  background: #f8fafc;
  border-color: #cbd5e1;
}
[data-theme="light"] .rm-scrubber i {
  background: rgba(0,0,0,0.2);
}

[data-theme="light"] .anim-finger {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(0,0,0,0.8);
}
[data-theme="light"] .tap-ripple, [data-theme="light"] .audio-ripple {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .comparison-wrap {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: none;
}
[data-theme="light"] .chart-label { color: rgba(15, 23, 42, 0.5); }
[data-theme="light"] .chart-label span:first-child { color: var(--fg); }
[data-theme="light"] .chart-bar-bg { background: rgba(15, 23, 42, 0.06); }
[data-theme="light"] .chart-bar-paid {
  background: var(--accent, #0f172a);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .chart-bar-free { background: rgba(15, 23, 42, 0.08); }

/* Responsive Scaling Fixes */
@media (max-width: 380px) {
  .paywall-features-list { gap: 20px; }
  .real-mini-card { width: 65px; }
  .feature-info h4 { font-size: 12.5px; }
  .feature-info p { font-size: 10.5px; }
  .rm-vendor-text, .rm-vendor-slide span { font-size: 6px; }
  .rm-user-text, .rm-user-slide span { font-size: 5.5px; }
}

@media (min-width: 768px) {
  .real-mini-card { width: 90px; }
  .feature-info h4 { font-size: 15px; }
  .feature-info p { font-size: 12.5px; }
  .rm-vendor-text, .rm-vendor-slide span { font-size: 8px; }
  .rm-user-text, .rm-user-slide span { font-size: 7.5px; }
}
/* ── TRIAL & WELCOME MODAL ── */
.trial-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 16px;
  background: linear-gradient(90deg, #ff5e5e, #7a5eff, #d95eff);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  color: var(--fg);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  z-index: 9999;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.trial-welcome-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.trial-welcome-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.trial-welcome-content {
  text-align: center;
  padding: 40px 24px;
  max-width: 320px;
  background: #111;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.trial-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(122, 94, 255, 0.4));
}

.trial-welcome-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(45deg, #fff, #7a5eff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--fg);
}

[data-theme="light"] .trial-welcome-content h3 {
  background: linear-gradient(45deg, #0f172a, #7a5eff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--fg);
}

.trial-welcome-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 24px;
}

[data-theme="light"] .trial-welcome-content p {
  color: var(--fg-muted);
}

.guide-cta {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s;
}

.guide-cta:active {
  transform: scale(0.96);
}

[data-theme="light"] .guide-cta {
  background: #0f172a;
  color: var(--fg);
}

/* ── LOCKED CARD TEASER ── */
.locked-card-teaser {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
}

.lock-emoji {
  font-size: 32px !important;
  margin-bottom: 12px !important;
  opacity: 0.8 !important;
}

.lock-blur {
  visibility: hidden !important;
  user-select: none !important;
  pointer-events: none !important;
  height: 1.2em !important;
  overflow: hidden !important;
}

.locked-card-cta {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  text-align: center !important;
  padding: 20px !important;
  background: rgba(0,0,0,0.05) !important;
  border-radius: 12px !important;
}

/* 8. Smart Search: 4-Way Compass */
.anim-compass .rm-top {
  flex-direction: column;
}

.g-mini-compass {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-center-dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  z-index: 2;
}

.g-node {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  z-index: 1;
}

.n-up { top: -6px; left: 50%; transform: translateX(-50%) rotate(180deg); }
.n-down { bottom: -6px; left: 50%; transform: translateX(-50%) rotate(180deg); }
.n-left { left: -6px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.n-right { right: -6px; top: 50%; transform: translateY(-50%) rotate(180deg); }

.compass-finger {
  bottom: 0px;
  left: 50%;
  margin-left: -8px;
  animation: compassFingerAnim 3s infinite cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes compassFingerAnim {
  0% { transform: translateY(20px) scale(1); opacity: 0; }
  15% { transform: translateY(5px) scale(0.9); opacity: 1; }
  35% { transform: translateY(-20px) scale(0.9); opacity: 1; }
  45% { transform: translateY(-20px) scale(1); opacity: 0; }
  60% { transform: translateY(20px) scale(1); opacity: 0; }
  75% { transform: translate(15px, 0) scale(0.9); opacity: 1; }
  90% { transform: translate(-15px, 0) scale(0.9); opacity: 1; }
  100% { transform: translate(-15px, 0) scale(1); opacity: 0; }
}

/* ── MINIMAL PRICING SECTION ✨ ── */
.pricing-minimal {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.minimal-header {
  margin-bottom: 48px;
}

.minimal-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 850;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.minimal-subtitle {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 500px;
  margin: 0 auto;
}

.minimal-rate-box {
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  padding: 32px;
  border-radius: 32px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 64px;
}

.rate-badge {
  background: var(--accent);
  color: #000;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.rate-amount {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.rate-amount span {
  font-size: 24px;
  opacity: 0.5;
}

.rate-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 600;
}

/* Landing page days slider */
.lp-days-slider {
  width: 100%;
  max-width: 280px;
  margin: 16px auto 8px;
}

/* Feature Grid — 2-column card layout */

@keyframes mini-tap-anim {
  0%, 100% { transform: scale(1); opacity: 0; }
  20% { transform: scale(1); opacity: 1; }
  40% { transform: scale(0.8); opacity: 1; }
  60% { transform: scale(1); opacity: 1; }
  80% { transform: scale(1); opacity: 0; }
}

.minimal-cta-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-subtext {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Small screen fixes ── */
@media (max-width: 375px) {
  .paywall-sheet { padding: 16px; }
  .pw-card-mockup { transform: scale(0.85); }
}
