/* Pogány DÖK arculat: papír, neo-craft szerkesztőség, tiszta kontraszt, gazdag arculati integráció */

:root {
  --dok-paper: #F4EFE6;
  --dok-ink: #141414;
  --dok-accent: #C8553D;
  --dok-green: #2E5C38;
  --dok-grey: #8A8478;
  --dok-surface: #FCFAF6;
  --dok-surface-2: #F0EAE1;
  --dok-font-display: "Instrument Serif", Georgia, serif;
  --dok-font-ui: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --dok-radius-card: 16px;
  --dok-radius-pill: 999px;
}

html, body {
  background-color: #F4EFE6;
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(200, 85, 61, 0.09), transparent 36%),
    radial-gradient(ellipse at 0% 100%, rgba(20, 20, 20, 0.04), transparent 30%),
    url("/assets/brand/extended/06-patterns/02-pattern-tile.svg");
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right top, left bottom, 0 0;
  background-size: auto, auto, 240px 240px;
  background-attachment: fixed;
}

.nav, .sidebar, .topbar, .footer, footer {
  background-color: rgba(252, 250, 246, 0.95);
  backdrop-filter: blur(8px);
}

/* Kártyák: TISZTA, OLVASHATÓ felület háttérzavar és átfedések nélkül */
.card,
.list-card,
.secret-doc-card,
.hero-aside-card,
.auth-card-clean,
.rep-card,
.liquid-card,
.stat-card {
  background-color: #FCFAF6 !important;
  background-image: none !important;
  border: 1px solid rgba(20, 20, 20, 0.08) !important;
  box-shadow: 0 4px 16px rgba(20, 20, 20, 0.04) !important;
}

.hero-box {
  position: relative;
}

.hero-box::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 96px;
  height: 96px;
  background: url("/assets/brand/symbol-tile.svg") center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-lockup img {
  height: 48px;
  width: auto;
  display: block;
}

.sidebar .brand-lockup img,
.footer .brand-lockup img {
  height: 42px;
}

/* Megújított, elegáns Irányítópult fejléc az arculat szerinti Ink & Terracotta tónusban */
.dash-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px 28px;
  border-radius: var(--dok-radius-card);
  background: #141414 !important;
  color: #F4EFE6 !important;
  border: 1px solid rgba(244, 239, 230, 0.12) !important;
  box-shadow: 0 12px 30px -6px rgba(20, 20, 20, 0.35) !important;
  position: relative;
  overflow: hidden;
}

.dash-mast::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: url("/assets/brand/watermark-dark.svg") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  filter: invert(1);
}

.dash-mast img {
  height: 46px !important;
  max-width: 190px !important;
  object-fit: contain !important;
  position: relative;
  z-index: 1;
}

.dash-mast p {
  margin: 6px 0 0;
  color: rgba(244, 239, 230, 0.85);
  font-size: 0.95rem;
}

/* Gazdag, élénk arculati betöltő animáció */
.brand-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 105px;
  padding: 24px 16px;
  color: #8A8478;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.brand-wait img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  animation: brand-breathe 1.5s ease-in-out infinite;
}

.brand-wait-symbol {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-wait-symbol img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  animation: brand-breathe 1.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 14px rgba(200, 85, 61, 0.22));
}

.brand-wait-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 16px;
  border: 2px solid #C8553D;
  opacity: 0;
  animation: brand-ring-pulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes brand-ring-pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  60% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.brand-wait-bar {
  width: 100px;
  height: 4px;
  border-radius: 99px;
  background: rgba(20, 20, 20, 0.1);
  overflow: hidden;
  position: relative;
}

.brand-wait-bar i {
  position: absolute;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #C8553D 0%, #E07A5F 100%);
  border-radius: 99px;
  animation: brand-slide 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Kreatív arculati üres állapot doboz (Sticker ikonokkal, szép tiszta tipográfiával) */
.empty-brand {
  position: relative;
  min-height: 130px;
  padding: 24px 16px 20px;
  text-align: center;
  color: #8A8478;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
}

.empty-brand-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 12px rgba(200, 85, 61, 0.15));
}

.empty-brand strong {
  display: block;
  font-size: 15px;
  color: #141414;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.empty-brand div {
  font-size: 13px;
  color: #8A8478;
  max-width: 340px;
  line-height: 1.45;
}

@keyframes brand-breathe {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(-3px) scale(1.06); opacity: 1; }
}

@keyframes brand-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

.page-view > .card,
.page-view .card {
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: var(--dok-radius-card);
  box-shadow: 0 6px 24px rgba(20, 20, 20, 0.04);
}

.page-view h3 {
  font-family: var(--dok-font-display);
  letter-spacing: -0.02em;
}

.sidebar .nav-link {
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

#app-view .sidebar .nav-link.active {
  background: #141414 !important;
  color: #F4EFE6 !important;
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.25), inset 4px 0 0 #C8553D !important;
  font-weight: 800 !important;
}

#app-view .sidebar .nav-link.active svg {
  stroke: #C8553D !important;
}

.btn,
button.btn,
a.btn {
  border-radius: var(--dok-radius-pill);
  font-weight: 650;
}

.btn-primary {
  background: #141414;
  color: #F4EFE6;
  border: 1px solid #141414;
}

.btn-primary:hover {
  background: #C8553D;
  border-color: #C8553D;
  color: #F4EFE6;
}

.stat-card {
  background: #FCFAF6 !important;
  background-image: none !important;
  border: 1px solid rgba(20, 20, 20, 0.1) !important;
  border-radius: var(--dok-radius-card) !important;
  padding: 22px 20px !important;
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.04) !important;
  transition: all 0.2s ease !important;
}

.stat-card:hover {
  border-color: #C8553D !important;
  box-shadow: 0 6px 20px rgba(200, 85, 61, 0.1) !important;
}

.stat-card h3,
button.stat-jump h3 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #8A8478 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin: 0 0 10px 0 !important;
  background: transparent !important;
}

.stat-card .stat-value,
button.stat-jump .stat-value {
  font-family: var(--dok-font-display) !important;
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: #141414 !important;
  line-height: 1 !important;
  margin: 0 !important;
  background: transparent !important;
}

button.stat-jump {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  border: 1px solid rgba(20, 20, 20, 0.1) !important;
  background: #FCFAF6 !important;
}

button.stat-jump:hover {
  border-color: #C8553D !important;
  transform: translateY(-2px) !important;
}

button.stat-jump .stat-value {
  color: #C8553D !important;
}

.search-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-bar input,
.input,
select.input {
  border: 1px solid #D9D4CB;
  border-radius: 12px;
  background-color: #FCFAF6;
}

.item-list li,
table tr {
  border-bottom: 1px solid rgba(20, 20, 20, 0.07);
}

.editorial-link.active {
  color: #C8553D;
}

.section {
  scroll-margin-top: 84px;
}

.mobile-nav-drawer.open .mobile-nav-panel {
  box-shadow: -24px 0 48px rgba(20, 20, 20, 0.16);
}

@media (max-width: 820px) {
  html, body {
    background-size: auto, auto, 180px 180px;
  }
  .brand-lockup img { height: 38px; }
  .hero-box::before { width: 68px; height: 68px; opacity: 0.12; }
  .dash-mast { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   POGÁNY DÖK KÖZÖS KOMPONENSKÉSZLET ÉS ARCULATI ELEMEK (2026)
   70% paper (#F4EFE6), 20% ink (#141414), 10% terra (#C8553D)
   Zöld (#2E5C38) kizárólag állapotjelzésre (hitelesített, elfogadva, aktív)
   ========================================================================= */

:root {
  --pd-paper: #F4EFE6;
  --pd-ink: #141414;
  --pd-terra: #C8553D;
  --pd-green: #2E5C38;
  --pd-grey: #8A8478;
  --pd-surface: #FCFAF6;
  --pd-font: 'Instrument Sans', 'Inter', system-ui, Arial, sans-serif;
  --pd-serif: 'Instrument Serif', 'Caladea', Georgia, serif;
  --pd-radius: 16px;
  --pd-radius-lg: 24px;
  --pd-shadow: 0 4px 0 var(--pd-ink);
}

/* Dupla sávos védjegy jelvény (.pd-bars) */
.pd-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  vertical-align: middle;
}
.pd-bars i {
  display: block;
  height: 6px;
  width: 26px;
  border-radius: 6px;
  background: var(--pd-terra);
}
.pd-bars i + i {
  width: 17px;
  background: currentColor;
}

/* Eyebrow szakasz-jelölő (.eyebrow) */
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pd-ink);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(var(--pd-terra), var(--pd-terra)) 0 0 / 22px 4px no-repeat,
              linear-gradient(currentColor, currentColor) 0 7px / 14px 4px no-repeat;
}

/* Futó hírcsík (.pd-ticker) */
.pd-ticker {
  overflow: hidden;
  white-space: nowrap;
  background: var(--pd-terra);
  color: var(--pd-paper);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  padding: 9px 0;
  box-shadow: 0 2px 8px rgba(200, 85, 61, 0.25);
  position: relative;
  z-index: 15;
}
.pd-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: pd-tick 26s linear infinite;
}
@keyframes pd-tick {
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .pd-ticker span { animation: none; padding-left: 0; }
}

/* Hivatalos közleménycsík (.pd-announce) */
.pd-announce {
  background: var(--pd-ink);
  color: var(--pd-paper);
  text-align: center;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(244, 239, 230, 0.15);
}
.pd-announce a {
  color: var(--pd-terra);
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 800;
}

/* Gombok és árnyékok */
.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 15px var(--pd-font);
  padding: 12px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: var(--pd-terra);
  color: var(--pd-paper);
  box-shadow: 0 3px 0 var(--pd-ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pd-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--pd-ink);
}
.pd-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--pd-ink);
}
.pd-btn.ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 2px currentColor;
}
.pd-btn.ink {
  background: var(--pd-ink);
  color: var(--pd-paper);
  box-shadow: 0 3px 0 var(--pd-terra);
}
.pd-btn.ink:hover {
  box-shadow: 0 5px 0 var(--pd-terra);
}

/* Kártyák terrakotta alátéttel (.pd-card) */
.pd-card {
  background: var(--pd-surface) !important;
  color: var(--pd-ink) !important;
  border-radius: var(--pd-radius-lg) !important;
  padding: 28px !important;
  border: 1px solid rgba(20, 20, 20, 0.08) !important;
  box-shadow: 0 4px 0 var(--pd-terra) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.pd-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 0 var(--pd-terra) !important;
}

/* Címkék és tabletták (.pd-pill) */
.pd-pill {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-family: var(--pd-font, 'Instrument Sans', system-ui, sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
  text-align: left !important;
  letter-spacing: .04em !important;
  background: var(--pd-terra, #C8553D) !important;
  color: #FFFFFF !important;
}
.pd-pill.ok { background: var(--pd-green, #2E5C38) !important; color: #FFFFFF !important; }
.pd-pill.grey { background: var(--pd-grey, #8A8478) !important; color: #FFFFFF !important; }
.pd-pill.ink { background: var(--pd-ink, #141414) !important; color: #F4EFE6 !important; }
.pd-pill.terra { background: var(--pd-terra, #C8553D) !important; color: #FFFFFF !important; }

/* Chip és szerkesztőségi tagek reszponzivitása */
.chip, .editorial-tag, .badge {
  max-width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
  line-height: 1.35 !important;
}

/* Értesítési dobozok (.pd-alert) */
.pd-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--pd-radius);
  background: var(--pd-surface);
  border-left: 6px solid var(--pd-terra);
  box-shadow: 0 4px 16px rgba(20, 20, 20, 0.04);
}
.pd-alert.ok { border-color: var(--pd-green); }
.pd-alert.info { border-color: var(--pd-ink); }

/* Form beviteli mezők (.pd-input) */
.pd-input {
  width: 100%;
  font: 600 15px var(--pd-font);
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--pd-ink);
  background: var(--pd-surface);
  color: var(--pd-ink);
}
.pd-input:focus {
  outline: 3px solid var(--pd-terra);
  outline-offset: 2px;
}

/* Megvalósulási mérő és haladásjelző */
.pd-tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pd-tracker > div {
  background: var(--pd-surface);
  border-radius: var(--pd-radius-lg);
  padding: 20px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-top: 6px solid var(--pd-ink);
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.04);
}
.pd-tracker > div:nth-child(2) { border-top-color: var(--pd-grey); }
.pd-tracker > div:nth-child(3) { border-top-color: var(--pd-green); }
@media (max-width: 700px) {
  .pd-tracker { grid-template-columns: 1fr; }
}

.pd-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.12);
  overflow: hidden;
  margin-top: 10px;
}
.pd-progress > i {
  display: block;
  height: 100%;
  background: var(--pd-terra);
  border-radius: 999px;
}

/* Arculati illusztrációk és állapotgrafikák */
.empty-state-illustration {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 12px auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(200, 85, 61, 0.18));
}

/* =========================================================================
   2026 NEO-CRAFT EDITORIAL: STATS GRID, DASHBOARD & HERO ENHANCEMENTS
   ========================================================================= */

/* Hero motion frame */
.hero-motion-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #141414;
  border: 2px solid rgba(244, 239, 230, 0.18);
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.35), 0 0 0 1px rgba(200, 85, 61, 0.25);
  max-width: 440px;
  margin: 0 auto;
}
.hero-motion-frame img,
.hero-motion-frame video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 9/16;
  max-height: 480px;
}
.hero-motion-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, 0.2);
  color: #F4EFE6;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-motion-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C8553D;
  box-shadow: 0 0 8px #C8553D;
  animation: brand-breathe 1.2s infinite;
}
.hero-motion-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(20, 20, 20, 0.95));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F4EFE6;
  font-size: 13px;
  font-weight: 600;
}

/* Szekció hullám és elválasztó átvezetők */
.section-wave-divider {
  line-height: 0;
  margin: 0;
  background: transparent;
  width: 100%;
  overflow: hidden;
}
.section-wave-divider img,
.section-wave-divider svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* 4-lépéses folyamat (.pd-steps) */
.pd-steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.pd-steps > div {
  counter-increment: s;
  background: var(--pd-surface, #FCFAF6);
  color: var(--pd-ink, #141414);
  border-radius: var(--pd-radius-lg, 20px);
  padding: 24px;
  position: relative;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 4px 0 var(--pd-terra, #C8553D);
}
.pd-steps > div::before {
  content: counter(s);
  display: block;
  font-family: var(--pd-serif, 'Instrument Serif', Georgia, serif);
  font-style: italic;
  font-size: 58px;
  line-height: 1;
  color: var(--pd-terra, #C8553D);
  margin-bottom: 8px;
}
.pd-steps h3 {
  font-size: 1.15rem;
  margin: 0 0 6px 0;
  font-weight: 700;
  color: #141414;
}
.pd-steps p {
  font-size: 0.92rem;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* Megújított, ultra-kontrasztos Dashboard Stat kártyák */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  margin-bottom: 24px !important;
}

.stat-card,
button.stat-card.stat-jump {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: left !important;
  background: #FCFAF6 !important;
  background-image: none !important;
  border: 1px solid rgba(20, 20, 20, 0.12) !important;
  border-radius: 18px !important;
  padding: 22px 24px !important;
  box-shadow: 0 4px 0 #C8553D !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
  cursor: default;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  width: 100%;
  color: #141414 !important;
}

button.stat-card.stat-jump {
  cursor: pointer !important;
  appearance: none;
  -webkit-appearance: none;
}

button.stat-card.stat-jump:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 0 #141414, 0 12px 24px rgba(200, 85, 61, 0.15) !important;
  border-color: #C8553D !important;
}

.stat-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
  width: 100%;
}

.stat-card-ic-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(200, 85, 61, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card-ic-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.stat-card-mid {
  margin: 4px 0;
}

.stat-card-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #8A8478 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.2 !important;
}

.stat-card-num,
.stat-card .stat-value,
button.stat-jump .stat-value {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: clamp(2.6rem, 4.5vw, 3.4rem) !important;
  font-weight: 700 !important;
  color: #141414 !important;
  line-height: 1 !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
}

.stat-card-bot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #C8553D !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(20, 20, 20, 0.07) !important;
  width: 100%;
}
.stat-card-bot .arrow {
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.15s ease;
}
button.stat-card.stat-jump:hover .stat-card-bot .arrow {
  transform: translateX(3px);
}

/* Dashboard List kártyák és elemek */
.dashboard-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

/* Sidebar profil kártya és navigációs elemek */
.sidebar-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 12px 12px 16px;
  background: #FCFAF6;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 14px;
  box-shadow: 0 2px 0 #C8553D;
}
.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #C8553D;
}
.sidebar-user-text {
  min-width: 0;
  flex: 1;
}
.sidebar-user-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #141414;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-role-pill {
  font-size: 11px;
  font-weight: 600;
  color: #C8553D;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.sidebar-brand-ic {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

#app-view .sidebar .nav-link {
  color: #141414 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  transition: all 0.15s ease !important;
  border: 1px solid transparent;
}
#app-view .sidebar .nav-link:hover {
  background: rgba(200, 85, 61, 0.08) !important;
  color: #C8553D !important;
}
#app-view .sidebar .nav-link:hover .sidebar-brand-ic {
  opacity: 1;
}
#app-view .sidebar .nav-link.active {
  background: #141414 !important;
  color: #F4EFE6 !important;
  border-left: 4px solid #C8553D !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.15) !important;
}
#app-view .sidebar .nav-link.active .sidebar-brand-ic {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* Hírek és Közlemények kártyák fedőképpel */
.public-news-card {
  background: var(--pd-surface, #FCFAF6);
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: var(--pd-radius-lg, 20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 0 var(--pd-terra, #C8553D);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.public-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 #141414, 0 12px 24px rgba(200, 85, 61, 0.12);
}
.public-news-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #141414;
}
.public-news-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ========================================================================= */
/* RESZPONZÍV RÁCSOK ÉS KÁRTYÁK MOBIL OPTIMALIZÁLÁSA                        */
/* ========================================================================= */
.rep-grid, .roster-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.rep-card {
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: var(--pd-surface, #FCFAF6) !important;
  border: 1px solid rgba(20, 20, 20, 0.1) !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.rep-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.08) !important;
}

@media (max-width: 640px) {
  .rep-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px 14px !important;
    gap: 10px !important;
  }
  .rep-card > div {
    width: 100% !important;
  }
}

/* ========================================================================= */
/* UNIVERZÁLIS, RESZPONZÍV DÖK LÁBLÉC (.pd-footer)                          */
/* ========================================================================= */
.pd-footer {
  background: #141414 !important;
  color: #F4EFE6 !important;
  padding: clamp(40px, 6vw, 68px) 0 32px !important;
  margin-top: 56px !important;
  border-top: 2px solid rgba(244, 239, 230, 0.12) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.pd-footer .pd-wrap,
.pd-footer .wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 4vw, 40px) !important;
  box-sizing: border-box !important;
}

.pd-footer .cols {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: clamp(20px, 3vw, 36px) !important;
  padding-bottom: 36px !important;
  border-bottom: 1px solid rgba(244, 239, 230, 0.15) !important;
  box-sizing: border-box !important;
}

@media (max-width: 960px) {
  .pd-footer .cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }
}

@media (max-width: 560px) {
  .pd-footer .cols {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .pd-footer .cols > div:first-child {
    border-bottom: 1px solid rgba(244, 239, 230, 0.12) !important;
    padding-bottom: 20px !important;
  }
}

.pd-footer a {
  color: rgba(244, 239, 230, 0.85) !important;
  text-decoration: none !important;
  transition: color 0.15s ease, opacity 0.15s ease !important;
}

.pd-footer a:hover {
  color: #C8553D !important;
  opacity: 1 !important;
}

.pd-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  font-size: 13.5px !important;
}

.pd-footer li {
  margin: 0 !important;
}

.pd-footer strong, .pd-footer b {
  color: #F4EFE6 !important;
  font-size: 14px !important;
  display: block !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.04em !important;
}

.pd-footer-bottom {
  padding-top: 24px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  font-size: 13px !important;
  opacity: 0.75 !important;
}

@media (max-width: 560px) {
  .pd-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}

/* ========================================================================= */
/* RESZPONZÍV FELSŐ NAVIGÁCIÓ (.pd-nav) & MOBIL DRAWER                      */
/* ========================================================================= */
.pd-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(244, 239, 230, 0.96) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 2px solid #141414 !important;
  padding: 12px clamp(16px, 4vw, 40px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
}

@media (max-width: 960px) {
  .pd-nav .pd-nav-links {
    display: none !important;
  }
  .pd-nav .nav-mobile-toggle {
    display: inline-flex !important;
  }
}

@media (min-width: 961px) {
  .pd-nav .nav-mobile-toggle {
    display: none !important;
  }
}

/* Mobil navigációs fiók (Mobile Nav Drawer) egységes stílusa */
.mobile-nav-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: none !important;
}
.mobile-nav-drawer.open {
  display: block !important;
}
.mobile-nav-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(20, 20, 20, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 10001 !important;
}
.mobile-nav-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: min(340px, 86vw) !important;
  height: 100% !important;
  background: #F4EFE6 !important;
  border-left: 2px solid #141414 !important;
  padding: 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 10002 !important;
  overflow-y: auto !important;
  box-shadow: -16px 0 36px rgba(20, 20, 20, 0.22) !important;
}
.mobile-nav-panel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12) !important;
  margin-bottom: 16px !important;
}
.mobile-nav-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.mobile-nav-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-family: var(--pd-font, 'Instrument Sans', system-ui, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #141414 !important;
  text-decoration: none !important;
  background: #FCFAF6 !important;
  border: 1px solid rgba(20, 20, 20, 0.1) !important;
  transition: all 0.15s ease !important;
}
.mobile-nav-links a:hover, .mobile-nav-links a:active {
  background: #EDE7DC !important;
  color: #C8553D !important;
  border-color: #C8553D !important;
}

/* Globális mobil vízszintes túlcsordulás elleni védelem */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ========================================================================= */
/* 2026 BULLETPROOF MOBILE RESPONSIVE ENGINE (Minden oldalhoz és képernyőhöz) */
/* ========================================================================= */

/* Hero split grid alapstílus */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

@media (max-width: 900px) {
  /* Hero Split Grid egymás alá rendeződése mobilon */
  .hero-split-grid,
  #hero .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
  }
  #hero h1.display,
  h1.display {
    font-size: clamp(1.85rem, 6.2vw, 2.75rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 16px !important;
    word-break: break-word !important;
  }
  #hero p.lead {
    font-size: 1.02rem !important;
    line-height: 1.6 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }
  #hero .hero-actions {
    justify-content: center !important;
    gap: 10px !important;
  }
  .hero-motion-frame {
    max-width: 320px !important;
    width: 100% !important;
    border-radius: 20px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 768px) {
  /* Alapvető dobozok és konténerek méretezése */
  .container, .wrap, .pd-wrap, .main-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Rácsok 1 oszlopos rendeződése mobilon */
  .grid, .grid-2, .grid-3, .grid-4,
  div[class*="grid-"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .span-2, .span-3, .span-4 {
    grid-column: span 1 !important;
  }

  /* Kártyák kényelmes belső margója mobilon */
  .pd-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }

  /* Tipográfia simítása mobilon - sehol ne lógjon ki a szöveg */
  h1, .h1 {
    font-size: clamp(1.65rem, 5.8vw, 2.2rem) !important;
    word-break: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
  }
  h2, .h2 {
    font-size: clamp(1.35rem, 4.6vw, 1.8rem) !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
  }
  h3, .h3 {
    font-size: 1.15rem !important;
  }

  /* Gombok mobilon */
  .hero-actions .pd-btn,
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 13.5px !important;
  }

  /* Vízszintesen kényelmesen görgethető fülek mobilon */
  .public-tabs, .tabs, .tab-bar, .filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
    gap: 8px !important;
  }
  .public-tabs::-webkit-scrollbar,
  .tabs::-webkit-scrollbar {
    display: none !important;
  }
  .public-tab-btn, .tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Táblázatok mobilon nem robbanthatják szét a képernyőt */
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 4-lépéses folyamat mobilon */
  .pd-steps {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .pd-steps > div {
    padding: 18px 16px !important;
  }
  .pd-steps > div::before {
    font-size: 44px !important;
    margin-bottom: 4px !important;
  }

  /* Megvalósulási mérő és tracker mobilon */
  .pd-tracker {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Felső navigáció mobilon */
  .pd-nav {
    padding: 8px 14px !important;
    min-height: 54px !important;
  }
  .pd-nav img {
    height: 30px !important;
  }
  .pd-announce {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }
  .pd-announce-inner {
    gap: 6px !important;
  }

  /* Modálok mobilon */
  .modal-content, .receipt-card, .secret-doc-card {
    max-width: 94vw !important;
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
}

/* ========================================================================= */
/* TALLY FORM HUB STÍLUSOK (.tally-embed-card, .tally-form-frame)             */
/* ========================================================================= */
.tally-embed-card {
  background: var(--pd-surface, #FCFAF6);
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 4px 0 var(--pd-terra, #C8553D), 0 16px 36px rgba(20, 20, 20, 0.07);
  margin: 20px auto;
  max-width: 780px;
  width: 100%;
  box-sizing: border-box;
}
.tally-embed-card iframe {
  width: 100%;
  border: none;
  min-height: 600px;
  border-radius: 12px;
  background: transparent;
}
@media (max-width: 600px) {
  .tally-embed-card {
    padding: 12px 8px !important;
    border-radius: 14px !important;
  }
  .tally-embed-card iframe {
    min-height: 520px;
  }
}




