:root {
  --bg: #070712;
  --bg2: #0b0b1f;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.58);
  --accent: #aee7ff; /* azur */
  --accent2: #ffd37a; /* or */
  --white: #ffffff;
  --danger: #ff5f6d;
  --success: #5fddaa;
  --warning: #ffb347;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
  --accent-rgb: 174, 231, 255;
}

/* ============================= */
/*  EVENT SECTION STYLES          */
/* ============================= */

.eventSection {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.05) 100%);
  border-bottom: 2px solid var(--accent);
  padding: 24px 0;
}

.eventTitle {
  margin: 0 0 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.eventGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .eventGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .eventGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eventItem {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.eventIcon {
  font-size: 28px;
  display: block;
}

.eventLabel {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eventValue {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.3;
}

.eventLink {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.eventLink:hover {
  text-decoration-thickness: 2px;
}

/* ============================= */
/*  COVER CARD PADDING            */
/* ============================= */

.coverCardPadding {
  padding: 14px 16px 16px;
}

/* ============================= */
/*  PRODUCT SECTION GRID          */
/* ============================= */

.productDisplay {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .productDisplay {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.productImageWrapper {
  display: grid;
  place-items: center;
}

.productImage {
  width: 150px;
  height: 180px;
  object-fit: scale-down;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .productImage {
    width: 120px;
    height: 150px;
  }
}

.productInfo {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.productPrice {
  display: grid;
  gap: 0;
}

.productPriceLabel {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.productPriceValue {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  margin-top: 4px;
}

.card .productDescription {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.productActionSection {
  border-top: 2px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

.productActionRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 640px) {
  .productActionRow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.productTotal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}

.productTotalLabel {
  font-weight: 900;
  color: var(--muted);
}

.productTotalValue {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
}

.productSecurityNote {
  margin: 12px 0 0;
}

.quantityInput {
  width: 70px;
  padding: 8px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.quantityLabel {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}

.immediateAccess {
  display: grid;
  align-items: center;
  padding: 8px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.switchLabel strong {
  font-size: 16px;
  color: var(--accent);
}

/* ============================= */
/*  FORM GRID                     */
/* ============================= */

.formGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .formGrid {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/*  AUTHOR GRID                   */
/* ============================= */

.authorFineNote {
  color: var(--muted2);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  width: 100vw;
  overflow-x: hidden;
}
body {
  width: 100%;
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(174, 231, 255, 0.12), transparent 60%), radial-gradient(900px 500px at 10% 30%, rgba(255, 211, 122, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7, 7, 18, 0.7), rgba(7, 7, 18, 0.3));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: 0.2px;
}
.sigil {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 211, 122, 0.55), transparent 55%), radial-gradient(circle at 70% 65%, rgba(174, 231, 255, 0.55), transparent 55%), rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.sigil:after {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, rgba(174, 231, 255, 0), rgba(174, 231, 255, 0.25), rgba(255, 211, 122, 0.25), rgba(174, 231, 255, 0));
  filter: blur(10px);
  animation: spin 10s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
}
.navlinks a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  transition: 0.2s ease;
}
.navlinks a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.navcta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn.primary {
  background: linear-gradient(90deg, rgba(174, 231, 255, 0.18), rgba(255, 211, 122, 0.18));
  border-color: rgba(255, 255, 255, 0.22);
}
.btn.primary:hover {
  background: linear-gradient(90deg, rgba(174, 231, 255, 0.24), rgba(255, 211, 122, 0.24));
}

.burger {
  display: none;
}
@media (max-width: 900px) {
  .navlinks {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
}

.hero {
  position: relative;
  padding: 54px 0 30px;
  min-height: calc(92vh - 64px);
  display: grid;
  align-items: center;
}
.heroGrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 38px 0 22px;
  }
  .heroGrid {
    grid-template-columns: 1fr;
  }
}

.authorGrid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 980px) {
  .authorGrid {
    grid-template-columns: 1fr;
  }
}

.authorName {
  margin: 0 0 12px;
  font-weight: 850;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.authorTagline {
  margin: 0 0 16px;
  color: var(--muted2);
  font-weight: 750;
  font-size: 13px;
}

.authorBio {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 600;
  font-size: 14px;
}

.backdrop {
  position: absolute;
  inset: -40px 0 0 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 15% 20%, rgba(255, 255, 255, 0.35), transparent 60%), radial-gradient(2px 2px at 65% 12%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 65%, rgba(255, 255, 255, 0.2), transparent 60%), radial-gradient(1.2px 1.2px at 85% 55%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(1px 1px at 55% 80%, rgba(255, 255, 255, 0.16), transparent 60%), radial-gradient(700px 420px at 70% 20%, rgba(174, 231, 255, 0.12), transparent 65%),
    radial-gradient(700px 420px at 20% 55%, rgba(255, 211, 122, 0.1), transparent 65%);
  opacity: 0.9;
  transform: translateY(var(--parallax, 0px));
  transition: transform 0.05s linear;
}
.rifts {
  position: absolute;
  inset: -20% -10%;
  background:
    linear-gradient(110deg, transparent 45%, rgba(174, 231, 255, 0.1) 48%, transparent 52%), linear-gradient(70deg, transparent 48%, rgba(255, 211, 122, 0.09) 50%, transparent 52%),
    radial-gradient(900px 500px at 55% 45%, rgba(255, 255, 255, 0.06), transparent 60%);
  opacity: 0.75;
  mix-blend-mode: screen;
  transform: translateY(calc(var(--parallax, 0px) * 0.6));
}
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: overlay;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  width: fit-content;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(174, 231, 255, 0.9), rgba(255, 211, 122, 0.9));
  box-shadow: 0 0 20px rgba(174, 231, 255, 0.35);
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.6px;
}
.subtitle {
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 60ch;
}
.heroActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.metaRow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted2);
  font-weight: 650;
  font-size: 13px;
  margin-top: 10px;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pill b {
  color: var(--text);
}

.coverWrap {
  display: grid;
  gap: 14px;
  justify-items: stretch;
}
.coverCard {
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.coverArt {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(900px 420px at 30% 20%, rgba(255, 211, 122, 0.22), transparent 62%), radial-gradient(800px 520px at 70% 60%, rgba(174, 231, 255, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  display: grid;
  place-items: center;
  padding: 12px;
}
.coverImg {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.miniGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .miniGrid {
    grid-template-columns: 1fr;
  }
}
.miniCard {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 12px;
}
.miniCard .k {
  color: var(--muted2);
  font-size: 12px;
  font-weight: 750;
  margin: 0 0 4px;
}
.miniCard .v {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

section {
  padding: 56px 0;
}
.sectionTitle {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.3px;
}
.sectionTitle p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
  font-weight: 600;
  font-size: 14.5px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}
.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.card:hover {
  background: var(--card2);
  transition: 0.2s ease;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 600;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.chars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .chars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .chars {
    grid-template-columns: 1fr;
  }
}

.charCard {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.charCard:before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(174, 231, 255, 0.18), transparent 55%), radial-gradient(circle at 70% 70%, rgba(255, 211, 122, 0.14), transparent 58%);
  opacity: 0.8;
  transform: rotate(-10deg);
  pointer-events: none;
}
.charHead {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatarImg {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  /*object-fit: cover;*/ /* todo - remove... */
  object-fit: contain;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}
.charName {
  position: relative;
  margin: 0;
  font-weight: 850;
  font-size: 15px;
}
.charRole {
  position: relative;
  margin: 2px 0 0;
  color: var(--muted2);
  font-weight: 750;
  font-size: 12.5px;
}
.charBio {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
  font-size: 13.5px;
}

.mapCard {
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mapCard img {
  width: 100%;
  display: block;
  height: auto;
}
.mapBar {
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.mapHint {
  color: var(--muted);
  font-weight: 650;
  font-size: 13.5px;
}
.mapActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.excerpt {
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px;
  box-shadow: var(--shadow);
}
.quote {
  margin: 0;
  padding: 0;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.95;
  letter-spacing: 0.2px;
  font-weight: 600;
  font-size: 15px;
  font-style: italic;
}
.quote p {
  margin: 0 0 18px 0;
  color: rgba(255, 255, 255, 0.88);
}
.quote p:last-of-type {
  margin-bottom: 0;
}
.quoteAttribution {
  display: block;
  margin-top: 16px;
  color: var(--muted2);
  font-weight: 700;
  font-style: normal;
  text-align: right;
  font-size: 14px;
}

footer.siteFooter {
  padding: 42px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.1);
}
.footerGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .footerGrid {
    grid-template-columns: 1fr;
  }
}

.fieldRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
input {
  flex: 1 1 220px;
  padding: 11px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
  font-weight: 650;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

textarea {
  flex: 1 1 220px;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
  font-weight: 650;
  font-family: inherit;
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Switch checkbox */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switchTrack {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.switchKnob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}
.switch input[type="checkbox"]:checked ~ .switchTrack {
  background: linear-gradient(90deg, rgba(174, 231, 255, 0.28), rgba(255, 211, 122, 0.28));
  border-color: rgba(255, 255, 255, 0.24);
}
.switch input[type="checkbox"]:checked ~ .switchTrack .switchKnob {
  transform: translateX(22px);
  background: rgba(255, 255, 255, 0.92);
}
.switch:hover .switchTrack {
  border-color: rgba(255, 255, 255, 0.22);
}
.switchLabel {
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
}

/* Form errors */
.formErrors {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.formErrors li {
  color: var(--danger);
  font-weight: 650;
  font-size: 13px;
  margin: 0;
  padding: 0;
}

.fine {
  color: var(--muted2);
  font-weight: 650;
  font-size: 12.5px;
  line-height: 1.5;
}

.fineHelp {
  color: var(--muted2);
  font-weight: 650;
  font-size: 11px;
  line-height: 1.5;
  font-style: italic;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 80;
}
.drawer.open {
  display: block;
}
.panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(360px, 92vw);
  background: rgba(7, 7, 18, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.panel a {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.panel a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

/* Message center */
.msg-ctr {
  color: var(--white);
  padding: 10px;

  p {
    font-size: 1.1em;
    margin: 10px 0;
    padding-left: 10px;
  }

  &.msg-error {
    background-color: var(--danger);
  }

  &.msg-success {
    background-color: var(--success);
  }

  &.msg-warning {
    background-color: var(--warning);
  }
}

/* =========================
   NÉMÉSIS-MÈRE — AVATAR FX
   micro-glitch • scan • holo • regard souris
   ========================= */

.avatar.nemesis-core {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 40% 35%, #0f1118, #020305 70%);
  border: 1px solid rgba(120, 160, 255, 0.28);
  box-shadow:
    0 0 24px rgba(120, 160, 255, 0.14),
    inset 0 0 24px rgba(0, 0, 0, 0.9);
  transform: translateZ(0);
}

/* couche holographique (distorsion + reflets) */
.avatar.nemesis-core .nemesis-field {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(120px 90px at var(--mx, 50%) var(--my, 50%), rgba(140, 210, 255, 0.2), transparent 60%), linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%),
    repeating-linear-gradient(0deg, rgba(120, 160, 255, 0.1) 0px, rgba(120, 160, 255, 0.1) 1px, rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 0) 6px);
  opacity: 0.85;
  filter: blur(0.2px);
  mix-blend-mode: screen;
  transform: translate(calc((var(--px, 0) * 1px)), calc((var(--py, 0) * 1px)));
}

/* hotspot = “regard” : lumière qui suit la souris */
.avatar.nemesis-core .nemesis-hotspot {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(120, 190, 255, 0.35), transparent 55%);
  opacity: 0.65;
  mix-blend-mode: screen;
  transform: translate(calc((var(--px, 0) * 1.4px)), calc((var(--py, 0) * 1.4px)));
}

/* scan horizontal lent */
.avatar.nemesis-core .nemesis-scan {
  position: absolute;
  inset: -60% -10%;
  background: linear-gradient(180deg, transparent 42%, rgba(155, 220, 255, 0.16) 48%, rgba(155, 220, 255, 0.08) 52%, transparent 58%);
  opacity: 0.9;
  mix-blend-mode: screen;
  animation: nemesisScan 4.8s linear infinite;
  filter: blur(0.3px);
}
@keyframes nemesisScan {
  0% {
    transform: translateY(-30%);
  }
  100% {
    transform: translateY(30%);
  }
}

/* anneau d'énergie */
.avatar.nemesis-core .nemesis-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(120, 160, 255, 0.38);
  opacity: 0.7;
  animation: nemesisRing 3.6s ease-in-out infinite;
}
@keyframes nemesisRing {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.65;
  }
  55% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.1;
  }
}

/* coeur rouge sang */

.avatar.nemesis-core .nemesis-coreDot {
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;

  /* Rouge profond organique */
  background: radial-gradient(circle, #ffb3b3 0%, #ff2b2b 35%, #8b0000 70%, rgba(0, 0, 0, 0) 80%);

  box-shadow:
    0 0 12px rgba(255, 60, 60, 0.95),
    0 0 28px rgba(180, 0, 0, 0.75),
    0 0 55px rgba(120, 0, 0, 0.45);

  animation: nemesisPulse 2.6s ease-in-out infinite;
}

@keyframes nemesisPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.9;
  }
  35% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 1;
  }
  55% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.95;
  }
  75% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.85;
  }
}

/* micro-glitch (décalages brefs + tremblement très subtil) */
.avatar.nemesis-core::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 12%,
    transparent 24%,
    rgba(120, 160, 255, 0.08) 40%,
    transparent 55%,
    rgba(255, 211, 122, 0.06) 68%,
    transparent 82%,
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0.25;
  mix-blend-mode: overlay;
  animation: nemesisGlitch 5.5s infinite;
}
@keyframes nemesisGlitch {
  0%,
  92%,
  100% {
    transform: translateX(0);
    filter: none;
    opacity: 0.22;
  }
  93% {
    transform: translateX(-2px);
    filter: hue-rotate(12deg);
    opacity: 0.35;
  }
  94% {
    transform: translateX(3px);
    filter: hue-rotate(-18deg);
    opacity: 0.3;
  }
  95% {
    transform: translateX(-1px);
    filter: none;
    opacity: 0.24;
  }
}

/* Accessibilité: réduit animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .avatar.nemesis-core .nemesis-scan,
  .avatar.nemesis-core .nemesis-ring,
  .avatar.nemesis-core .nemesis-coreDot,
  .avatar.nemesis-core::after {
    animation: none !important;
  }
}

/* ============================= */
/*  VORTEX OCÉAN PERF (GPU)      */
/* ============================= */

/* ============================= */
/*  SHAPE: vortex moins circulaire */
/* ============================= */

.waterVortex.ocean {
  /* légère déformation globale */
  transform: translate3d(0, 0, 0) skewX(-4deg) skewY(1.5deg);
  transform-origin: 50% 60%;
}

/* Masque irrégulier (blob) appliqué au vortex */
.waterVortex.ocean .vortexMask {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(860px, 150vw);
  height: min(740px, 130vw);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;

  /* blob par gradients (perf) */
  background:
    radial-gradient(60% 52% at 36% 42%, #000 0 60%, transparent 61%), radial-gradient(56% 48% at 66% 56%, #000 0 58%, transparent 59%),
    radial-gradient(64% 60% at 48% 66%, #000 0 62%, transparent 63%), radial-gradient(52% 44% at 52% 34%, #000 0 56%, transparent 57%);

  /* fusion un peu pour éviter les “pétales” */
  filter: blur(6px);

  /* IMPORTANT: sert de masque aux couches en dessous */
  opacity: 0.95;
}

/* On applique ce masque aux couches vortex via mask-image */
.waterVortex.ocean .maskTarget {
  -webkit-mask-image:
    radial-gradient(60% 52% at 36% 42%, #000 0 60%, transparent 61%), radial-gradient(56% 48% at 66% 56%, #000 0 58%, transparent 59%),
    radial-gradient(64% 60% at 48% 66%, #000 0 62%, transparent 63%), radial-gradient(52% 44% at 52% 34%, #000 0 56%, transparent 57%);
  -webkit-mask-composite: source-over;
  mask-image:
    radial-gradient(60% 52% at 36% 42%, #000 0 60%, transparent 61%), radial-gradient(56% 48% at 66% 56%, #000 0 58%, transparent 59%),
    radial-gradient(64% 60% at 48% 66%, #000 0 62%, transparent 63%), radial-gradient(52% 44% at 52% 34%, #000 0 56%, transparent 57%);
  mask-composite: add;
}

/* Petit “break” d’aspect circulaire sur les vagues */
.oceanRipples {
  border-radius: 42% 58% 50% 50% / 55% 45% 60% 40%;
}

.waterVortex.ocean {
  position: absolute;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.98;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Brume humide / profondeur marine (statique) */
.oceanHaze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 55% 62%, rgba(174, 231, 255, 0.16), transparent 60%), radial-gradient(900px 520px at 40% 58%, rgba(255, 211, 122, 0.1), transparent 62%),
    radial-gradient(1200px 700px at 50% 65%, rgba(0, 0, 0, 0.22), transparent 62%);
  opacity: 0.9;
}

/* Reflets “caustics” (mouvement très léger) */
.oceanCaustics {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(920px, 150vw);
  height: min(920px, 150vw);
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;

  background:
    repeating-linear-gradient(35deg, rgba(255, 255, 255, 0) 0 26px, rgba(255, 255, 255, 0.1) 27px 28px, rgba(255, 255, 255, 0) 29px 58px),
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0) 0 34px, rgba(174, 231, 255, 0.12) 35px 36px, rgba(255, 255, 255, 0) 37px 70px);

  mix-blend-mode: screen;
  opacity: 0.22;

  /* On masque en “nappe” aquatique autour du vortex */
  mask-image: radial-gradient(circle, transparent 0 18%, #000 22% 75%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, transparent 0 18%, #000 22% 75%, transparent 80%);

  will-change: transform;
  animation: causticsDrift 6.5s ease-in-out infinite alternate;
}

/* Vagues circulaires (ring ripples) — pas de blur */
.oceanRipples {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(980px, 160vw);
  height: min(980px, 160vw);
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;

  background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 2px, rgba(255, 255, 255, 0) 6px 18px);

  opacity: 0.18;
  mix-blend-mode: overlay;

  will-change: transform;
  animation: ripplesBreath 4.8s ease-in-out infinite;
}

/* Halo lumineux (statique) */
.vortexGlow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(760px, 130vw);
  height: min(760px, 130vw);
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(174, 231, 255, 0.3) 0%, rgba(255, 211, 122, 0.18) 30%, rgba(174, 231, 255, 0.07) 56%, rgba(0, 0, 0, 0) 72%);
  opacity: 0.92;
}

/* Reflets d’eau (animation légère) */
.vortexWater {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(820px, 140vw);
  height: min(820px, 140vw);
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;

  background: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0) 0 20px, rgba(255, 255, 255, 0.1) 21px 22px, rgba(255, 255, 255, 0) 23px 52px);

  opacity: 0.32;
  mix-blend-mode: screen;
  will-change: transform;
  animation: waterDrift 5.4s ease-in-out infinite alternate;
}

/* Footer Section */
.siteFooter {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}

.footerContent {
  text-align: center;
}

.footerCopyright {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.footerSubtitle {
  color: var(--muted2);
}

.footerRights {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted2);
}

/* Product Tabs Section */
.product-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .product-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .product-tabs {
    grid-template-columns: 1fr;
  }
}

.product-tab {
  padding: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 50px;
}

@media (max-width: 480px) {
  .product-tab {
    padding: 12px 8px;
    font-size: 12px;
    min-height: 44px;
  }
}

.product-tab:hover {
  color: var(--accent);
}

.product-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}

.product-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.product-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vortexRing {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(560px, 96vw);
  height: min(500px, 86vw);
  transform: translate3d(-50%, -50%, 0);
  border-radius: 42% 58% 50% 50% / 55% 45% 60% 40%;

  /* Tourbillon organique: on évite le conic trop “parfait” */
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(174, 231, 255, 0.52), transparent 70%), radial-gradient(55% 50% at 42% 46%, rgba(255, 211, 122, 0.36), transparent 68%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0) 0 18px, rgba(174, 231, 255, 0.18) 19px 20px, rgba(255, 255, 255, 0) 21px 42px),
    repeating-linear-gradient(35deg, rgba(255, 255, 255, 0) 0 26px, rgba(255, 211, 122, 0.12) 27px 28px, rgba(255, 255, 255, 0) 29px 58px);

  mix-blend-mode: screen;
  opacity: 0.85;

  /* On “creuse” un centre, mais pas parfaitement rond */
  -webkit-mask-image: radial-gradient(55% 50% at 52% 50%, transparent 0 22%, #000 28% 78%, transparent 84%);
  mask-image: radial-gradient(55% 50% at 52% 50%, transparent 0 22%, #000 28% 78%, transparent 84%);

  will-change: transform;
  animation: vortexSpin 8.5s linear infinite;
}

/* Coeur vortex (pulsation légère) */
.vortexCore {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(240px, 52vw);
  height: min(240px, 52vw);
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;

  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(174, 231, 255, 0.62) 26%, rgba(255, 211, 122, 0.28) 52%, rgba(0, 0, 0, 0) 72%);

  opacity: 0.95;
  will-change: transform, opacity;
  animation: corePulse 2.25s ease-in-out infinite;
}

/* “Shimmer” horizontal — donne l’impression d’eau vivante (cheap) */
.oceanShimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 18%, transparent 36%, rgba(174, 231, 255, 0.1) 52%, transparent 68%, rgba(255, 211, 122, 0.08) 84%, transparent 100%);
  opacity: 0.12;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translate3d(-35%, 0, 0);
  animation: shimmerSweep 7.8s linear infinite;
}

/* Particules (ultra light) */
.vortexParticles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 18% 36%, rgba(174, 231, 255, 0.55), transparent 60%), radial-gradient(1.5px 1.5px at 64% 24%, rgba(255, 211, 122, 0.4), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 58%, rgba(174, 231, 255, 0.35), transparent 60%), radial-gradient(1.2px 1.2px at 44% 74%, rgba(255, 211, 122, 0.28), transparent 60%),
    radial-gradient(1.1px 1.1px at 58% 62%, rgba(255, 255, 255, 0.24), transparent 60%);
  opacity: 0.55;
  will-change: transform;
  transform: translate3d(calc(var(--vx, 0) * 1px), calc(var(--vy, 0) * 1px), 0);
}

/* Animations GPU-friendly */
@keyframes vortexSpin {
  to {
    transform: translate3d(-50%, -50%, 0) rotate(360deg);
  }
}

@keyframes corePulse {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.98);
    opacity: 0.86;
  }
  50% {
    transform: translate3d(-50%, -50%, 0) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(0.995);
    opacity: 0.9;
  }
}

@keyframes waterDrift {
  to {
    transform: translate3d(-50%, -50%, 0) rotate(1.6deg) scale(1.02);
  }
}

@keyframes causticsDrift {
  to {
    transform: translate3d(calc(-50% + 10px), calc(-50% + 8px), 0) rotate(1.2deg) scale(1.01);
  }
}

@keyframes ripplesBreath {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(1);
    opacity: 0.16;
  }
  50% {
    transform: translate3d(-50%, -50%, 0) scale(1.03);
    opacity: 0.22;
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1);
    opacity: 0.17;
  }
}

@keyframes shimmerSweep {
  to {
    transform: translate3d(35%, 0, 0);
  }
}

/* ============================= */
/*  HEADER & DRAWER              */
/* ============================= */

.brandSeparator {
  color: var(--muted2);
  font-weight: 800;
}

.drawerHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

/* ============================= */
/*  EVENT SECTION ADDITIONAL     */
/* ============================= */

.eventTimeNote {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* ============================= */
/*  MINI CARD VARIANTS           */
/* ============================= */

.miniCardSpecial {
  border-radius: 18px;
}

.miniCardNote {
  margin: 8px 0 0;
}

/* ============================= */
/*  SECTION CARD STYLING         */
/* ============================= */

.sectionCardTitle {
  color: var(--accent);
  margin-bottom: 16px;
}

.sectionCardDescription {
  margin-bottom: 20px;
}

.featuresGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .featuresGrid {
    grid-template-columns: 1fr;
  }
}

.featureItem {
  text-align: center;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.featureIcon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.featureLabel {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ============================= */
/*  STRIPE SECTION               */
/* ============================= */

.stripeContainer {
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.stripeLabel {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.totalSection {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}

/* ============================= */
/*  PRODUCT PRICING              */
/* ============================= */

.card .productTitle {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-weight: 700;
}

.card .productPriceLarge {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
}

/* ============================= */
/*  HERO ACTIONS VARIANTS        */
/* ============================= */

.heroActionsTopMargin {
  margin-top: 14px;
}

.heroActionsNoMargin {
  margin: 0;
}

.switchLabelGrid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

/* Réduction motion */
@media (prefers-reduced-motion: reduce) {
  .vortexRing,
  .vortexCore,
  .vortexWater,
  .oceanCaustics,
  .oceanRipples,
  .oceanShimmer {
    animation: none !important;
  }
}

/* ============================= */
/*  DOWNLOAD SECTION STYLES       */
/* ============================= */

.downloadSection {
  padding: 80px 0;
}

.downloadSection h1 {
  margin: 0 0 40px;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
}

.downloadInfo {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(var(--accent-rgb), 0.08) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin-bottom: 40px;
  border-radius: var(--radius);
}

.downloadInfo p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.productsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.productCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.productContent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.productCard h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.downloadStatus {
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
}

.productCard .btn {
  margin-top: auto;
  width: 100%;
}

.filesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.fileCard {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 6px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fileInfo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.fileName {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fileType {
  margin: 0;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.fileCard .btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0;
  margin-top: auto;
}

.fileStats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.fileStats .stat {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted2);
}

.muted {
  color: var(--muted) !important;
}

.small {
  font-size: 13px !important;
}

.alert {
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.alert-error {
  background: rgba(255, 95, 109, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.alert a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.alert a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .downloadSection {
    padding: 40px 0;
  }

  .downloadSection h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .productsGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .productCard {
    padding: 16px;
  }

  .filesGrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .fileCard {
    padding: 12px;
  }
}

/* ============================= */
/*  LIGHTBOX STYLES               */
/* ============================= */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: fixed;
  top: 30px;
  right: 30px;
  font-size: 20px;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  margin: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  transition: background-color 0.2s;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .lightbox-overlay {
    padding: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 32px;
    width: 44px;
    height: 44px;
  }
}

/* ============================= */
/*  KDP SELECT NOTICE STYLES      */
/* ============================= */

.kdpSelectNotice {
  background: linear-gradient(135deg, rgba(174, 231, 255, 0.15) 0%, rgba(174, 231, 255, 0.05) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.kdpSelectMessage {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .kdpSelectNotice {
    padding: 16px;
    gap: 12px;
  }

  .kdpSelectMessage {
    font-size: 0.9rem;
  }

  .btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
