/* ==========================================================================
   33ima.ro – Prémium Közösségi Imaportál Stíluslap
   Kizárólag tiszta UTF-8 kódolás
   ========================================================================== */

:root {
  /* Színpaletta - Tiszta fehér, arany és spirituális pasztell árnyalatok */
  --bg-main: #FFFFFF;
  --bg-secondary: #FAFAF9;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #78716C;
  --text-light: #A8A29E;
  
  --accent-gold: #C5A059;
  --accent-gold-light: #FBF6EB;
  --accent-gold-hover: #B08B44;
  
  --spiritual-green: #10B981;
  --spiritual-green-light: #ECFDF5;
  --spiritual-green-glow: rgba(16, 185, 129, 0.25);
  
  --border-light: #E7E5E4;
  --border-subtle: #F5F5F4;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.09), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(197, 160, 89, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 12 Kategória színkódok */
:root {
  --cat-csalad: #E07A5F;
  --cat-egeszseg: #2A9D8F;
  --cat-lelki-beke: #4A90E2;
  --cat-hit: #D4AF37;
  --cat-vedelem: #3D5A80;
  --cat-utmutatas: #7B2CBF;
  --cat-munka: #2D6A4F;
  --cat-ujrakezdes: #F4A261;
  --cat-gyasz: #6C757D;
  --cat-kozosseg: #17A2B8;
  --cat-hala: #E9C46A;
  --cat-egyeb: #8D99AE;
}

/* Alapbeállítások */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Háttér finom spirituális fényminta */
.bg-ambient-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.035) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(42, 157, 143, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0%, transparent 100%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* FEJLÉC (Header) */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #FBF6EB 0%, #F5E8C7 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.15);
  transition: transform var(--transition-bounce);
}

.logo-block:hover .logo-symbol {
  transform: scale(1.06) rotate(3deg);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.site-title span {
  color: var(--text-primary);
}

.site-slogan {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-secondary);
  padding: 0.52rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--spiritual-green);
}

#statTotalPrayers {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--spiritual-green);
}

.stat-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--spiritual-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-contact:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero-section {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.22);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
}

/* KATEGÓRIA SÁV (Category Filter Bar) */
.categories-wrapper {
  margin: 2rem 0 1.5rem;
  position: relative;
}

.categories-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
  -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
  height: 5px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  user-select: none;
  flex-shrink: 0;
}

.cat-pill:hover {
  border-color: var(--cat-color, var(--accent-gold));
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-pill.active {
  background: var(--cat-color, var(--accent-gold));
  color: #FFFFFF;
  border-color: var(--cat-color, var(--accent-gold));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.cat-pill.active:hover {
  color: #FFFFFF;
  border-color: var(--cat-color, var(--accent-gold));
}

.cat-pill.active .cat-dot {
  background-color: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.cat-pill .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cat-color, var(--accent-gold));
}

.cat-pill .cat-count {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.cat-pill.active .cat-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* KERESŐ ÉS RENDEZŐ SÁV (Search & Controls) */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-box svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sort-select {
  padding: 0.55rem 2rem 0.55rem 0.9rem;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat calc(100% - 0.75rem) center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 500;
  transition: border-color var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--accent-gold);
}

/* IMA KÁRTYÁK RÁCS (Cards Grid) */
.prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
  padding-bottom: 6rem;
  min-height: 300px;
  position: relative;
}

/* IMA KÁRTYA (Prayer Card) */
.prayer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.prayer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.4);
}

/* Kártya felső kategória csík */
.prayer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--card-cat-color, var(--accent-gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Kártya fejléc */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--card-cat-color, var(--accent-gold));
  background: var(--card-cat-bg, rgba(212, 175, 55, 0.1));
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
}

.card-expiry-badge {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-secondary);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

/* Beküldő adatai */
.card-author-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5F5F4 0%, #E7E5E4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.author-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.card-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Ima szövege */
.card-prayer-body {
  position: relative;
  margin-bottom: 1.4rem;
  padding: 0 0.4rem;
}

.quote-icon {
  position: absolute;
  top: -10px;
  left: -8px;
  font-size: 3rem;
  font-family: 'Cinzel', serif;
  color: rgba(197, 160, 89, 0.12);
  line-height: 1;
  pointer-events: none;
}

.prayer-text {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.68;
  position: relative;
  z-index: 1;
  word-break: break-word;
}

/* Kártya alsó sáv */
.card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
}

.card-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.views-count-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.views-count-wrap svg {
  color: var(--text-light);
}

.prayed-count-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.prayed-count-wrap svg {
  color: var(--accent-gold);
}

/* „Imádkozom érte” gomb */
.btn-pray {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--accent-gold-light);
  color: var(--accent-gold-hover);
  border: 1.5px solid var(--accent-gold);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-pray svg {
  color: var(--accent-gold);
  transition: color var(--transition-fast);
}

.btn-pray:hover:not(:disabled) {
  background: var(--accent-gold);
  border-color: var(--accent-gold-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.28);
}

.btn-pray:hover:not(:disabled) svg {
  color: #FFFFFF;
}

.btn-pray:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-color: var(--border-light);
}

.btn-pray:disabled svg {
  color: var(--text-muted);
}

/* 1:33 Visszaszámláló Zöld Imacsík */
.prayer-active-bar-wrap {
  margin-top: 0.85rem;
  display: none;
}

.prayer-active-bar-wrap.active {
  display: block;
}

.active-bar-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #065F46;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.active-live-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.active-pulse-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--spiritual-green);
  animation: pulse-dot 1.5s infinite;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #D1FAE5;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  border-radius: var(--radius-full);
  width: 100%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: width 1s linear;
}

/* Valós idejű látogatói állapotkijelző */
.community-praying-banner {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.65rem;
}

.community-praying-banner.visible {
  display: flex;
}

/* Védelmi korlát (1h 33m cooldown) infó */
.cooldown-info {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.cooldown-info.visible {
  display: flex;
}

/* JOBB ALSÓ LEBEGŐ DOCK / WIDGET */
.floating-dock {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 99;
}

.btn-new-prayer {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B08B44 100%);
  color: #FFFFFF;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(197, 160, 89, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: all var(--transition-bounce);
}

.btn-new-prayer .plus-icon-wrap {
  width: 26px;
  height: 26px;
  background: #1C1917;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast);
}

.btn-new-prayer:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(197, 160, 89, 0.48), 0 0 22px rgba(197, 160, 89, 0.35);
}

.btn-new-prayer:hover .plus-icon-wrap {
  transform: rotate(90deg);
}

.btn-how-it-works {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

.btn-how-it-works:hover {
  background: var(--bg-secondary);
  color: var(--accent-gold-hover);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* MODÁLIS ABLAKOK (Modals) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-smooth);
  position: relative;
}

.modal-overlay.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 2rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.btn-close-modal {
  width: 40px;
  height: 40px;
  background: #F4F1EC;
  border: 1.5px solid rgba(28, 25, 23, 0.12);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.btn-close-modal svg {
  stroke-width: 2.6;
  transition: transform var(--transition-fast);
}

.btn-close-modal:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-close-modal:hover svg {
  transform: rotate(90deg);
}

.btn-close-modal:active {
  transform: scale(0.95);
}

.modal-body {
  padding: 1.8rem 2rem;
}

/* Űrlap elemek */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
  outline: none;
  background: #FFFFFF;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.checkbox-group input {
  cursor: pointer;
  accent-color: var(--accent-gold);
  width: 16px;
  height: 16px;
}

.checkbox-group span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  user-select: none;
}

.char-counter {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 0.3rem;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--accent-gold-light);
  color: var(--accent-gold-hover);
  border: 1.5px solid var(--accent-gold);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-submit svg {
  color: var(--accent-gold);
  transition: color var(--transition-fast);
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-gold);
  border-color: var(--accent-gold-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.28);
}

.btn-submit:hover:not(:disabled) svg {
  color: #FFFFFF;
}

/* „Hogyan működik?” Modal Stílus */
.how-it-works-grid {
  display: grid;
  gap: 1.25rem;
}

.how-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.how-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-item-text h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.how-item-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* LÁBLÉC (Footer) */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  padding: 3.5rem 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-quote {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-gold);
}

/* RESZPONZÍV NÉZETEK */
@media (max-width: 768px) {
  .site-header .container {
    padding: 0 1rem;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .site-slogan {
    font-size: 0.76rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Kapcsolat gomb mobilon: csak ikon, szöveg nélkül */
  .btn-contact {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .btn-contact span {
    display: none;
  }

  .btn-contact svg {
    width: 18px;
    height: 18px;
  }

  /* Admin gomb mobilon */
  .btn-admin-toggle,
  .btn-admin-toggle.logged-in {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
  }

  .btn-admin-toggle span {
    display: none !important;
  }

  .btn-admin-toggle svg,
  .btn-admin-toggle.logged-in svg {
    width: 21px !important;
    height: 21px !important;
    stroke-width: 2.4 !important;
  }

  .hero-section {
    padding: 1.8rem 0.5rem 1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    margin-bottom: 0.8rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Kategória sáv mobilon */
  .categories-wrapper {
    margin: 1rem 0 1rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-md);
  }

  .categories-scroll {
    gap: 0.5rem;
    padding: 0.2rem 0.1rem;
    scroll-padding: 0 0.5rem;
  }

  .cat-pill {
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
  }

  .cat-pill .cat-count {
    font-size: 0.74rem;
    padding: 0.1rem 0.45rem;
  }

  /* Kereső és rendező sáv mobilon */
  .controls-bar {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .search-box {
    min-width: 100%;
    width: 100%;
  }

  .sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
    max-width: 220px;
  }

  /* Kártyák mobilon */
  .prayers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 5.5rem;
  }

  .prayer-card {
    padding: 1.3rem 1.2rem 1.1rem;
  }

  .card-category-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
  }

  .prayer-text {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  /* Lebegő gombok mobilon */
  .floating-dock {
    bottom: 1.25rem;
    right: 1rem;
    gap: 0.5rem;
  }

  .btn-new-prayer {
    padding: 0.75rem 1.15rem;
    font-size: 0.88rem;
  }

  .btn-how-it-works {
    width: 44px;
    height: 44px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Élő imádkozó csatlakozási pulzálás */
.prayer-card.live-prayer-glow {
  animation: livePrayerPulse 1.8s ease-out;
}

@keyframes livePrayerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.5);
    border-color: var(--accent-gold);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(197, 160, 89, 0.35);
    border-color: var(--accent-gold);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-color: var(--border-soft);
  }
}

/* ==========================================================================
   ADMINISZTRÁCIÓ ÉS MODERÁCIÓS STÍLUSOK
   ========================================================================== */

/* Fejléc Lakat / Kilépés gomb */
.btn-admin-toggle {
  padding: 0.55rem;
  border-radius: var(--radius-full);
  min-width: 38px;
  justify-content: center;
}

.btn-admin-toggle.logged-in {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #DC2626;
  padding: 0.55rem 0.95rem;
  gap: 0.4rem;
}

.btn-admin-toggle.logged-in:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: #FFFFFF;
}

.admin-btn-label {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Kártya piros X törlés gombja (csak admin módban) */
.prayer-card {
  position: relative;
}

body.admin-mode .prayer-card {
  overflow: visible !important;
}

.btn-delete-card {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EF4444;
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
  transition: all var(--transition-fast);
}

body.admin-mode .btn-delete-card {
  display: flex !important;
}

.btn-delete-card svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF !important;
  stroke-width: 3.2 !important;
  display: block;
}

.btn-delete-card:hover {
  background: #DC2626;
  transform: scale(1.15);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.6);
}

.btn-delete-card:active {
  transform: scale(0.92);
}

/* Modális ablak kiegészítések adminhoz */
.modal-sm {
  max-width: 440px;
}

.modal-confirm-body {
  padding: 2.2rem 2rem;
  text-align: center;
}

.confirm-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.confirm-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.confirm-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.btn-cancel-delete {
  padding: 0.8rem 1.2rem;
  background: #F4F1EC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cancel-delete:hover {
  background: #EAE6DF;
  color: var(--text-primary);
}

.btn-danger-delete {
  padding: 0.8rem 1.2rem;
  background: #EF4444;
  border: 1px solid #DC2626;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-danger-delete:hover {
  background: #DC2626;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

/* Cloudflare Turnstile botvédelem */
.turnstile-form-group {
  margin: 1.25rem 0 1rem;
  display: flex;
  justify-content: center;
}

.turnstile-container {
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.turnstile-container iframe {
  max-width: 100% !important;
}
