:root{
  --accent:#6750A4;
  --accent2:#1C6EF2;
  font-family:Roboto,system-ui;
}

body{margin:0;background:#fff;color:#111}

/* Header */
.topbar{
  max-width:1100px;
  margin:auto;
  padding:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:14px}
.brand__logo{display:block}

/* Layout */
.layout{
  max-width:1100px;
  margin:auto;
  padding:0 20px 40px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:20px;
}
@media(max-width:980px){
  .layout{grid-template-columns:1fr}
}

/* Cards */
.card{
  border:1px solid rgba(0,0,0,.1);
  border-radius:20px;
  box-shadow:0 20px 50px rgba(0,0,0,.08);
  background:#fff;
}
.card__head{padding:18px 20px}
.card__head h1,.card__head h2{margin:0 0 10px 0}
.card__head p{margin:0}
.card__body{padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.sub{color:#666}

/* Textarea */
.namesField{min-height:210px}

/* Icons */
.material-symbols-rounded{
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Material parts alignment (a többi Material komponenshez kell) */
md-filled-button::part(button),
md-filled-tonal-button::part(button),
md-outlined-button::part(button),
md-icon-button::part(button){
  display:flex;
  align-items:center;
}
md-filled-button::part(icon),
md-filled-tonal-button::part(icon),
md-outlined-button::part(icon){
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Controls */
.controls{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:stretch;
}

/* Stepper */
.stepper{
  max-width:160px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:16px;
  padding:12px 12px 14px;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
}
.stepper__label{font-size:12px;color:#666;font-weight:700;margin-bottom:10px}
.stepper__ctrl{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.stepper__value{
  min-width:34px;
  text-align:center;
  font-weight:900;
}

/* ✅ ÚJ CTA natív gomb (ez váltja a md-filled-button CTA-t) */
.ctaBtn{
  width:100%;
  border:0;
  border-radius:999px;
  padding:16px 18px;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  background:var(--accent);
  color:#fff;

  box-shadow:0 14px 34px rgba(0,0,0,.16);
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;

  -webkit-tap-highlight-color: transparent;
  user-select:none;
}
.ctaBtn:hover{
  box-shadow:0 18px 46px rgba(0,0,0,.18);
  filter:brightness(1.02);
}
.ctaBtn:active{
  transform:translateY(1px);
  filter:brightness(.98);
}
.ctaBtn:focus-visible{
  outline:3px solid rgba(28,110,242,.35);
  outline-offset:3px;
}
.ctaBtn__icon{
  font-size:22px;
}
.ctaBtn__label{
  font-size:15px;
  line-height:1;
}

/* Settings */
.settings{
  border-top:1px dashed rgba(0,0,0,.15);
  padding-top:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.setting{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hint{color:#666;font-size:12px;margin-top:2px}

/* Right side */
.empty{color:#777}
.winnerHero{
  text-align:center;
  padding:24px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(103,80,164,.15),rgba(28,110,242,.1));
}
.winnerHero__badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:#fff;
  font-weight:900;
}
.winnerHero__name{margin-top:12px;font-size:32px;font-weight:900;word-break:break-word}
.winnerHero__meta{margin-top:8px;color:#555}

/* Multi winners */
.winnerList{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.winnerItem{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:linear-gradient(135deg,rgba(103,80,164,.10),rgba(28,110,242,.06));
  will-change:opacity,transform;
}
.winnerItem__name{font-weight:800}
.winnerItem__badge{
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  font-weight:800;
  font-size:12px;
}

/* Share buttons */
.share{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}
.fbHint{
  margin-top:10px;
  color:#666;
  font-size:12px;
  line-height:1.4;
  text-align:center;
}

/* Hidden export card (image) */
.shareCard{
  position:absolute;
  left:-9999px;
  top:-9999px;
  background:linear-gradient(135deg,#6750A4,#1C6EF2);
  color:#fff;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  padding:60px 60px 40px;
  gap:0;
}
.shareCard__body{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  width:100%;
  flex:1;
}
.shareCard--square{width:1080px;height:1080px}
.shareCard__title{font-size:44px;font-weight:900}
.shareCard__list{margin-top:26px;display:flex;flex-direction:column;gap:14px;align-items:center}
.shareCard__row{font-size:56px;font-weight:900}
.shareCard__row--small{font-size:44px}

.shareCard__badge{
  position:absolute;
  top:40px;
  left:40px;
  padding:12px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  font-size:16px;
  backdrop-filter: blur(8px);
}
.shareCard__meta{
  margin-top:34px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  opacity:.95;
}
.shareCard__metaRow{
  font-size:20px;
  font-weight:700;
}
.shareCard__footer{
  margin-top:20px;
  padding-top:18px;
  padding-bottom:12px;
  font-size:16px;
  font-weight:700;
  opacity:.88;
  text-align:center;
  width:100%;
  line-height:1.35;
  color:#f9f9f9;
}

/* CTA icon + label alignment */
md-filled-button.cta .material-symbols-rounded{
  margin-right:8px;
}
.btnLabel{
  display:inline-flex;
  align-items:center;
  font-weight:800;
}

/* CTA icon + label alignment */
md-filled-button.cta .material-symbols-rounded{
  margin-right:8px;
}
.btnLabel{
  display:inline-flex;
  align-items:center;
  font-weight:800;
}

/* v19: FAQ accordion */
.faq{
  margin: 26px auto 60px;
  max-width: 1120px;
  padding: 0 22px;
}
.toast{
  position:fixed;
  inset:auto auto 32px 50%;
  transform:translateX(-50%) translateY(12px);
  padding:12px 18px;
  background:rgba(0,0,0,.9);
  color:#fff;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.2);
  opacity:0;
  transition:opacity .24s ease, transform .24s ease;
  z-index:9999;
  pointer-events:none;
  font-weight:700;
  letter-spacing:.15px;
  min-width:220px;
  max-width:360px;
  text-align:center;
  line-height:1.4;
}
.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* FAQ */
.faqCard{
  max-width:1100px;
  margin:26px auto 70px;
  padding:0;
}
.faqCard__inner{
  border:1px solid rgba(0,0,0,.10);
  border-radius:20px;
  background:#fff;
  padding:20px;
  box-shadow:0 18px 60px rgba(0,0,0,.06);
}
.faq{
  max-width:1120px;
  margin:0 auto;
  padding:0 2px;
}
.faq__title{font-size:26px;margin:0 0 8px}
.faq__lead{margin:0 0 18px;opacity:.86;line-height:1.55}
.accordion{display:flex;flex-direction:column;gap:12px}
.acc{
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.acc[open]{box-shadow:0 10px 30px rgba(0,0,0,.06)}
.acc__sum{
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.acc__sum::-webkit-details-marker{display:none}
.acc__sum::after{
  content:"expand_more";
  font-family:"Material Symbols Rounded";
  font-size:26px;
  line-height:1;
  opacity:.75;
  transition:transform .18s ease;
}
.acc[open] .acc__sum::after{transform:rotate(180deg)}
.acc__body{
  padding:0 16px 14px;
  line-height:1.6;
  opacity:.92;
}
.acc__body p{margin:10px 0}

/* Language switcher */
.topbar__actions{position:relative;display:flex;align-items:center;gap:10px}
.langBtn{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:14px;
  height:44px;
  padding:0 14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}
.langBtn:hover{box-shadow:0 14px 34px rgba(0,0,0,.08)}
.langBtn__flag{font-size:22px;line-height:1}
.langBtn__name{font-size:14px;font-weight:800;opacity:.86}

.langMenu{
  position:absolute;
  right:0;
  top:54px;
  min-width:180px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:14px;
  padding:8px;
  box-shadow:0 18px 60px rgba(0,0,0,.12);
  z-index:50;
  display:none;
}
.topbar__actions.is-open .langMenu{display:block}

.langItem{
  width:100%;
  border:0;
  background:transparent;
  padding:10px 10px;
  border-radius:10px;
  text-align:left;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.langItem:hover{background:rgba(0,0,0,.05)}
.langItem[aria-selected="true"]{background:rgba(0,0,0,.06)}
.langItem__flag{font-size:18px}
.langItem__name{font-weight:700}

/* v22: language dropdown on hover + label */
.langBtn{
  gap:10px;
  padding:0 14px;
}
.langBtn__name{
  font-size:14px;
  font-weight:800;
  opacity:.86;
}

/* v23: FAQ width/padding matches main layout */
.faqCard{
  max-width:1100px;
  margin: 26px auto 70px;
  padding: 0 20px 40px;
}
.faqCard__inner{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 20px;
  background:#fff;
  margin: 0;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.06);
}
@media (max-width: 700px){
  .faqCard__inner{padding:18px;margin:0 16px 46px}
}

/* Language dropdown visibility + active state */
.langMenu{display:none}
.topbar__actions.is-open .langMenu{display:block}
.langItem[aria-selected="true"]{
  background:rgba(0,0,0,.06);
}

/* UI: stepper card look */
.stepper{
  max-width:160px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:16px;
  padding:12px 12px 14px;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
}
.stepper__label{
  margin-bottom:10px;
}
.stepper__ctrl{
  gap:12px;
}