/* =========
   THEME — LIGHT (ADHD-friendly: guided, rewarding, not sterile)
   ONLY colors / lighting changed. Layout/positions untouched.
   ========= */
:root{

  /* align node with kicker line */
  --kickerY: calc(var(--pad) + 2px);

  /* Backgrounds (paper-like, not pure white) */
  --bg0: #F7F9FB;   /* soft paper */
  --bg1: #EFF3FB;   /* cool-ish paper depth */

  /* Surfaces */
  --panel: rgba(255,255,255,0.72);
  --panel2: rgba(255,255,255,0.86);

  /* Borders (light mode: darker than bg, not harsh) */
  --border: rgba(45, 55, 72, 0.10);
  --border2: rgba(45, 55, 72, 0.16);

  /* Text (not full black) */
  --text: rgba(45, 55, 72, 0.92);
  --muted: rgba(45, 55, 72, 0.72);
  --faint: rgba(45, 55, 72, 0.52);

  /* Accents (ADHD-friendly unified palette) */
  --accentA: #2EA8A8; /* calm turquoise */
  --accentB: #3EC9A0; /* soft mint */
  --accentC: #FFB347; /* pastel peach */

  --radius: 22px;
  --radiusLg: 28px;

  --max: 1120px;
  --pad: 26px;
  --gap: 28px;

  /* snake */
  --snakeW: 4px;

  /* rail docking (must match JS leftX/rightX feel) */
  --railX: 26px;            /* JS: leftX=26 */
  --dockGap: 12px;          /* AIR GAP between rail and card edge */
  --dockY: var(--kickerY);

  /* Hairline frame (light mode) */
  --hair: rgba(45, 55, 72, 0.14);
  --hair2: rgba(45, 55, 72, 0.08);
}

html{ scroll-behavior:smooth; }

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Light, guided, slightly stimulating background (no harsh white) */
  background:
    radial-gradient(900px 600px at 18% 0%, rgba(46,168,168,0.14), transparent 60%),
    radial-gradient(1100px 700px at 82% 8%, rgba(62,201,160,0.12), transparent 62%),
    radial-gradient(900px 700px at 55% 110%, rgba(255,179,71,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 60%, #E8EFF7);
  color: var(--text);
}

a{ color: inherit; }
a:hover{ color: var(--text); }

.tm-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 18px 90px 18px;
}

.tm-muted{ color: var(--muted); }
.tm-faint{ color: var(--faint); }

.tm-kicker{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.tm-h1{
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
}
.tm-h2{
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 14px 0;
}
.tm-lead{
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
  margin: 0;
}
.tm-small{
  font-size: 14px;
  line-height: 1.55;
  color: var(--faint);
}

/* =========
   BUTTONS
   ========= */
.tm-btn-row{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.tm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 14px;

  border: 1px solid rgba(45, 55, 72,0.14);
  background: rgba(255,255,255,0.78);

  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;

  box-shadow:
    0 10px 28px rgba(45, 55, 72,0.10),
    inset 0 1px 0 rgba(255,255,255,0.65);
}
.tm-btn:hover{
  background: rgba(255,255,255,0.92);
  border-color: rgba(45, 55, 72,0.18);
}
.tm-btn-primary{
  border: 1px solid rgba(46,168,168,0.32);
  background: linear-gradient(135deg, rgba(46,168,168,0.22), rgba(62,201,160,0.16));
  box-shadow:
    0 14px 34px rgba(45, 55, 72,0.12),
    inset 0 1px 0 rgba(255,255,255,0.55);
}
.tm-btn-primary:hover{
  background: linear-gradient(135deg, rgba(46,168,168,0.28), rgba(62,201,160,0.20));
}
.tm-btn-ghost{
  background: transparent;
  box-shadow: none;
  border-color: rgba(45, 55, 72,0.10);
}
.tm-btn-ghost:hover{
  background: rgba(255,255,255,0.60);
}

/* =========
   STICKY NAV
   ========= */
.tm-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;

  backdrop-filter: blur(12px);

  background: linear-gradient(
    to bottom,
    rgba(247,249,251,0.92),
    rgba(247,249,251,0.62),
    transparent
  );

  border-bottom: 1px solid rgba(45, 55, 72,0.08);
}
.tm-nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}
.tm-brand{
  display:flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.tm-brand small{
  font-weight: 600;
  color: var(--faint);
}
.tm-nav-links{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tm-nav-links a{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
}
.tm-nav-links a:hover{
  border-color: rgba(45, 55, 72,0.12);
  background: rgba(255,255,255,0.60);
  color: var(--text);
}
.tm-nav-links a.tm-active{
  border-color: rgba(46,168,168,0.30);
  background: rgba(46,168,168,0.12);
  color: var(--text);
}

/* =========
   FLOW + CONTINUOUS SNAKE LINE
   ========= */
.tm-flow{
  position: relative;
  margin-top: 18px;
  display:flex;
  flex-direction: column;
  gap: var(--gap);
}

.tm-snake{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.tm-snake path{
  stroke-width: var(--snakeW);
  fill:none;
  stroke-linecap: round;
  stroke-linejoin: round;

  /* lighter shadow for light theme */
  filter: drop-shadow(0 10px 18px rgba(45, 55, 72,0.12));
}

/* =========
   SECTIONS — Rail + Dock
   ========= */
.tm-section{
  position: relative;
  z-index: 1;

  margin-right: 8%;
  margin-left: calc(var(--railX) + var(--dockGap));
  padding: var(--pad);
  padding-left: 44px;

  border-radius: var(--radiusLg);

  /* light card surface */
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.64));
  border: 1px solid rgba(45, 55, 72,0.10);

  box-shadow:
    0 18px 44px rgba(45, 55, 72,0.12),
    inset 0 1px 0 rgba(255,255,255,0.70);

  overflow: visible;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.tm-section.tm-even{
  margin-left: 8%;
  margin-right: calc(var(--railX) + var(--dockGap));
  padding-left: var(--pad);
  padding-right: 44px;
}

.tm-section::before{
  content:"";
  position:absolute;
  inset: 12px;
  border-radius: calc(var(--radiusLg) - 10px);

  border: 1px solid var(--hair);
  pointer-events:none;
  z-index: 2;
}

.tm-section::before{ border-left-color: transparent; }
.tm-section.tm-even::before{
  border-left-color: var(--hair);
  border-right-color: transparent;
}

.tm-section::after{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  z-index: 1;

  background:
    /* soft “sheen” */
    radial-gradient(700px 220px at 20% 0%, rgba(46,168,168,0.10), transparent 55%),
    radial-gradient(700px 240px at 85% 15%, rgba(62,201,160,0.10), transparent 60%),

    /* dock groove near rail side (odd: left) — lighter, less heavy */
    radial-gradient(28px 28px at 0px var(--dockY),
      rgba(45, 55, 72,0.18), transparent 72%),
    radial-gradient(28px 28px at 2px var(--dockY),
      rgba(255,255,255,0.45), transparent 70%);

  opacity: 0.95;
}

.tm-section.tm-even::after{
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(46,168,168,0.10), transparent 55%),
    radial-gradient(700px 240px at 85% 15%, rgba(62,201,160,0.10), transparent 60%),

    radial-gradient(28px 28px at 100% var(--dockY),
      rgba(45, 55, 72,0.18), transparent 72%),
    radial-gradient(28px 28px at calc(100% - 2px) var(--dockY),
      rgba(255,255,255,0.45), transparent 70%);
}

.tm-section.tm-focus{
  transform: translateY(-2px);
  border-color: rgba(45, 55, 72,0.14);
  box-shadow:
    0 22px 54px rgba(45, 55, 72,0.14),
    inset 0 1px 0 rgba(255,255,255,0.78);
}
.tm-section.tm-focus::before{
  border-color: rgba(45, 55, 72,0.18);
}
.tm-section.tm-focus::before{ border-left-color: transparent; }
.tm-section.tm-focus.tm-even::before{
  border-left-color: rgba(45, 55, 72,0.18);
  border-right-color: transparent;
}

.tm-section .tm-content{
  position: relative;
  z-index: 3;
}

/* =========
   NODE DOT + connector
   (positions unchanged)
   ========= */
.tm-node{
  position:absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(46,168,168,0.98);

  /* lighter halo/shadow for light */
  box-shadow:
    0 0 0 7px rgba(46,168,168,0.18),
    0 10px 18px rgba(45, 55, 72,0.14);

  top: var(--kickerY);
  left: calc(-1 * var(--dockGap) - 6px);
  z-index: 4;
}

.tm-even .tm-node{
  top: var(--kickerY);
  left: calc(-1 * var(--dockGap) - 6px);

  background: rgba(62,201,160,0.98);
  box-shadow:
    0 0 0 7px rgba(62,201,160,0.16),
    0 10px 18px rgba(45, 55, 72,0.14);
}

/* FIX: even node goes to RIGHT rail (keep as-is) */
.tm-section.tm-even .tm-node{
  left: auto !important;
  right: calc(-1 * var(--dockGap) - 6px) !important;
}

/* Connector base */
.tm-node::after{
  content:"";
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  border-radius: 999px;
  opacity: 0.65;
  pointer-events:none;
}

/* ODD: dot on rail -> connector goes into card */
.tm-node::after{
  left: 100%;
  right: auto;
  width: calc(var(--dockGap) + 10px);
  background: linear-gradient(90deg,
    rgba(46,168,168,0.55),
    rgba(45, 55, 72,0.08));
}

/* EVEN: dot on rail -> connector goes into card */
.tm-even .tm-node::after{
  right: 100%;
  left: auto;
  width: calc(var(--dockGap) + 10px);
  background: linear-gradient(270deg,
    rgba(62,201,160,0.55),
    rgba(45, 55, 72,0.08));
}

/* =========
   GRIDS / COMPONENTS
   ========= */
.tm-grid-2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 900px){
  .tm-grid-2{ grid-template-columns: 1.15fr 0.85fr; }
}

.tm-panel{
  border-radius: 18px;
  border: 1px solid rgba(45, 55, 72,0.12);
  background: rgba(255,255,255,0.74);
  padding: 16px;

  box-shadow:
    0 10px 22px rgba(45, 55, 72,0.08),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

.tm-bullets{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 820px){
  .tm-bullets{ grid-template-columns: 1fr 1fr; }
}
.tm-bullet{
  border-radius: 16px;
  border: 1px solid rgba(45, 55, 72,0.10);
  background: rgba(255,255,255,0.64);
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.5;
}
.tm-bullet strong{ color: var(--text); }

.tm-tiles{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.tm-tile{
  grid-column: span 12;
  border-radius: 20px;
  border: 1px solid rgba(45, 55, 72,0.12);
  background: rgba(255,255,255,0.72);
  padding: 16px;
  text-decoration:none;
  display:block;
  position: relative;
  overflow: hidden;

  box-shadow:
    0 12px 24px rgba(45, 55, 72,0.10),
    inset 0 1px 0 rgba(255,255,255,0.65);
}
.tm-tile::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(380px 200px at 15% 15%, rgba(46,168,168,0.14), transparent 55%),
    radial-gradient(420px 220px at 85% 10%, rgba(62,201,160,0.14), transparent 60%);
  opacity: .75;
  pointer-events:none;
}
.tm-tile:hover{
  background: rgba(255,255,255,0.86);
  border-color: rgba(45, 55, 72,0.16);
}
.tm-tile.tm-selected{
  border-color: rgba(46,168,168,0.34);
  box-shadow:
    0 16px 34px rgba(45, 55, 72,0.12),
    inset 0 1px 0 rgba(255,255,255,0.70);
}
.tm-tile h3{
  margin: 0 0 6px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.tm-tile p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.tm-tile .tm-tile-cta{
  margin-top: 10px;
  display:inline-flex;
  gap: 8px;
  align-items:center;
  color: var(--text);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.tm-tile .tm-tile-cta span{ opacity: 0.85; }
@media (min-width: 820px){
  .tm-tile{ grid-column: span 4; }
  .tm-tiles.tm-tiles--two-up .tm-tile{ grid-column: span 6; }
}

.tm-steps{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 820px){
  .tm-steps{ grid-template-columns: repeat(3, 1fr); }
}
.tm-step{
  border-radius: 18px;
  border: 1px solid rgba(45, 55, 72,0.12);
  background: rgba(255,255,255,0.70);
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.55;

  box-shadow:
    0 10px 22px rgba(45, 55, 72,0.08),
    inset 0 1px 0 rgba(255,255,255,0.60);
}
.tm-step strong{
  display:block;
  margin-bottom: 6px;
  color: var(--text);
}

.tm-pricing{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 900px){
  .tm-pricing{ grid-template-columns: repeat(3, 1fr); }
}
.tm-plan{
  border-radius: 20px;
  border: 1px solid rgba(45, 55, 72,0.12);
  background: rgba(255,255,255,0.72);
  padding: 16px;

  box-shadow:
    0 12px 24px rgba(45, 55, 72,0.10),
    inset 0 1px 0 rgba(255,255,255,0.65);
}
.tm-plan h3{
  margin: 0 0 6px 0;
  font-size: 18px;
}
.tm-price{
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 8px 0 10px 0;
}
.tm-plan ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.tm-plan li{ margin: 6px 0; }
.tm-tag{
  display:inline-flex;
  align-items:center;
  padding: 4px 9px;
  border-radius: 999px;

  border: 1px solid rgba(46,168,168,0.32);
  color: rgba(45, 55, 72,0.72);
  background: rgba(46,168,168,0.14);

  font-size: 12px;
  margin-left: 8px;
}

/* =========
   MEDIA PLACEHOLDERS
   ========= */
.tm-figure{ margin: 0; }
.tm-media{
  border-radius: 18px;
  border: 1px dashed rgba(45, 55, 72,0.20);
  background: rgba(255,255,255,0.55);
  overflow: hidden;
  position: relative;
  min-height: 240px;
}
.tm-media.tm-media-tall{ min-height: 320px; }

.tm-media .tm-media-label{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 16px;
  color: var(--faint);
  line-height: 1.45;
}
.tm-caption{
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
}

.tm-video{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 18px;
  border: 1px solid rgba(45, 55, 72,0.14);
  background: rgba(255,255,255,0.55);
}

.tm-divider{
  height: 1px;
  background: rgba(45, 55, 72,0.12);
  margin: 16px 0;
}

/* =========
   FORMS
   ========= */
.tm-form{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 820px){
  .tm-form{ grid-template-columns: 1fr 1fr; }
  .tm-form .tm-wide{ grid-column: 1 / -1; }
}
.tm-field{
  border-radius: 14px;
  border: 1px solid rgba(45, 55, 72,0.12);
  background: rgba(255,255,255,0.72);
  padding: 12px 12px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.60);
}
.tm-input, .tm-select{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.tm-help{
  font-size: 13px;
  color: var(--faint);
  line-height: 1.45;
}

/* reduce motion if user prefers */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .tm-section{ transition: none; }
}

/*-----------------------------*/

/* ===== HERO corner image (bottom-right, foggy edges, adjustable) ===== */
.tm-section.tm-hero{
  position: relative;
  overflow: hidden; /* kell a maszkhoz/ködös szélekhez */
}

/* állítható paraméterek (itt állítod méret/zoom/pozíciót) */
.tm-section.tm-hero{
  --heroImgW: 52%;        /* méret (szélesség) */
  --heroImgH: 92%;        /* méret (magasság) */
  --heroImgZoom: 1.12;    /* nagyítás (1.0 = alap) */
  --heroImgOpacity: 0.92; /* mennyire legyen „jelen” */
  --heroFog: 110px;       /* ködös szél erőssége */
  --heroImgX: 0px;        /* finom tologatás jobbra/balra */
  --heroImgY: 50px;       /* finom tologatás fel/le */
}

/* maga a kép-réteg */
.tm-hero-corner{
  position: absolute;
  right: 0;
  bottom: 0;

  width: var(--heroImgW);
  height: var(--heroImgH);

  transform:
    translate(var(--heroImgX), var(--heroImgY))
    scale(var(--heroImgZoom));
  transform-origin: bottom right;

  z-index: 1;
  pointer-events: none;
  opacity: var(--heroImgOpacity);

  background-image: url("/img/csonakos.webp");
  background-repeat: no-repeat;
  background-size: cover;        /* kitölti a dobozt */
  background-position: 70% 60%;  /* kompozíciót itt finomítod */

  /* ködbe vesző szélek (mask) */
  -webkit-mask-image:
    radial-gradient(circle at 100% 100%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 78%),
    linear-gradient(to left, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%),
    linear-gradient(to top,  rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle at 100% 100%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 78%),
    linear-gradient(to left, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%),
    linear-gradient(to top,  rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
  mask-composite: intersect;

  /* extra “köd” érzet (finom) */
  filter: blur(0.2px) saturate(1.05) drop-shadow(0 18px 44px rgba(0,0,0,0.28));
}

/* a szöveg legyen a kép fölött */
.tm-section.tm-hero .tm-content{
  position: relative;
  z-index: 3;
}

/* mobilon visszafogjuk, hogy ne legyen zsúfolt */
@media (max-width: 720px){
  .tm-section.tm-hero{
    --heroImgW: 86%;
    --heroImgH: 62%;
    --heroImgZoom: 1.05;
    --heroImgOpacity: 0.65;
    --heroImgY: 24px;
  }
}

/* Mobile: simple full-width card stack without snake rail */
@media (max-width: 900px){
  .ix-main.ix-main-no-sidebar{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tm-wrap{
    padding-left: 0;
    padding-right: 0;
  }

  .tm-snake,
  .tm-node,
  .tm-node::after,
  .tm-section::after{
    display: none !important;
  }

  .tm-flow{
    gap: 16px;
  }

  .tm-section,
  .tm-section.tm-even{
    margin-left: 0;
    margin-right: 0;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .tm-section,
  .tm-section.tm-even,
  .tm-section.tm-even::before,
  .tm-section::before,
  .tm-section.tm-focus::before{
    border-left-color: var(--hair);
    border-right-color: var(--hair);
  }
}

.tm-media,
.tm-media-label {
  overflow: hidden;
}

.tm-media-label > div {
  width: 100%;
  height: 100%;
}

.tm-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================
   Kinek? — FIX overlap (no regression)
   ============================ */
#kinek .tm-tile{
  display: flex;
  flex-direction: column;

  /* IMPORTANT: do NOT force 100% height inside grid; causes row calc issues */
  height: auto;
  min-height: 0;
}

/* CTA legyen a tile alján, de maradjon flow-ban (soha ne absolute) */
#kinek .tm-tile .tm-tile-cta{
  margin-top: auto;
  margin-bottom: 0;
  position: static !important;
}

/* =============================
   MODAL — large "tile" (NOT fullscreen)
   Looks like a big tm-tile, centered.
   ============================= */

.tm-modal[hidden]{ display:none !important; }

.tm-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px; /* safe area */
}

.tm-modal__backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 18% 0%, rgba(46,168,168,0.14), transparent 60%),
    radial-gradient(1100px 700px at 82% 8%, rgba(62,201,160,0.12), transparent 62%),
    radial-gradient(900px 700px at 55% 110%, rgba(255,179,71,0.10), transparent 55%),
    rgba(45, 55, 72,.55);
  backdrop-filter: blur(10px);
}

/* The big tile */
.tm-modal__panel{
  position: relative;
  width: min(980px, calc(100vw - 36px));
  max-height: min(86vh, 860px);
  overflow: hidden;

  border-radius: 20px;
  border: 1px solid rgba(45, 55, 72,0.12);
  background: rgba(255,255,255,0.72);
  padding: 16px;

  box-shadow:
    0 18px 44px rgba(45, 55, 72,0.18),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

.tm-modal__panel::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(520px 260px at 15% 15%, rgba(46,168,168,0.14), transparent 55%),
    radial-gradient(560px 280px at 85% 10%, rgba(62,201,160,0.14), transparent 60%);
  opacity: .75;
  pointer-events:none;
}

.tm-modal__top{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  padding-bottom: 8px;
  border-bottom: 1px solid rgba(45, 55, 72,0.08);
}

.tm-modal__body{
  position: relative;
  z-index: 1;

  margin-top: 14px;
  overflow: auto;
  max-height: calc(min(86vh, 860px) - 92px);
  padding-right: 6px; /* kis hely a scrollbar-nak */
}

/* The copied content should feel like it belongs in a tile */
.tm-modal__body .tm-plan{
  border-radius: 18px;
  border: 1px solid rgba(45, 55, 72,0.10);
  background: rgba(255,255,255,0.64);
  padding: 14px 14px;
  box-shadow: none;
}

.tm-modal__close.tm-btn{
  border-radius: 999px;
}

/* lock scroll behind modal */
html.tm-modal-open{ overflow: hidden; }

/* Small screens: slightly bigger usable height */
@media (max-width: 520px){
  .tm-modal{ padding: 12px; }
  .tm-modal__panel{
    width: calc(100vw - 24px);
    max-height: 90vh;
  }
  .tm-modal__body{
    max-height: calc(90vh - 92px);
  }
}

/*
.tm-modal__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

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

.tm-modal__close{
  white-space:nowrap;
}
*/
/* === MODAL header kicker: same look as .tm-kicker (no regression) === */
.tm-modal__kicker{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
