:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #7a7570;
  --border: #e6e1da;
  --accent: #a6824f;
  --danger: #b3453f;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

header.site {
  padding: 28px 20px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 26px;
  margin: 0 0 4px;
}

header.site .sub {
  color: var(--muted);
  font-size: 14px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 380px;
  margin: 60px auto;
}

.card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  margin-top: 0;
}

label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }

input[type=text], input[type=password], input[type=date], input[type=datetime-local] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
}

button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--border); }
button.danger { background: var(--danger); }
button:disabled { opacity: 0.5; cursor: default; }

.error { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 16px; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

/* masonry-szerű galéria: az álló és fekvő képek a valós méretarányukban jelennek meg */
.grid {
  columns: 280px;
  column-gap: 12px;
  width: 100%;
}

.grid .thumb {
  position: relative;
  display: block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  transition: opacity .15s ease;
}

.grid .thumb:hover { opacity: 0.92; }

.grid .thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.grid .thumb .video-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .grid { columns: 160px; column-gap: 8px; }
  .grid .thumb { margin-bottom: 8px; }
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.active { background: #e4efe6; color: #2c6e3f; }
.badge.inactive { background: #f0eeea; color: var(--muted); }

.settings-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; max-width: 700px; }

/* ==================================================================
   Admin CMS-shell (a LumiereCMS editor sötét dizájnrendszere)
   ================================================================== */

.editor-app {
  --sp-bg: #0a0a0a;
  --sp-bg-2: #111111;
  --sp-bg-3: #1a1a1a;
  --sp-bg-4: #222222;
  --sp-border: #242424;
  --sp-text: #e8e8e8;
  --sp-text-2: #aaaaaa;
  --sp-text-3: #666666;
  --sp-accent: #c9a96e;
  --sp-accent-dim: rgba(201, 169, 110, 0.14);
  --sp-green: #4caf7d;
  --sp-red: #e0645a;
  display: flex;
  min-height: 100vh;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.editor-app[hidden] { display: none; }

.editor-sidebar {
  width: 240px; min-width: 240px;
  background: var(--sp-bg-2);
  border-right: 1px solid var(--sp-border);
  display: flex; flex-direction: column;
}

.editor-sidebar-top { padding: 26px 18px 16px; border-bottom: 1px solid var(--sp-border); }
.editor-sidebar-top .brand-logo { font-size: 17px; font-weight: 700; color: var(--sp-text); letter-spacing: -0.3px; }
.editor-sidebar-top .brand-logo span { color: var(--sp-accent); }
.editor-sidebar-top .brand-name { font-size: 10px; color: var(--sp-text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

.editor-nav { flex: 1; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 1px; }
.nav-section-label { font-size: 10px; font-weight: 600; color: var(--sp-text-3); text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 8px 5px; }
.editor-nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  padding: 8px 10px; border-radius: 7px;
  color: var(--sp-text-2); font-size: 13px; font-weight: 400;
  text-decoration: none; cursor: pointer; border: none; background: none;
  font-family: inherit; text-align: left; width: 100%;
  transition: all 0.15s;
}
.editor-nav-item:hover { background: var(--sp-bg-3); color: var(--sp-text); }
.editor-nav-item.active { background: var(--sp-accent-dim); color: var(--sp-accent); font-weight: 500; }
.editor-nav-item .nav-count { font-size: 10px; color: var(--sp-text-3); }
.editor-nav-item.active .nav-count { color: var(--sp-accent); }

.editor-sidebar-bottom { padding: 12px; border-top: 1px solid var(--sp-border); }

.editor-main { flex: 1; overflow-y: auto; }
.panel { display: none; flex-direction: column; }
.panel.active { display: flex; }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px 18px; border-bottom: 1px solid var(--sp-border);
}
.panel-header h2 { font-size: 19px; font-weight: 600; margin: 0; color: var(--sp-text); }
.panel-header p { font-size: 12px; color: var(--sp-text-2); margin-top: 3px; }
.panel-body { padding: 24px 32px 60px; display: flex; flex-direction: column; gap: 20px; }

/* gombok sötét témában */
.editor-app button { font-family: inherit; }
.editor-app button:not(.editor-nav-item):not(.format-option-inner):not(.secondary):not(.danger) {
  background: var(--sp-accent); color: #0a0a0a;
  border: none; padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.editor-app button:not(.editor-nav-item):not(.format-option-inner):not(.secondary):not(.danger):hover { background: #d4b87f; }
.editor-app button.secondary, .editor-app button.danger {
  padding: 9px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.15s;
}
.editor-app button.secondary {
  background: var(--sp-bg-3); color: var(--sp-text-2);
  border: 1px solid var(--sp-border); font-weight: 500;
}
.editor-app button.secondary:hover { border-color: var(--sp-accent); color: var(--sp-accent); background: var(--sp-bg-3); }
.editor-app button.danger { background: var(--sp-red); color: #fff; }
.editor-app button.danger:hover { background: #c4483f; }
.editor-app button:disabled { opacity: 0.5; cursor: default; }

/* táblázat sötét témában */
.editor-app table { width: 100%; border-collapse: collapse; font-size: 13px; }
.editor-app th, .editor-app td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--sp-border); color: var(--sp-text); }
.editor-app th { color: var(--sp-text-3); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.editor-app .badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.editor-app .badge.active { background: rgba(76,175,125,0.14); color: var(--sp-green); }
.editor-app .badge.inactive { background: var(--sp-bg-4); color: var(--sp-text-3); }
.editor-app a.secondary { color: var(--sp-text-2); border: 1px solid var(--sp-border); background: var(--sp-bg-3); }
.editor-app a.secondary:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.editor-app code { color: var(--sp-text-2); font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* seo-section kártyák */
.editor-app .seo-section { background: var(--sp-bg-2); border: 1px solid var(--sp-border); border-radius: 12px; padding: 20px 22px; }
.editor-app .seo-section-title { font-size: 13px; font-weight: 600; color: var(--sp-text); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.editor-app .seo-icon { color: var(--sp-accent); }
.editor-app .fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.editor-app .fields-grid .field-group.span-2 { grid-column: span 2; }
.editor-app .field-group { display: flex; flex-direction: column; gap: 6px; }
.editor-app .field-group label { font-size: 11px; font-weight: 600; color: var(--sp-text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.editor-app .field-hint { font-size: 11px; color: var(--sp-text-3); text-transform: none; letter-spacing: 0; font-weight: 400; }

.editor-app input[type=text], .editor-app input[type=number], .editor-app input[type=password],
.editor-app input[type=date], .editor-app input[type=datetime-local], .editor-app textarea, .editor-app select {
  background: var(--sp-bg-3); border: 1px solid var(--sp-border);
  border-radius: 8px; padding: 9px 12px;
  color: var(--sp-text); font-size: 13px; font-family: inherit;
}
.editor-app textarea { font-family: 'JetBrains Mono', monospace; line-height: 1.6; resize: vertical; }
.editor-app input:focus, .editor-app textarea:focus, .editor-app select:focus { border-color: var(--sp-accent); outline: none; }
.editor-app input::placeholder, .editor-app textarea::placeholder { color: var(--sp-text-3); }

.editor-app .quality-slider { width: 100%; margin: 6px 0 2px; accent-color: var(--sp-accent); cursor: pointer; }
.editor-app .quality-badge {
  display: inline-block; background: var(--sp-accent-dim); color: var(--sp-accent);
  border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 600;
  margin-left: 6px; min-width: 28px; text-align: center; text-transform: none; letter-spacing: 0;
}
.editor-app .quality-hints { display: flex; justify-content: space-between; font-size: 10px; color: var(--sp-text-3); }
.editor-app .quality-recommended { color: var(--sp-accent); }

.editor-app .format-picker { display: flex; gap: 10px; margin-top: 4px; }
.editor-app .format-option { flex: 1; cursor: pointer; }
.editor-app .format-option input { display: none; }
.editor-app .format-option-inner {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-3);
  transition: all 0.15s;
}
.editor-app .format-option-inner strong { font-size: 13px; color: var(--sp-text); }
.editor-app .format-option-inner span { font-size: 11px; color: var(--sp-text-3); }
.editor-app .format-option input:checked + .format-option-inner { border-color: var(--sp-accent); background: var(--sp-accent-dim); }
.editor-app .format-option input:checked + .format-option-inner strong { color: var(--sp-accent); }

/* toggle switch */
.editor-app .toggle { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.editor-app .toggle input { display: none; }
.editor-app .toggle-slider { position: absolute; inset: 0; background: var(--sp-bg-4); border: 1px solid var(--sp-border); border-radius: 20px; cursor: pointer; transition: all 0.2s; }
.editor-app .toggle-slider::before { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--sp-text-3); top: 3px; left: 3px; transition: all 0.2s; }
.editor-app .toggle input:checked + .toggle-slider { background: var(--sp-accent-dim); border-color: var(--sp-accent); }
.editor-app .toggle input:checked + .toggle-slider::before { background: var(--sp-accent); transform: translateX(16px); }

/* admin user lista */
.editor-app .user-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--sp-border);
}
.editor-app .user-row:last-child { border-bottom: none; }
.editor-app .user-row-name { font-size: 13px; color: var(--sp-text); font-weight: 500; }
.editor-app .user-row-2fa { font-size: 11px; margin-left: 8px; }
.editor-app .user-row-2fa.on { color: var(--sp-green); }
.editor-app .user-row-2fa.off { color: var(--sp-text-3); }

.editor-app .modal { background: var(--sp-bg-2); border: 1px solid var(--sp-border); color: var(--sp-text); }
.editor-app .modal .field-hint { color: var(--sp-text-3); }
.editor-app .error { color: var(--sp-red); font-size: 13px; margin-top: 10px; min-height: 16px; }

@media (max-width: 780px) {
  .editor-app { flex-direction: column; }
  .editor-sidebar { width: 100%; min-width: 0; }
  .editor-app .fields-grid { grid-template-columns: 1fr; }
  .editor-app .fields-grid .field-group.span-2 { grid-column: span 1; }
  .editor-app .format-picker { flex-direction: column; }
}

.modal-backdrop[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: var(--radius); padding: 24px; width: 90%; max-width: 420px; }

/* ---- Belépő képernyő (a Lumiere Wedding CRM login.html márkarendszere) ---- */

.auth-wrapper[hidden] { display: none; }
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 24px;
  animation: authWrapperIn .7s cubic-bezier(.22,1,.36,1) both;
}

@keyframes authWrapperIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.auth-wrapper .brand { text-align: center; }
.auth-wrapper .brand-logo { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: #1d1d1f; line-height: 1; margin-bottom: 6px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.auth-wrapper .brand-logo span { color: #b8924a; }
.auth-wrapper .brand-name { font-size: 10px; font-weight: 400; color: #86868b; letter-spacing: .5px; text-transform: uppercase; }

.auth-wrapper .card {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #ffffff;
  border: .5px solid rgba(0,0,0,.08);
  border-radius: 24px;
  padding: 36px 36px 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px rgba(0,0,0,.08);
}

.auth-wrapper .card-title { font-size: 22px; font-weight: 600; color: #1d1d1f; letter-spacing: -.3px; margin-bottom: 6px; }
.auth-wrapper .card-sub { font-size: 13px; color: #86868b; margin-bottom: 28px; }

.auth-wrapper .form-group { margin-bottom: 14px; }
.auth-wrapper label { display: block; font-size: 12px; font-weight: 500; color: #86868b; letter-spacing: .3px; text-transform: uppercase; margin: 0 0 7px; }
.auth-wrapper input {
  width: 100%;
  padding: 13px 16px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  font-size: 16px;
  color: #1d1d1f;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.auth-wrapper input:focus { border-color: #c8a97e; background: #ffffff; box-shadow: 0 0 0 3px rgba(200,169,126,.18); }

.auth-wrapper .btn-login {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #c8a97e 0%, #b8924a 100%);
  color: #1a1008;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: .1px;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(184,146,74,.28);
}
.auth-wrapper .btn-login:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(184,146,74,.34); }
.auth-wrapper .btn-login:disabled { opacity: .6; transform: none; cursor: default; }

.auth-wrapper .error-msg {
  margin-top: 12px;
  padding: 11px 14px;
  background: #fdecea;
  border: 1px solid #f7c9c5;
  border-radius: 10px;
  font-size: 13px;
  color: #d93025;
  text-align: center;
  display: none;
}
.auth-wrapper .error-msg.show { display: block; }

.auth-wrapper .footer { font-size: 11px; color: #48484a; text-align: center; letter-spacing: .2px; font-weight: 500; }

@media (max-width: 420px) {
  .auth-wrapper { gap: 24px; padding: 16px; }
  .auth-wrapper .card { padding: 24px 20px 22px; border-radius: 18px; }
  .auth-wrapper .brand-logo { font-size: 24px; }
}

