/* =================================================================
   TOTO Casino — Stylesheet
   Dark theme · CSS Grid + Flexbox · fully responsive
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:           #1c1c1c;   /* page background (near black)        */
  --bg-elevated:  #262626;   /* cards / elevated surfaces           */
  --bg-soft:      #2e2e2e;   /* subtle panels                       */
  --green:        #00a651;   /* TOTO brand green (header top)       */
  --green-dark:   #007a3d;   /* darker green (header bottom / band) */
  --green-darker: #005f30;
  --orange:       #ff6600;   /* CTA orange                          */
  --orange-hover: #e65c00;
  --text:         #ffffff;
  --text-muted:   #b3b3b3;
  --border:       #3a3a3a;
  --radius:       10px;
  --radius-lg:    16px;
  --container:    1200px;
  --header-h:     104px;     /* combined header height (desktop)    */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Layout helper ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .15s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--orange       { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-hover); }
.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
}
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--outline-light {
  background: transparent; color: #fff; border: 2px solid #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,.15); }
.btn--lg    { padding: 14px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: sticky;          /* sticky header on scroll */
  top: 0;
  z-index: 1000;
  transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(0,0,0,.45); }

/* --- Top green tier --- */
.header-top { background: var(--green); }
.header-top__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo { display: inline-flex; align-items: center; }
.logo__img { height: 38px; width: auto; display: block; }
.logo__text {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 1px;
  color: #fff;
}

/* Primary nav */
.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: 26px;
}
.main-nav a {
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255,255,255,.92);
  position: relative;
}
.main-nav a:hover { color: #fff; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Account actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions__link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.header-actions__link:hover { color: #fff; }
.icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  padding: 4px;
}

/* --- Bottom dark-green tier --- */
.header-bottom { background: var(--green-darker); }
.sub-nav ul {
  display: flex;
  gap: 28px;
  height: 40px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav ul::-webkit-scrollbar { display: none; }
.sub-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
}
.sub-nav a:hover,
.sub-nav a.is-active { color: #fff; }

/* Burger (hidden on desktop) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  width: 24px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =================================================================
   HERO
   ================================================================= */
.hero { padding: 24px 0 8px; }
.hero__slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 40px 48px;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,166,81,.35), transparent 55%),
    linear-gradient(120deg, #0b0b0b 0%, #15240f 45%, #0a0a0a 100%);
}
/* faux lightning streaks */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(120,220,160,.12) 50%, transparent 60%),
    linear-gradient(100deg, transparent 60%, rgba(255,255,255,.06) 70%, transparent 78%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 50%; }
.hero__title {
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.hero__art {
  position: relative;
  z-index: 1;
  max-width: 46%;
}
.hero__art img { max-height: 260px; margin-inline: auto; }

.hero__dots { display: flex; gap: 10px; margin-top: 32px; }
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot:hover { transform: scale(1.15); }
.dot.is-active { background: var(--orange); }

/* =================================================================
   SECTION SHELL
   ================================================================= */
.section { padding: 28px 16px; }
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.section__title {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.link-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}
.link-all:hover { text-decoration: underline; }
.nav-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.nav-arrow:hover { background: var(--orange); border-color: var(--orange); }

/* =================================================================
   CAROUSEL + GAME CARDS
   ================================================================= */
.carousel { position: relative; }
.grid-row {
  display: grid;
  grid-auto-flow: column;            /* horizontal scrolling row     */
  grid-auto-columns: calc((100% - 5 * 16px) / 6); /* 6 cards visible */
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.grid-row::-webkit-scrollbar { display: none; }

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;            /* portrait slot tile */
  cursor: pointer;
}
/* Live casino: taller cards so dealer photos are not cropped at the top */
.game-card--wide {
  aspect-ratio: 4 / 5;
  min-height: 220px;
}
.game-card--wide img {
  object-fit: cover;
  object-position: center 20%; /* keep faces in frame */
}

/* Live casino row: fewer, larger cards per view */
.grid-row--live { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s, filter .25s;
}
/* Hover: dim cover + reveal play button */
.game-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .25s;
}
.game-card:hover img { transform: scale(1.06); filter: brightness(.7); }
.game-card:hover .game-card__overlay { opacity: 1; }

.game-card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}

/* Badges */
.badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(0,0,0,.6);   /* dark translucent pill (NIEUW)    */
  color: #fff;
  backdrop-filter: blur(2px);
}
.badge__star { color: var(--green); font-size: 11px; line-height: 1; }
.badge--exclusief .badge__star { color: var(--orange); }

/* Favorite (heart) — appears on hover, top-right */
.game-card__fav {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s, color .2s;
}
.game-card:hover .game-card__fav { opacity: 1; }
.game-card__fav:hover { background: var(--orange); }
.game-card__fav.is-fav { color: var(--orange); opacity: 1; }

/* Bet / price tag — bottom-right */
.game-card__price {
  position: absolute;
  bottom: 8px; right: 8px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 14px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.badge--jackpot {
  left: 50%; right: auto; top: 8px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffd34d, #ffae00);
  color: #3a2a00;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* =================================================================
   WIDE PROMO BANNERS
   ================================================================= */
.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin: 12px 0;
  overflow: hidden;
}
.promo--green {
  background:
    radial-gradient(circle at 85% 50%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(90deg, var(--green-dark), var(--green));
}
/* KRAKER VAN DE WEEK — card1 (TNT Boom Banks) as background image.
   Left gradient keeps the text readable on top of the artwork. */
.promo--kraker {
  background:
    linear-gradient(90deg, rgba(8,40,24,.92) 0%, rgba(8,40,24,.45) 45%, transparent 70%),
    url('../images/card.webp') center right / cover no-repeat;
  min-height: 180px;
}
/* BEWAAR JE RUST — card2 (green bokeh) as background image.
   Dark left-to-right gradient keeps the text readable. */
.promo--dark {
  background:
    linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.35) 100%),
    url('../images/card2.webp') center / cover no-repeat;
  min-height: 150px;
}
.promo__text { max-width: 60%; }
.promo__text h2 {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.promo__text p { color: rgba(255,255,255,.85); margin-bottom: 18px; }
.promo__art img { max-height: 150px; }

/* =================================================================
   BINGO GRID
   ================================================================= */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.bingo-card {
  background: #fff;
  color: #1c1c1c;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  cursor: pointer;
}
/* Cover with game-type badge + prize pot overlay */
.bingo-card__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.bingo-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.bingo-card__type {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #1c1c1c;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.bingo-card__pot {
  position: absolute;
  left: 0; bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-top-right-radius: 8px;
}

.bingo-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.bingo-card__name {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

/* Trophy / ticket / players stat columns */
.bingo-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f3f3f3;
  border-radius: 8px;
  overflow: hidden;
}
.bingo-card__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: #555;
}
.bingo-card__stats li + li { border-left: 1px solid #e2e2e2; }
.bingo-card__stats strong { font-size: 13px; font-weight: 800; color: #1c1c1c; }

.bingo-card__body .btn { margin-top: auto; text-transform: uppercase; }

/* "Volgende spel" countdown row */
.bingo-card__next {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
}
.countdown {
  margin-left: auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

/* =================================================================
   PROVIDERS
   ================================================================= */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.provider {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform .2s, box-shadow .2s;
}
.provider:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.provider img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* =================================================================
   SEO TEXT
   ================================================================= */
.seo-text {
  color: var(--text-muted);
  font-size: 14px;
  /* Two text columns on desktop, like the original SEO block */
  column-count: 2;
  column-gap: 48px;
}
.seo-text h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
  column-span: all;        /* main heading spans both columns */
}
.seo-text h3 {
  color: #fff;
  font-size: 16px;
  margin: 18px 0 8px;
  break-after: avoid;
}
.seo-text p { margin-bottom: 12px; }
.seo-text em { color: #d6d6d6; font-style: italic; }
.seo-text a { color: var(--orange); }
.seo-text a:hover { text-decoration: underline; }
.seo-text__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}
.seo-text__list li { margin-bottom: 6px; }

/* Collapsed state: clamp height + fade out the bottom */
.seo-text.is-collapsed {
  max-height: 260px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}

/* "Meer lezen" toggle button */
.seo-toggle {
  display: block;
  margin: 16px auto 0;
  padding: 10px 26px;
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.seo-toggle:hover { background: var(--orange); color: #fff; }

/* =================================================================
   FOOTER
   ================================================================= */
/* Light footer (matches TOTO) */
.site-footer { background: #ffffff; color: #333; }
.footer-accent { height: 6px; background: var(--green); }

/* Link columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 40px 16px 24px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: #1c1c1c;
  margin-bottom: 16px;
}
.footer-col__sub { margin-top: 28px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13px; color: #6b6b6b; }
.footer-col a:hover { color: var(--green); text-decoration: underline; }

/* Socials + app buttons (centered) */
.footer-apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 16px 32px;
}
.socials { display: flex; gap: 12px; }
.social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #3a3a3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
}
.social:hover { background: var(--green); }
.app-buttons { display: flex; gap: 14px; }
.app-buttons img { height: 42px; }

/* Legal sections */
.footer-legal { text-align: center; padding: 0 16px; }
.footer-rule { border: none; border-top: 1px solid #e3e3e3; margin: 8px 0 26px; }
.footer-legal h5 {
  font-size: 14px;
  font-weight: 800;
  color: #1c1c1c;
  margin-bottom: 16px;
}
.footer-legal p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 22px;
}
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 30px;
}
.footer-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Bottom brand band */
.footer-brand {
  background: #f3f3f3;
  padding: 26px 16px;
  display: flex;
  justify-content: center;
}
.nl-logo { display: inline-flex; align-items: center; }
.nl-logo__img {
  height: 48px;
  width: auto;
  display: block;
}

/* =================================================================
   MOBILE NAV PANEL (off-canvas)
   ================================================================= */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
  z-index: 998;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* =================================================================
   RESPONSIVE
   ================================================================= */

/* Tablet ----------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-row { grid-auto-columns: calc((100% - 3 * 16px) / 4); } /* 4 visible */
  .grid-row--live { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .game-card--wide { min-height: 200px; }
  .bingo-grid    { grid-template-columns: repeat(3, 1fr); }
  .providers-grid{ grid-template-columns: repeat(4, 1fr); }
}

/* Mobile ----------------------------------------------------- */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .burger { display: flex; }

  /* main nav becomes off-canvas drawer */
  .main-nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--green-darker);
    padding: 80px 24px 24px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 999;
    flex: none;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav a.is-active::after { display: none; }

  .header-top__inner { gap: 12px; height: 56px; }
  .header-actions__link { display: none; }
  .logo__text { font-size: 22px; }
  .logo__img { height: 30px; }

  /* hero stacks */
  .hero__slide { flex-direction: column; text-align: center; padding: 28px 20px; min-height: 0; }
  .hero__content { max-width: 100%; order: 2; }
  .hero__art { max-width: 70%; order: 1; margin-bottom: 16px; }
  .hero__dots { justify-content: center; }

  /* game rows: 2-3 visible */
  .grid-row { grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; }
  .grid-row--live { grid-auto-columns: min(85vw, 320px); } /* 1 large card + peek */
  .game-card--wide { min-height: 280px; aspect-ratio: 3 / 4; }

  /* promos stack */
  .promo { flex-direction: column; text-align: center; padding: 24px 20px; }
  .promo__text, .promo__art { max-width: 100%; }

  .bingo-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .providers-grid{ grid-template-columns: repeat(3, 1fr); }
  .seo-text      { column-count: 1; }
  .footer-cols   { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .footer-logos  { gap: 20px; }
  .footer-logos img { height: 32px; }
}

/* Small phones ----------------------------------------------- */
@media (max-width: 460px) {
  .grid-row      { grid-auto-columns: calc((100% - 12px) / 2); } /* 2 visible */
  .providers-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* =================================================================
   REGISTRATION MODAL
   ================================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  cursor: pointer;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  color: #1c1c1c;
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(16px);
  transition: transform .25s;
}
.modal.is-open .modal__dialog { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  transition: background .2s;
}
.modal__close:hover { background: #e0e0e0; }
.modal__header { text-align: center; margin-bottom: 24px; }
.modal__logo { height: 36px; margin: 0 auto 14px; }
.modal__header h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.modal__header p { font-size: 13px; color: #666; }

.register-form { display: flex; flex-direction: column; gap: 14px; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #444;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="date"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,166,81,.15);
}
.form-row--check { margin-top: 4px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; flex-shrink: 0; }
.checkbox a { color: var(--green); }
.register-form__login {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
}
body.modal-open { overflow: hidden; }
