/* =====================================================================
   English Flow — Gamified Content Pages (flow-pages.css)
   Pure light theme. High-dopamine, Duolingo-styled homepage & subpages.
   ===================================================================== */

/* ---------------- Home Hero ---------------- */
.hero {
  padding-top: 40px !important;
  background: radial-gradient(circle at 80% 20%, rgba(215, 255, 184, 0.4), transparent 50%),
              radial-gradient(circle at 10% 40%, rgba(221, 244, 255, 0.4), transparent 45%),
              #ffffff !important;
}

.hero-flo {
  position: absolute;
  top: -45px;
  right: -25px;
  width: 130px;
  z-index: 10;
  filter: drop-shadow(0 12px 20px rgba(88, 204, 2, 0.28));
  animation: flo-float 3.5s ease-in-out infinite;
}

@keyframes flo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px !important;
  margin-top: 28px !important;
}

.hero-actions .button-primary {
  background: var(--ff-green) !important;
  box-shadow: 0 5px 0 var(--ff-green-dark) !important;
  color: #ffffff !important;
  padding: 16px 30px !important;
  font-size: 16px !important;
}
.hero-actions .button-quiet {
  background: #ffffff !important;
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 4px 0 var(--ff-line) !important;
  color: var(--ff-ink) !important;
  padding: 16px 24px !important;
  font-size: 15px !important;
}

/* Home quick ribbon */
.quick-ribbon {
  background: var(--ff-yellow-soft) !important;
  border-bottom: 2px solid var(--ff-yellow) !important;
  padding: 10px 0 !important;
}
.qr-label {
  background: var(--ff-yellow) !important;
  color: #4b3a00 !important;
  font-weight: 900 !important;
  border-radius: 8px !important;
}
.qr-link {
  font-weight: 800 !important;
  color: var(--ff-ink) !important;
}

/* Home Stats Banner */
.home-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 36px 0 0;
  padding: 14px 20px;
  background: #ffffff;
  border: 2px solid var(--ff-line);
  box-shadow: 0 4px 0 var(--ff-line);
  border-radius: 20px;
}
.home-stats-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ff-ink);
}
.home-stats-strip b {
  color: var(--ff-green-dark);
}

/* ---------------- Home Practice Section (CONVERTED TO 100% LIGHT!) ---------------- */
.practice-section {
  background: linear-gradient(135deg, #f4fff7 0%, #edfcf1 50%, #ffffff 100%) !important;
  color: var(--ff-ink) !important;
  border-top: 2px solid var(--ff-line);
  border-bottom: 2px solid var(--ff-line);
  padding: 85px 0 !important;
}

.practice-intro h2 {
  color: var(--ff-ink) !important;
  font-size: clamp(38px, 4.5vw, 56px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
}
.practice-intro > p:not(.eyebrow) {
  color: var(--ff-muted) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.practice-intro .streak-card {
  background: #ffffff !important;
  border: 2px solid #ffe1b3 !important;
  box-shadow: 0 5px 0 #ffd18c !important;
  border-radius: 18px !important;
  color: var(--ff-ink) !important;
  padding: 16px !important;
}
.practice-intro .streak-card strong {
  color: var(--ff-ink) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
.practice-intro .streak-card small {
  color: var(--ff-muted) !important;
  font-weight: 700 !important;
}
.practice-intro .flame {
  background: #fff4e0 !important;
  color: var(--ff-orange) !important;
  font-size: 22px !important;
  border-radius: 14px !important;
}
.practice-intro .streak-dots i {
  background: #e2e8f0 !important;
  width: 7px !important;
  height: 7px !important;
}
.practice-intro .streak-dots .done {
  background: var(--ff-orange) !important;
}

/* Quiz Card on Home */
.quiz-card {
  background: #ffffff !important;
  border: 3px solid #d7ffb8 !important;
  box-shadow: 0 6px 0 #b3e685, 0 16px 36px rgba(88, 204, 2, 0.12) !important;
  border-radius: 26px !important;
  padding: 34px !important;
}

.quiz-top {
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 1.2px !important;
  color: var(--ff-blue) !important;
}

.quiz-progress {
  height: 12px !important;
  background: var(--ff-line) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  margin: 12px 0 28px !important;
}
.quiz-progress i {
  background: var(--ff-green) !important;
  border-radius: 20px !important;
}

.quiz-prompt {
  font-family: var(--ff-font) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: var(--ff-ink) !important;
  line-height: 1.35 !important;
  margin-bottom: 24px !important;
}

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

.answer {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  padding: 15px 18px !important;
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 4px 0 var(--ff-line) !important;
  border-radius: 18px !important;
  font-family: var(--ff-font) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--ff-ink) !important;
  background: #ffffff !important;
  cursor: pointer;
  transition: all 0.1s ease !important;
}
.answer b {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  border: 2px solid var(--ff-line) !important;
  color: var(--ff-muted) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  flex-shrink: 0;
}
.answer:hover {
  background: #f8fafc !important;
  transform: translateY(-1px) !important;
}
.answer.is-selected {
  background: var(--ff-blue-soft) !important;
  border-color: var(--ff-blue) !important;
  box-shadow: 0 4px 0 var(--ff-blue-dark) !important;
  color: var(--ff-blue-dark) !important;
}
.answer.is-selected b {
  background: var(--ff-blue) !important;
  border-color: var(--ff-blue) !important;
  color: #ffffff !important;
}
.answer.is-correct {
  background: var(--ff-green-soft) !important;
  border-color: var(--ff-green) !important;
  box-shadow: 0 4px 0 var(--ff-green-dark) !important;
  color: var(--ff-green-dark) !important;
}
.answer.is-correct b {
  background: var(--ff-green) !important;
  border-color: var(--ff-green) !important;
  color: #ffffff !important;
}
.answer.is-wrong {
  background: var(--ff-red-soft) !important;
  border-color: var(--ff-red) !important;
  box-shadow: 0 4px 0 var(--ff-red-dark) !important;
  color: var(--ff-red-dark) !important;
  animation: ff-shake 0.4s ease;
}
.answer.is-wrong b {
  background: var(--ff-red) !important;
  border-color: var(--ff-red) !important;
  color: #ffffff !important;
}

.quiz-feedback {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--ff-muted) !important;
  margin: 16px 0 8px !important;
}
.quiz-feedback.success {
  color: var(--ff-green-dark) !important;
}
.quiz-feedback.error {
  color: var(--ff-red-dark) !important;
}

.quiz-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px !important;
  border-top: 2px solid var(--ff-line) !important;
}
.quiz-bottom span {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ff-muted) !important;
}
.quiz-bottom button {
  background: var(--ff-green) !important;
  box-shadow: 0 4px 0 var(--ff-green-dark) !important;
  color: #ffffff !important;
  font-family: var(--ff-font) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 12px 22px !important;
  border: none !important;
  border-radius: 14px !important;
  cursor: pointer;
  transition: all 0.1s ease !important;
}
.quiz-bottom button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ff-green-dark) !important;
}
.quiz-bottom button:disabled {
  background: #e5e5e5 !important;
  box-shadow: 0 4px 0 #cfcfcf !important;
  color: #afafaf !important;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------------- Path & Video Cards ---------------- */
.path-card {
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 5px 0 var(--ff-line) !important;
  border-radius: 22px !important;
  transition: all 0.15s ease !important;
}
.path-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 0 var(--ff-line) !important;
}

.video-card {
  background: #ffffff;
  border: 2px solid var(--ff-line);
  box-shadow: 0 4px 0 var(--ff-line);
  border-radius: 20px;
  padding: 14px;
  transition: all 0.15s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--ff-line);
}
.video-card .video-thumb {
  border-radius: 14px !important;
}

/* Shorts section (bright cream/yellow) */
.shorts-section {
  background: #fffdf5 !important;
  border-top: 2px solid var(--ff-line);
  border-bottom: 2px solid var(--ff-line);
}
.short-card {
  border: 2px solid #ebd9b8 !important;
  box-shadow: 0 5px 0 #e4cda5 !important;
  border-radius: 18px !important;
}
.short-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 0 #e4cda5 !important;
}

/* ---------------- Explore / Monetization Callouts ---------------- */
.explore-card {
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 5px 0 var(--ff-line) !important;
  border-radius: 24px !important;
  padding: 32px !important;
  background: #ffffff !important;
}
.explore-practice {
  background: linear-gradient(135deg, #f0fff4, #ffffff) !important;
  border-color: #d7ffb8 !important;
  box-shadow: 0 5px 0 #c2f59c !important;
}

/* ---------------- Library Page ---------------- */
.library-card {
  background: #ffffff !important;
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 5px 0 var(--ff-line) !important;
  border-radius: 20px !important;
  padding: 16px !important;
  transition: all 0.15s ease !important;
}
.library-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 0 var(--ff-line) !important;
}
.filter-bar button {
  font-family: var(--ff-font) !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  border-radius: 16px !important;
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 3px 0 var(--ff-line) !important;
  padding: 10px 18px !important;
  background: #ffffff !important;
  color: var(--ff-ink) !important;
  cursor: pointer;
  transition: all 0.1s ease;
}
.filter-bar button.is-current {
  background: var(--ff-blue) !important;
  border-color: var(--ff-blue-dark) !important;
  box-shadow: 0 4px 0 var(--ff-blue-dark) !important;
  color: #ffffff !important;
}
.library-banner {
  background: linear-gradient(135deg, #f0fff4 0%, #eafcf1 100%) !important;
  color: var(--ff-ink) !important;
  border-top: 2px solid var(--ff-line);
}
.library-banner h2 {
  color: var(--ff-ink) !important;
}

/* ---------------- Products Page ---------------- */
.product-card {
  background: #ffffff;
  border: 2px solid var(--ff-line);
  box-shadow: 0 5px 0 var(--ff-line);
  border-radius: 22px;
  padding: 20px;
  transition: transform 0.15s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--ff-line);
}

/* ---------------- Shared Hero with Companion Characters ---------------- */
.hero-character-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-character-copy {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 100%;
}
.hero-character-art {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-shrink: 0;
}

/* ---------------- About Page (100% Bright Light Theme) ---------------- */
.page-hero-about {
  background: linear-gradient(135deg, #f4edff 0%, #ffffff 100%) !important;
  border-bottom: 2px solid var(--ff-line);
  padding: 60px 0 !important;
  position: relative;
}
.about-quote {
  background: var(--ff-yellow-soft) !important;
  border: 2px solid var(--ff-yellow) !important;
  border-left: 6px solid var(--ff-orange) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 0 #ecd18a !important;
  padding: 24px 28px !important;
}
.about-quote span {
  color: var(--ff-orange) !important;
}
.about-quote p {
  color: var(--ff-ink) !important;
  font-family: var(--ff-font) !important;
  font-weight: 800 !important;
}
.values-section {
  background: #fbf9ff !important;
  border-top: 2px solid var(--ff-line);
  border-bottom: 2px solid var(--ff-line);
}
.values-grid article {
  background: #ffffff !important;
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 4px 0 var(--ff-line) !important;
  border-radius: 20px !important;
  transition: transform 0.15s ease;
}
.values-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--ff-line) !important;
}
.value-icon {
  background: var(--ff-purple-soft) !important;
  color: var(--ff-purple-dark) !important;
  border-radius: 12px !important;
}
.how-list div {
  border-bottom: 2px dashed var(--ff-line) !important;
}
.how-list span {
  color: var(--ff-blue) !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}

/* Connect Panel — converted to 100% Bright Theme */
.connect-panel {
  background: linear-gradient(135deg, #f0fff4 0%, #e8f9fd 100%) !important;
  color: var(--ff-ink) !important;
  border: 2px solid #c8ecd5 !important;
  box-shadow: 0 6px 0 #b3dfc2 !important;
  border-radius: 24px !important;
}
.connect-panel h2 {
  color: var(--ff-ink) !important;
}
.connect-panel a {
  background: #ffffff !important;
  color: var(--ff-ink) !important;
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 3px 0 var(--ff-line) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  margin-bottom: 10px !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  transition: all 0.15s ease !important;
}
.connect-panel a:hover {
  transform: translateY(-2px);
  border-color: var(--ff-green);
  box-shadow: 0 5px 0 var(--ff-green-dark) !important;
  color: var(--ff-green-dark) !important;
}
.connect-panel a > span {
  background: var(--ff-green-soft) !important;
  color: var(--ff-green-dark) !important;
  border-radius: 8px !important;
}
.connect-panel a b {
  color: var(--ff-green-dark) !important;
}

/* ---------------- Worksheets & 30-Day Workbook ---------------- */
.sheet, .cover {
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 6px 0 var(--ff-line) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
}
.phrase {
  background: var(--ff-green-soft) !important;
  color: var(--ff-green-dark) !important;
  border: 2px solid #b7f093 !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
}
.check {
  background: var(--ff-yellow-soft) !important;
  border: 2px solid var(--ff-yellow) !important;
  border-radius: 14px !important;
  color: #634b00 !important;
  font-weight: 800 !important;
}
.k {
  color: var(--ff-orange) !important;
  font-weight: 900 !important;
  letter-spacing: 1.2px !important;
}

/* ---------------- Resources & Guide Pages ---------------- */
#pdf-content {
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 6px 0 var(--ff-line) !important;
  border-radius: 24px !important;
}
.pv-card {
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 4px 0 var(--ff-line) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
}
.animation-box {
  border: 2px solid var(--ff-yellow) !important;
  box-shadow: 0 4px 0 #ebd17f !important;
  border-radius: 20px !important;
  background: var(--ff-yellow-soft) !important;
}
.pv-quiz-section {
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 6px 0 var(--ff-line) !important;
  border-radius: 22px !important;
}
.pv-btn {
  border: 2px solid var(--ff-line) !important;
  box-shadow: 0 3px 0 var(--ff-line) !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  transition: all 0.1s ease !important;
}
.pv-btn:hover {
  background: #f1f5f9 !important;
  transform: translateY(-1px);
}
.pv-btn.selected-correct {
  background: var(--ff-green) !important;
  border-color: var(--ff-green-dark) !important;
  box-shadow: 0 4px 0 var(--ff-green-dark) !important;
  color: #ffffff !important;
}
.pv-btn.selected-wrong {
  background: var(--ff-red) !important;
  border-color: var(--ff-red-dark) !important;
  box-shadow: 0 4px 0 var(--ff-red-dark) !important;
  color: #ffffff !important;
}

/* ---------------- Mobile & Android Viewport Fixes ---------------- */
@media (max-width: 850px) {
  .hero {
    padding-top: 24px !important;
    padding-bottom: 36px !important;
  }
  .hero-flo {
    width: 96px !important;
    top: -24px !important;
    right: 0 !important;
  }
  .quick-ribbon .section-shell {
    justify-content: center !important;
    gap: 7px !important;
    padding: 8px 10px !important;
  }
  .qr-link {
    font-size: 12px !important;
    padding: 7px 11px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .qr-live-counter {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
  .home-stats-strip {
    margin-top: 24px !important;
    padding: 10px 14px !important;
    gap: 10px 16px !important;
  }
  .start-here-grid, .library-grid, .video-grid, .path-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 570px) {
  .hero-flo {
    position: static !important;
    display: block !important;
    margin: 0 auto 12px !important;
    width: 88px !important;
  }
  .hero-visual {
    min-height: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .lesson-window {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 14px !important;
    transform: none !important;
  }
  .floating-note {
    display: none !important;
  }
  .home-stats-strip span {
    font-size: 12px !important;
  }
  .hero-actions .button, .hero-actions .ff-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .connect-links a {
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* Hero with companion characters on mobile */
  .hero-character-shell, .page-hero .section-shell {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-character-copy, .page-hero .section-shell > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .hero-character-copy .eyebrow, .page-hero .eyebrow {
    justify-content: center !important;
  }
  .page-hero h1 {
    font-size: clamp(22px, 6.2vw, 34px) !important;
    line-height: 1.15 !important;
  }
  .library-stat-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 310px !important;
    margin: 18px auto 0 !important;
    box-sizing: border-box !important;
  }
  .library-stat-row span {
    font-size: 11px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
  .hero-character-art, .page-hero .section-shell > div:last-child {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    margin: 8px auto 0 !important;
    width: 100% !important;
  }

  /* Filter bar wrap on mobile */
  .filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .filter-bar button {
    font-size: 12px !important;
    padding: 7px 12px !important;
  }

  /* About quote mobile fit */
  .about-quote {
    padding: 18px 16px !important;
  }
  .about-quote p {
    font-size: clamp(16px, 4.5vw, 20px) !important;
  }
}

/* ==========================================================================
   Live Visitor Counter Pill
   ========================================================================== */
.qr-live-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #d7ffb8;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #276700;
  box-shadow: 0 4px 10px rgba(88, 204, 2, 0.12);
  user-select: none;
  white-space: nowrap;
}

.pulse-dot-green {
  position: relative;
  width: 9px;
  height: 9px;
  background-color: #58cc02;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.pulse-dot-green::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: rgba(88, 204, 2, 0.4);
  animation: pulseGreen 1.8s infinite ease-out;
}
@keyframes pulseGreen {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.count-pulse {
  display: inline-block !important;
  animation: countHop 0.35s ease !important;
  color: #16a34a !important;
}
@keyframes countHop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.15); color: #15803d; }
  100% { transform: translateY(0) scale(1); }
}

/* ==========================================================================
   New Product Shower / Spotlight Banner (Home Page)
   ========================================================================== */
.new-product-shower {
  padding: 18px 0 26px 0;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border-bottom: 1.5px solid #fef08a;
  position: relative;
  overflow: hidden;
}

.nps-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #58cc02;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 10px 28px rgba(88, 204, 2, 0.12), 0 4px 0 #58a700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
}

.nps-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(88, 204, 2, 0.15) 0%, rgba(255, 200, 0, 0.08) 50%, transparent 70%);
  pointer-events: none;
  animation: npsGlowPulse 4s infinite alternate ease-in-out;
}
@keyframes npsGlowPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 1; }
}

.nps-left {
  flex: 1 1 58%;
  min-width: 280px;
  z-index: 2;
}

.nps-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.nps-tag-new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ff4b4b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 2px 0 #ea2b2b;
}

.nps-tag-free {
  background: #58cc02;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 0 #58a700;
}

.nps-tag-type {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.nps-title {
  margin: 0 0 8px 0 !important;
  font-size: clamp(20px, 4vw, 28px) !important;
  line-height: 1.25 !important;
  color: #1e293b;
}

.nps-title em {
  color: #107c41;
  font-style: normal;
}

.nps-desc {
  margin: 0 0 14px 0 !important;
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  color: #475569;
  max-width: 580px;
}

.nps-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nps-meta-pills span {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 8px;
}

.nps-right {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.nps-card-preview {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  transition: transform 0.25s ease;
}
.nps-card-preview:hover {
  transform: translateY(-3px) scale(1.02);
}
.nps-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

.nps-action-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}
.nps-download-btn {
  width: 100% !important;
  padding: 13px 20px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 0 #58a700 !important;
  line-height: 1 !important;
}
.nps-viewall-btn {
  width: 100% !important;
  padding: 11px 18px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

@media (max-width: 820px) {
  .nps-card {
    flex-direction: column;
    padding: 20px 18px;
    gap: 20px;
  }
  .nps-right {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .nps-card-preview {
    max-width: 100%;
  }
  .nps-action-btns {
    max-width: 100%;
  }
}

/* ==========================================================================
   Product Card Excel Customizations (Products Page)
   ========================================================================== */
.product-card-excel {
  border: 2px solid #58cc02 !important;
  box-shadow: 0 8px 24px rgba(88, 204, 2, 0.12), 0 4px 0 #58a700 !important;
  background: #ffffff !important;
}
.badge-free-pill {
  background: #58cc02 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 0 #58a700 !important;
}
.product-btn-excel {
  background: #58cc02 !important;
  border-color: #58a700 !important;
  box-shadow: 0 4px 0 #58a700 !important;
  color: #ffffff !important;
}
.product-btn-excel:hover {
  background: #61e002 !important;
}

/* ==========================================================================
   Community Comments & Discussion Component
   ========================================================================== */
.community-comments-section {
  padding: 56px 0 68px 0;
  background: #fdfcf9;
  border-top: 1.5px solid #f1ece4;
}

.comm-shell {
  max-width: 860px;
  margin: 0 auto;
}

.comm-intro {
  margin-bottom: 28px;
}
.comm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.comm-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #b0447e;
  text-transform: uppercase;
}
.comm-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eefbee;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #166534;
}

.comm-intro h2 {
  margin: 0 0 10px 0 !important;
  font-size: clamp(22px, 5vw, 36px) !important;
  line-height: 1.2 !important;
  color: #1e293b;
}
.comm-intro h2 em {
  color: #58cc02;
  font-style: normal;
}
.comm-desc {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #64748b;
}

/* Post Box */
.comm-post-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 34px;
}
.comm-box-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.comm-box-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid #cbd5e1;
}
.comm-box-fields {
  flex: 1 1 auto;
}
.comm-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.comm-input {
  flex: 1 1 200px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: var(--ff-font);
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comm-input:focus, .comm-textarea:focus {
  border-color: #58cc02;
  box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.15);
}
.comm-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: var(--ff-font);
  font-size: 14.5px;
  line-height: 1.45;
  color: #1e293b;
  outline: none;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.input-shake {
  animation: inputShake 0.4s ease;
  border-color: #ff4b4b !important;
}
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.comm-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.comm-helper-hints {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.comm-btn-post {
  padding: 11px 20px !important;
  font-size: 14px !important;
}

/* Feed List */
.comm-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.comm-feed-header h3 {
  margin: 0 !important;
  font-size: 19px !important;
  color: #1e293b;
}
.comm-feed-badge {
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  padding: 4px 12px;
  border-radius: 999px;
}

.comm-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comm-card {
  background: #ffffff;
  border: 1.5px solid #f1f5f9;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.comm-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.comm-card-user {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
}
.comm-just-added {
  animation: commSlideIn 0.5s ease;
}
@keyframes commSlideIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.comm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comm-avatar-shell {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}
.comm-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comm-avatar-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: #ffffff;
}
.comm-user-meta {
  flex: 1 1 auto;
}
.comm-user-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.comm-name {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1e293b;
}
.comm-you-tag {
  background: #58cc02;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
}
.comm-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}
.comm-sub-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.comm-loc {
  color: #64748b;
  font-weight: 600;
}
.comm-body {
  margin: 0 0 12px 0 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  color: #334155;
}
.comm-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.comm-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.comm-like-btn:hover {
  background: #f1f5f9;
}
.comm-like-btn.is-liked {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.comm-reply-tag {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

