/* ============================================================
   WORK CASE — PAYFLOW (USING WORK SYSTEM)
   ============================================================ */

/* PayFlow CSS Variables */
:root {
  /* Gradients */
  --pf-gradient-text: linear-gradient(110deg, var(--brand-2), var(--accent), var(--brand));
  --pf-gradient-button-primary: linear-gradient(90deg, var(--brand), var(--accent));
  --pf-gradient-button-secondary: linear-gradient(145deg, var(--brand), var(--brand-2));
  --pf-gradient-section: linear-gradient(110deg, var(--accent), var(--brand));
  --pf-gradient-section-alt: linear-gradient(90deg, var(--brand-2), var(--brand));
  --pf-gradient-number: linear-gradient(135deg, var(--accent), var(--brand));
  --pf-gradient-success: linear-gradient(90deg, #22c55e, #16a34a);
  
  /* Glassmorphism backgrounds (dark mode) */
  --pf-glass-dark-1: rgba(255, 255, 255, 0.08);
  --pf-glass-dark-2: rgba(255, 255, 255, 0.06);
  --pf-glass-dark-3: rgba(255, 255, 255, 0.12);
  --pf-glass-dark-4: rgba(255, 255, 255, 0.14);
  --pf-glass-dark-5: rgba(255, 255, 255, 0.18);
  --pf-glass-dark-6: rgba(255, 255, 255, 0.2);
  --pf-glass-dark-7: rgba(255, 255, 255, 0.25);
  --pf-glass-dark-8: rgba(255, 255, 255, 0.28);
  
  /* Glassmorphism borders (dark mode) */
  --pf-border-dark-1: rgba(255, 255, 255, 0.05);
  --pf-border-dark-2: rgba(255, 255, 255, 0.1);
  --pf-border-dark-3: rgba(255, 255, 255, 0.12);
  --pf-border-dark-4: rgba(255, 255, 255, 0.14);

    /* Layout constraints */
    --pf-shell-max: 1200px;
    --pf-shell-wide: 1400px;
    --pf-shell-ultra: 1680px;
    --pf-shell-gutter: clamp(1rem, 4vw, 4.5rem);
}

:root.light {
  /* Glassmorphism backgrounds (light mode) */
  --pf-glass-light-1: rgba(255, 255, 255, 0.85);
  --pf-glass-light-2: rgba(255, 255, 255, 0.88);
  --pf-glass-light-3: rgba(255, 255, 255, 0.95);
  --pf-glass-light-4: rgba(0, 0, 0, 0.05);
  --pf-glass-light-5: rgba(0, 0, 0, 0.06);
  --pf-glass-light-6: rgba(0, 0, 0, 0.08);
  --pf-glass-light-7: rgba(0, 0, 0, 0.1);
  --pf-glass-light-8: rgba(0, 0, 0, 0.12);
  --pf-glass-light-9: rgba(0, 0, 0, 0.14);
  --pf-glass-light-10: rgba(0, 0, 0, 0.16);
  
  /* Glassmorphism borders (light mode) */
  --pf-border-light-1: rgba(0, 0, 0, 0.1);
  --pf-border-light-2: rgba(0, 0, 0, 0.12);
  --pf-border-light-3: rgba(0, 0, 0, 0.14);
  --pf-border-light-4: rgba(200, 200, 200, 0.26);
}

/* Background alinhado com work.page (dark/light usando mesmos tokens) */
body.work.work--payflow {
  background:
    radial-gradient(1200px 800px at 80% -10%,
      color-mix(in oklab, var(--brand-2) 20%, transparent),
      transparent 60%
    ),
    radial-gradient(900px 700px at 0% 120%,
      color-mix(in oklab, var(--brand) 20%, transparent),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
}

/* Light Mode — versão suavizada do mesmo fundo */
:root.light body.work.work--payflow {
  background:
    radial-gradient(1200px 800px at 80% -10%,
      color-mix(in oklab, var(--brand-2) 18%, transparent),
      transparent 60%
    ),
    radial-gradient(900px 700px at 0% 120%,
      color-mix(in oklab, var(--brand) 16%, transparent),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

  /* HERO */
   .pf-hero-inner {
     width: 100%;
     margin: 0;
     display: grid;
     grid-template-columns: minmax(0, 1fr);
     gap: clamp(1.5rem, 4vw, 2.8rem);
     align-items: flex-start;
     position: relative;
     z-index: 1;
   }

/* Shared page container for PayFlow sections */
.pf-layout {
  /* width: min(var(--pf-shell-max), 100%); */
  margin-inline: auto;
  padding-inline: var(--pf-shell-gutter);
}
  
  .pf-title {
    font-family: var(--ds-font-display);
    font-size: clamp(2.5rem, 1.5rem + 3vw, 4.6rem);
    line-height: 1.05;
    background: var(--pf-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  /* Subtitulo — elementos <strong> com degradê */
  
  .pf-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text);
    max-width: 640px;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
  }
  
  /* ===========================
     BUTTONS
  =========================== */
  
    .pf-hero .pf-buttons {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
      gap: 1rem;
    }
  
  .pf-hero .pf-buttons .btn.primary {
  
    background: var(--pf-gradient-button-primary);
  
    color: #fff;
  
    padding: clamp(0.7rem, 0.6rem + 0.3vw, 0.8rem) clamp(1.4rem, 1.2rem + 0.5vw, 1.6rem);
  
    border-radius: 8px;
  
    font-weight: 600;
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  
    text-decoration: none;
  
    transition: all 0.3s ease;
  
    border: none;
  
    box-shadow: 0 10px 20px rgba(250,90,100,.35);
  
    animation: glow-pulse 3s ease-in-out infinite;
  
  }
  
  .pf-hero .pf-buttons .btn.primary:hover {
  
    transform: translateY(-1px);
  
    box-shadow: 0 18px 36px rgba(250,90,100,.45), 0 0 30px color-mix(in oklab, var(--brand) 50%, transparent);
  
    animation: none;
  
  }
  
  .pf-hero .pf-buttons .btn.secondary {
  
    border: 2px solid var(--brand-2);
  
    color: var(--brand-2);
  
    background: transparent;
  
    padding: clamp(0.7rem, 0.6rem + 0.3vw, 0.8rem) clamp(1.4rem, 1.2rem + 0.5vw, 1.6rem);
  
    border-radius: 8px;
  
    font-weight: 600;
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  
    text-decoration: none;
  
    transition: all 0.3s ease;
  
    box-shadow: none;
  
    animation: none;
  
  }
  
    .pf-meta {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-top: 2.5rem;
      font-size: .95rem;
      color: var(--muted);
      flex-wrap: wrap;
    }
  
  .pf-meta .bulb-blink {
  
    display: inline-block;
  
    font-size: 1.1rem;
  
    margin: 0 0.5rem;
  
    animation: bulbBlink 1.5s ease-in-out infinite;
  
    /* Dark mode - brilho dourado mais intenso */
  
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 200, 0, 0.4));
  
  }
  
  /* Light mode - brilho mais suave e colorido */
  
  :root.light .pf-meta .bulb-blink {
  
    filter: drop-shadow(0 0 4px color-mix(in oklab, var(--brand) 60%, transparent))
  
            drop-shadow(0 0 8px color-mix(in oklab, var(--accent) 40%, transparent));
  
  }
  
  @keyframes bulbBlink {
  
    0%, 100% {
  
      opacity: 1;
  
      transform: scale(1);
  
    }
  
    50% {
  
      opacity: 0.4;
  
      transform: scale(0.9);
  
    }
  }
  
  /* ===========================
     VISUAL
  =========================== */
  
  .pf-visual {
    position: relative;
    display: flex;
    justify-content: center;
    background: var(--ds-inner-card-bg-dark);
    padding: clamp(1.2rem, 1.2rem + 0.5vw, 1.6rem);
    border-radius: clamp(20px, 20px + 0.5vw, 24px);
    box-shadow: var(--ds-card-premium-shadow-dark);
    max-width: min(420px, 100%);
    /* width: 100%; */
    margin: 0 auto 1.5rem;
    order: -1;
  }
  
  :root.light .pf-visual {
    background: var(--ds-inner-card-bg-light);
    box-shadow: var(--ds-card-premium-shadow-light);
  }

  .pf-frame {
    width: 100%;
    max-width: 480px;
    border-radius: var(--ds-radius-xl);
    overflow: hidden;
    background: var(--ds-card-premium-bg-dark);
    box-shadow: var(--ds-card-premium-shadow-dark);
    position: relative;
  }
  
  :root.light .pf-frame {
    background: var(--ds-card-premium-bg-light);
    box-shadow: var(--ds-card-premium-shadow-light);
  }
  
  .pf-img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 16px;
  }
  
  /* gloss */
  
  .pf-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 0%, rgba(255,255,255,.25) 45%, transparent 90%);
    mix-blend-mode: screen;
  }
  
  /* glow */
  
  .pf-glow {
    position: absolute;
    inset: -40%;
    z-index: -1;
    opacity: .55;
    filter: blur(80px);
    background: radial-gradient(
      800px 600px at 50% 60%,
      color-mix(in oklab, var(--accent) 32%, transparent),
      transparent 70%
    );
  }
  
   /* ===========================
      RESPONSIVE
   =========================== */
   
   /* Mobile-first enhancements */
   .pf-hero .pf-buttons .btn {
     width: 100%;
     text-align: center;
   }

@media (max-width: 480px) {

  .pf-hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
    text-align: center;
  }

  .pf-hero .pf-header {
    margin-bottom: 1.5rem;
  }

  .pf-hero .pf-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-align: center;
  }

  .pf-hero .pf-title {
    font-size: 1.8rem;
    line-height: 2.2rem;
    text-align: center;
    max-width: 90%;
    margin-inline: auto;
  }

  .pf-hero .pf-description {
    font-size: 0.95rem;
    line-height: 1.45rem;
    max-width: 90%;
    margin-inline: auto;
    margin-bottom: 1.8rem;
  }

  /* BOTÃO */
  .pf-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .pf-buttons .btn {
    width: 100%;
    max-width: 240px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    margin-inline: auto;
  }

  /* ICON TAGS */
  .pf-tags {
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    text-align: center;
  }

  .pf-tag {
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
  }

  /* IMAGEM DO CARTÃO */
  .pf-hero-card {
    width: 85%;
    max-width: 280px;
    margin: 1.5rem auto 0 auto;
  }

  .pf-meta {
    display:grid;
  }
  
  .pf-section-heading {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .pf-section-heading h2,
  .pf-section-heading p {
    text-align: center !important;
    justify-content: center !important;
  }

  /* se tiver linha decorativa dentro */
  .pf-section-heading .line {
    margin-inline: auto !important;
  }

  .pf-step-badge {
    left: 0.75rem !important;            /* antes provavelmente 0.4 ou 0.5 */
    top: 0.75rem !important;
  }

}
   
   @media (min-width: 640px) {
     .pf-hero {
       padding-block: clamp(2.5rem, 6vw, 5rem);
     }
     
     .pf-hero .pf-buttons {
       flex-direction: row;
       flex-wrap: wrap;
     }
     
     .pf-hero .pf-buttons .btn {
       width: auto;
     }
   }
   
   @media (min-width: 768px) {
     .pf-hero-inner {
       gap: clamp(2rem, 4vw, 3.5rem);
     }
   }
   
   @media (min-width: 992px) {
     .pf-hero-inner {
       grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
       align-items: center;
     }
     
     .pf-visual {
       order: initial;
       margin-bottom: 0;
     }
   }
   
   @media (min-width: 1280px) {
     .pf-hero {
       width: min(var(--pf-shell-wide), 92vw);
       padding-block: clamp(3rem, 6vw, 6rem);
     }
   }
   
   @media (min-width: 1680px) {
     .pf-hero {
       width: min(var(--pf-shell-ultra), 88vw);
     }
   }

@media (max-height: 720px) and (orientation: landscape) {
  .pf-hero {
    padding-block: clamp(1.5rem, 5vw, 3rem);
  }
  
  .pf-hero-inner {
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  
  .pf-visual {
    max-width: 320px;
  }
}
  
  /* ============================================================
     PAYFLOW— FIXES: View Code Button + Gradients
  ============================================================ */
  
  /* STRONGS — mesmo degradê do GetFood4Less */
  
  .pf-subtitle strong {
    background: var(--pf-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
  }
  
  
  
    .pf-hero {
      position: relative;
      /* width: min(var(--pf-shell-wide), 100%); */
      margin: clamp(2rem, 4vw, 6rem) auto clamp(2rem, 3vw, 3rem);
      padding: clamp(2rem, 6vw, 4.5rem) var(--pf-shell-gutter);
      background: linear-gradient(140deg, rgba(14,18,28,.96), rgba(28,15,42,.92));
      border-radius: clamp(24px, 24px + 1vw, 32px);
      box-shadow: 0 26px 68px rgba(5,8,20,.55);
      overflow: hidden;
    }
  
  :root.light .pf-hero {
  
    background: linear-gradient(140deg, rgba(255,255,255,.96), rgba(247,249,255,.98));
  
    box-shadow: 0 26px 60px rgba(12,17,38,.16);
  
  }
  
  .pf-hero::before,
  .pf-hero::after {
    content: "";
    position: absolute;
    width: clamp(220px, 38vw, 420px);
    height: clamp(220px, 38vw, 420px);
    filter: blur(12px);
    opacity: .75;
    z-index: 0;
  }
  
  .pf-hero::before {
  
    top: -18%;
  
    left: -12%;
  
    background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--brand) 55%, transparent) 0 55%, transparent 75%);
  
  }
  
  .pf-hero::after {
  
    bottom: -22%;
  
    right: -10%;
  
    background: radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--accent) 48%, transparent) 0 50%, transparent 72%);
  
  }
  
  @media (max-width: 640px) {
    main.container.case {
      padding-inline: 1rem;
    }
  }
  
  /* Título com linhas */
  .pf-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 1.5vw, 1.6rem);
    margin-bottom: clamp(2rem, 3vw, 3rem);
    margin-top: clamp(3rem, 5vw, 6rem);
    padding-inline: clamp(1rem, 2vw, 2rem);
  }
  
  .pf-section-heading h2 {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.4rem);
    background: var(--pf-gradient-section);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
  }
  
  .pf-section-heading .pf-line {
    flex: 1;
    height: 2px;
    min-width: 20px;
    background: linear-gradient(
      90deg,
      transparent,
      color-mix(in oklab, var(--accent) 35%, transparent),
      color-mix(in oklab, var(--brand) 35%, transparent),
      transparent
    );
    opacity: .7;
    border-radius: 999px;
  }
  
  /* Mobile: stack title if needed */
  @media (max-width: 480px) {
    .pf-section-heading h2 {
      white-space: normal;
      text-align: center;
    }
  }

/* ----------------------------------------
   SECTION WRAPPER
---------------------------------------- */
.pf-checkout-simulation {
  margin-top: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2vw, 2rem);
  border-radius: clamp(24px, 26px + 0.3vw, 28px);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  margin-inline: auto;
  /* width: 100%; */
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
  /* Dark mode default */
  background: linear-gradient(180deg, rgba(14,16,22,0.88), rgba(10,12,18,0.82)) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55) !important;
  cursor: default;
}

/* Dark mode explicit */
:root:not(.light) .pf-checkout-simulation,
body:not(.light) .pf-checkout-simulation {
  background: linear-gradient(180deg, rgba(14,16,22,0.88), rgba(10,12,18,0.82)) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55) !important;
}

/* Light mode */
:root.light .pf-checkout-simulation,
body.light .pf-checkout-simulation {
  background: 
    radial-gradient(
      circle at 30% -20%,
      rgba(255,255,255,0.7),
      transparent 70%
    ),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6)) !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.12) !important;
}

/* Hover Glow */
.pf-checkout-simulation:hover {
  border-color: color-mix(in oklab, var(--brand) 50%, transparent) !important;
  box-shadow: 0 28px 60px rgba(0,0,0,.28) !important;
}

.pf-checkout-simulation::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 260px at var(--mx, 50%) var(--my, 0%),
    color-mix(in oklab, var(--ds-color-accent) 40%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.pf-checkout-simulation:hover::after {
  opacity: 1;
}

/* Dark mode hover glow */
:root:not(.light) .pf-checkout-simulation:hover::after,
body:not(.light) .pf-checkout-simulation:hover::after {
  background:
    radial-gradient(
      600px 260px at var(--mx, 50%) var(--my, 0%),
      color-mix(in oklab, var(--brand-2) 32%, transparent),
      transparent 70%
    );
}

:root.light .pf-checkout-simulation:hover,
body.light .pf-checkout-simulation:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,.16) !important;
}

/* HEADER */
.pf-checkout-simulation h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.6rem, 2vw + 0.5rem, 2.2rem);
  font-weight: 700;
  background: var(--pf-gradient-section-alt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----------------------------------------
   CART PREVIEW 
---------------------------------------- */
.pf-cart-preview {
  margin-top: 1.8rem;
  padding: clamp(1.5rem, 2vw, 2rem);
  border-radius: clamp(20px, 22px + 0.3vw, 24px);
  background: linear-gradient(180deg, rgba(14,16,22,0.88), rgba(10,12,18,0.82));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}

/* LIGHT MODE */
:root.light .pf-cart-preview {
  background: 
    radial-gradient(
      circle at 30% -20%,
      rgba(255,255,255,0.7),
      transparent 70%
    ),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

/* Hover Glow */
.pf-cart-preview:hover {
  border-color: color-mix(in oklab, var(--brand) 50%, transparent);
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
}

.pf-cart-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 260px at var(--mx, 50%) var(--my, 0%),
    color-mix(in oklab, var(--ds-color-accent) 40%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.pf-cart-preview:hover::after {
  opacity: 1;
}

/* Dark mode hover glow */
:root:not(.light) .pf-cart-preview:hover::after {
  background:
    radial-gradient(
      600px 260px at var(--mx, 50%) var(--my, 0%),
      color-mix(in oklab, var(--brand-2) 32%, transparent),
      transparent 70%
    );
}

:root.light .pf-cart-preview:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,.16);
}

/* CART ITEM */
.pf-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.8rem, 1vw, 1rem) 0;
  gap: clamp(0.8rem, 1vw, 1rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

:root.light .pf-cart-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* LEFT AREA: IMG + INFO + QTY */
.pf-cart-left {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1vw, 1rem);
  flex: 1;
  min-width: 200px;
}
.pf-cart-img {
  width: clamp(40px, 44px + 0.5vw, 48px);
  height: clamp(40px, 44px + 0.5vw, 48px);
  border-radius: clamp(10px, 11px + 0.2vw, 12px);
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* INFO */
.pf-cart-info span {
  font-weight: 600;
}

.pf-cart-info small {
  opacity: 0.7;
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
}

/* QTY */
.pf-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.pf-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--pf-glass-dark-3);
  cursor: pointer;
  font-size: 1.2rem;
  color: #fff;
  transition: 0.2s;
}

:root.light .pf-qty-btn {
  background: var(--pf-glass-light-6);
  color: #000;
}

.pf-qty-btn:hover {
  transform: translateY(-2px);
}

/* ITEM TOTAL PRICE */
.pf-item-total {
  font-weight: 600;
  min-width: 72px;
  text-align: right;
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 480px) {
  .pf-cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .pf-item-total {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: left;
  }
}

/* TOTAL BLOCK */
.pf-cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.1rem + 0.2vw, 1.2rem);
  font-weight: 700;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ----------------------------------------
   PAYMENT METHODS
---------------------------------------- */
.pf-payment-methods {
  margin-top: clamp(2rem, 2.4vw, 2.4rem);
}

.pf-payment-methods label {
  font-size: clamp(0.9rem, 0.95rem + 0.1vw, 1rem);
  margin-bottom: 0.6rem;
  display: block;
  opacity: 0.85;
}

.pf-options {
  display: flex;
  gap: clamp(1.5rem, 2vw, 2rem);
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.pf-options label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* ============================================================
   PAYMENT SUCCESS — PREMIUM GLASS DESIGN
   ============================================================ */

  /* HIDE/SHOW - Consolidated rules for PayFlow components */
  .pf-checkout-status.hidden,
  .pf-checkout-result.hidden {
    display: none !important;
  }
  
  .pf-checkout-status.show,
  .pf-checkout-result.show {
    display: block;
  }

   .pf-checkout-result {
    margin-top: clamp(2rem, 2.4vw, 2.4rem);
    padding: clamp(2rem, 2.6vw, 2.6rem) clamp(1.5rem, 2vw, 2rem);
    border-radius: clamp(24px, 26px + 0.3vw, 28px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(80, 255, 140, 0.08);
    border: 1px solid rgba(80, 255, 140, 0.25);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    text-align: center;
    max-width: min(620px, 100%);
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease forwards;
  }
  
  /* Light mode */
  :root.light .pf-checkout-result {
    background: rgba(200, 255, 220, 0.45);
    border: 1px solid rgba(0, 180, 90, 0.25);
  }
  
  /* SUCCESS TITLE */
  .pf-checkout-result h3 {
    font-size: clamp(1.5rem, 1.8rem + 0.3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.4rem;
    background: var(--pf-gradient-success);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  /* TEXT BLOCKS */
  .pf-checkout-result p {
    font-size: clamp(0.95rem, 1rem + 0.1vw, 1.05rem);
    margin: 0.4rem 0;
    color: var(--text, #fff);
  }
  
  :root.light .pf-checkout-result p {
    color: #1a1a1a;
  }
  
  /* SUCCESS MESSAGE FOOTER */
  .pf-checkout-result .success-message {
    margin-top: 1.6rem;
    font-size: clamp(0.9rem, 0.95rem + 0.1vw, 1rem);
  }
  
  /* INVOICE LINK */
  .pf-checkout-result .invoice-link {
    font-weight: 700;
    color: var(--brand);
    text-decoration: underline;
    margin-left: 4px;
    word-break: break-word;
  }
  
  /* FADE IN ANIMATION */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
/* ----------------------------------------
   INVOICE MODAL
---------------------------------------- */
.pf-invoice-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pf-invoice-modal.show {
  display: flex;
}

.invoice-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.45);
}

.invoice-content {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border-radius: clamp(20px, 22px + 0.3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  padding: clamp(1.8rem, 2.4vw, 2.4rem);
  max-width: min(640px, 95%);
  width: 92%;
  z-index: 10;
  max-height: 90vh;
  overflow-y: auto;
}

/* Light mode */
:root.light .invoice-content {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.14);
}

/* Invoice header */
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.invoice-header-left {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 0.8vw, 0.8rem);
  flex: 1;
  min-width: 200px;
}

.invoice-header-left h3 {
  font-size: clamp(1rem, 1.1rem + 0.2vw, 1.2rem);
}

.invoice-download {
  background: none;
  border: none;
  font-size: clamp(1.2rem, 1.3rem + 0.2vw, 1.4rem);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0.5rem;
}

/* Footer */
.invoice-footer {
  margin-top: 1.8rem;
  text-align: right;
}

@media (max-width: 480px) {
  .invoice-footer {
    text-align: center;
  }
  
  .invoice-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .invoice-header-left {
    width: 100%;
  }
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 768px) {
  .pf-checkout-simulation {
    padding: clamp(2rem, 2.6vw, 2.6rem) clamp(1.2rem, 1.5vw, 1.5rem);
    margin-inline: clamp(0.5rem, 1vw, 1rem);
  }
  
  .pf-cart-preview {
    padding: clamp(1.2rem, 1.5vw, 1.5rem);
  }
}

@media (max-width: 720px) {
  .pf-options {
    flex-direction: column;
    gap: 1rem;
  }

  .invoice-content {
    padding: clamp(1.5rem, 2vw, 2rem);
    width: 95%;
  }
}

@media (max-width: 480px) {
  .pf-checkout-simulation {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }
  
  .pf-cart-left {
    min-width: 100%;
  }
}

/* ============================================================
   PAYFLOW LITE — BUTTONS (exclusive PF classes)
   ============================================================ */

   .pf-btn-primary {
    background: var(--pf-gradient-button-secondary);
    color: #fff !important;
    padding: clamp(0.9rem, 1vw, 1rem) clamp(1.5rem, 2vw, 2rem);
    border-radius: clamp(12px, 13px + 0.2vw, 14px);
    font-size: clamp(0.95rem, 1rem + 0.1vw, 1.05rem);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.25s ease-out;
    box-shadow: 0 6px 22px rgba(0,0,0,0.22);
    display: inline-block;
    width: 100%;
    text-align: center;
  }
  
  @media (min-width: 481px) {
    .pf-btn-primary {
      width: auto;
    }
  }
  
  .pf-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
    opacity: 0.95;
  }
  
  .pf-btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  }

  .pf-btn-secondary {
    padding: clamp(0.7rem, 0.8vw, 0.8rem) clamp(1.4rem, 1.6vw, 1.6rem);
    border-radius: clamp(10px, 11px + 0.2vw, 12px);
    border: 1px solid var(--pf-border-dark-8);
    background: var(--pf-glass-dark-1);
    font-weight: 600;
    font-size: clamp(0.9rem, 0.95rem + 0.1vw, 1rem);
    cursor: pointer;
    transition: 0.2s ease;
    color: #fff !important;
    width: 100%;
  }
  
  @media (min-width: 481px) {
    .pf-btn-secondary {
      width: auto;
    }
  }
  
  :root.light .pf-btn-secondary {
    background: var(--pf-glass-light-6);
    border-color: var(--pf-border-light-3);
    color: #000 !important;
  }
  
  .pf-btn-secondary:hover {
    background: var(--pf-glass-dark-5);
  }
  
  :root.light .pf-btn-secondary:hover {
    background: var(--pf-glass-light-8);
  }
  
  /* SECTION WRAPPER */
  .pf-sim-section {
    margin-bottom: clamp(6rem, 12vw, 14rem);
    position: relative;
    padding-inline: clamp(1rem, 2vw, 0);
  }
  
  /* SEPARATOR LINE (Stripe vibes) */
  .pf-sim-section::after {
    content: "";
    display: block;
    width: 160px;
    height: 2px;
    margin: clamp(4rem, 8vw, 6rem) auto 0;
  
    background: linear-gradient(
      90deg,
      transparent,
      var(--brand),
      var(--brand-2),
      transparent
    );
  
    opacity: 0.40;
    border-radius: 100px;
  }
  
  /* FADE OUT DO FINAL (super elegante) */
  .pf-sim-section::before {
    content: "";
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 140px;
  
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(0,0,0,0.05) 60%,
      rgba(0,0,0,0.08) 100%
    );
  
    filter: blur(12px);
    opacity: .2;
    pointer-events: none;
  }
  
  /* LIGHT MODE FADE */
  :root.light .pf-sim-section::before {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.35) 60%,
      rgba(255,255,255,0.6) 100%
    );
  }
  
  /* RESPONSIVIDADE DO FINAL */
  @media (max-width: 768px) {
    .pf-sim-section::before {
      height: clamp(80px, 90px + 1vw, 100px);
      bottom: clamp(-50px, -55px - 1vw, -60px);
    }
    .pf-sim-section::after {
      width: clamp(100px, 110px + 1vw, 120px);
      height: 1.5px;
    }
  }
  
  @media (max-width: 640px) {
    .pf-sim-section::before {
      height: 80px;
      bottom: -50px;
    }
    .pf-sim-section::after {
      width: 100px;
      height: 1.5px;
    }
  }
  
  @media (max-width: 480px) {
    .pf-sim-section::before {
      height: 60px;
      bottom: -40px;
    }
    .pf-sim-section::after {
      width: 80px;
    }
  }
/* DESCRIPTION */
.pf-sim-desc {
  text-align: center;
  margin-top: 1rem;
  opacity: .75;
  max-width: min(620px, 95%);
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(1rem, 2vw, 2rem);
  font-size: clamp(0.9rem, 0.95rem + 0.1vw, 1rem);
}

/* CARD */
.pf-sim-card {
  margin-top: clamp(2rem, 3vw, 3rem);
  padding: clamp(2rem, 2.6vw, 2.6rem);
  border-radius: clamp(24px, 26px + 0.3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(14,16,22,0.88), rgba(10,12,18,0.82));
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  margin-inline: 0;
  transition: all 0.25s ease;
}

.pf-sim-card:hover {
  border-color: color-mix(in oklab, var(--brand) 50%, transparent);
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
}

/* LIGHT MODE */
:root.light .pf-sim-card {
  background: 
    radial-gradient(
      circle at 30% -20%,
      rgba(255,255,255,0.7),
      transparent 70%
    ),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

:root.light .pf-sim-card:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,.16);
}

/* LEFT SIDE */
.pf-sim-left label {
  font-size: clamp(0.9rem, 0.95rem + 0.1vw, 1rem);
  font-weight: 600;
  opacity: 0.8;
}

.pf-sim-left {
  order: 2;
}

.pf-input-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: clamp(0.8rem, 0.9vw, 0.9rem) clamp(0.9rem, 1vw, 1rem);
  border-radius: clamp(14px, 15px + 0.2vw, 16px);

  background: var(--pf-glass-dark-1);
  border: 1px solid var(--pf-border-dark-5);
  margin-top: .8rem;
  margin-bottom: 1.6rem;
}

/* LIGHT MODE INPUT */
:root.light .pf-input-row {
  background: var(--pf-glass-light-4);
  border-color: var(--pf-border-light-1);
}

.pf-dollar {
  font-size: clamp(1.1rem, 1.2rem + 0.2vw, 1.3rem);
  font-weight: bold;
  opacity: .65;
}

.pf-input-row input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: clamp(1.2rem, 1.3rem + 0.2vw, 1.4rem);
  font-weight: 600;
}

/* BUTTON */
.pf-sim-btn {
  width: 100%;
  margin-top: .4rem;
}

/* RIGHT SIDE */
.pf-sim-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  order: 1;
  margin-bottom: 0.5rem;
}

#pfSimChart {
  width: clamp(150px, 170px + 1vw, 180px) !important;
  height: clamp(150px, 170px + 1vw, 180px) !important;
}

/* RESULT */
.pf-sim-result p {
  margin: .25rem 0;
  font-size: clamp(0.95rem, 1rem + 0.1vw, 1.05rem);
  text-align: center;
}

@media (min-width: 900px) {
  .pf-sim-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 3vw, 3rem);
  }
  
  .pf-sim-left {
    order: 1;
  }
  
  .pf-sim-right {
    order: 2;
    margin-bottom: 0;
  }
  
  #pfSimChart {
    width: clamp(200px, 14vw, 240px) !important;
    height: clamp(200px, 14vw, 240px) !important;
  }
}

@media (max-width: 480px) {
  .pf-sim-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .pf-sim-left label {
    font-size: 0.95rem;
  }
}

/* ============================================
   VISUAL PAYMENT FLOW — BASE
============================================ */


.pf-flow-track::-webkit-scrollbar {
  display: none;
}

.pf-flow-step h3 {
  margin-bottom: 0.35rem;
}

.pf-flow-step p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
/* SETINHA */
.flow-arrow {
  width: 26px;
  height: 26px;
  background-image: url("/assets/icons/arrow-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.45;
  transform: translateY(8px);
  flex-shrink: 0;

  display: block !important;
}

/* nunca mostra seta depois do último card */
.pf-flow-track .flow-arrow:last-child {
  display: none;
}

.pf-flow-step,
.flow-arrow {
  margin: 0 !important;
}
/* ============================================
   TABLET / DESKTOP
============================================ */
@media (min-width: 1025px) {
  .pf-flow-track {
    padding-inline: clamp(3rem, 6vw, 5rem);
  }
}

/* tablets — 2 cards ainda */
@media (max-width: 1024px) and (min-width: 700px) {
  .pf-flow-step {
    flex: 0 0 calc(50% - 1.5rem);
    min-width: calc(50% - 1.5rem);
    scroll-snap-align: center;
  }
}

/* ============================================
   MOBILE LANDSCAPE — 2 CARDS, SEM SETAS
============================================ */
@media (max-width: 700px) and (orientation: landscape) {
  .pf-flow-track {
    padding-inline: 1.5rem;
    gap: 1.5rem;
  }
  .pf-flow-step {
    flex: 0 0 70%;
    min-width: 70%;
    scroll-snap-align: center;
  }
  .flow-arrow {
    display: none !important;
  }
}

/* ============================================
   MOBILE PORTRAIT — 1 CARD POR VEZ, SEM SETAS
============================================ */
@media (max-width: 480px) {
  .pf-flow-track {
    padding-inline: 1.25rem;
    gap: 1.25rem;
  }

  .pf-flow-step {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: center;
  }

  .flow-arrow {
    display: none !important;
  }
}

.pf-hero {
  margin-bottom: 0 !important;
  padding-bottom: 4rem !important;
}

/* ============================================
   VISUAL PAYMENT FLOW — FIX FINAL
   (desktop: 2 cards + setas, mobile ok)
============================================ */

/* wrapper alinhado com o resto da página */
.pf-flow {
  margin-top: 4rem;
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* garante que nada seja cortado e que possa rolar */
.pf-flow-line {
  margin-top: 2.5rem;
  overflow: visible !important;
  overflow-x: visible !important;
}

/* trilho dos cards */
.pf-flow-track {
  margin-top: 3rem !important;
  display: flex;
  align-items: center;
  gap: 3.8rem !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  padding-inline: 2rem !important;
  justify-content: flex-start !important; /* começa no card 1 */
  /* width: 100%; */
}

.pf-flow-track::-webkit-scrollbar {
  display: none;
}

/* CARD BASE — 2 por vez no desktop */
.pf-flow-step {
  flex: 0 0 40% !important;
  min-width: 40% !important;
  max-width: 40% !important;
  margin: 0 !important;

  background: #fff;
  border-radius: 1.2rem;
  padding: 1.6rem 1.8rem;
  scroll-snap-align: start;
  position: relative;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.pf-flow-step h3 {
  margin-bottom: 0.35rem;
}

.pf-flow-step p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.pf-flow-body {
  position: relative;
  z-index: 1;
}

/* SETA ENTRE CARDS (DESKTOP/TABLET) */
.flow-arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-image: url("/assets/icons/arrow-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  transform: translateY(6px);
}

/* nunca mostra seta depois do último card */
.pf-flow-track > .flow-arrow:last-child {
  display: none !important;
}

/* ============================================
   MOBILE PORTRAIT — 1 CARD por vez, sem setas
============================================ */
@media (max-width: 480px) {
  .pf-flow {
    width: 100%;
    margin-top: 3rem;
  }

  .pf-flow-line {
    margin-top: 2rem;
  }

  .pf-flow-track {
    padding-inline: 1.5rem !important;
    gap: 1.5rem !important;
  }

  .pf-flow-step {
    flex: 0 0 90% !important;
    min-width: 90% !important;
    max-width: 90% !important;
    scroll-snap-align: center;
  }

  .flow-arrow {
    display: none !important;
  }
}

/* ============================================
   MOBILE LANDSCAPE — 2 CARDS, sem setas
============================================ */
@media (max-width: 700px) and (orientation: landscape) {
  .pf-flow-track {
    padding-inline: 1.5rem !important;
    gap: 1.5rem !important;
  }

  .pf-flow-step {
    flex: 0 0 60% !important;
    min-width: 60% !important;
    max-width: 60% !important;
    scroll-snap-align: center;
  }

  .flow-arrow {
    display: none !important;
  }
}

/* ============================================
   TABLET — 2 CARDS
============================================ */
@media (min-width: 700px) and (max-width: 1024px) {
  .pf-flow-track {
    padding-inline: 2rem !important;
  }

  .pf-flow-step {
    flex: 0 0 48% !important;
    min-width: 48% !important;
    max-width: 48% !important;
  }
}

body.work--payflow .pf-flow-line {
  overflow-x: visible !important;
}
