@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #070708;
  --bg-soft: #101114;
  --panel: rgba(16, 17, 20, 0.88);
  --panel-strong: rgba(12, 12, 14, 0.94);
  --text: #f3efe7;
  --muted: #c6bdae;
  --line: rgba(255, 201, 74, 0.16);
  --red: #b90e13;
  --red-bright: #ef3e25;
  --gold: #d9a441;
  --gold-bright: #f2ca73;
  --success: #2ecc71;
  --danger: #ff5b57;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 14, 19, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.12), transparent 25%),
    linear-gradient(180deg, #050506 0%, #09090b 45%, #060607 100%);
  min-height: 100vh;
}
body.modal-open { overflow: hidden; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.page-glow {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
  z-index: 0;
}
.page-glow-left { top: -6rem; left: -8rem; background: rgba(185, 14, 19, .65); }
.page-glow-right { right: -8rem; top: 20%; background: rgba(217, 164, 65, .45); }

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.40)),
    linear-gradient(135deg, rgba(185, 14, 19, 0.12), rgba(217, 164, 65, 0.08)),
    url('hero-lanparty.png');
  background-position: center 30%;
  background-size: cover;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.66)),
    radial-gradient(circle at center, transparent 25%, rgba(0, 0, 0, 0.35) 100%);
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(217, 164, 65, 0.16) 0, transparent 15%, transparent 85%, rgba(185, 14, 19, 0.22) 100%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 35%);
  mix-blend-mode: screen;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  padding: 2.5rem 1rem;
}
.hero h1 {
  margin: 0;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(2rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.02;
  text-transform: uppercase;
  color: #f7efe4;
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.6), 0 0 40px rgba(185, 14, 19, 0.18);
}
.hero-date {
  margin: 1rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 206, 102, .35);
  background: rgba(8, 8, 10, .56);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-shell, .admin-shell, .legal-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.page-shell { padding: 1.5rem 0 3rem; }
.admin-shell { padding: 1.5rem 0 3rem; }  

.card, .top-card {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(12, 12, 14, 0.92));
  border: 1px solid rgba(255, 206, 102, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::before, .top-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 206, 102, 0.55), transparent);
}
.card { padding: 1.3rem; }

.top-strip,
.content-grid,
.utility-grid,
.intro-grid,
.stats-grid {
  display: grid;
  gap: 1.2rem;
}
.top-strip {
  grid-template-columns: 1.6fr .8fr;
  align-items: stretch;
  margin-top: -4rem;
}
.info-panel { padding: 1.5rem; }
.info-panel h2 { margin: .25rem 0 .8rem; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.info-panel p { margin: 0 0 .85rem; color: var(--muted); line-height: 1.65; }
.counter-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.45)),
    radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.20) 100%);
}
.counter-label {
  color: var(--muted);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.counter-value {
  margin: .55rem 0 .25rem;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
}
.counter-value small {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-left: .45rem;
  color: var(--text);
}
.counter-sub { margin: .2rem 0 0; color: #d5cbbd; }

.section-kicker {
  display: inline-block;
  color: var(--gold-bright);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.notice {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
}
.notice.info { background: rgba(217, 164, 65, 0.12); color: #f3d99e; }
.notice.full { background: rgba(185, 14, 19, 0.18); color: #ffd1ce; }

.content-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, .95fr);
  margin-top: 1.2rem;
  align-items: start;
}
.side-stack { display: grid; gap: 1.2rem; }

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-heading h2, .card-heading h1 { margin: .25rem 0 0; }
.step-badge {
  min-width: 56px;
  text-align: center;
  padding: .5rem .75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(185, 14, 19, 0.28), rgba(217, 164, 65, 0.18));
  border: 1px solid rgba(255, 206, 102, 0.18);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--gold-bright);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
label, fieldset { display: block; }
label > span, fieldset > legend {
  display: block;
  margin-bottom: .45rem;
  color: #f3ede0;
  font-weight: 600;
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255, 206, 102, 0.14);
  background: rgba(7, 7, 9, 0.85);
  color: var(--text);
  border-radius: 14px;
  padding: .95rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input::placeholder, textarea::placeholder { color: rgba(243,239,231,0.42); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 206, 102, 0.6);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.12);
}
textarea { resize: vertical; min-height: 120px; }
fieldset {
  border: 1px solid rgba(255, 206, 102, 0.12);
  border-radius: 16px;
  padding: .9rem;
  margin: 0;
}
.choice-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.choice {
  flex: 1 1 170px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 206, 102, 0.12);
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.76);
  cursor: pointer;
}
.choice input { width: auto; margin: 0; }
.check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
}
.check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .2rem;
  accent-color: var(--red-bright);
}
.check span { margin: 0; color: var(--muted); line-height: 1.55; }
.form-errors {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(185, 14, 19, 0.14);
  border: 1px solid rgba(255, 110, 110, 0.16);
}
.form-errors ul { margin: .65rem 0 0 1.1rem; padding: 0; }
.form-errors li { margin: .3rem 0; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 700;
  padding: .95rem 1.25rem;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn.primary {
  color: #160d0b;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 28px rgba(217, 164, 65, 0.24);
}
.btn.secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(185, 14, 19, 0.22), rgba(217, 164, 65, 0.16));
  border: 1px solid rgba(255, 206, 102, 0.14);
}
.btn.danger {
  color: #fff;
  background: linear-gradient(135deg, #c51616, #821313);
}
.btn.compact { padding: .8rem 1rem; }

.mini-card h3, .utility-card h2, .legal-card h1, .login-card h1 { margin: .3rem 0 .8rem; }
.mini-card p, .utility-card p, .legal-card p { color: var(--muted); line-height: 1.65; }
.utility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
}
.utility-card { padding: 1.3rem; }

.admin-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin-top: 1.4rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.admin-link a { color: var(--gold-bright); }

.toast {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
}
.toast.success { background: rgba(46, 204, 113, 0.14); color: #d6f7e3; }
.toast.error { background: rgba(185, 14, 19, 0.18); color: #ffe4e1; }

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 40;
}
.modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 1.4rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.98), rgba(10, 10, 12, 0.98));
  border: 1px solid rgba(255, 206, 102, 0.16);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
}
.modal-x, .icon-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-x { position: absolute; right: 1rem; top: .9rem; }
.danger-text { color: #ff877f; }

.admin-body { background: linear-gradient(180deg, #050506, #09090b); }
.admin-top {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 1.2rem; }
.stat span { color: var(--muted); }
.stat strong {
  display: block;
  margin-top: .35rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--gold-bright);
}
.stat small { color: var(--muted); }
.admin-section { margin-top: 1.2rem; }
.chart { display: grid; gap: .9rem; }
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: .8rem;
}
.bar-track {
  height: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
}
.table-wrap { overflow: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
th, td {
  padding: .9rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  text-align: left;
}
th { color: var(--gold-bright); font-weight: 700; }
.note-cell { min-width: 180px; }
.empty { text-align: center; color: var(--muted); }
.suggestion-list { display: grid; gap: .9rem; }
.suggestion {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(7, 7, 9, 0.82);
  border: 1px solid rgba(255, 206, 102, 0.1);
}
.suggestion time { color: var(--gold-bright); font-size: .9rem; }
.suggestion p { margin: .45rem 0 0; color: var(--muted); line-height: 1.6; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.login-card {
  width: min(460px, 100%);
  padding: 1.6rem;
}
.backlink { display: inline-block; margin-top: .9rem; }
.legal-card { margin-top: 2rem; }
.legal-actions { margin-top: 1.2rem; }

@media (max-width: 980px) {
  .top-strip,
  .content-grid,
  .utility-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .top-strip { margin-top: -2rem; }
  .admin-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .hero { min-height: 340px; }
  .page-shell, .admin-shell, .legal-shell, .admin-top { width: min(100% - 1rem, 1180px); }
  .form-grid { grid-template-columns: 1fr; }
  .card, .top-card, .modal-panel { padding: 1.1rem; }
  .choice-row { flex-direction: column; }
  .bar-row { grid-template-columns: 70px 1fr 30px; gap: .6rem; }
  .hero-date { font-size: .9rem; }
}


/* v6.1 finomítások */
.bar-track { position: relative; }
.planned-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(242, 202, 115, .9);
  box-shadow: 0 0 8px rgba(242, 202, 115, .45);
}
.success-panel { text-align: center; }
.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
  color: #130e07;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 34px rgba(217, 164, 65, .28);
}
.success-panel p { color: var(--muted); line-height: 1.6; }


/* v6.2 - foglalható plusz gépek */
.loaner-choice {
  border-color: rgba(242, 202, 115, 0.28);
  background: linear-gradient(135deg, rgba(185, 14, 19, 0.14), rgba(217, 164, 65, 0.10));
}
.loaner-choice.disabled {
  opacity: .46;
  cursor: not-allowed;
  filter: grayscale(.35);
}
.loaner-choice.disabled input { cursor: not-allowed; }
.loaner-info {
  margin-top: .9rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(242, 202, 115, 0.16);
  background: rgba(217, 164, 65, 0.06);
}
.loaner-info > div {
  min-width: 86px;
  text-align: center;
  padding-right: 1rem;
  border-right: 1px solid rgba(242, 202, 115, 0.14);
}
.loaner-info strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--gold-bright);
}
.loaner-info span {
  display: block;
  margin-top: .28rem;
  color: var(--muted);
  font-size: .82rem;
}
.loaner-info p { margin: 0; color: var(--muted); line-height: 1.55; }
.loaner-info.sold-out { border-color: rgba(239, 62, 37, 0.24); background: rgba(185, 14, 19, 0.09); }
.loaner-info.sold-out strong { color: #ff7b68; }
.loaner-admin-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, .75fr);
  gap: 1.2rem;
  align-items: end;
}
.loaner-admin-status strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--gold-bright);
}
.loaner-admin-status > span { color: var(--muted); }
.loaner-admin-status p { color: var(--muted); line-height: 1.55; margin: .6rem 0 0; }
.loaner-admin-form { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: end; }
.loaner-admin-form label > span { font-size: .9rem; }
@media (max-width: 720px) {
  .loaner-info { grid-template-columns: 1fr; }
  .loaner-info > div { text-align: left; padding-right: 0; padding-bottom: .75rem; border-right: 0; border-bottom: 1px solid rgba(242, 202, 115, 0.14); }
  .loaner-admin-grid, .loaner-admin-form { grid-template-columns: 1fr; }
}
