:root {
  --bg: #0a0e1a;
  --bg-2: #0f1526;
  --card: #131b30;
  --card-2: #18223c;
  --border: #25314f;
  --text: #e8ecf5;
  --muted: #94a0bb;
  --red: #d4283c;
  --red-2: #ff4359;
  --blue: #2f6fe4;
  --blue-2: #5b8ef0;
  --green: #22c55e;
  --amber: #f5a524;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(47, 111, 228, .22), transparent 60%),
              radial-gradient(1000px 500px at 110% 0%, rgba(212, 40, 60, .20), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.bg-stripes {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .022;
  background: repeating-linear-gradient(180deg, #fff 0 18px, transparent 18px 36px);
}
a { color: var(--blue-2); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: Consolas, "Cascadia Mono", monospace; letter-spacing: .05em; }
.pre { white-space: pre-wrap; }
.center { text-align: center; }

/* Hero */
.hero {
  max-width: 920px; margin: 0 auto; padding: 36px 16px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.logo { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.hero-text { flex: 1; min-width: 220px; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; color: var(--blue-2); font-weight: 700; }
.hero h1 { margin: 2px 0; font-size: clamp(24px, 4vw, 36px); line-height: 1.15; }
.hero .sub { margin: 0; color: var(--red-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.badge { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 1px solid var(--border); background: var(--card); white-space: nowrap; }
.badge-open { color: var(--green); border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.08); }
.badge-closed { color: var(--red-2); border-color: rgba(255,67,89,.4); background: rgba(255,67,89,.08); }
.badge-muted { color: var(--muted); }

/* Layout */
.container { max-width: 920px; margin: 0 auto; padding: 0 16px 40px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 16px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.step {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--red)); font-size: 14px;
}
.closed { text-align: center; }
.closed h2 { justify-content: center; }
.big-icon { font-size: 44px; margin-bottom: 6px; }
.next-open { font-weight: 700; color: var(--blue-2); }
.window-until { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(47,111,228,.1); border: 1px solid rgba(47,111,228,.35); color: var(--blue-2); font-weight: 600; }

.rules { padding-left: 20px; margin: 0 0 20px; }
.rules li { margin-bottom: 10px; color: #d3d9e8; }
.rules li strong { color: var(--text); }

/* Form */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field.small { max-width: 260px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--red-2); }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text);
  background: #0c1222; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,228,.25); }
input[type=date] { max-width: 260px; }
.hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.meta { display: flex; justify-content: flex-end; margin-top: 4px; }
.counter { font-size: 12px; color: var(--amber); }
.counter.ok { color: var(--green); }
.err { color: var(--red-2); font-size: 13px; margin-top: 4px; min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: var(--red-2); }
.field.has-error .choice { border-color: rgba(255,67,89,.5); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  flex: 1 1 220px; display: flex !important; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #0c1222;
  font-weight: 500 !important; margin: 0 !important; transition: border-color .15s, background .15s;
}
.choice input { width: auto; accent-color: var(--red); margin: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: rgba(47,111,228,.12); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 10px; padding: 11px 20px;
  border: 1px solid var(--border); background: var(--card-2); color: var(--text); transition: filter .15s, transform .05s;
}
.btn:hover:not(:disabled) { filter: brightness(1.15); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--red), #a51628); border-color: transparent; color: #fff; }
.btn-lg { width: 100%; padding: 15px; font-size: 17px; }
.form-error { color: #fff; background: rgba(212,40,60,.18); border: 1px solid rgba(255,67,89,.5); border-radius: 10px; padding: 10px 14px; }
.submit-card .muted { margin-top: 0; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 30px; }
.footer a { color: var(--muted); }

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .hero { padding-top: 24px; }
  .logo { width: 72px; height: 72px; }
  .badge { width: 100%; text-align: center; }
}

/* Discord gomb */
.hero-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.discord-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  background: linear-gradient(135deg, #5865f2, #4752c4); color: #fff !important; font-weight: 800;
  padding: 10px 16px; border-radius: 12px; box-shadow: 0 6px 18px rgba(88, 101, 242, .4); white-space: nowrap;
  transition: transform .1s, filter .15s;
}
.discord-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.discord-btn.big { font-size: 18px; padding: 14px 24px; margin: 10px 0 14px; }

/* Nyilvánosság / adatvédelmi megjegyzés */
.privacy-note {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px;
  background: rgba(47, 111, 228, .1); border: 1px solid rgba(47, 111, 228, .4); color: #cfdcff;
}
.privacy-note b:first-child { display: block; margin-bottom: 3px; color: var(--blue-2); }
.privacy-note.slim { margin-bottom: 18px; }
.privacy-note.slim b:first-child { display: inline; margin: 0; color: inherit; }
.sec-hint { margin: -8px 0 14px; }

select { appearance: auto; }

/* Nyitási időpontok */
.sched-public { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sched-public li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; background: #0c1222; border: 1px solid var(--border); }
.sched-public li.active { border-color: rgba(34, 197, 94, .55); background: rgba(34, 197, 94, .07); }
.sched-public .when { font-weight: 600; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); white-space: nowrap; }
.pill.st-accepted { color: var(--green); border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .08); }
.pill.st-rejected { color: var(--red-2); border-color: rgba(255, 67, 89, .5); background: rgba(255, 67, 89, .08); }

/* Elbírált kérelmek */
.results-intro { margin-top: -6px; }
#resultSearch { margin: 4px 0 14px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 640px; overflow-y: auto; }
.result { padding: 12px 14px; border-radius: 10px; background: #0c1222; border: 1px solid var(--border); border-left-width: 4px; }
.result.ok { border-left-color: var(--green); }
.result.no { border-left-color: var(--red-2); }
.r-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.r-name { font-weight: 800; font-size: 16px; word-break: break-all; }
.r-date { margin-left: auto; font-size: 12.5px; }
.r-hearing { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(88, 101, 242, .12); border: 1px solid rgba(88, 101, 242, .45); }
.r-note { margin-top: 8px; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 640px) {
  .hero-side { width: 100%; }
  .r-date { margin-left: 0; width: 100%; }
}
