/* ============================================
   ALFÖLDI KOPÓK Platform — Főstíluslap
   ============================================ */

:root {
  --bg-void: #07080a;
  --bg-base: #0d0f12;
  --bg-card: #111418;
  --bg-hover: #161b20;
  --bg-raised: #1a1f26;
  --border: #1e252e;
  --border-bright: #2a3540;
  --olive: #4a5c2a;
  --olive-bright: #6b8c3a;
  --green: #7ab648;
  --green-glow: #8fcf52;
  --amber: #d4860a;
  --amber-glow: #f0a020;
  --red: #c0392b;
  --blue: #4a90d9;
  --text-primary: #dde3d0;
  --text-secondary: #8a9880;
  --text-muted: #4a5548;
  --radius: 2px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { font-size: 14px; }

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  grid-template-rows: 56px 1fr;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  grid-column: 1 / -1;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  text-decoration: none;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--olive);
}

.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  font-family: 'Share Tech Mono', monospace;
}

.topbar-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.topbar-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 7px 14px 7px 34px;
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  outline: none;
  border-radius: var(--radius);
  transition: border-color .2s;
}

.topbar-search::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

.topbar-search input:focus { border-color: var(--olive-bright); }
.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.topbar-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 10px;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  transition: all .2s;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.topbar-btn:hover { border-color: var(--olive-bright); color: var(--green); }

.topbar-event { max-width: 490px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-event strong { color: var(--text-primary); }
.topbar-event .event-date { color: var(--amber-glow); margin-left: 4px; }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  border-radius: var(--radius);
}
.user-chip:hover { border-color: var(--olive-bright); background: var(--bg-card); }

.user-avatar-img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--olive);
}

.user-avatar-initials {
  width: 30px; height: 30px;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--green-glow);
  border-radius: var(--radius);
}

.user-chip-name { font-size: 12px; font-family: 'Share Tech Mono', monospace; color: var(--text-secondary); }

.rank-badge {
  font-size: 9px;
  font-family: 'Share Tech Mono', monospace;
  padding: 1px 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid;
  border-radius: var(--radius);
}

/* User dropdown */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  min-width: 180px;
  box-shadow: var(--shadow);
  z-index: 300;
  border-radius: var(--radius);
  overflow: hidden;
}

.user-dropdown.open { display: block; animation: dropIn .15s ease; }

@keyframes dropIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all .15s;
}
.user-dropdown a:hover { background: var(--bg-hover); color: var(--text-primary); }
.user-dropdown a span { font-size: 14px; }
.logout-link { color: var(--red) !important; }

.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── SIDEBAR ── */
.sidebar {
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  align-self: stretch;
  min-height: 100vh;
}

.sidebar-inner {
  position: sticky;
  top: 56px;
  padding: 16px 0;
}

.nav-section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all .15s;
  border-left: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  text-decoration: none;
}

.nav-item:hover { background: var(--bg-card); color: var(--text-primary); border-left-color: var(--border-bright); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(107,140,58,.12) 0%, transparent 100%);
  color: var(--green);
  border-left-color: var(--olive-bright);
}

.nav-icon { width: 18px; text-align: center; font-size: 14px; }
.nav-count {
  margin-left: auto;
  background: var(--bg-raised);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 1px 6px;
  color: var(--text-muted);
  border-radius: 2px;
  border: 1px solid var(--border);
}
.nav-item.active .nav-count { color: var(--green); border-color: var(--olive); }

.nav-divider { height: 1px; background: var(--border); margin: 10px 16px; }

.online-status { padding: 10px 12px; margin: 4px 10px; background: var(--bg-card); border: 1px solid var(--border); border-top: 2px solid var(--olive); }
.online-title { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.online-empty { font-size: 11px; color: var(--text-muted); }
.online-list { display: flex; flex-wrap: wrap; gap: 4px; }
.online-chip { font-family: 'Share Tech Mono', monospace; font-size: 10px; color: var(--green); background: rgba(107,140,58,.1); border: 1px solid rgba(107,140,58,.3); padding: 2px 6px; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }

/* ── MAIN CONTENT ── */
.main-content {
  overflow-y: auto;
  padding: 24px;
  max-width: 100%;
}

/* ── RIGHT PANEL ── */
.right-panel {
  background: var(--bg-base);
  border-left: 1px solid var(--border);
  align-self: stretch;
  min-height: 100vh;
}

.right-panel-inner {
  position: sticky;
  top: 56px;
  padding: 16px 14px;
}

.panel-section { margin-bottom: 22px; }
.panel-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* Next event widget */
.next-event-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--amber);
  padding: 14px;
}
.countdown-display {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--amber-glow);
  line-height: 1;
}
.next-event-label { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 8px; }
.next-event-name { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.next-event-detail { font-size: 11px; color: var(--text-muted); line-height: 1.8; }

.slots-bar { height: 5px; background: var(--bg-raised); border-radius: 2px; overflow: hidden; margin: 6px 0 3px; }
.slots-fill { height: 100%; background: linear-gradient(90deg, var(--olive), var(--green)); border-radius: 2px; transition: width .3s; }
.next-event-slots { font-family: 'Share Tech Mono', monospace; font-size: 10px; color: var(--text-muted); }

/* Panel threads */
.panel-thread {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: .15s;
}
.panel-thread:hover .pt-title { color: var(--green); }
.pt-title { font-size: 12px; color: var(--text-secondary); line-height: 1.3; margin-bottom: 2px; }
.pt-meta { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: var(--text-muted); }

/* Leaderboard */
.lb-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.lb-rank { font-size: 14px; width: 20px; text-align: center; }
.lb-avatar { width: 22px; height: 22px; background: var(--bg-raised); display: flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: var(--green); border: 1px solid var(--border); flex-shrink: 0; }
.lb-name { flex: 1; color: var(--text-secondary); font-size: 12px; }
.lb-score { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; color: var(--olive-bright); }

/* ── PAGE HEADERS ── */
.page-header {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 50px; height: 2px;
  background: var(--olive-bright);
}

.page-title { line-height: 1; }
.page-title h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.page-title .subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  margin-bottom: 3px;
}

.page-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--olive); color: var(--green-glow); border-color: var(--olive-bright); }
.btn-primary:hover { background: var(--olive-bright); color: #fff; box-shadow: 0 0 14px rgba(107,140,58,.3); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-bright); color: var(--text-primary); }
.btn-danger { background: rgba(192,57,43,.1); color: var(--red); border-color: rgba(192,57,43,.3); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn-full { width: 100%; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-body { padding: 16px; }
.card-footer { padding: 10px 16px; border-top: 1px solid var(--border); }

/* ── STATS GRID ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
a.stat-card { cursor:pointer; }
a.stat-card:hover { border-color:var(--border-bright);transform:translateY(-1px);transition:.15s; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.stat-card::before { content:''; position:absolute; top:0;left:0; width:3px;height:100%; background:var(--olive-bright); }
.stat-card.amber::before { background: var(--amber-glow); }
.stat-card.red::before   { background: var(--red); }
.stat-card.blue::before  { background: var(--blue); }
.stat-num { font-family:'Rajdhani',sans-serif; font-size:30px; font-weight:700; line-height:1; }
.stat-label { font-family:'Share Tech Mono',monospace; font-size:9px; color:var(--text-muted); letter-spacing:2px; text-transform:uppercase; margin-top:3px; }

/* ── FORUM ── */
.forum-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.forum-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: var(--radius);
}
.forum-cat:hover { border-color: var(--olive-bright); background: var(--bg-hover); }
.forum-cat-icon { width: 38px;height:38px; background:var(--bg-raised); border:1px solid var(--border); display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0; }
.forum-cat-name { font-weight:600;font-size:14px;margin-bottom:2px; }
.forum-cat-desc { font-size:11px;color:var(--text-muted); }
.forum-cat-count { font-family:'Rajdhani',sans-serif;font-size:20px;font-weight:700;color:var(--olive-bright);line-height:1;text-align:right; }
.forum-cat-count-label { font-family:'Share Tech Mono',monospace;font-size:9px;color:var(--text-muted);text-align:right; }

.thread-list { }
.thread-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .15s;
  text-decoration: none;
  color: inherit;
}
.thread-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.thread-item:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.thread-item:hover { background: var(--bg-hover); z-index: 1; position: relative; border-color: var(--border-bright); }
.thread-icon { font-size:16px; width:24px; text-align:center; flex-shrink:0; }
.thread-info { flex:1; overflow:hidden; }
.thread-title { font-size:13px;font-weight:600;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.thread-meta { font-family:'Share Tech Mono',monospace;font-size:10px;color:var(--text-muted); }
.thread-stats { display:flex;gap:14px;flex-shrink:0; }
.thread-stat { text-align:center; }
.thread-stat-num { font-family:'Rajdhani',sans-serif;font-size:16px;font-weight:700;color:var(--text-secondary);line-height:1; }
.thread-stat-label { font-family:'Share Tech Mono',monospace;font-size:9px;color:var(--text-muted); }
.thread-pinned .thread-icon { color: var(--amber); }
.thread-locked .thread-icon { color: var(--red); }

/* Post card */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.post-head { padding:12px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px; }
.post-avatar { width:34px;height:34px;background:var(--bg-raised);display:flex;align-items:center;justify-content:center;font-family:'Rajdhani',sans-serif;font-weight:700;font-size:13px;color:var(--green);flex-shrink:0;border:1px solid var(--border);border-radius:var(--radius); }
.post-avatar img { width:100%;height:100%;object-fit:cover;border-radius:var(--radius); }
.post-author { font-size:13px;font-weight:600; }
.post-time { font-family:'Share Tech Mono',monospace;font-size:10px;color:var(--text-muted); }
.post-body { padding:14px; line-height:1.7; }
.post-body p { margin-bottom: 10px; }
.post-body p:last-child { margin-bottom: 0; }
.post-foot { padding:8px 14px;border-top:1px solid var(--border);display:flex;gap:14px;align-items:center; }

@media (max-width:760px) {
  .post-head { flex-wrap:wrap; }
  .post-head-actions { display:flex;gap:6px;width:100%;padding-top:6px;border-top:1px solid var(--border);margin-top:4px; }
  .post-head-meta { margin-left:auto; }
}
@media (min-width:761px) {
  .post-head-actions { display:flex;gap:6px; }
}
.post-action { font-family:'Share Tech Mono',monospace;font-size:11px;color:var(--text-muted);cursor:pointer;transition:.15s;display:flex;align-items:center;gap:4px;background:none;border:none; }
.post-action:hover { color:var(--green); }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label { display:block;font-family:'Share Tech Mono',monospace;font-size:10px;color:var(--text-muted);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:6px; }
.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 9px 12px;
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  border-radius: var(--radius);
}
.form-control:focus { border-color: var(--olive-bright); background: var(--bg-hover); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── ALERTS ── */
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.alert-success { background: rgba(107,140,58,.1); border-color: var(--olive-bright); color: var(--green); }
.alert-error { background: rgba(192,57,43,.1); border-color: rgba(192,57,43,.4); color: #e74c3c; }
.alert-warning { background: rgba(212,134,10,.1); border-color: rgba(212,134,10,.4); color: var(--amber-glow); }
.alert-info { background: rgba(74,144,217,.1); border-color: rgba(74,144,217,.4); color: var(--blue); }

/* ── EVENTS ── */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: all .2s;
}
.event-card:hover { border-color: var(--border-bright); }
.event-banner { height: 4px; }
.event-banner.open { background: linear-gradient(90deg, var(--olive), var(--green)); }
.event-banner.full { background: linear-gradient(90deg, var(--red), var(--amber)); }
.event-banner.past { background: var(--text-muted); }
.event-body { padding:14px; display:flex; gap:14px; }
.event-date-block { text-align:center;min-width:50px;background:var(--bg-raised);padding:8px;border:1px solid var(--border);flex-shrink:0;border-radius:var(--radius); }
.event-day { font-family:'Rajdhani',sans-serif;font-size:26px;font-weight:700;color:var(--green);line-height:1; }
.event-month { font-family:'Share Tech Mono',monospace;font-size:10px;color:var(--text-muted);text-transform:uppercase; }
.event-info { flex:1; }
.event-title { font-size:15px;font-weight:700;margin-bottom:5px; }
.event-details { font-size:12px;color:var(--text-secondary);line-height:1.8; }
.event-foot { padding:10px 14px;border-top:1px solid var(--border);display:flex;align-items:center;gap:10px; }
.event-status { font-family:'Share Tech Mono',monospace;font-size:10px;padding:3px 8px;border:1px solid;border-radius:var(--radius); }
.event-status.open { border-color:var(--olive-bright);color:var(--green);background:rgba(107,140,58,.1); }
.event-status.full { border-color:var(--red);color:#e74c3c;background:rgba(192,57,43,.1); }
.event-status.past { border-color:var(--text-muted);color:var(--text-muted); }
.event-participants { margin-left:auto;font-family:'Share Tech Mono',monospace;font-size:11px;color:var(--text-muted); }

/* ── GALLERY ── */
.gallery-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }
.gallery-item { aspect-ratio:4/3;overflow:hidden;cursor:pointer;position:relative;transition:.2s;border:1px solid var(--border);border-radius:var(--radius); }
.gallery-item:hover { border-color:var(--olive-bright); }
.gallery-item img { width:100%;height:100%;object-fit:cover;filter:saturate(.7)brightness(.85);transition:filter .2s; }
.gallery-item:hover img { filter:saturate(.95)brightness(1); }
.gallery-overlay { position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 60%);opacity:0;transition:opacity .2s;padding:10px;display:flex;align-items:flex-end; }
.gallery-item:hover .gallery-overlay { opacity:1; }
.gallery-overlay-text { font-size:11px;font-family:'Share Tech Mono',monospace;color:var(--text-primary); }

/* ── MEMBERS ── */
.member-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:12px; }
.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  display: block;
}
.member-card:hover { border-color: var(--border-bright); background: var(--bg-hover); transform: translateY(-2px); }
.member-card::before { content:''; position:absolute; top:0;left:0;right:0; height:2px; }
.member-card.lvl4::before { background: #c0392b; }
.member-card.lvl3::before { background: #d4860a; }
.member-card.lvl2::before { background: #4a90d9; }
.member-card.lvl1::before { background: #6b8c3a; }
.member-avatar { width:50px;height:50px;margin:0 auto 10px;border-radius:50%;display:flex;align-items:center;justify-content:center; }
.member-avatar img { width:50px;height:50px;object-fit:cover;border-radius:50%;border:2px solid var(--border); }
.member-avatar-initials { width:50px;height:50px;background:var(--bg-raised);border:2px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Rajdhani',sans-serif;font-weight:700;font-size:18px;color:var(--green); }
.member-name { font-size:14px;font-weight:700;margin-bottom:3px; }
.member-callsign { font-family:'Share Tech Mono',monospace;font-size:11px;color:var(--text-muted);margin-bottom:8px; }
.member-stats { display:flex;justify-content:center;gap:14px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border); }
.member-stat-num { font-family:'Rajdhani',sans-serif;font-size:15px;font-weight:700;color:var(--text-secondary);line-height:1; }
.member-stat-label { font-family:'Share Tech Mono',monospace;font-size:9px;color:var(--text-muted); }

/* ── ADMIN ── */
.admin-table { width:100%;border-collapse:collapse; }
.admin-table th { font-family:'Share Tech Mono',monospace;font-size:10px;color:var(--text-muted);letter-spacing:1.5px;text-transform:uppercase;padding:8px 12px;border-bottom:2px solid var(--border);text-align:left; }
.admin-table td { padding:10px 12px;border-bottom:1px solid var(--border);font-size:13px;vertical-align:middle; }
.admin-table tr:hover td { background: var(--bg-hover); }

/* ── PAGINATION ── */
.pagination { display:flex;gap:4px;align-items:center;margin-top:20px; }
.page-link { padding:6px 12px;background:var(--bg-card);border:1px solid var(--border);color:var(--text-secondary);font-family:'Share Tech Mono',monospace;font-size:12px;cursor:pointer;transition:.15s;border-radius:var(--radius);text-decoration:none; }
.page-link:hover,.page-link.active { border-color:var(--olive-bright);color:var(--green); }

/* ── FILTER BAR ── */
.filter-bar { display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap;align-items:center; }
.filter-btn { padding:5px 12px;border:1px solid var(--border);background:none;color:var(--text-secondary);font-family:'Rajdhani',sans-serif;font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase;cursor:pointer;transition:.15s;border-radius:var(--radius);text-decoration:none; }
.filter-btn:hover,.filter-btn.active { border-color:var(--olive-bright);color:var(--green);background:rgba(107,140,58,.08); }

/* ── SECTION DIVIDER ── */
.section-divider { display:flex;align-items:center;gap:10px;margin:16px 0 12px; }
.section-divider span { font-family:'Share Tech Mono',monospace;font-size:10px;color:var(--text-muted);letter-spacing:2px;text-transform:uppercase;white-space:nowrap; }
.section-divider::before,.section-divider::after { content:'';flex:1;height:1px;background:var(--border); }

/* ── LOGIN PAGE ── */
.ak-signin-page {
  min-height: 100vh;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}
.ak-signin-bg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}
.ak-signin-bg img {
  height: 100%;
  width: auto;
  opacity: .08;
  filter: grayscale(100%);
  object-fit: cover;
}
.ak-signin-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  margin: 16px;
  padding: 16px 0;
}
.ak-signin-logo { text-align:center;margin-bottom:14px; }
.ak-signin-logo img { width:56px;height:56px;border-radius:50%;margin:0 auto 8px;border:2px solid var(--olive); }
.ak-signin-logo h1 { font-family:'Rajdhani',sans-serif;font-size:20px;font-weight:700;letter-spacing:2px;text-transform:uppercase; }
.ak-signin-logo p { font-family:'Share Tech Mono',monospace;font-size:10px;color:var(--text-muted);letter-spacing:2px; }
.ak-signin-box { background:var(--bg-card);border:1px solid var(--border);padding:20px; }
.login-title { font-family:'Rajdhani',sans-serif;font-size:18px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:20px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:var(--bg-base); }
::-webkit-scrollbar-thumb { background:var(--border-bright); border-radius:2px; }
::-webkit-scrollbar-thumb:hover { background:var(--olive); }

/* ── RESPONSIVE ── */
@media (max-width:1100px) {
  .layout { grid-template-columns: 200px 1fr; }
  .right-panel { display: none; }
}
@media (max-width:760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .member-grid { grid-template-columns: 1fr 1fr; }
  .forum-categories { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.fade-in { animation: fadeIn .3s ease forwards; }

/* Tac corner decoration */
.tac-corner { position:relative; }
.tac-corner::before,.tac-corner::after { content:'';position:absolute;width:8px;height:8px;border-color:var(--olive-bright);border-style:solid; }
.tac-corner::before { top:0;left:0;border-width:1px 0 0 1px; }
.tac-corner::after  { bottom:0;right:0;border-width:0 1px 1px 0; }

/* ── ACCESS DENIED POPUP ── */
.ak-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 900;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  animation: fadeIn .15s ease;
}
.ak-overlay.open { display: flex; }

.ak-popup {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-top: 3px solid var(--red);
  padding: 28px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popIn .2s ease;
}

@keyframes popIn {
  from { opacity:0; transform:scale(.92) translateY(-10px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

.ak-popup-icon { font-size: 36px; margin-bottom: 12px; }
.ak-popup-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.ak-popup-msg {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.ak-popup-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color .15s;
}
.ak-popup-close:hover { color: var(--text-primary); }

/* ── LIKE / DISLIKE BUTTONS ── */
.vote-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
  border-radius: var(--radius);
  user-select: none;
}

.vote-btn:hover { border-color: var(--border-bright); color: var(--text-secondary); }

.vote-btn.liked {
  border-color: var(--olive-bright);
  color: var(--green);
  background: rgba(107,140,58,.1);
}
.vote-btn.disliked {
  border-color: rgba(192,57,43,.5);
  color: var(--red);
  background: rgba(192,57,43,.08);
}

.vote-btn .vote-icon { font-size: 13px; }
.vote-btn .vote-count { min-width: 14px; text-align: center; }

/* Inline vote bar galériában */
.gallery-vote-bar {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-item:hover .gallery-vote-bar { opacity: 1; }
.gallery-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: rgba(7,8,10,.85);
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all .15s;
  border-radius: var(--radius);
}
.gallery-vote-btn:hover { border-color: var(--olive-bright); color: var(--green); }
.gallery-vote-btn.liked { color: var(--green); border-color: var(--olive-bright); }
.gallery-vote-btn.disliked { color: var(--red); border-color: rgba(192,57,43,.5); }

/* Comments toggle switch */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.toggle-track {
  width: 36px; height: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  transition: background .2s, border-color .2s;
}
.toggle-track.on { background: var(--olive); border-color: var(--olive-bright); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 12px; height: 12px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.toggle-track.on .toggle-thumb { transform: translateX(16px); background: var(--green-glow); }

/* ═══════════════════════════════════════════
   MOBIL — teljes átírás, no horizontal scroll
═══════════════════════════════════════════ */

/* Global no overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Minden elem box-sizing és max-width */
img, video, iframe, table { max-width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-all; }

/* Hamburger gomb */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 56px;
  height: 56px;
  transition: .2s;
  flex-shrink: 0;
}
.mobile-menu-btn:hover { border-color: var(--olive-bright); color: var(--green); }

/* Mobil alsó navigáció */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 56px;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  transition: .15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--green); }
.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 2px;
  background: var(--olive-bright);
}
.mobile-nav-icon { font-size: 22px; line-height: 1; }
.mobile-nav-badge {
  position: absolute;
  top: 5px; right: calc(50% - 20px);
  background: var(--red);
  color: #fff;
  font-size: 9px;
  min-width: 15px; height: 15px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 72px; right: 12px;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  width: min(340px, calc(100vw - 24px));
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-left: 4px solid var(--olive-bright);
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
  animation: toastIn .22s ease;
  position: relative;
  overflow: hidden;
}
.toast.toast-error   { border-left-color: var(--red); }
.toast.toast-warning { border-left-color: var(--amber-glow); }
.toast.toast-info    { border-left-color: var(--blue); }
@keyframes toastIn  { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }
@keyframes toastOut { to{opacity:0;transform:translateX(20px);height:0;padding:0;margin:0} }
.toast-icon  { font-size:18px; flex-shrink:0; line-height:1.4; }
.toast-body  { flex:1; min-width:0; }
.toast-title { font-size:13px; font-weight:700; color:var(--text-primary); margin-bottom:2px; }
.toast-msg   { font-size:12px; color:var(--text-secondary); line-height:1.5; word-break:break-word; }
.toast-close { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:15px; padding:0; line-height:1; flex-shrink:0; }
.toast-close:hover { color:var(--text-primary); }
.toast-progress { position:absolute; bottom:0; left:0; height:2px; background:var(--olive-bright); transition:width linear; }
.toast.toast-error .toast-progress   { background:var(--red); }
.toast.toast-warning .toast-progress { background:var(--amber-glow); }

/* ── CONFIRM MODAL ── */
.confirm-modal-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.75); z-index:8000;
  align-items:center; justify-content:center;
  padding:16px; backdrop-filter:blur(3px);
}
.confirm-modal-overlay.open { display:flex; animation:fadeIn .15s ease; }
.confirm-modal {
  background:var(--bg-card);
  border:1px solid var(--border-bright);
  border-top:3px solid var(--amber-glow);
  padding:22px; max-width:360px; width:100%;
  animation:popIn .18s ease;
}
.confirm-modal-title { font-family:'Rajdhani',sans-serif; font-size:17px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:8px; }
.confirm-modal-msg   { font-size:13px; color:var(--text-secondary); margin-bottom:18px; line-height:1.6; }
.confirm-modal-btns  { display:flex; gap:10px; justify-content:flex-end; }

/* ── MSG badge ── */
.msg-topbar-badge {
  position:absolute; top:-4px; right:-4px;
  background:var(--green); color:#000;
  font-size:9px; font-weight:700;
  min-width:16px; height:16px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  padding:0 3px; font-family:'Rajdhani',sans-serif;
}

/* ── PWA banner ── */
.pwa-banner {
  display:none; position:fixed;
  bottom:0; left:0; right:0;
  background:var(--bg-base);
  border-top:2px solid var(--olive-bright);
  padding:12px 14px; z-index:500;
  align-items:center; gap:10px;
}
.pwa-banner.show { display:flex; }
.pwa-banner-text { flex:1; font-size:13px; }
.pwa-banner-text strong { display:block; color:var(--green); margin-bottom:2px; }

/* ── PUSH BANNER ── */
.push-banner {
  background:rgba(107,140,58,.08);
  border:1px solid rgba(107,140,58,.3);
  padding:12px 16px;
  display:flex; align-items:center; gap:12px;
  margin-bottom:16px;
}
.push-banner-text { flex:1; font-size:13px; color:var(--text-secondary); }
.push-banner-text strong { color:var(--text-primary); display:block; margin-bottom:2px; }

/* ═══════════════
   BREAKPOINTS
═══════════════ */

/* Tablet */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 200px 1fr; }
  .right-panel { display: none; }
}

/* Mobil */
@media (max-width: 760px) {

  /* ── Layout ── */
  .layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .topbar { position: sticky; top: 0; z-index: 200; flex-shrink: 0; }
  .sidebar {
    display: none;
    position: fixed;
    top: 56px; left: 0; bottom: 56px;
    width: min(280px, 85vw);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .sidebar.open {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.6);
  }
  .main-content {
    flex: 1;
    padding: 10px;
    padding-top: 18px;
    padding-bottom: 66px;
    overflow-x: hidden;
    min-width: 0;
  }

  /* ── Topbar ── */
  .topbar { padding: 0 8px; gap: 8px; height: 56px; justify-content: space-between; }
  /* Kereső elrejtése mobilon — bottom nav Search gomb helyett */
  .topbar-search { display: none !important; }
  .topbar-event { display: none !important; }
  /* Csak értesítés + üzenet + profil ikon marad */
  .topbar-right { gap: 6px; flex-shrink: 0; }
  .topbar-btn { padding: 6px 8px; font-size: 16px; }
  .user-chip-name { display: none; }
  .user-chip > div > .rank-badge { display: none; }
  .user-chip { padding: 4px 8px 4px 4px; }
  .logo-text span { display: none; }
  .logo-text { font-size: 14px; letter-spacing: 1px; }
  .logo-img { width: 34px; height: 34px; }
  .mobile-menu-btn { display: flex; align-items: center; order: -1; }
  .mobile-bottom-nav { display: block; }

  /* ── Tartalom ── */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
  .stat-card { padding: 10px 10px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 8px; }

  /* Fórum */
  .forum-categories { grid-template-columns: 1fr; gap: 8px; }
  .thread-item { padding: 10px 10px; }
  .thread-stats { display: none; }
  .thread-title { font-size: 13px; white-space: normal; }

  /* Galéria */
  .gallery-grid { grid-template-columns: repeat(2,1fr); gap: 6px; }
  .gallery-vote-bar { opacity: 1; } /* mindig látszik mobilon */

  /* Tagok */
  .member-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .member-card { padding: 12px 8px; }
  .member-avatar img, .member-avatar-initials { width: 40px; height: 40px; }

  /* Formok */
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
  .page-header { gap: 8px; flex-wrap: wrap; padding-bottom: 10px; }
  .page-title h1 { font-size: 20px; }
  .page-actions { margin-left: 0; width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }

  /* Filter */
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  /* Kártyák */
  .card-body { padding: 12px; }
  .card-header { padding: 10px 12px; }
  .card-footer { padding: 8px 12px; }

  /* Modálok — alulról jönnek fel mobilon */
  .edit-modal-overlay { padding: 0; align-items: flex-end; }
  .edit-modal { border-radius: 0; max-height: 90vh; overflow-y: auto; }
  .equip-modal-overlay { padding: 0; align-items: flex-end; }
  .equip-modal { border-radius: 0; }
  .fps-joule-popup { padding: 0; align-items: flex-end; }
  .fps-joule-box { width: 100%; border-radius: 0; max-height: 80vh; overflow-y: auto; }

  /* Események */
  .event-card .event-body { flex-direction: column; gap: 10px; }
  .events-layout { grid-template-columns: 1fr; }

  /* Profil */
  .rules-page { max-width: 100%; }

  /* Admin tábla */
  .admin-table { font-size: 12px; }
  .admin-table td, .admin-table th { padding: 7px 8px; }

  /* Toast */
  .toast-container { bottom: 66px; left: 10px; right: 10px; width: auto; max-width: none; }

  /* Üzenetek */
  /* msg-layout: handled in messages.php */

  /* Section divider */
  .section-divider span { font-size: 9px; }
}

/* Profile grid: mindig 1 oszlop mobilon */
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr !important; }
  /* Mobil keresés — search ikon a bottom navban */
  .mobile-search-bar {
    display: flex !important;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-base);
    margin-bottom: 16px;
  }
  .mobile-search-bar input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    outline: none;
  }
  .mobile-search-bar button {
    background: var(--olive);
    border: 1px solid var(--olive-bright);
    color: var(--green-glow);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .logo { flex: 1; }
}

/* ═══════════════════════════════════════════
   OLDAL SPECIFIKUS RESZPONZÍV JAVÍTÁSOK
═══════════════════════════════════════════ */

/* Beállítások oldal - 2 oszlop desktop, 1 oszlop mobil */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-side-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* Esemény részletek - 2 oszlop desktop, 1 oszlop mobil */
.event-show-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* Üzenetek - max szélesség asztali nézetben */
.msg-layout {
  max-width: 1100px;
  margin: 0 auto;
}

/* Asztali nézeten max-width a main content-re */
.main-content {
  max-width: 1400px;
}

@media (max-width: 760px) {
  /* Beállítások: 1 oszlop */
  .settings-grid { grid-template-columns: 1fr !important; }
  .settings-side-grid { grid-template-columns: 1fr !important; }

  /* Esemény részletek: 1 oszlop */
  .event-show-grid { grid-template-columns: 1fr !important; }

  /* Üzenetek: teljes magasság mobilon */
  .msg-layout {
    grid-template-columns: 1fr;
    height: calc(100dvh - 56px - 56px);
    max-width: none;
  }
  /* Mobilon a szálak lista kisebb */
  .msg-sidebar { max-height: 40vh; }
}

@media (max-width: 480px) {
  /* Kis képernyőn az event FPS/Joule sor is 1 oszlop */
  .event-show-grid > div:first-child > .card > .card-body {
    padding: 10px;
  }
}

/* ── ADMIN IKON GOMBOK ── */
.ak-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  flex-shrink: 0;
}
.ak-btn-icon:hover { border-color: var(--border-bright); background: var(--bg-hover); }
.ak-btn-red        { border-color: var(--red)22; }
.ak-btn-red:hover  { border-color: var(--red); background: rgba(192,57,43,.12); }
.ak-btn-green      { border-color: var(--green)22; }
.ak-btn-green:hover{ border-color: var(--green); background: rgba(107,140,58,.12); }
.ak-btn-amber      { border-color: var(--amber-glow)22; }
.ak-btn-amber:hover{ border-color: var(--amber-glow); background: rgba(212,150,10,.12); }
.ak-btn-red-solid        { background: rgba(192,57,43,.18); border-color: var(--red)66; }
.ak-btn-red-solid:hover  { background: rgba(192,57,43,.35); border-color: var(--red); }

/* ── FORUM CSATOLMÁNYOK ── */
.forum-attachments { display:flex;flex-wrap:wrap;gap:8px;padding:8px 14px 12px;border-top:1px solid var(--border); }
.forum-attach-img { display:block;width:130px;height:95px;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);transition:.15s;flex-shrink:0; }
.forum-attach-img:hover { border-color:var(--olive-bright);transform:translateY(-1px); }
.forum-attach-img img { width:100%;height:100%;object-fit:cover;filter:saturate(.8);transition:.2s; }
.forum-attach-img:hover img { filter:saturate(1); }
.forum-attach-file { display:inline-flex;align-items:center;gap:8px;padding:6px 12px;background:var(--bg-raised);border:1px solid var(--border);text-decoration:none;color:var(--text-primary);font-size:12px;border-radius:var(--radius);transition:.15s; }
.forum-attach-file:hover { border-color:var(--olive-bright);color:var(--olive-bright); }