/* ==========================================================================
   HIGHFLOW LITHIUM — CUSTOM INTERACTIVE COMPONENTS CSS
   Extracted & optimized from original custom widgets
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. KEY FEATURES STICKY SCROLL SECTION (#hf-key-features)
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');

/* =========================================
   HIGHFLOW LITHIUM — KEY FEATURES
========================================= */

#hf-key-features {
  --hk-blue: #007DFF;
  --hk-dark: #101D35;
  --hk-muted: #64748B;
  --hk-border: #D3E3F8;
  --hk-p: 0;

  width: 100%;
  overflow: clip;
  isolation: isolate;
  background: #F4F9FF;
  color: var(--hk-dark);
  font-family: Inter, Arial, sans-serif;
}

#hf-key-features *,
#hf-key-features *::before,
#hf-key-features *::after {
  box-sizing: border-box;
}

/* Scroll container */

#hf-key-features .hk-scroll {
  position: relative;
  height: 220vh;
  min-height: 1400px;
}

#hf-key-features .hk-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #EAF3FF 0%, #FFFFFF 46%, #E4F0FF 100%);
  isolation: isolate;
}

/* ---------- Background: charging waves + aurora ---------- */

/* faint dot pattern */
#hf-key-features .hk-dotsgrid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(rgba(0,125,255,.30) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
}

/* slow drifting colour clouds */
#hf-key-features .hk-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
#hf-key-features .hk-a1 {
  width: 620px; height: 620px; left: -160px; top: -200px;
  background: radial-gradient(circle, rgba(0,125,255,.38), transparent 68%);
  animation: hkDrift1 18s ease-in-out infinite alternate;
}
#hf-key-features .hk-a2 {
  width: 560px; height: 560px; right: -140px; top: 5%;
  background: radial-gradient(circle, rgba(0,194,255,.34), transparent 68%);
  animation: hkDrift2 22s ease-in-out infinite alternate;
}
#hf-key-features .hk-a3 {
  width: 700px; height: 420px; left: 30%; bottom: -160px;
  background: radial-gradient(circle, rgba(60,110,255,.30), transparent 70%);
  animation: hkDrift1 26s ease-in-out infinite alternate-reverse;
}

/* energy level that rises as the cards arrive (like a battery charging) */
#hf-key-features .hk-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(110px + var(--hk-p) * 230px);
}
#hf-key-features .hk-wave {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% + 1200px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0 60C150 20 350 100 600 60S1050 20 1200 60V120H0Z' fill='%23007DFF'/%3E%3C/svg%3E") repeat-x 0 0 / 1200px 120px,
    linear-gradient(#007DFF, #007DFF) 0 119px / 100% 100% no-repeat;
  will-change: transform;
}
#hf-key-features .hk-w1 { opacity: .10; animation: hkWave 19s linear infinite; }
#hf-key-features .hk-w2 { opacity: .14; top: 14px; animation: hkWave 13s linear infinite reverse; }
#hf-key-features .hk-w3 { opacity: .20; top: 30px; animation: hkWave 9s linear infinite; }

@keyframes hkWave   { from { transform: translateX(0); } to { transform: translateX(-1200px); } }
@keyframes hkDrift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(120px,70px,0) scale(1.15); } }
@keyframes hkDrift2 { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-110px,90px,0) scale(.95); } }

/* ---------- Heading ---------- */

#features {
  scroll-margin-top: 80px;
}

#hf-key-features .hk-heading {
  position: absolute;
  top: clamp(65px, 8.5vh, 105px);
  left: 20px;
  right: 20px;
  z-index: 3;
  text-align: center;
  pointer-events: none;
  padding-top: 15px;
}

#hf-key-features .hk-heading h2.hk-sub {
  margin: 0 0 4px !important;
  padding: 0 !important;
  background: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.15em !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  color: #007DFF !important;
  text-align: center !important;
}

#hf-key-features .hk-heading h2.hk-title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 2.4em !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  color: #000000 !important;
  text-align: center !important;
}

#hf-key-features .hk-heading h2.hk-title span {
  color: #007DFF !important;
  background: none !important;
}

#hf-key-features .hk-heading p.hk-desc {
  margin: 0 auto !important;
  max-width: 640px;
  background: none !important;
  color: #000000 !important;
  font-size: 15px;
  line-height: 1.6;
  text-align: center !important;
}

/* ---------- Card area (unchanged) ---------- */

#hf-key-features .hk-card-area {
  position: absolute;
  top: 52%;
  left: 50%;
  width: min(1160px, calc(100% - 80px));
  height: 390px;
  transform: translate(-50%, -36%);
}

/* Cards */

#hf-key-features .hk-card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 30%;
  min-height: 340px;
  padding: 35px 29px 26px;

  border: 1px solid var(--hk-border);
  border-radius: 13px;

  background: #FFFFFF;

  box-shadow:
    0 12px 34px rgba(0, 90, 200, 0.08),
    0 1px 3px rgba(24, 51, 88, 0.04);

  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, -50%);

  overflow: hidden;
  will-change: transform, opacity;

  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

#hf-key-features .hk-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--hk-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(.22,.8,.3,1);
}

#hf-key-features .hk-card.is-settled::before {
  transform: scaleX(1);
}

#hf-key-features .hk-card.is-settled {
  border-color: #A9CCFF;
  box-shadow:
    0 22px 56px rgba(0, 100, 230, 0.16),
    0 2px 8px rgba(24, 51, 88, 0.04);
}

/* Card numbering */

#hf-key-features .hk-number {
  position: absolute;
  top: 23px;
  right: 25px;
  color: #E0E7F0;
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
  transition: color 0.4s ease;
}

#hf-key-features .hk-card.is-settled .hk-number {
  color: var(--hk-blue);
}

/* Icons */

#hf-key-features .hk-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 29px;

  border: 1px solid #CFE2FF;
  border-radius: 10px;

  background: #EEF5FF;
  color: var(--hk-blue);

  transition:
    background 0.4s ease,
    color 0.4s ease,
    transform 0.5s cubic-bezier(.22,.8,.3,1);
}

#hf-key-features .hk-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

#hf-key-features .hk-card.is-settled .hk-icon {
  background: var(--hk-blue);
  border-color: var(--hk-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Card content */

#hf-key-features .hk-card h3 {
  margin: 0;
  padding: 0;
  max-width: 100%;

  color: #111D33;
  font-size: clamp(19px, 1.65vw, 23px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.45px;

  overflow-wrap: anywhere;
}

#hf-key-features .hk-card p {
  margin: 15px 0 26px;
  padding: 0;

  color: #65758D;
  font-size: 13px;
  line-height: 1.85;
  font-weight: 400;
}

#hf-key-features .hk-card-footer {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #EDF1F7;

  color: #8796AA;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.15px;
}

#hf-key-features .hk-footer-line {
  width: 19px;
  height: 2px;
  flex-shrink: 0;
  background: var(--hk-blue);
  border-radius: 5px;
}

/* Progress */

#hf-key-features .hk-progress {
  position: absolute;
  bottom: 35px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

#hf-key-features .hk-progress-label {
  color: #8795A9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

#hf-key-features .hk-progress-track {
  display: block;
  width: 100px;
  height: 3px;
  border-radius: 5px;
  overflow: hidden;
  background: #D5E3F5;
}

#hf-key-features .hk-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--hk-blue);
}

#hf-key-features .hk-progress-count {
  color: var(--hk-blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#hf-key-features .hk-progress-count b {
  color: #A3B1C3;
  margin: 0 3px;
}

/* Tablet */

@media (max-width: 900px) and (min-width: 601px) {
  #hf-key-features .hk-heading h2.hk-title { font-size: 2.1em !important; }

  #hf-key-features .hk-card-area {
    width: calc(100% - 40px);
  }

  #hf-key-features .hk-card {
    width: 31%;
    min-height: 330px;
    padding: 30px 20px 23px;
  }

  #hf-key-features .hk-card h3 {
    font-size: 19px;
  }

  #hf-key-features .hk-card p {
    font-size: 12px;
  }

  #hf-key-features .hk-number {
    right: 17px;
    font-size: 24px;
  }
}

/* Mobile: normal vertical card layout */

@media (max-width: 600px) {
  #hf-key-features .hk-scroll {
    height: auto;
    min-height: 0;
  }

  #hf-key-features .hk-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding: 65px 18px 70px;
    overflow: hidden;
  }

  #hf-key-features .hk-heading {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-bottom: 35px;
  }

  #hf-key-features .hk-heading h2.hk-sub {
    font-size: 18px !important;
  }

  #hf-key-features .hk-heading h2.hk-title {
    font-size: 28px !important;
  }

  #hf-key-features .hk-heading p.hk-desc {
    font-size: 14px;
  }

  #hf-key-features .hk-card-area {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: none;
  }

  #hf-key-features .hk-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 0;
    padding: 29px 25px 25px;

    opacity: 1 !important;
    visibility: visible !important;

    transform: none !important;
    will-change: auto;
  }

  #hf-key-features .hk-card::before {
    transform: scaleX(1);
  }

  #hf-key-features .hk-number {
    font-size: 24px;
  }

  #hf-key-features .hk-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 25px;
  }

  #hf-key-features .hk-card h3 {
    font-size: 22px;
  }

  #hf-key-features .hk-card p {
    font-size: 13px;
    margin-bottom: 23px;
  }

  #hf-key-features .hk-progress {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 32px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hf-key-features .hk-card,
  #hf-key-features .hk-card *,
  #hf-key-features .hk-progress-fill {
    transition: none !important;
  }
  #hf-key-features .hk-aurora,
  #hf-key-features .hk-wave {
    animation: none !important;
  }
}


/* --------------------------------------------------------------------------
   2. HIGHFLOW TIMELINE & ATOM SIMULATION (#hf-premium-history)
   -------------------------------------------------------------------------- */

/* =========================================
   HIGHFLOW LITHIUM - PREMIUM TIMELINE
========================================= */

#hf-premium-history {
  --hf-blue: #007DFF;
  --hf-blue-dark: #0057CB;
  --hf-navy: #08182E;
  --hf-text: #10233F;
  --hf-muted: #6C7B91;
  --hf-white: #FFFFFF;

  position: relative;
  width: 100%;
  background: #F7FAFF;
  color: var(--hf-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow: clip;
  isolation: isolate;
}

#hf-premium-history *,
#hf-premium-history *::before,
#hf-premium-history *::after {
  box-sizing: border-box;
}

#hf-premium-history button {
  font: inherit;
}

#hf-premium-history .hf-scroll {
  position: relative;
  height: 240vh;
  min-height: 1500px;
}

#hf-premium-history .hf-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background: linear-gradient(180deg, #EAF3FF 0%, #FFFFFF 46%, #E4F0FF 100%);
}

/* =========================================
   ANIMATED BACKGROUND
========================================= */

#hf-premium-history .hf-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#hf-premium-history .hf-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

#hf-premium-history .hf-dotsgrid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(rgba(0,125,255,.30) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
}

#hf-premium-history .hf-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
#hf-premium-history .hf-a1 {
  width: 620px; height: 620px; left: -160px; top: -200px;
  background: radial-gradient(circle, rgba(0,125,255,.36), transparent 68%);
  animation: hfDrift1 18s ease-in-out infinite alternate;
}
#hf-premium-history .hf-a2 {
  width: 560px; height: 560px; right: -140px; top: 5%;
  background: radial-gradient(circle, rgba(0,194,255,.32), transparent 68%);
  animation: hfDrift2 22s ease-in-out infinite alternate;
}
#hf-premium-history .hf-a3 {
  width: 700px; height: 420px; left: 30%; bottom: -160px;
  background: radial-gradient(circle, rgba(60,110,255,.28), transparent 70%);
  animation: hfDrift1 26s ease-in-out infinite alternate-reverse;
}

/* High-Tech Cyber Horizon & Energy Glow (Replaced old wave animation) */
#hf-premium-history .hf-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, transparent 100%);
}

#hf-premium-history .hf-wave {
  position: absolute;
  will-change: transform, opacity;
}

/* Layer 1: 3D Cyber Perspective Tech Grid */
#hf-premium-history .hf-w1 {
  inset: -10px -25% 0 -25%;
  width: auto;
  background-image: 
    linear-gradient(to right, rgba(0, 125, 255, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 125, 255, 0.22) 1px, transparent 1px);
  background-size: 46px 28px;
  transform: perspective(280px) rotateX(66deg);
  transform-origin: bottom center;
  opacity: 0.85;
  animation: hfCyberGridTravel 10s linear infinite;
}

/* Layer 2: Glowing Neon Energy Horizon Beam */
#hf-premium-history .hf-w2 {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #007DFF 18%, #00E5FF 50%, #007DFF 82%, transparent 100%);
  box-shadow: 0 0 16px #00E5FF, 0 0 32px rgba(0, 125, 255, 0.7);
  animation: hfEnergyBeamPulse 3.5s ease-in-out infinite alternate;
}

/* Layer 3: Dynamic Ambient Energy Pool Glow */
#hf-premium-history .hf-w3 {
  left: 12%;
  right: 12%;
  bottom: -30px;
  width: auto;
  height: 110px;
  background: radial-gradient(ellipse at center, rgba(0, 194, 255, 0.3) 0%, rgba(0, 125, 255, 0.12) 55%, transparent 75%);
  filter: blur(28px);
  animation: hfEnergyAuraBreathe 5s ease-in-out infinite alternate;
}

@keyframes hfCyberGridTravel {
  from { background-position: 0 0; }
  to { background-position: 0 112px; }
}

@keyframes hfEnergyBeamPulse {
  0% { opacity: 0.55; filter: brightness(0.95); }
  100% { opacity: 1; filter: brightness(1.35); }
}

@keyframes hfEnergyAuraBreathe {
  0% { transform: scale(0.94); opacity: 0.55; }
  100% { transform: scale(1.08); opacity: 0.9; }
}

/* =========================================
   MAIN LAYOUT
========================================= */

#hf-premium-history .hf-main {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

#hf-premium-history .hf-header {
  text-align: center;
  margin-bottom: 30px;
}

#hf-premium-history .hf-header h2.hf-sub {
  margin: 0 0 4px !important;
  padding: 0 !important;
  background: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.15em !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  color: #007DFF !important;
  text-align: center !important;
}

#hf-premium-history .hf-header h2.hf-heading {
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 2.4em !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  color: #000000 !important;
  text-align: center !important;
}

#hf-premium-history .hf-header h2.hf-heading span {
  color: #007DFF !important;
  background: none !important;
}

#hf-premium-history .hf-header p.hf-subheading {
  margin: 0 auto !important;
  max-width: 640px;
  background: none !important;
  color: #000000 !important;
  font-size: 15px;
  line-height: 1.6;
  text-align: center !important;
}

/* =========================================
   TIMELINE
========================================= */

#hf-premium-history .hf-timeline-area {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

#hf-premium-history .hf-timeline {
  position: relative;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  isolation: isolate;
}

#hf-premium-history .hf-line,
#hf-premium-history .hf-line-active {
  position: absolute;
  left: 0;
  top: 16px;
  height: 2px;
  border-radius: 10px;
}

#hf-premium-history .hf-line {
  width: 100%;
  background: #D9E5F3;
  z-index: -1;
}

#hf-premium-history .hf-line-active {
  width: 0%;
  background: linear-gradient(90deg, #80BDFF, #007DFF);
  box-shadow: 0 0 12px rgba(0, 125, 255, 0.25);
  transition: width 0.65s cubic-bezier(.2, .7, .2, 1);
  z-index: -1;
}

#hf-premium-history .hf-step {
  position: relative;
  width: 50px;
  min-width: 50px;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

#hf-premium-history .hf-dot {
  width: 34px;
  height: 34px;
  border: 1px solid #D5E2F1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 57, 103, 0.035);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

#hf-premium-history .hf-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B6C8DD;
  transition:
    background 0.35s ease,
    transform 0.35s ease;
}

#hf-premium-history .hf-year {
  color: #8A9AAF;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.2px;
  transition: color 0.35s ease;
}

#hf-premium-history .hf-step.is-active .hf-dot,
#hf-premium-history .hf-step.is-past .hf-dot {
  border-color: var(--hf-blue);
  background: var(--hf-blue);
  box-shadow: 0 0 0 5px rgba(0, 125, 255, 0.075);
}

#hf-premium-history .hf-step.is-active .hf-dot {
  transform: scale(1.08);
  box-shadow:
    0 0 0 5px rgba(0, 125, 255, 0.09),
    0 0 22px rgba(0, 125, 255, 0.20);
}

#hf-premium-history .hf-step.is-active .hf-dot-inner,
#hf-premium-history .hf-step.is-past .hf-dot-inner {
  background: #FFFFFF;
}

#hf-premium-history .hf-step.is-active .hf-dot-inner {
  transform: scale(1.15);
}

#hf-premium-history .hf-step.is-active .hf-year,
#hf-premium-history .hf-step.is-past .hf-year {
  color: #006DE5;
}

#hf-premium-history .hf-step:focus-visible .hf-dot {
  outline: 3px solid rgba(0, 125, 255, 0.25);
  outline-offset: 4px;
}

/* =========================================
   PREMIUM CARD
========================================= */

#hf-premium-history .hf-card-wrap {
  position: relative;
  width: 100%;
  padding-top: 15px;
}

#hf-premium-history .hf-card-connector {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 15px;
  background: linear-gradient(
    to bottom,
    rgba(0, 125, 255, 0.10),
    rgba(0, 125, 255, 0.80)
  );
  transition: left 0.6s cubic-bezier(.2, .7, .2, 1);
}

#hf-premium-history .hf-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 245px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(207, 222, 240, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow:
    0 24px 65px rgba(20, 55, 100, 0.075),
    0 5px 15px rgba(20, 55, 100, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

#hf-premium-history .hf-card:hover {
  border-color: rgba(0, 125, 255, 0.27);
  box-shadow:
    0 28px 75px rgba(20, 55, 100, 0.10),
    0 5px 18px rgba(0, 125, 255, 0.04),
    inset 0 1px 0 #FFFFFF;
}

#hf-premium-history .hf-card-topline {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #007DFF 0%,
    #64B5FF 35%,
    rgba(0, 125, 255, 0.08) 100%
  );
}

#hf-premium-history .hf-card-glow {
  position: absolute;
  z-index: -1;
  width: 350px;
  height: 350px;
  top: -200px;
  left: 45%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 125, 255, 0.075),
    transparent 70%
  );
  pointer-events: none;
}

#hf-premium-history .hf-card-watermark {
  position: absolute;
  z-index: -1;
  right: -5px;
  bottom: -70px;
  color: rgba(0, 125, 255, 0.025);
  font-size: 220px;
  font-weight: 900;
  letter-spacing: -15px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Year Panel */

#hf-premium-history .hf-year-panel {
  position: relative;
  min-width: 0;
  padding: 34px 25px 25px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(235, 245, 255, 0.70),
    rgba(248, 251, 255, 0.18)
  );
}

#hf-premium-history .hf-year-caption {
  color: #7D8EA5;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 2px;
}

#hf-premium-history .hf-big-year {
  position: relative;
  margin: 11px 0 17px -3px;
  color: var(--hf-blue);
  font-size: clamp(43px, 5vw, 61px);
  line-height: 0.98;
  letter-spacing: -4px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 5px 18px rgba(0, 125, 255, 0.09);
  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
}

#hf-premium-history .hf-year-decoration {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 3px;
}

#hf-premium-history .hf-year-decoration span {
  display: block;
  height: 3px;
  width: 10px;
  border-radius: 4px;
  background: #B9D9FF;
}

#hf-premium-history .hf-year-decoration span:first-child {
  width: 31px;
  background: var(--hf-blue);
}

#hf-premium-history .hf-year-decoration span:nth-child(2) {
  background: #6CB5FF;
}

#hf-premium-history .hf-year-index {
  margin-top: 23px;
  color: #91A1B5;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.6px;
}

/* Vertical Divider */

#hf-premium-history .hf-card-divider {
  position: relative;
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    transparent,
    #D9E5F2 15%,
    #D9E5F2 85%,
    transparent
  );
}

#hf-premium-history .hf-card-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 44px;
  border-radius: 3px;
  background: var(--hf-blue);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 13px rgba(0, 125, 255, 0.22);
}

/* Text Content */

#hf-premium-history .hf-copy {
  position: relative;
  min-width: 0;
  padding: 34px 42px 27px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#hf-premium-history .hf-card-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

#hf-premium-history .hf-label-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--hf-blue);
  box-shadow: 0 0 0 4px rgba(0, 125, 255, 0.09);
}

#hf-premium-history .hf-label-text {
  color: #64809F;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 2.1px;
}

#hf-premium-history .hf-card-title {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #12233D;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
}

#hf-premium-history .hf-card-description {
  max-width: 520px;
  margin: 13px 0 0;
  color: #6C7C91;
  font-size: 13px;
  line-height: 1.85;
  font-weight: 400;
  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
}

#hf-premium-history .hf-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

#hf-premium-history .hf-footer-line {
  width: 24px;
  height: 1px;
  background: var(--hf-blue);
  opacity: 0.8;
}

#hf-premium-history .hf-footer-text {
  color: #8B9BB0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.7px;
  line-height: 1.5;
}

/* Card Corner Detail */

#hf-premium-history .hf-card-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38px;
  height: 38px;
  border-left: 1px solid rgba(0, 125, 255, 0.08);
  border-top: 1px solid rgba(0, 125, 255, 0.08);
  border-top-left-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(0, 125, 255, 0.035),
    rgba(0, 125, 255, 0.005)
  );
}

#hf-premium-history .hf-card-corner::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(0, 125, 255, 0.6);
  border-right: 1px solid rgba(0, 125, 255, 0.6);
}

/* Card Transition */

#hf-premium-history .hf-card.is-changing .hf-card-title,
#hf-premium-history .hf-card.is-changing .hf-card-description,
#hf-premium-history .hf-card.is-changing .hf-big-year {
  opacity: 0;
  transform: translateY(8px);
}

/* =========================================
   BOTTOM PROGRESS
========================================= */

#hf-premium-history .hf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 22px;
}

#hf-premium-history .hf-progress-caption {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

#hf-premium-history .hf-progress-label {
  color: #8292A7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  white-space: nowrap;
}

#hf-premium-history .hf-progress-track {
  position: relative;
  width: 115px;
  height: 3px;
  overflow: hidden;
  border-radius: 5px;
  background: #DCE7F4;
}

#hf-premium-history .hf-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #65B2FF, #007DFF);
  transition: width 0.65s cubic-bezier(.2, .7, .2, 1);
}

#hf-premium-history .hf-counter {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #A1AEC0;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#hf-premium-history .hf-current {
  color: var(--hf-blue);
  font-size: 18px;
  font-weight: 800;
}

#hf-premium-history .hf-counter-divider {
  color: #B8C5D5;
}

#hf-premium-history .hf-total {
  color: #8192A8;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
  #hf-premium-history .hf-main {
    width: calc(100% - 56px);
  }

  #hf-premium-history .hf-header {
    margin-bottom: 25px;
  }

  #hf-premium-history .hf-header h2.hf-heading { font-size: 2.1em !important; }

  #hf-premium-history .hf-card {
    grid-template-columns: 150px 1px minmax(0, 1fr);
    min-height: 230px;
  }

  #hf-premium-history .hf-year-panel {
    padding-left: 22px;
    padding-right: 16px;
  }

  #hf-premium-history .hf-big-year {
    font-size: 46px;
    letter-spacing: -3px;
  }

  #hf-premium-history .hf-copy {
    padding: 29px 27px 25px;
  }

  #hf-premium-history .hf-card-title {
    font-size: 25px;
  }

  #hf-premium-history .hf-card-description {
    font-size: 12px;
  }

  #hf-premium-history .hf-card-footer {
    margin-top: 19px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
  #hf-premium-history .hf-scroll {
    height: 450vh;
    min-height: 2300px;
  }

  #hf-premium-history .hf-stage {
    min-height: 650px;
  }

  #hf-premium-history .hf-main {
    width: calc(100% - 32px);
    padding: 22px 0 18px;
  }

  #hf-premium-history .hf-header {
    margin-bottom: 18px;
  }

  #hf-premium-history .hf-header h2.hf-sub { font-size: 18px !important; }
  #hf-premium-history .hf-header h2.hf-heading { font-size: 28px !important; }
  #hf-premium-history .hf-header p.hf-subheading { font-size: 13px; max-width: 320px; }

  #hf-premium-history .hf-timeline {
    height: 67px;
    align-items: flex-start;
  }

  #hf-premium-history .hf-line,
  #hf-premium-history .hf-line-active {
    top: 13px;
  }

  #hf-premium-history .hf-step {
    width: 38px;
    min-width: 38px;
    gap: 10px;
  }

  #hf-premium-history .hf-dot {
    width: 28px;
    height: 28px;
  }

  #hf-premium-history .hf-dot-inner {
    width: 7px;
    height: 7px;
  }

  #hf-premium-history .hf-year {
    font-size: 10px;
  }

  #hf-premium-history .hf-card-wrap {
    padding-top: 11px;
  }

  #hf-premium-history .hf-card-connector {
    height: 11px;
  }

  #hf-premium-history .hf-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 15px;
  }

  #hf-premium-history .hf-year-panel {
    min-height: 105px;
    padding: 18px 22px 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 15px;
  }

  #hf-premium-history .hf-year-caption {
    grid-column: 1;
    grid-row: 1;
    font-size: 8px;
    letter-spacing: 1.7px;
  }

  #hf-premium-history .hf-big-year {
    grid-column: 1;
    grid-row: 2;
    margin: 6px 0 0 -2px;
    font-size: 43px;
    letter-spacing: -2.8px;
  }

  #hf-premium-history .hf-year-decoration {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  #hf-premium-history .hf-year-index {
    display: none;
  }

  #hf-premium-history .hf-card-divider {
    width: auto;
    height: 1px;
    margin: 0 22px;
    background: linear-gradient(
      90deg,
      transparent,
      #D9E5F2 10%,
      #D9E5F2 90%,
      transparent
    );
  }

  #hf-premium-history .hf-card-divider span {
    top: 50%;
    left: 0;
    width: 42px;
    height: 3px;
    transform: translateY(-50%);
  }

  #hf-premium-history .hf-copy {
    padding: 23px 22px 24px;
  }

  #hf-premium-history .hf-card-label {
    margin-bottom: 12px;
  }

  #hf-premium-history .hf-label-text {
    font-size: 8px;
    letter-spacing: 1.8px;
  }

  #hf-premium-history .hf-card-title {
    font-size: clamp(22px, 6vw, 27px);
    line-height: 1.25;
    letter-spacing: -0.6px;
  }

  #hf-premium-history .hf-card-description {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.75;
  }

  #hf-premium-history .hf-card-footer {
    margin-top: 18px;
    gap: 8px;
  }

  #hf-premium-history .hf-footer-text {
    font-size: 7px;
    letter-spacing: 1.2px;
  }

  #hf-premium-history .hf-card-watermark {
    font-size: 150px;
    bottom: -45px;
  }

  #hf-premium-history .hf-card-corner {
    width: 29px;
    height: 29px;
    border-top-left-radius: 12px;
  }

  #hf-premium-history .hf-bottom {
    margin-top: 19px;
    gap: 12px;
  }

  #hf-premium-history .hf-progress-caption {
    gap: 10px;
  }

  #hf-premium-history .hf-progress-label {
    font-size: 7px;
    letter-spacing: 1.2px;
  }

  #hf-premium-history .hf-progress-track {
    width: 65px;
  }

  #hf-premium-history .hf-counter {
    gap: 5px;
    font-size: 10px;
  }

  #hf-premium-history .hf-current {
    font-size: 15px;
  }

}

/* Small Mobile */
@media (max-width: 380px) {
  #hf-premium-history .hf-main {
    width: calc(100% - 24px);
  }

  #hf-premium-history .hf-year {
    font-size: 9px;
  }

  #hf-premium-history .hf-step {
    width: 34px;
    min-width: 34px;
  }

  #hf-premium-history .hf-progress-track {
    width: 45px;
  }

  #hf-premium-history .hf-progress-label {
    font-size: 6px;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  #hf-premium-history *,
  #hf-premium-history *::before,
  #hf-premium-history *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================
   CARD v3 : clean glass card, gradient year, charge cells
========================================= */

#hf-premium-history .hf-card {
  border: 1px solid rgba(0, 125, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.97), rgba(238, 246, 255, 0.93));
  box-shadow:
    0 30px 70px -20px rgba(0, 80, 200, 0.22),
    0 4px 14px rgba(0, 80, 200, 0.06),
    inset 0 1px 0 #FFFFFF;
}

#hf-premium-history .hf-card:hover {
  border-color: rgba(0, 125, 255, 0.55);
}

#hf-premium-history .hf-year-panel {
  background: linear-gradient(160deg, rgba(0, 125, 255, 0.11), rgba(0, 185, 255, 0.03));
}

#hf-premium-history .hf-year-caption { color: #0057CB; }
#hf-premium-history .hf-year-index   { color: #5B7391; }

#hf-premium-history .hf-big-year {
  background: linear-gradient(120deg, #0057CB 10%, #00B9FF 95%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  font-size: clamp(48px, 5.4vw, 68px);
}

/* 5 charge cells, one per milestone */
#hf-premium-history .hf-year-decoration {
  width: 100%;
  height: 6px;
  gap: 4px;
}

#hf-premium-history .hf-year-decoration span,
#hf-premium-history .hf-year-decoration span:first-child,
#hf-premium-history .hf-year-decoration span:nth-child(2) {
  flex: 1 1 0;
  width: auto !important;
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 125, 255, 0.16) !important;
  transition: background 0.4s ease;
}

#hf-premium-history .hf-year-decoration span.on {
  background: linear-gradient(90deg, #007DFF, #00B9FF) !important;
}

#hf-premium-history .hf-card-watermark {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 125, 255, 0.13);
  font-size: 230px;
  bottom: -85px;
}

@media (max-width: 600px) {
  #hf-premium-history .hf-big-year { font-size: 43px; }
  #hf-premium-history .hf-year-decoration { width: 96px; }
  #hf-premium-history .hf-card-watermark { font-size: 150px; bottom: -50px; }
}
/* =========================================
   TIMELINE v3 : small cards, alternating above / below the line
========================================= */

@media (min-width: 601px) {

  #hf-premium-history .hf-rail {
    --ch: 172px;
    --gap: 22px;
    position: relative;
    width: 100%;
    height: calc(var(--ch) * 2 + 34px + var(--gap) * 2);
  }

  #hf-premium-history .hf-timeline {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--ch) + var(--gap));
    height: 34px;
  }

  #hf-premium-history .hf-year { display: none; }
  #hf-premium-history .hf-card-wrap { display: none; }
  #hf-premium-history .hf-header { margin-bottom: 14px; }
  #hf-premium-history .hf-bottom { margin-top: 14px; }

  #hf-premium-history .hf-mcard {
    position: absolute;
    width: min(260px, 32%);
    opacity: 0;
    transform: translate3d(0, var(--dy), 0) scale(.96);
    transition:
      opacity .6s ease,
      transform .75s cubic-bezier(.2, .7, .2, 1);
    cursor: pointer;
  }

  #hf-premium-history .hf-up   { --dy: 28px;  bottom: calc(var(--ch) + 34px + var(--gap) * 2); }
  #hf-premium-history .hf-down { --dy: -28px; top: calc(var(--ch) + 34px + var(--gap) * 2); }

  #hf-premium-history .hf-m-first { left: 0; }
  #hf-premium-history .hf-m-last  { right: 0; }
  #hf-premium-history .hf-m-mid   { left: calc(25px + var(--i) * (100% - 50px) / 4); margin-left: calc(min(260px, 32%) / -2); }

  #hf-premium-history .hf-mcard.is-past,
  #hf-premium-history .hf-mcard.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  #hf-premium-history .hf-mcard.is-past { opacity: .92; }
  #hf-premium-history .hf-mcard.is-active { transform: translate3d(0, calc(var(--dy) * -.12), 0) scale(1.035); z-index: 3; }

  #hf-premium-history .hf-mcard.is-future { pointer-events: none; }

  /* line down to the dot */
  #hf-premium-history .hf-mcard::after {
    content: "";
    position: absolute;
    width: 2px;
    height: var(--gap);
    background: linear-gradient(#0A4DB0, #007DFF);
    opacity: .45;
    transition: opacity .4s ease;
  }
  #hf-premium-history .hf-up::after   { top: 100%; }
  #hf-premium-history .hf-down::after { bottom: 100%; }
  #hf-premium-history .hf-m-first::after { left: 24px; }
  #hf-premium-history .hf-m-last::after  { right: 24px; }
  #hf-premium-history .hf-m-mid::after   { left: calc(50% - 1px); }
  #hf-premium-history .hf-mcard.is-active::after { opacity: 1; }

  #hf-premium-history .hf-mc-box {
    overflow: hidden;
    border: 2px solid #0A4DB0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 60, 160, .12);
    transition: border-color .4s ease, box-shadow .4s ease;
  }
  #hf-premium-history .hf-mcard.is-active .hf-mc-box {
    border-color: #007DFF;
    box-shadow:
      0 0 0 5px rgba(0, 125, 255, .12),
      0 24px 50px rgba(0, 90, 220, .28);
  }

  #hf-premium-history .hf-mc-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    background: linear-gradient(155deg, #041B45 0%, #0A3C9C 60%, #007DFF 130%);
  }
  #hf-premium-history .hf-mc-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
    transform: translateX(-100%);
  }
  #hf-premium-history .hf-mcard.is-active .hf-mc-band::before {
    animation: hfShine 4.8s ease-in-out infinite;
  }

  #hf-premium-history .hf-mc-year {
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.2px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(90, 175, 255, .7);
  }

  #hf-premium-history .hf-mc-cells {
    display: flex;
    gap: 3px;
  }
  #hf-premium-history .hf-mc-cells i {
    display: block;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .2);
  }
  #hf-premium-history .hf-mc-cells i.on {
    background: #4FD1FF;
    box-shadow: 0 0 8px rgba(79, 209, 255, .8);
  }

  #hf-premium-history .hf-mc-body {
    padding: 12px 14px 14px;
  }
  #hf-premium-history .hf-mc-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #12233D;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.2px;
    overflow-wrap: anywhere;
  }
  #hf-premium-history .hf-mc-desc {
    margin: 6px 0 0 !important;
    color: #5E6F86;
    font-size: 12px;
    line-height: 1.55;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  #hf-premium-history .hf-mc-title { font-size: 13.5px; }
  #hf-premium-history .hf-mc-desc  { font-size: 11.5px; }
  #hf-premium-history .hf-mc-year  { font-size: 22px; }
  #hf-premium-history .hf-mc-cells i { width: 6px; height: 12px; }
}

@media (max-width: 600px) {
  #hf-premium-history .hf-mcard { display: none; }
}
/* =========================================
   CLEAN & PROFESSIONAL : plain cards, calm background
========================================= */

/* background */
#hf-premium-history .hf-stage {
  background: linear-gradient(180deg, #E6F1FF 0%, #F8FBFF 48%, #DCEBFF 100%);
}
#hf-premium-history .hf-canvas { display: none; }
#hf-premium-history .hf-aurora { filter: blur(70px); opacity: .8; }
#hf-premium-history .hf-a3 { opacity: .6; }
#hf-premium-history .hf-dotsgrid { opacity: .55; }

/* gentle waves along the bottom, level rises a little with scroll */
#hf-premium-history .hf-water { height: calc(90px + var(--hf-p, 0) * 130px); }
#hf-premium-history .hf-w1 { opacity: .07; }
#hf-premium-history .hf-w2 { opacity: .10; }
#hf-premium-history .hf-w3 { opacity: .14; }

/* timeline line and dots: no glow */
#hf-premium-history .hf-line-active { box-shadow: none; background: #007DFF; }
#hf-premium-history .hf-step.is-active .hf-dot,
#hf-premium-history .hf-step.is-past .hf-dot { box-shadow: none; }
#hf-premium-history .hf-step.is-active .hf-dot { box-shadow: 0 0 0 5px rgba(0, 125, 255, 0.12); transform: none; }

@media (min-width: 601px) {
  #hf-premium-history .hf-mcard.is-active { transform: translate3d(0, 0, 0) scale(1); }

  #hf-premium-history .hf-mc-box {
    border: 1px solid #D6E3F5;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 6px 18px rgba(16, 35, 63, 0.06);
  }
  #hf-premium-history .hf-mcard.is-active .hf-mc-box {
    border-color: #007DFF;
    box-shadow: 0 10px 26px rgba(0, 80, 200, 0.12);
  }

  #hf-premium-history .hf-mc-band {
    background: #F3F8FF;
    border-bottom: 1px solid #E3ECF8;
    transition: background .35s ease;
  }
  #hf-premium-history .hf-mc-band::before { display: none; }
  #hf-premium-history .hf-mc-cells { display: none; }

  #hf-premium-history .hf-mc-year {
    color: #007DFF;
    text-shadow: none;
    transition: color .35s ease;
  }
  #hf-premium-history .hf-mcard.is-active .hf-mc-band { background: #007DFF; border-bottom-color: #007DFF; }
  #hf-premium-history .hf-mcard.is-active .hf-mc-year { color: #FFFFFF; }

  #hf-premium-history .hf-mcard::after { background: #BCD3F2; opacity: 1; }
  #hf-premium-history .hf-mcard.is-active::after { background: #007DFF; }
  #hf-premium-history .hf-mcard.is-past { opacity: 1; }
}

/* mobile single card */
@media (max-width: 600px) {
  #hf-premium-history .hf-card {
    border: 1px solid #D6E3F5;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 8px 22px rgba(16, 35, 63, 0.07);
  }
  #hf-premium-history .hf-card-wrap::after { display: none; }
  #hf-premium-history .hf-card-watermark,
  #hf-premium-history .hf-card-glow,
  #hf-premium-history .hf-card-corner { display: none; }
  #hf-premium-history .hf-year-panel { background: #F3F8FF; }
  #hf-premium-history .hf-year-caption { color: #6B7E96; }
  #hf-premium-history .hf-big-year {
    background: none;
    -webkit-text-fill-color: #007DFF;
    color: #007DFF;
    text-shadow: none;
  }
  #hf-premium-history .hf-year-decoration { display: none; }
}


/* --------------------------------------------------------------------------
   3. TESTIMONIAL CAROUSEL (#hf-testimonials)
   -------------------------------------------------------------------------- */

/* ======================================
   HIGHFLOW LITHIUM TESTIMONIAL CAROUSEL
   Responsive: Desktop / Tablet / Mobile
====================================== */

.hf-carousel {
  --hf-blue: #0073FF;
  --hf-blue-dark: #0057D9;
  --hf-bg: #F5F9FF;
  --hf-card: #FFFFFF;
  --hf-text: #101828;
  --hf-muted: #667085;
  --hf-border: #E2EAF4;

  width: 100%;
  max-width: 100%;
  position: relative;
  font-family: inherit;
  color: var(--hf-text);
  box-sizing: border-box;
}

.hf-carousel *,
.hf-carousel *::before,
.hf-carousel *::after {
  box-sizing: border-box;
}

.hf-carousel button {
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  min-height: 0;
  text-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

/* VIEWPORT */

.hf-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.hf-track {
  display: flex;
  align-items: stretch;
  transform: translateX(0);
  transition: transform 0.5s ease;
  will-change: transform;
}

/* SLIDE */

.hf-slide {
  flex: 0 0 33.333333%;
  min-width: 0;
  padding: 10px 12px 18px;
  display: flex;
}

/* CARD */

.hf-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 27px 25px 23px;
  background: var(--hf-card);
  border: 1px solid var(--hf-border);
  border-radius: 20px;
  box-shadow: 0 7px 25px rgba(16, 40, 75, 0.045);
  transition: border-color .25s ease,
              box-shadow .25s ease,
              transform .25s ease;
}

.hf-card:hover {
  border-color: #B8D7FF;
  box-shadow: 0 14px 32px rgba(0, 115, 255, .09);
  transform: translateY(-3px);
}

/* QUOTE + RATING */

.hf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.hf-quote {
  color: #B8D7FF;
  font-size: 43px;
  font-weight: 800;
  line-height: 1;
}

.hf-stars {
  color: #F59E0B;
  font-size: 17px;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* REVIEW */

.hf-review {
  flex: 1;
  margin: 0 0 25px;
  color: #344054;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  overflow-wrap: anywhere;
}

/* CUSTOMER */

.hf-person {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 19px;
  border-top: 1px solid var(--hf-border);
}

.hf-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1686FF, #0057D9);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.hf-name {
  margin: 0 0 4px;
  color: var(--hf-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.hf-role {
  margin: 0;
  color: var(--hf-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* CONTROLS */

.hf-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 18px;
}

.hf-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid #DCE7F5 !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--hf-blue) !important;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  outline: none;
  box-shadow: none !important;
  transition: background .2s ease,
              color .2s ease,
              border-color .2s ease;
}

.hf-arrow:hover:not(:disabled),
.hf-arrow:focus:not(:disabled) {
  background: var(--hf-blue) !important;
  color: #FFFFFF !important;
  border-color: var(--hf-blue) !important;
}

.hf-arrow:active:not(:disabled) {
  background: var(--hf-blue-dark) !important;
  color: #FFFFFF !important;
  border-color: var(--hf-blue-dark) !important;
}

.hf-arrow:focus-visible {
  outline: 3px solid #B8D7FF !important;
  outline-offset: 3px;
}

.hf-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  background: #FFFFFF !important;
  color: var(--hf-blue) !important;
}

/* DOTS */

.hf-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 20px !important;
  background: #CBD5E1 !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hf-dot:hover,
.hf-dot:focus,
.hf-dot:active {
  background: #80B7FF !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hf-dot.is-active,
.hf-dot.is-active:hover,
.hf-dot.is-active:focus,
.hf-dot.is-active:active {
  width: 25px;
  background: var(--hf-blue) !important;
}

.hf-dot:focus-visible {
  outline: 2px solid var(--hf-blue) !important;
  outline-offset: 4px;
}

/* TABLET */

@media (max-width: 1024px) {
  .hf-slide {
    flex-basis: 50%;
    padding: 9px 9px 16px;
  }

  .hf-card {
    padding: 24px 21px 21px;
  }

  .hf-review {
    font-size: 14px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .hf-slide {
    flex-basis: 100%;
    padding: 7px 4px 13px;
  }

  .hf-card {
    padding: 23px 20px 20px;
    border-radius: 18px;
  }

  .hf-card-top {
    margin-bottom: 19px;
  }

  .hf-review {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 23px;
  }

  .hf-controls {
    gap: 11px;
    margin-top: 12px;
  }

  .hf-arrow {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 23px;
  }

  .hf-dots {
    gap: 7px;
    max-width: calc(100% - 110px);
  }

  .hf-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
  }

  .hf-dot.is-active {
    width: 21px;
  }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .hf-track,
  .hf-card,
  .hf-arrow,
  .hf-dot {
    transition: none !important;
  }
}


/* --------------------------------------------------------------------------
   4. CONTACT FORM COMPONENT (#hf-contact-form)
   -------------------------------------------------------------------------- */

/* ===== Lithium contact form — scoped to hf-contact-form ===== */

.hf-contact-form .wpcf7-form {
  max-width: 600px;
}

.hf-contact-form .hf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .hf-contact-form .hf-row {
    grid-template-columns: 1fr;
  }
}

.hf-contact-form p {
  margin-bottom: 16px;
}

.hf-contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1C1A20;
  margin-bottom: -16px;
  font-family: Inter, sans-serif;
}

.hf-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.hf-contact-form input[type="text"],
.hf-contact-form input[type="email"],
.hf-contact-form input[type="tel"],
.hf-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(75, 0, 130, 0.22) !important;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: Inter, sans-serif;
  color: #1C1A20;
  background: #FFFFFF;
  box-sizing: border-box;
}

.hf-contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.hf-contact-form input::placeholder,
.hf-contact-form textarea::placeholder {
  color: #9B96A3;
}

.hf-contact-form input:focus,
.hf-contact-form textarea:focus {
  border-color: #4B0082 !important;
  outline: none;
}

.hf-contact-form input[type="submit"] {
  background: #4B0082;
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: Inter, sans-serif;
  margin-top: 6px;
}

.hf-contact-form input[type="submit"]:hover {
  background: #3B0066;
}

.hf-contact-form .wpcf7-not-valid-tip {
  color: #C0392B;
  font-size: 12.5px;
  margin-top: 4px;
}

.hf-contact-form .wpcf7-response-output {
  border-radius: 6px;
  font-size: 13.5px;
  margin-top: 16px !important;
  border-color: rgba(75, 0, 130, 0.22) !important;
}

