:root {
  --bg: #F7F5E8;
  --gold: #BBA939;
  --gold-dark: #8f8128;
  --text: #333;
  --card: #fff;
  --muted: #666;
  --danger: #a33;
  --ok: #2d6a2d;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 48px; }
.wrap.narrow { max-width: 640px; }
.topbar {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: bold; letter-spacing: .04em; color: #5a4f1a; }
.nav { display: flex; flex-wrap: wrap; gap: 14px; }
.nav a { font-weight: bold; }
.nav .badge { background: var(--danger); color: #fff; font-size: .8em; }
.page-head h1, .page-head h2 { margin: 0 0 8px; color: #5a4f1a; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  margin: 16px 0;
}
label { display: block; margin: 12px 0; font-weight: bold; }
label small, .hint { display: block; font-weight: normal; color: var(--muted); font-size: .9em; margin-top: 4px; }
input, textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
textarea.tall { min-height: 220px; }
.row2 { display: grid; gap: 12px; }
@media (min-width: 720px) { .row2 { grid-template-columns: 1fr 1fr; } }
.btn, button.btn, input[type=submit] {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none !important;
  margin-top: 10px;
}
.btn:hover { background: var(--gold-dark); }
.btn.secondary { background: #888; }
.btn.danger { background: var(--danger); }
.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.alert.ok { background: #e7f5e7; color: var(--ok); }
.alert.error { background: #fdeaea; color: var(--danger); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
th { color: var(--gold-dark); font-size: .9em; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .8em;
  font-weight: bold;
}
.badge.pending { background: #fff3cd; }
.badge.approved { background: #d4edda; }
.badge.rejected { background: #f8d7da; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery figure {
  margin: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 140px; object-fit: cover; display: block; }
.gallery figcaption { padding: 8px 10px; font-size: .85em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.muted { color: var(--muted); }
.search-box { position: relative; }
.search-results {
  position: absolute;
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 240px;
  overflow: auto;
  z-index: 5;
  display: none;
}
.search-results button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.search-results button:hover { background: var(--bg); }
.tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; background: #fff; border-radius: 8px; font-weight: bold; border: 1px solid #eee; }
.tabs a.active { background: var(--gold); color: #fff; }

/* Üzenőfal */
.messages-layout { display: grid; gap: 16px; }
@media (min-width: 720px) { .messages-layout { grid-template-columns: 280px 1fr; align-items: start; } }
.thread-list { padding: 10px; }
.thread-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.thread-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
}
.thread-nav a:hover { background: var(--bg); text-decoration: none; }
.thread-nav a.active { background: var(--gold); color: #fff !important; }
.thread-nav a.active small { color: rgba(255,255,255,.85) !important; }
.thread-nav .badge {
  background: var(--danger);
  color: #fff;
  margin-left: 4px;
  font-size: .75em;
}
.thread-nav a.active .badge { background: #fff; color: var(--gold-dark); }
.thread-view { display: flex; flex-direction: column; }
.thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}
.msg { max-width: 75%; padding: 10px 14px; border-radius: 10px; }
.msg-meta { font-size: .75em; color: var(--muted); margin-bottom: 4px; font-weight: bold; }
.msg-body { white-space: pre-wrap; }
.msg-user {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid #eee;
}
.msg-admin {
  align-self: flex-end;
  background: #fdf6d8;
  border: 1px solid var(--gold);
}
.thread-view form, .thread-view textarea { margin-top: 10px; }
