/* Flippique — Black Friday 2026 treatment for the Lifetime block ONLY.
   The live site's Lifetime offer is the wide <div class="lifetime"> under the
   three plan cards. Add class "lifetime--bf" to switch the treatment on;
   add "lifetime--bf-ribbon" as well for the corner ribbon. Remove the classes
   (or let bf-banner.js do it from 1 Dec 2026) and the block is exactly the
   normal Lifetime card again: the extra markup is hidden without the class.
   site.js keeps writing "€199" into [data-price-lifetime]; that is fine, it
   becomes the struck-through "was" price. */

/* Hidden unless the Black Friday class is on. */
.lifetime .bf-only { display: none; }
.lifetime.lifetime--bf .bf-only { display: revert; }
.lifetime .bf-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.lifetime.lifetime--bf {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(148, 130, 255, .8);              /* same edge as .plan--main */
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(98, 87, 245, .42), transparent 60%),
    radial-gradient(60% 110% at 0% 100%, rgba(165, 140, 255, .20), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    #13111d;                                           /* logo ink, darker than --card */
  box-shadow: 0 24px 60px rgba(20, 20, 40, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* Faint "−25%" watermark behind the buy column (decorative SVG, not read out). */
.lifetime.lifetime--bf::before {
  content: "";
  position: absolute; z-index: -1;
  right: -30px; bottom: -46px; width: 420px; height: 210px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 210'%3E%3Ctext x='410' y='180' text-anchor='end' font-family='system-ui,Segoe UI,sans-serif' font-size='190' font-weight='800' letter-spacing='-10' fill='none' stroke='%23a58cff' stroke-opacity='.16' stroke-width='2'%3E%E2%88%9225%25%3C/text%3E%3C/svg%3E") no-repeat right bottom / contain;
  pointer-events: none;
}
/* A few sparkles top-left, kept away from the text. */
.lifetime.lifetime--bf::after {
  content: "";
  position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='140' viewBox='0 0 260 140'%3E%3Cg fill='%23c9bfff'%3E%3Cpath d='M30 20l2 6 6 2-6 2-2 6-2-6-6-2 6-2z' opacity='.35'/%3E%3Cpath d='M200 110l1.5 4 4 1.5-4 1.5-1.5 4-1.5-4-4-1.5 4-1.5z' opacity='.3'/%3E%3Ccircle cx='140' cy='40' r='1.4' opacity='.35'/%3E%3Ccircle cx='80' cy='120' r='1.2' opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 140px;
  /* fade the sparkles out behind the text column */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.2) 55%, #000 75%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.2) 55%, #000 75%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .lifetime.lifetime--bf::after {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.2) 60%, #000 80%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.2) 60%, #000 80%);
  }
}

.lifetime--bf .lifetime__text, .lifetime--bf .lifetime__buy { position: relative; }
.lifetime--bf .plan__tag.bf-only {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 10px; padding: 4px 11px; border-radius: 8px;
  background: rgba(148, 130, 255, .2); color: var(--violet-on-card, #a58cff);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
}

/* Price: €199 struck through, then €149.25 + VAT. */
.lifetime--bf .lifetime__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 8px; }
.lifetime--bf .lifetime__price [data-price-lifetime] {
  font-size: 20px; font-weight: 600; color: var(--card-text-2, #a8a8ba);
  text-decoration: line-through; text-decoration-color: var(--violet-on-card, #a58cff); text-decoration-thickness: 2px;
  flex-basis: 100%; text-align: center; line-height: 1.2;
}
.lifetime--bf .bf-now {
  color: #fff; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.lifetime--bf .lifetime__price .bf-sr { display: inline; }
.lifetime--bf .bf-code-note {
  margin: 0 0 16px; padding: 8px 10px; border: 1.5px dashed rgba(165, 140, 255, .6); border-radius: 10px;
  background: rgba(255, 255, 255, .05); color: var(--card-text-2, #a8a8ba); font-size: 13px; line-height: 1.45;
}
.lifetime--bf .bf-code-note code {
  font: 700 14px/1 ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  letter-spacing: .05em; color: #fff;
}
.lifetime--bf .lifetime__once { margin-bottom: 10px; }

/* Optional sticker badge: add "lifetime--bf-ribbon" next to "lifetime--bf".
   It sits at the top of the buy column, so it never covers the price or text. */
.lifetime .bf-ribbon { display: none; }
.lifetime.lifetime--bf.lifetime--bf-ribbon .bf-ribbon {
  display: inline-block;
  margin: 0 0 14px; padding: 6px 14px;
  border-radius: 8px;
  rotate: -3deg;
  background: linear-gradient(100deg, #5548e6, var(--accent, #6257f5));
  color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(98, 87, 245, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}

@media (max-width: 860px) {
  .lifetime.lifetime--bf::before { width: 300px; height: 150px; right: -20px; bottom: -30px; }
}
@media (max-width: 480px) {
  .lifetime--bf .bf-now { font-size: 36px; }
}
