/* PassPortal – webshop-specifikus kiegészítések az alap design rendszerhez. */

.footer-copy a { color: #adb5bd; text-decoration: underline; }
.page { min-height: calc(100vh - 320px); }
.breadcrumb { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--gray-500); }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--gray-500); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.center { text-align: center; }

/* ---- Bérletkártyák ---- */
.pass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}
.pass-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.pass-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pass-card--featured { border-color: var(--green); }
.pass-badge {
  align-self: flex-start;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pass-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.pass-price { font-size: 2.2rem; font-weight: 700; color: var(--green-dark); letter-spacing: -1px; }
.pass-price span { font-size: 1rem; font-weight: 500; color: var(--gray-500); }
.pass-desc { color: var(--gray-500); margin: 12px 0 24px; flex: 1; }
.pass-credit {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--green-light);
  border-radius: 8px;
  color: var(--green-dark);
  line-height: 1.45;
}
.pass-credit strong { font-size: 1.15rem; }
.pass-credit-plus {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ---- Űrlapok ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .hint { display: block; color: var(--gray-500); font-size: 0.85rem; margin-top: 4px; }
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  color: var(--gray-800);
}
.input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
textarea.input { min-height: 90px; resize: vertical; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  line-height: 1.5;
}
.check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.retry-box {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.mode-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mode-list li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-800);
  font-size: 0.94rem;
  line-height: 1.5;
}
.mode-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---- Lépésjelző a pénztárban ---- */
.steps-bar {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  gap: 8px;
  counter-reset: none;
}
.steps-bar li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.95rem;
  min-width: 0;
}
.steps-bar li.current { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.steps-bar li.done { background: var(--green-light); color: var(--green-dark); }
.steps-bar-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.steps-bar li.current .steps-bar-num,
.steps-bar li.done .steps-bar-num { background: var(--green); color: var(--white); }
.steps-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 560px) {
  .steps-bar li { padding: 10px; }
  .steps-bar-label { display: none; }
  .steps-bar li.current .steps-bar-label { display: inline; }
}

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.step-nav .btn { flex: 1; min-width: 140px; }

.pay-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.pay-option:hover { border-color: var(--green); }
.pay-option:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.pay-option input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.pay-note { display: block; color: var(--gray-500); font-size: 0.88rem; margin-top: 3px; line-height: 1.45; }

.captcha-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.captcha-img {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-100);
  display: block;
}

/* ---- Összegzés / adatdobozok ---- */
.summary {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.summary-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
}
.summary-row + .summary-row { border-top: 1px solid var(--gray-200); }
.summary-row .label { color: var(--gray-500); flex-shrink: 0; }
.summary-row .value { font-weight: 500; text-align: right; word-break: break-word; }
.summary-total { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); }
.summary-bonus {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: var(--green-light);
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 0.9rem;
  line-height: 1.45;
}
.summary + .summary { margin-top: 16px; }

.bank-box {
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}
.bank-box h3 { margin-bottom: 12px; }
.bank-ref {
  background: var(--green-light);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 8px;
}
.bank-ref .value { font-size: 1.2rem; font-weight: 700; }

.identifier-box {
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  background: var(--white);
}
.identifier-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  word-break: break-all;
}

/* ---- Visszajelzések ---- */
.alert { border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; line-height: 1.5; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green); }
.alert-error { background: #fdecea; color: #a4272a; border: 1px solid #f5c6c4; }
.alert-info { background: #eef4ff; color: #2f4d9b; border: 1px solid #cddaf7; }
.alert ul { margin: 6px 0 0 18px; }

/* ---- Állapotjelzők ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-awaiting_payment { background: #fff4e0; color: #8a5a00; }
.badge-paid { background: #eef4ff; color: #2f4d9b; }
.badge-fulfilled { background: var(--green-light); color: var(--green-dark); }
.badge-cancelled { background: var(--gray-200); color: var(--gray-500); }
.badge-sent { background: var(--green-light); color: var(--green-dark); }
.badge-pending { background: #fff4e0; color: #8a5a00; }
.badge-failed { background: #fdecea; color: #a4272a; }

/* ---- Folyamatjelző ---- */
.steps { list-style: none; margin: 24px 0; }
.steps li {
  position: relative;
  padding: 0 0 24px 36px;
  border-left: 2px solid var(--gray-200);
  color: var(--gray-500);
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
}
.steps li.done { color: var(--gray-800); }
.steps li.done::before { background: var(--green); border-color: var(--green); }
.steps li.current { color: var(--gray-800); font-weight: 600; }
.steps li.current::before { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.steps .step-title { display: block; }
.steps .step-note { display: block; font-size: 0.9rem; font-weight: 400; color: var(--gray-500); margin-top: 2px; }

/* ---- Gombok ---- */
.btn-secondary {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green-dark); }
.btn-danger { background: #fdecea; color: #a4272a; border: 1px solid #f5c6c4; }
.btn-danger:hover { background: #a4272a; color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Admin ---- */
.admin-bar { background: var(--gray-800); color: var(--white); padding: 12px 0; }
.admin-bar .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.admin-bar a { color: #ced4da; font-weight: 500; }
.admin-bar a:hover, .admin-bar a.active { color: var(--white); }
.admin-bar .spacer { margin-left: auto; }
.admin-bar form { display: inline; }
.admin-bar button {
  background: none;
  border: 1px solid #495057;
  color: #ced4da;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font);
}
.admin-bar button:hover { border-color: var(--white); color: var(--white); }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
}
.filter-tab.active { background: var(--green); border-color: var(--green); color: var(--white); }

.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }

/*
 * A rendeléslista rögzített oszlopszélességgel dolgozik, hogy vízszintes
 * csúszka nélkül elférjen. A cellák tördelhetnek, a hosszú e-mail címet pedig
 * levágjuk — a teljes cím a sor fölé húzva látszik.
 */
table.data-orders { table-layout: fixed; font-size: 0.9rem; }
table.data-orders th, table.data-orders td {
  padding: 10px 12px;
  white-space: normal;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
table.data-orders td.nowrap, table.data-orders th.nowrap { white-space: nowrap; }
table.data-orders .num, table.data-orders th.num { text-align: right; }
table.data-orders .right { text-align: right; }
table.data-orders .small { font-size: 0.82rem; }
table.data-orders .trunc {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table.data-orders .mono { font-size: 0.85rem; }
table.data-orders .badge { white-space: nowrap; }
table.data-orders .btn-sm { padding: 6px 10px; font-size: 0.82rem; }

/* Szűk kijelzőn a csúszka a kisebbik rossz — ott inkább görgethető marad. */
@media (max-width: 1100px) {
  table.data-orders { table-layout: auto; min-width: 860px; }
}
table.data th { background: var(--gray-100); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--gray-500); }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--gray-100); }
table.data td.wrap { white-space: normal; }

.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.panel h2 { font-size: 1.1rem; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }

.login-wrap { max-width: 420px; margin: 80px auto; }

@media (max-width: 480px) {
  .form-card, .panel { padding: 20px; }
  .pass-card { padding: 24px 20px; }
}
