body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f1ea;
  color: #2b2b2b;
}

/* ===== ALAP ===== */
h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
}

button {
  padding: 14px 24px;
  border: none;
  background: #2b2b2b;
  color: white;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
}

/* ===== FŐOLDAL ===== */
.container {
  text-align: center;
  max-width: 700px;
  padding: 40px 24px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* ===== KÖZÖS GOMB ===== */
.vissza-gomb {
  display: inline-block;
  padding: 14px 24px;
  background: #3f362f;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.vissza-gomb:hover {
  transform: translateY(-1px);
  opacity: 0.96;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

/* ===== GALÉRIA OLDAL ===== */
.galeria-oldal {
  margin: 0;
  background: #f4f1ea;
  color: #2b2b2b;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
}

.galeria-fejlec {
  text-align: center;
  margin-bottom: 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.galeria-fejlec h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.galeria-fejlec p {
  font-size: 18px;
  margin-bottom: 20px;
}

.galeria-tartalom {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 380px);
  gap: 30px;
  align-items: start;
}

/* ===== MASONRY GALÉRIA ===== */
.galeria-racs {
  column-count: 3;
  column-gap: 24px;
}

.kep-kartya {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
}

.kep-wrapper {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
  background: #ddd;
  display: block;
  transform-origin: center center;
  will-change: transform;
}


.galeria-kep {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
  background: #f3eee7;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .kep-kartya:hover .kep-wrapper {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  }

  .kep-kartya:hover .galeria-kep {
    transform: scale(1.05);
  }
}

/* ===== KÉPKÁRTYA PANEL ===== */
.rendeles-panel {
  margin-top: 14px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
}

.kep-kod {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2b2b2b;
  margin-bottom: 2px;
  text-align: center;
}

.rendeles-sor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rendeles-sor label {
  width: 64px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #2f2a25;
  display: block;
  flex-shrink: 0;
}

.checkbox-sor {
  justify-content: space-between;
}

.checkbox-sor label {
  width: auto;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #3b3b3b;
}

.checkbox-sor input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #2b2b2b;
  cursor: pointer;
}

.db-kezelo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  max-width: 100%;
}

.db-kezelo button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.db-kezelo button:hover {
  transform: translateY(-1px);
}

.db-kezelo button:active {
  transform: scale(0.94);
}

.db-ertek {
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

.kosar-gomb,
.torles-gomb {
  border: none;
  background: #2b2b2b;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.kosar-gomb {
  width: 100%;
  margin-top: 4px;
}

/* ===== KOSÁR ===== */
.kosar-doboz {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  box-sizing: border-box;
}

.kosar-doboz h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 26px;
}

.kosar-ures {
  color: #666;
}

#kosarLista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kosar-tetel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}

.kosar-bal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kosar-sor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kosar-kep {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.kosar-adat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kosar-jobb {
  display: block;
  width: auto;
  min-width: 110px;
}

.torles-gomb {
  width: 100%;
  min-width: 110px;
  padding: 0 16px;
  line-height: 1;
  box-sizing: border-box;
}

.kosar-lablec {
  margin-top: 20px;
  padding-top: 10px;
}

.kosar-lablec p {
  margin: 8px 0 0;
  font-size: 15px;
}

.tetel-reszletek {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.tetel-reszletek span {
  font-size: 14px;
  color: #666;
}

.tetel-ar {
  margin-top: 4px;
  font-weight: 700;
  color: #2b2b2b;
}

.vegosszeg-sor {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ddd6c8;
  font-size: 18px;
}

/* ===== FULLSCREEN FÉNYDOBOZ ===== */
#fenydoboz {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.fenydoboz-tartalom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.fenydoboz-kep {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.bezaras {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  color: #ffffff;
  background: rgba(30, 30, 30, 0.48);
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 10020;
}

.fenydoboz-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.48);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10021;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.fenydoboz-nav-bal {
  left: 18px;
}

.fenydoboz-nav-jobb {
  right: 18px;
}

.fenydoboz-nav:hover {
  background: rgba(30, 30, 30, 0.56);
}

.rendeles-panel-toggle {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  min-width: 140px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  z-index: 10020;
  cursor: pointer;
}

.rendeles-panel-toggle:active {
  transform: translateX(-50%) scale(0.96);
}

.fenydoboz-rendeles-panel {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  display: none;
  box-sizing: border-box;
  z-index: 10019;
    transition: transform 0.25s ease;

  will-change: transform;
}

.fenydoboz-rendeles-panel.nyitva {
  display: block;
}

.fenydoboz-rendeles {
  background: rgba(255, 250, 244, 0.97);
  border-radius: 18px 18px 0 0;
  padding: 18px;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.22);
}

.fenydoboz-rendeles::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 auto 12px;
}

.fenydoboz-kepkod {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #5a5148;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.rendelesi-tetel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.rendelesi-tetel > span:first-child {
  width: 72px;
  text-align: center;
  font-weight: 700;
  color: #2f2a25;
  flex: 0 0 72px;
}

.rendelesi-tetel button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #2b2b2b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rendelesi-tetel span[id] {
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(221, 214, 200, 0.9);
  color: #2b2b2b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

#fenydobozKosar {
  width: 100%;
  margin-top: 10px;
}

.fenydoboz.panel-nyitva {
  background: rgba(10, 10, 10, 0.94);
}

.fenydoboz::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 10018;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0)
  );
}

body.fenydoboz-nyitva {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

/* ===== RENDELÉS OLDAL ===== */
.rendeles-oldal {
  margin: 0;
  background: #f4f1ea;
  color: #2b2b2b;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
}

.rendeles-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.rendeles-fejlec {
  text-align: center;
  margin-bottom: 36px;
}

.rendeles-fejlec h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.rendeles-fejlec p {
  font-size: 18px;
  margin-bottom: 20px;
}

.rendeles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 380px);
  gap: 28px;
  align-items: start;
}

.adatlap-doboz,
.osszesito-doboz {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  padding: 24px;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
}

.adatlap-doboz h2,
.osszesito-doboz h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 26px;
}

.mezo-csoport {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mezo-csoport label {
  font-size: 14px;
  font-weight: 600;
  color: #3b3b3b;
}

.mezo-csoport input,
.mezo-csoport textarea {
  width: 100%;
  border: 1px solid #ddd6c8;
  border-radius: 10px;
  background: #fff;
  color: #2b2b2b;
  font-size: 15px;
  padding: 12px 14px;
  box-sizing: border-box;
  font-family: inherit;
}

.mezo-csoport input:focus,
.mezo-csoport textarea:focus {
  outline: none;
  border-color: #b8ad99;
  box-shadow: 0 0 0 3px rgba(184, 173, 153, 0.18);
}

.rendeles-gomb,
.tovabb-gomb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: #2b2b2b;
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  margin-top: 10px;
}

.osszesito-szoveg {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 18px;
}

.osszesito-blokk p {
  margin: 10px 0;
  font-size: 15px;
}

.rendeles-osszesito-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rendeles-osszesito-tetel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e1d5;
}

.rendeles-osszesito-tetel strong {
  font-size: 15px;
}

.rendeles-osszesito-tetel span {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.osszesito-sor {
  display: flex;
  gap: 12px;
  align-items: center;
}

.osszesito-kep {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.osszesito-adat {
  display: flex;
  flex-direction: column;
}

.urlap-hiba,
.urlap-siker {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.urlap-hiba {
  color: #e74c3c;
}

.urlap-siker {
  color: #27ae60;
}

.mezo-hiba {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
}

.hibas-mezo,
.mezo-csoport .hibas-mezo {
  border: 2px solid #e74c3c !important;
  background-color: #fff5f5;
}

/* ===== LOGIN / ISKOLA + PIN ===== */
#iskolaSelect,
#pinInput {
  width: 100%;
  max-width: 420px;
  height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 15px;
  color: #2b2b2b;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

#iskolaSelect:focus,
#pinInput:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.10),
    0 0 0 4px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

#iskolaSelect {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6e655c 50%),
    linear-gradient(135deg, #6e655c 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

#belepesGomb {
  width: 100%;
  max-width: 420px;
  min-height: 50px;
  margin-top: 6px;
}

#hibaUzenet {
  width: 100%;
  max-width: 420px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: #b42318;
}

/* ===== KÖSZÖNŐ OLDAL ===== */
.koszono-oldal {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, #ffffff 0%, #f9f6f1 50%, #f2ede6 100%);
  font-family: Arial, sans-serif;
  color: #1f1f1f;
}

.koszono-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  box-sizing: border-box;
}

.koszono-kartya {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
}

.koszono-fej {
  max-width: 620px;
  margin: 0 auto 34px;
}

.koszono-ikon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6bbf73 0%, #4fa95a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.koszono-felirat {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.koszono-kartya h1 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  color: #2f2a25;
}

.koszono-leiras {
  margin: 0 auto;
  max-width: 580px;
  font-size: 17px;
  line-height: 1.75;
  color: #6d645a;
}

.folyamat-doboz {
  max-width: 600px;
  margin: 32px auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  text-align: left;
}

.folyamat-doboz h2 {
  margin: 0 0 26px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  color: #5a5148;
}

.folyamat-lepes {
  display: flex;
  gap: 14px;
  padding: 12px 0;
}

.folyamat-lepes:last-child {
  border-bottom: none;
}

.lepes-szam {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f2ede6;
  color: #8a7f73;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.lepes-tartalom strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #151515;
}

.lepes-tartalom p {
  margin: 0;
  color: #666;
  line-height: 1.65;
  font-size: 15px;
}

.info-doboz {
  max-width: 620px;
  margin: 0 auto 26px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #eadfce;
  color: #6f6256;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.info-doboz p {
  margin: 0;
}

.info-doboz strong {
  color: #5a4a3d;
}

.koszono-gombok {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.masodlagos-gomb {
  background: #ece6dd;
  color: #3f362f;
  box-shadow: none;
}

.masodlagos-gomb:hover {
  background: #e3dccf;
  opacity: 1;
  box-shadow: none;
}

/* ===== MOBIL ===== */
@media (max-width: 1100px) {
  .galeria-racs {
    column-count: 2;
  }
}

@media (max-width: 900px) {
  .galeria-tartalom {
    grid-template-columns: 1fr;
  }

  .galeria-fejlec h1 {
    font-size: 34px;
  }

  .rendeles-panel {
    padding: 16px;
    gap: 12px;
  }

  .db-kezelo {
    gap: 5px;
    padding: 4px;
  }

  .db-kezelo button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 18px;
  }

  .db-ertek {
    min-width: 44px;
    height: 32px;
    font-size: 15px;
  }

  .fenydoboz-tartalom {
    padding: 12px;
  }

  .fenydoboz-nav {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .fenydoboz-nav-bal {
    left: 10px;
  }

  .fenydoboz-nav-jobb {
    right: 10px;
  }

  .bezaras {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .rendeles-panel-toggle {
    bottom: 24px;
    min-width: 132px;
    height: 42px;
  }

  .fenydoboz-rendeles-panel {
    width: calc(100vw - 20px);
    bottom: 76px;
    max-height: 56vh;
    transition: transform 0.25s ease;

    will-change: transform;
  
  }

  .rendelesi-tetel button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 19px;
  }

  .rendelesi-tetel span[id] {
    min-width: 48px;
    height: 36px;
    font-size: 15px;
  }

  .rendeles-grid {
    grid-template-columns: 1fr;
  }

  .rendeles-fejlec h1 {
    font-size: 32px;
  }

  .adatlap-doboz,
  .osszesito-doboz {
    padding: 18px;
  }

  .kosar-gomb,
  #fenydobozKosar {
    animation: pulseSoftMobile 2.6s ease-in-out infinite;
    will-change: transform, box-shadow;
  }
    .kep-wrapper {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .kep-wrapper:active {
    transform: scale(1.02);
  }
}

@media (max-width: 700px) {
  .galeria-racs {
    column-count: 1;
  }
}

@media (orientation: landscape) and (max-width: 900px) {
  .fenydoboz-tartalom {
    padding: 8px 52px;
  }

  .fenydoboz-rendeles-panel {
    width: min(420px, 58vw);
    bottom: 76px;
    max-height: calc(100vh - 32px);
  }

  .rendeles-panel-toggle {
    bottom: 18px;
  }
}

@media (max-width: 640px) {
  .koszono-kartya {
    padding: 32px 22px;
    border-radius: 18px;
  }

  .koszono-ikon {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }

  .koszono-kartya h1 {
    font-size: 29px;
  }

  .koszono-leiras {
    font-size: 15px;
    line-height: 1.7;
  }

  .folyamat-doboz {
    padding: 20px 16px;
  }

  .folyamat-doboz h2 {
    font-size: 21px;
  }

  .folyamat-lepes {
    gap: 12px;
    padding: 13px 0;
  }

  .lepes-szam {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .lepes-tartalom strong {
    font-size: 15px;
  }

  .lepes-tartalom p {
    font-size: 14px;
  }

  .koszono-gombok {
    flex-direction: column;
    align-items: stretch;
  }

  .koszono-gombok .vissza-gomb {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container h1 {
    font-size: 34px;
    margin-bottom: 12px;
  }

  .container p {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  #iskolaSelect,
  #pinInput,
  #belepesGomb,
  #hibaUzenet {
    max-width: 100%;
  }
}


/* ===== ANIMÁCIÓ ===== */
@keyframes pulseSoftMobile {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(63, 54, 47, 0);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 0 0 8px rgba(63, 54, 47, 0.10);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(63, 54, 47, 0);
  }
}

@keyframes kepPulseMobil {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== info buborek ===== */
.info-sor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.info-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eee6db;
  color: #5a4a3d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.info-chip:hover {
  background: #e5dacb;
  transform: translateY(-1px);
}

.info-buborek {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  padding: 12px 14px;
  border-radius: 12px;

  background: #ffffff;
  color: #2b2b2b;

  font-size: 13px;
  line-height: 1.55;
  text-align: left;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  border: 1px solid #e5e5e5;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.info-buborek::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;

  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-left: 1px solid #e5e5e5;

  transform: rotate(45deg);
}
.info-chip:hover .info-buborek {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.info-ikon-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 6px;
}

.info-ikon-wrapper:hover .info-buborek {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.kosar-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(34, 34, 34, 0.94);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  line-height: 1.4;
  z-index: 12000;

  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.kosar-toast.latszik {
  opacity: 1;
  transform: translateY(0);
}

.kosar-toast-pipa {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #27ae60;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .kosar-toast {
    left: 12px;
    right: 12px;
    bottom: 14px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 13px;
  }
}


/* ===== MOBIL TAP ZOOM ===== */
.kep-wrapper.tap-zoom {
  transform: scale(1.02);
}

/* ===== KÁRTYA REJTETT RENDELÉS ===== */
.kartya-akciok {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.kartya-rendeles-toggle {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #2b2b2b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.kartya-rendeles-tartalom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.kartya-rendeles-tartalom.rejtett {
  display: none;
}

/* ===== OLDALSÓ PANELEK ===== */
.oldalso-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 11000;
}

.oldalso-overlay.nyitva {
  opacity: 1;
  pointer-events: auto;
}

.oldalso-panel,
.kosar-doboz {
  will-change: transform;
}

.oldalso-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(86vw, 340px);
  height: 100vh;
  background: #ffffff;
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.16);
  transform: translateX(-105%);
  transition: transform 0.26s ease;
  z-index: 11020;
  box-sizing: border-box;
  padding: 22px 18px;
}

.oldalso-panel.nyitva {
  transform: translateX(0);
}

.oldalso-fejlec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.oldalso-fejlec h2 {
  margin: 0;
  font-size: 24px;
}

.oldalso-bezar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  color: #2b2b2b;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.oldalso-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oldalso-link {
  display: block;
  padding: 14px 14px;
  border-radius: 12px;
  background: #f7f7f7;
  color: #2b2b2b;
  text-decoration: none;
  font-weight: 600;
}

.lebego-gomb {
  display: none;
}

@media (max-width: 900px) {
  .lebego-gomb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 16px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background: #ffffff;
    color: #2b2b2b;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    z-index: 10990;
    cursor: pointer;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .lebego-menu {
    left: 12px;
  }

  .lebego-kosar {
    right: 12px;
    position: fixed;
  }

  .lebego-kosar-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .kosar-doboz {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 340px);
    height: 100vh;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.26s ease;
    z-index: 11030;
    overflow-y: auto;
    padding: 22px 18px 28px;
  }

  .kosar-doboz.nyitva {
    transform: translateX(0);
  }

  .galeria-tartalom {
    grid-template-columns: 1fr;
  }

  .rendeles-panel {
    margin-top: 10px;
  }
}

@media (min-width: 901px) {
  .oldalso-overlay,
  .oldalso-panel,
  .oldalso-fejlec,
  .lebego-gomb {
    display: none !important;
  }

  #mobilKosarPanel {
    position: static;
    transform: none !important;
    height: auto;
    width: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    border-radius: 16px;
    padding: 24px;
  }

  #mobilKosarPanel .oldalso-fejlec {
    display: none !important;
  }
}

/* ===== MOBIL INFO CHIP TAP ===== */
.info-chip.nyitva .info-buborek {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: none) {
  .info-chip:hover .info-buborek {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
  }

  .info-chip.nyitva:hover .info-buborek {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.kartya-rendeles-toggle {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: none;
  border-radius: 12px;
  background: #2b2b2b;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kartya-rendeles-toggle:active {
  transform: scale(0.97);
}

/* ===== FOOTER ===== */
.also-footer {
  margin-top: 24px;
  padding: 20px 20px 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.also-footer-belso {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.also-footer-link {
  color: #6b6258;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.also-footer-link:hover {
  color: #2b2b2b;
  opacity: 1;
}

@media (max-width: 900px) {
  .also-footer {
    margin-top: 28px;
    padding: 18px 20px 28px;
  }

  .also-footer-belso {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .also-footer-link {
    font-size: 13px;
    text-align: center;
  }
}

/* ===== JOGI OLDALAK ===== */
.jogi-tartalom {
  max-width: 860px;
  margin: 0 auto;
}

.jogi-tartalom p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: #4f4a44;
}

.jogi-tartalom strong {
  color: #2b2b2b;
}

/* ===== KAPCSOLAT / JOGI KÁRTYA FINOMÍTÁS ===== */
.jogi-tartalom.szelesseg-szukkentett {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.jogi-tartalom.szelesseg-szukkentett p {
  margin: 0 0 14px;
}

.galeria-hiba {
  max-width: 520px;
  margin: 20px auto 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffecec;
  color: #c0392b;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.galeria-hiba.rejtett {
  display: none;
}

/* ===== FŐOLDAL LAYOUT ===== */
.fooldal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fooldal .container {
  flex: 1;
  width: 100%;
  justify-content: center;
}

.fooldal .also-footer {
  margin-top: auto;
}

.kilepes-uzenet {
  margin-top: 12px;
  font-size: 14px;
  color: #2e7d32;
  text-align: center;
  display: none;
  color: #3f7f4f;
font-weight: 500;
letter-spacing: 0.01em;
}

/* ===== CHECKOUT ELFOGADÁS ===== */
.elfogadas-blokk {
  margin-top: 18px;
}

.elfogadas-sor {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a443d;
  cursor: pointer;
}

.elfogadas-sor input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2b2b2b;
  flex-shrink: 0;
}

.elfogadas-sor a {
  color: #2b2b2b;
  font-weight: 600;
  text-decoration: underline;
}

.elfogadas-sor a:hover {
  opacity: 0.8;
}

.elfogadas-blokk .mezo-hiba {
  margin-top: 8px;
}

/* ===== JOGI OLDALAK BLOKKCÍMEK ÉS LISTÁK ===== */
.jogi-tartalom h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  color: #2b2b2b;
}

.jogi-tartalom h2:first-child {
  margin-top: 0;
}

.jogi-lista {
  margin: 0 0 16px 20px;
  padding: 0;
  color: #4f4a44;
}

.jogi-lista li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

.kesoi-rendeles-info {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #b42318;
  font-weight: 600;
}


.jogi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30000;
  box-sizing: border-box;
}

.jogi-modal-overlay.nyitva {
  display: flex;
}

.jogi-modal {
  width: min(920px, 100%);
  max-height: 86vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.jogi-modal-fejlec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #ece7de;
}

.jogi-modal-fejlec h2 {
  margin: 0;
  font-size: 22px;
  color: #2b2b2b;
}

.jogi-modal-bezar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  background: #f3f1ed;
  color: #2b2b2b;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jogi-modal-tartalom {
  padding: 22px 20px 26px;
  overflow-y: auto;
}

@media (max-width: 700px) {
  .jogi-modal-overlay {
    padding: 12px;
  }

  .jogi-modal {
    max-height: 90vh;
    border-radius: 16px;
  }

  .jogi-modal-fejlec {
    padding: 16px;
  }

  .jogi-modal-fejlec h2 {
    font-size: 19px;
  }

  .jogi-modal-tartalom {
    padding: 18px 16px 22px;
  }
}

.notice-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.notice-modal.hidden {
  display: none;
}

.notice-modal-content {
  background: #fff;
  max-width: 460px;
  width: 100%;
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
}

.notice-modal-content h2 {
  margin-bottom: 16px;
}

.notice-modal-content button {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px;
  background: #222;
  color: #fff;
  cursor: pointer;
}

.notice-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.notice-modal {
  backdrop-filter: blur(4px);
}

.rendeles-gomb:disabled {
  opacity: 0.82;
  cursor: not-allowed;
}

.rendeles-gomb.kuldes-alatt {
  background: #6f6256;
}

.rendeles-gomb.kuldes-kesz {
  background: #2e7d32;
  color: #ffffff;
}

.mezo-info {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #7b746c;
}

.rendszer-info {
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff8e6;
  border: 1px solid #ead8a8;
  color: #5f4a1f;
  font-size: 14px;
  line-height: 1.55;
}

.rendszer-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.rendszer-info p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
}