/* PlateformeDeGains.com – design unique, structure différente */
:root {
  --page-bg: #0a0e14;
  --surface: #131b24;
  --surface-2: #1a2532;
  --highlight: #2dd4bf;
  --highlight-2: #5eead4;
  --danger: #f472b6;
  --text: #e2e8f0;
  --text-soft: #94a3b8;
  --edge: #1e293b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-xl: 22px;
  --ease: 0.22s ease;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-text: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 20px;
  background: var(--highlight);
  color: var(--page-bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-to-content:focus { top: 12px; outline: 2px solid var(--text); outline-offset: 2px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-text);
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--highlight); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--highlight-2); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Top band (18+ + avertissement ANJ) ----- */
.top-band {
  background: var(--surface);
  border-bottom: 1px solid var(--edge);
}
.top-band .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 42px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--highlight);
  color: var(--page-bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
}
/* ----- Masthead ----- */
.masthead-wrap { position: sticky; top: 0; z-index: 100; }
.masthead {
  background: rgba(10, 14, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand em { color: var(--highlight); font-style: normal; }
.brand:hover { color: var(--text); }
@media (max-width: 400px) {
  .brand { font-size: 0.9rem; }
}

/* Menu toggle (burger) – visible ≤991px */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  transition: background var(--ease);
}
.menu-toggle:hover { background: var(--surface); }
.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--text); }

.nav-close { display: none; }

@media (max-width: 991px) {
  .menu-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 100%);
    height: 100vh;
    background: var(--page-bg);
    border-left: 1px solid var(--edge);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 0;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s, visibility 0.3s;
    overflow-y: auto;
    z-index: 99;
  }
  .primary-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--edge);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color var(--ease), background var(--ease), border-color var(--ease);
  }
  .nav-close:hover {
    color: var(--highlight);
    background: var(--surface);
    border-color: var(--highlight);
  }
  .primary-nav a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--edge);
  }
}

/* ----- Main content ----- */
.main-content { flex: 1; }
.block { padding: 56px 0; }
.block--alt { background: var(--surface); }
.section-head {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-sub {
  color: var(--text-soft);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
  text-align: center;
}

/* ----- Hero intro (full-width, centred) ----- */
.hero-intro {
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-intro__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--page-bg) 45%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(45, 212, 191, 0.08) 0%, transparent 55%);
  pointer-events: none;
  animation: hero-bg-shift 12s ease-in-out infinite;
}
@keyframes hero-bg-shift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

.hero-intro__casino {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-intro__chip {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.2);
  animation: hero-chip-float 18s ease-in-out infinite;
}
.hero-intro__chip:nth-child(1) { left: 12%; top: 25%; animation-delay: 0s; animation-duration: 14s; }
.hero-intro__chip:nth-child(2) { left: 78%; top: 30%; animation-delay: -2s; animation-duration: 20s; width: 14px; height: 14px; }
.hero-intro__chip:nth-child(3) { left: 25%; top: 65%; animation-delay: -4s; animation-duration: 16s; }
.hero-intro__chip:nth-child(4) { left: 85%; top: 60%; animation-delay: -1s; animation-duration: 22s; width: 10px; height: 10px; }
.hero-intro__chip:nth-child(5) { left: 50%; top: 15%; animation-delay: -6s; animation-duration: 18s; }
.hero-intro__chip:nth-child(6) { left: 8%; top: 55%; animation-delay: -3s; animation-duration: 15s; }
.hero-intro__chip--ring {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 2px solid rgba(45, 212, 191, 0.15);
  animation: hero-chip-float 24s ease-in-out infinite, hero-ring-pulse 4s ease-in-out infinite;
}
.hero-intro__chip--ring:nth-child(7) { left: 70%; top: 20%; animation-delay: 0s, 0s; }
.hero-intro__chip--ring:nth-child(8) { left: 18%; top: 70%; animation-delay: -8s, -1s; }
.hero-intro__chip--ring:nth-child(9) { left: 88%; top: 75%; animation-delay: -5s, -2s; }
@keyframes hero-chip-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  25% { transform: translate(8px, -12px) scale(1.05); opacity: 1; }
  50% { transform: translate(-5px, 6px) scale(0.95); opacity: 0.7; }
  75% { transform: translate(10px, 5px) scale(1.02); opacity: 0.9; }
}
@keyframes hero-ring-pulse {
  0%, 100% { border-color: rgba(45, 212, 191, 0.12); opacity: 0.8; }
  50% { border-color: rgba(45, 212, 191, 0.22); opacity: 1; }
}
.hero-intro .container {
  position: relative;
  z-index: 1;
}
.hero-intro__content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.hero-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero-intro .lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badges__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--highlight);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hero-intro { padding: 48px 0 56px; }
  .hero-badges { flex-direction: column; align-items: center; gap: 12px; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: background var(--ease), transform 0.15s ease, border-color var(--ease);
}
.btn--primary {
  background: var(--highlight);
  color: var(--page-bg);
}
.btn--primary:hover { background: var(--highlight-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--highlight);
  border: 2px solid var(--highlight);
}
.btn--ghost:hover { background: rgba(45, 212, 191, 0.12); }

/* ----- Trust panels (bento grid) ----- */
.trust-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trust-panel {
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.trust-panel:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.trust-panel .icon-wrap {
  width: 46px;
  height: 46px;
  background: rgba(45, 212, 191, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.trust-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.trust-panel p { color: var(--text-soft); font-size: 0.92rem; }

@media (max-width: 768px) {
  .trust-bento { grid-template-columns: 1fr; }
}

/* ----- Operator tiles ----- */
.operator-list { display: flex; flex-direction: column; gap: 18px; }
.operator-tile {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color var(--ease);
}
.operator-tile:hover { border-color: rgba(45, 212, 191, 0.3); }
.tile-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tile-rank__logo {
  display: block;
  max-width: 120px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}
.tile-body h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 6px; }
.tile-bonus { color: var(--highlight); font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.tile-desc { color: var(--text-soft); font-size: 0.88rem; margin-bottom: 10px; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tile-tags span {
  font-size: 0.72rem;
  padding: 4px 9px;
  background: var(--surface);
  border-radius: 6px;
  color: var(--text-soft);
}
.tile-actions { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.tile-actions .btn { width: 100%; padding: 10px 18px; font-size: 0.88rem; }
.tile-stars { color: var(--highlight); font-size: 0.88rem; margin-bottom: 4px; }

@media (max-width: 768px) {
  .operator-tile { grid-template-columns: 1fr; text-align: center; }
  .tile-rank { order: -1; }
  .tile-actions { flex-direction: row; justify-content: center; min-width: auto; }
  .tile-actions .btn { flex: 1; }
  .tile-tags { justify-content: center; }
}

/* ----- FAQ (grid de cartes) ----- */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.faq-entry {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--ease);
}
.faq-entry:hover { border-color: rgba(45, 212, 191, 0.25); }
.faq-entry.is-open { border-color: rgba(45, 212, 191, 0.4); }
.faq-entry__head {
  margin: 0;
  padding: 0;
}
.faq-entry__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: color var(--ease);
}
.faq-entry__btn:hover { color: var(--highlight); }
.faq-entry__btn::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--highlight);
  flex-shrink: 0;
  margin-left: 8px;
}
.faq-entry.is-open .faq-entry__btn::after { content: '−'; }
.faq-entry__body {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
  transition: max-height 0.3s ease;
}
.faq-entry__text {
  padding: 0 0 20px;
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}
.faq-entry__text a { color: var(--highlight); }

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

/* ----- Article strip ----- */
.article-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--ease);
}
.article-card:hover { border-color: rgba(45, 212, 191, 0.3); }
.article-card .thumb {
  height: 120px;
  overflow: hidden;
  background: var(--surface);
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card .body { padding: 18px; }
.article-card .cat { font-size: 0.72rem; color: var(--highlight); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.article-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--highlight); }
.article-card p { color: var(--text-soft); font-size: 0.88rem; }

@media (max-width: 768px) {
  .article-strip { grid-template-columns: 1fr; }
}

/* ----- CTA strip ----- */
.cta-strip {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--edge);
}
.cta-strip h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 10px; }
.cta-strip p { color: var(--text-soft); margin-bottom: 22px; }
.cta-strip .buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ----- Legal page ----- */
.legal-article { max-width: 720px; margin: 0 auto; padding: 40px 0 64px; }
.legal-article h1 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 8px; }
.legal-article .meta { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 32px; }
.legal-article h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 28px 0 12px; }
.legal-article p, .legal-article ul { margin-bottom: 14px; color: var(--text-soft); font-size: 0.95rem; }
.legal-article ul { padding-left: 22px; }
.legal-article li { margin-bottom: 6px; }
.legal-article a { color: var(--highlight); }

/* ----- Footer ----- */
.page-footer {
  background: var(--surface);
  border-top: 1px solid var(--edge);
  padding: 48px 0 28px;
  margin-top: 48px;
}
.page-footer .container { display: grid; gap: 32px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.footer-brand em { color: var(--highlight); font-style: normal; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-soft); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }
.footer-legal-block {
  padding-top: 28px;
  border-top: 1px solid var(--edge);
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.footer-legal-block p { margin-bottom: 12px; }
.footer-legal-block .age-badge { margin-left: 6px; }
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.footer-badges a {
  display: flex;
  align-items: center;
  height: 32px;
  opacity: 0.85;
}
.footer-badges a:hover { opacity: 1; }
.footer-badges img {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
}

/* ----- Age gate ----- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-gate.hidden,
#age-gate.hidden { display: none !important; }
.age-gate .box {
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 380px;
  text-align: center;
}
.age-gate h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 12px; }
.age-gate p { color: var(--text-soft); margin-bottom: 24px; }
.age-gate .btns { display: flex; flex-direction: column; gap: 12px; }
.age-gate .btns .btn { width: 100%; }

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--surface-2);
  border-top: 1px solid var(--edge);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-banner p { font-size: 0.9rem; color: var(--text-soft); flex: 1; min-width: 260px; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner a { color: var(--highlight); }

/* ----- Contact page ----- */
.contact-block { padding: 48px 0 64px; }
.contact-block .section-head { margin-bottom: 8px; }
.contact-block .section-sub { margin-bottom: 32px; color: var(--text-soft); }
.contact-wrap {
  display: grid;
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.contact-info {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-soft);
}
.contact-info p { margin-bottom: 12px; }
.contact-info p:last-child { margin-bottom: 0; }
.contact-info a { color: var(--highlight); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-group .required { color: var(--danger); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  transition: border-color var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-soft); opacity: 0.8; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--highlight);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; }

/* ----- Success modal ----- */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}
.success-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.success-modal[aria-hidden="false"] { visibility: visible; opacity: 1; }
.success-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.9);
  cursor: pointer;
}
.success-modal__box {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.success-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-soft);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
}
.success-modal__close:hover { color: var(--text); background: var(--surface); }
.success-modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--highlight);
}
.success-modal__text {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  line-height: 1.5;
}
.success-modal__box .btn { width: 100%; }
