:root {
  --bg: #070A12;
  --bg-2: #0B0F1A;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-solid: #111624;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #FFFFFF;
  --ink-2: #C9D0DC;
  --ink-3: #8A93A6;
  --ink-4: #4A5366;
  --brand: #7DE3C8;
  --brand-2: #6178FF;
  --brand-ink: #070A12;
  --brand-soft: rgba(125, 227, 200, 0.12);
  --ok: #7DE3C8;
  --err: #FF7A8A;
  --radius: 20px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
body::before, body::after {
  content: ""; position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
}
body::before { width: 900px; height: 900px; top: -420px; right: -180px; background: radial-gradient(circle, rgba(125,227,200,0.20) 0%, rgba(125,227,200,0) 60%); animation: drift 16s ease-in-out infinite; }
body::after { width: 700px; height: 700px; bottom: -320px; left: -160px; background: radial-gradient(circle, rgba(97,120,255,0.24) 0%, rgba(97,120,255,0) 60%); }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,30px) scale(1.06); } 100% { transform: translate(0,0) scale(1); } }
body.embed { background: transparent; min-height: 0; }
body.embed::before, body.embed::after { display: none; }
a { color: var(--ink); } a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.serif { font-family: var(--serif); }
.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--brand); }

.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
body.embed .wrap { padding: 0 0 8px; }

/* Fejléc */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
body.embed .top { display: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.brand b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand span { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--panel); }
.lang button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font-size: 12px; letter-spacing: 0.1em; font-weight: 600; color: var(--ink-3); }
.lang button.on { background: var(--ink); color: var(--bg); }

/* Kártya */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.book { display: grid; grid-template-columns: 290px 1fr; min-height: 520px; }
@media (max-width: 900px) { .book { grid-template-columns: 240px 1fr; } .info { padding: 22px; } }
@media (max-width: 700px) { .book { grid-template-columns: 1fr; } }

/* Bal oldali info */
.info { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
@media (max-width: 700px) { .info { border-right: 0; border-bottom: 1px solid var(--line); } }
.info .avatar { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; display: block; margin-bottom: 16px; box-shadow: 0 0 0 1px var(--line-2); }
.info .host { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.info h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.04; letter-spacing: -0.005em; margin: 0 0 16px; color: var(--ink); }
.meta { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.meta div { display: flex; gap: 9px; align-items: flex-start; }
.meta svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }
.desc { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.pill { display: none; }
.info .back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink-4); text-decoration: none; margin-bottom: 22px; }
.info .back:hover { color: var(--ink); }
.info .step { margin-top: auto; padding-top: 20px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-4); }

/* Jobb oldal: naptár + slotok */
.pick { display: grid; grid-template-columns: 1fr 210px; }
@media (max-width: 900px) { .pick { grid-template-columns: 1fr 180px; } }
@media (max-width: 700px) { .pick { grid-template-columns: 1fr; } }
.cal { padding: 30px 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; color: var(--ink); line-height: 1; }
.nav { display: inline-flex; gap: 6px; }
.nav button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); display: grid; place-items: center; transition: background 0.15s; }
.nav button:hover:not(:disabled) { background: rgba(255,255,255,0.08); }
.nav button:disabled { opacity: 0.3; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 400px; }
.grid .dow { text-align: center; font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; padding: 6px 0; }
.day {
  aspect-ratio: 1; max-width: 48px; width: 100%; margin: 0 auto; border-radius: 10px; border: 0; background: transparent; color: var(--ink-4);
  display: grid; place-items: center; font-size: 14px; font-weight: 500; position: relative; transition: transform 0.15s var(--ease), background 0.15s, box-shadow 0.2s;
}
.day.has { background: rgba(255,255,255,0.07); color: var(--ink); }
.day.has:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.day.sel { background: var(--brand) !important; color: var(--brand-ink); font-weight: 700; box-shadow: 0 0 28px rgba(125,227,200,0.45); }
.day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.day.pad { visibility: hidden; }
.day:not(.has) { cursor: default; }
.tz { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.tz select { border: 0; background: transparent; font-size: 13px; color: var(--ink); max-width: 240px; text-overflow: ellipsis; cursor: pointer; }
.tz select option { color: #111; }
.tz svg { width: 15px; height: 15px; color: var(--brand); }

.slots { padding: 30px 24px 30px 0; display: flex; flex-direction: column; }
@media (max-width: 700px) { .slots { padding: 0 28px 28px; } }
.slots h3 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); min-height: 18px; }
.slot-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.slot-list:empty::after { content: attr(data-empty); color: var(--ink-4); font-size: 13px; }
.slot { display: flex; gap: 6px; }
.slot .t {
  flex: 1; border: 1px solid var(--line-2); color: var(--ink); background: transparent; border-radius: 11px; padding: 11px 12px;
  font-weight: 600; font-size: 14px; text-align: center; transition: all 0.15s var(--ease);
}
.slot .t:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.slot.on .t { background: rgba(255,255,255,0.10); border-color: transparent; color: var(--ink-3); }
.slot .c { display: none; flex: 1; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); border-radius: 11px; padding: 11px 12px; font-weight: 700; font-size: 14px; }
.slot.on .c { display: block; animation: pop 0.18s var(--ease); }
@keyframes pop { from { transform: translateX(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.loading { color: var(--ink-4); font-size: 13px; padding: 12px 0; }

/* Űrlap */
.form { padding: 30px; max-width: 560px; }
.form h2 { font-family: var(--serif); font-weight: 500; margin: 0 0 6px; font-size: 32px; line-height: 1; color: var(--ink); }
.form .when { color: var(--ink-3); margin-bottom: 22px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--ink-2); }
.field label small { font-weight: 500; color: var(--ink-4); letter-spacing: 0; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 13px; background: rgba(255,255,255,0.04); outline: none; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(125,227,200,0.18); }
.field textarea { min-height: 88px; resize: vertical; }
.radios { display: flex; flex-direction: column; gap: 8px; }
.radios label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; font-weight: 500; cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radios input { margin-top: 3px; accent-color: var(--brand); }
.radios small { display: block; color: var(--ink-3); }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 700; background: var(--brand); color: var(--brand-ink); transition: transform 0.15s var(--ease), box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(125,227,200,0.6); }
.btn:disabled { opacity: 0.5; transform: none; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { box-shadow: none; background: rgba(255,255,255,0.06); }
.btn.danger { background: var(--err); color: #1a0509; }
.error { color: var(--err); font-size: 14px; margin-top: 10px; }
.hp { position: absolute; left: -9999px; }

/* Megerősítés */
.done { padding: 44px 28px; text-align: center; max-width: 560px; margin: 0 auto; }
.done .check { width: 60px; height: 60px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; animation: pop 0.3s var(--ease); box-shadow: 0 0 40px rgba(125,227,200,0.25); }
.done h2 { font-family: var(--serif); font-weight: 500; margin: 0 0 6px; font-size: 38px; line-height: 1; color: var(--ink); }
.done p { color: var(--ink-3); margin: 0 0 20px; }
.summary { text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,0.03); border-radius: 16px; padding: 18px 20px; margin: 0 auto 18px; display: grid; gap: 10px; font-size: 14px; }
.summary div { display: flex; gap: 10px; }
.summary svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }
.summary b { display: block; color: var(--ink); }
.links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.links a { font-size: 13px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; }
.links a:hover { border-color: var(--brand); color: var(--brand); }
.done .foot { margin-top: 18px; font-size: 13px; color: var(--ink-4); }

/* Főoldal – hero + portré + kártyák */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: stretch; margin: 12px 0 28px; min-height: 620px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; } }
.hero-text { display: flex; flex-direction: column; justify-content: center; }
.portrait { position: relative; border-radius: 28px; overflow: hidden; min-height: 620px; background: #10141f; box-shadow: 0 60px 120px -50px rgba(0,0,0,0.9), 0 0 0 1px var(--line); }
@media (max-width: 900px) { .portrait { min-height: 0; aspect-ratio: 4 / 5; } }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 18%; display: block; filter: saturate(0.9) contrast(1.05); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,18,0) 55%, rgba(7,10,18,0.85) 100%), linear-gradient(90deg, rgba(7,10,18,0.35) 0%, rgba(7,10,18,0) 30%); pointer-events: none; }
.portrait-cap { position: absolute; left: 22px; bottom: 22px; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: rgba(7,10,18,0.55); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(10px); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.portrait-cap .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.01em; margin: 14px 0 22px; color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero p { margin: 0; color: var(--ink-3); font-size: 17px; max-width: 420px; line-height: 1.55; }
.hero .stats { margin-top: 40px; display: flex; gap: 32px; }
.hero .stats div { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-4); }
.hero .stats b { display: block; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); letter-spacing: 0; text-transform: none; line-height: 1.1; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } }
.type { display: flex; flex-direction: column; text-decoration: none; padding: 22px 24px; position: relative; transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s; color: var(--ink); }
.type:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.07); }
.type.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
.type .bar { display: none; }
.type .tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--c); margin-bottom: 8px; }
.type h3 { font-family: var(--serif); font-weight: 500; margin: 0 0 6px; font-size: 27px; line-height: 1.05; color: var(--ink); }
.type.wide h3 { font-size: 30px; }
.type p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.type .dur { margin-top: 14px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.type .dur svg { display: none; }
.type .go { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; }
.type.wide .dur { margin-top: 0; }
.type.wide .right { display: flex; align-items: center; gap: 16px; }
.footer { margin-top: 40px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-4); text-align: center; }
.footer a { color: var(--ink-4); text-decoration: none; }
.footer a:hover { color: var(--brand); }

/* Kezelőoldal / admin */
.narrow { max-width: 620px; margin: 0 auto; }
.status { display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--ink-3); }
.status.active { background: var(--brand-soft); color: var(--brand); }
.status.cancelled { background: rgba(255,122,138,0.15); color: var(--err); }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); }

/* Beágyazva (világos gazdaoldalon is): a kártya saját sötét alapot kap */
body.embed .card { background: #0B0F1A; background-image: radial-gradient(circle at 110% -20%, rgba(125,227,200,0.22), transparent 55%), radial-gradient(circle at -10% 120%, rgba(97,120,255,0.22), transparent 55%); backdrop-filter: none; -webkit-backdrop-filter: none; }


/* Világos téma (?theme=light, embednél data-theme="light") */
body.light {
  --bg: #F7F6F2; --bg-2: #FFFFFF;
  --panel: rgba(255, 255, 255, 0.72); --panel-solid: #FFFFFF;
  --line: rgba(17, 20, 30, 0.10); --line-2: rgba(17, 20, 30, 0.16);
  --ink: #0F1320; --ink-2: #3A4152; --ink-3: #6B7386; --ink-4: #A0A6B5;
  --brand: #14B08E; --brand-2: #4A63E8; --brand-ink: #FFFFFF; --brand-soft: rgba(20, 176, 142, 0.12);
  --ok: #14B08E; --err: #D8455B;
}
body.light::before { background: radial-gradient(circle, rgba(20,176,142,0.16) 0%, rgba(20,176,142,0) 60%); }
body.light::after { background: radial-gradient(circle, rgba(74,99,232,0.14) 0%, rgba(74,99,232,0) 60%); }
body.light .card { box-shadow: 0 30px 80px -40px rgba(17,20,30,0.35); }
body.light.embed .card { background: #FFFFFF; background-image: radial-gradient(circle at 110% -20%, rgba(20,176,142,0.10), transparent 55%), radial-gradient(circle at -10% 120%, rgba(74,99,232,0.10), transparent 55%); }
body.light .lang button.on { background: var(--ink); color: #FFFFFF; }
body.light .day.has { background: rgba(17,20,30,0.06); }
body.light .day.has:hover { background: rgba(17,20,30,0.12); }
body.light .day.sel { box-shadow: 0 0 24px rgba(20,176,142,0.35); }
body.light .nav button:hover:not(:disabled) { background: rgba(17,20,30,0.06); }
body.light .slot .t:hover { background: rgba(17,20,30,0.05); border-color: rgba(17,20,30,0.3); }
body.light .slot.on .t { background: rgba(17,20,30,0.06); }
body.light .field input, body.light .field textarea, body.light .field select { background: #FFFFFF; }
body.light .btn.ghost:hover { background: rgba(17,20,30,0.05); }
body.light .type .go { background: var(--ink); color: #FFFFFF; }
body.light .type:hover { background: rgba(255,255,255,0.95); border-color: rgba(17,20,30,0.2); }
body.light .summary { background: #FFFFFF; }
body.light .portrait-cap { background: rgba(255,255,255,0.75); border-color: rgba(17,20,30,0.1); }
body.light .portrait::after { background: linear-gradient(180deg, rgba(247,246,242,0) 60%, rgba(247,246,242,0.7) 100%); }
