﻿:root{
  --accent:#FFEFD5;
  --bg:#1c1c1c;
  --card:#2b2b2b;
  --pill:#2a2a2a;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  font-family:'Segoe UI',system-ui,-apple-system,Arial,sans-serif;
  background:var(--bg);
  color:#fff;
  overflow-x:hidden;
  scroll-behavior:smooth;
}

/* HEADER */
.forum-header{
  position:fixed;
  inset:0 0 auto 0;
  height:86px;
  z-index:1000;
}

.forum-logo{
  position:fixed;
  top:12px;
  left:16px;
  z-index:1400;
}

.forum-logo img{
  width:64px;
  height:auto;
  display:block;
}

.logo-black{display:none}
body.menu-open .logo-white{display:none}
body.menu-open .logo-black{display:block}

/* HAMBURGER */
.forum-menu-btn{
  position:fixed;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  width:48px;
  height:42px;
  border:0;
  background:transparent;
  cursor:pointer;
  z-index:1500;
  padding:0;
}

.forum-menu-btn span{
  display:block;
  width:34px;
  height:4px;
  margin:6px auto;
  border-radius:4px;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.35);
  transition:.22s ease;
}

.forum-menu-btn.active span:nth-child(1){
  transform:translateY(10px) rotate(45deg);
  background:#000;
}
.forum-menu-btn.active span:nth-child(2){
  opacity:0;
}
.forum-menu-btn.active span:nth-child(3){
  transform:translateY(-10px) rotate(-45deg);
  background:#000;
}

/* OVERLAY MENU */
.forum-menu{
  position:fixed;
  inset:0;
  z-index:1300;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;
  transform:scaleY(0);
  transform-origin:top;
  transition:transform .24s ease;
}

.forum-menu.show{
  transform:scaleY(1);
}

.forum-menu a{
  color:#000;
  text-decoration:none;
  font-size:22px;
  font-weight:700;
  letter-spacing:.8px;
  line-height:2.1;
}

.forum-menu a:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

/* RIGHT TOP */
.auth-pills{
  position:fixed;
  top:18px;
  right:18px;
  z-index:1450;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

.auth-pills a{
  height:50px;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(42,42,42,.96);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:15px;
  white-space:nowrap;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  transition:transform .22s ease;
}

.auth-pills .register{
  background:var(--accent);
  color:#000;
}

.auth-pills a:hover{
  transform:scale(1.06);
}

/* nyelvvĂˇltĂł kapszula */
.lang-switch-wrap{
  width:92px;
  height:50px;
  padding:0 7px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  border-radius:999px;
  background:rgba(70,70,70,.65);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 12px 30px rgba(0,0,0,.22);
  flex:0 0 auto;
}

.lang-toggle{
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  background:#242424;
  color:#fff;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
  transition:transform .22s ease;
}

.lang-toggle:hover{
  transform:scale(1.08);
}

body.menu-open .auth-pills{
  opacity:0;
  pointer-events:none;
}

/* FORUM INDEX */
#news{
  min-height:100vh;
  padding:135px 20px 64px;
  background:var(--bg);
}

#news h2{
  text-align:center;
  margin:0 0 30px;
  font-size:clamp(42px,5.2vw,68px);
  letter-spacing:1.5px;
}

.news-filter{
  max-width:920px;
  margin:0 auto 38px;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.chip{
  border:0;
  border-radius:999px;
  background:var(--pill);
  color:#fff;
  padding:9px 16px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}

.chip:hover{
  transform:translateY(-1px);
}

.chip.active{
  background:var(--accent);
  color:#000;
}

.news-grid{
  max-width:1100px;
  margin:0 auto;
  padding:0 10px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.news-card{
  display:flex;
  flex-direction:column;
  background:var(--card);
  border-radius:18px;
  overflow:hidden;
  color:#fff;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.24);
  transition:.22s ease;
}

.news-card:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 34px rgba(0,0,0,.30);
}

.news-card.hidden{
  display:none !important;
}

.news-thumb{
  width:100%;
  aspect-ratio:16/9;
  background-size:cover;
  background-position:center;
}

.news-body{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.news-body h3{
  margin:0;
  font-size:1.18rem;
}

.news-date{
  color:#bbb;
  font-size:.94rem;
}

.news-body p{
  margin:0;
  flex:1;
  color:#f0f0f0;
  line-height:1.45;
}

.news-read{
  align-self:flex-start;
  margin-top:4px;
  padding:10px 16px;
  border:0;
  border-radius:999px;
  background:var(--accent);
  color:#000;
  font-weight:900;
  cursor:pointer;
}

/* BUTTONS */
.load-more,
.back-home{
  display:block;
  width:min(320px,90%);
  margin:26px auto 0;
  padding:15px 18px;
  border:0;
  border-radius:999px;
  text-align:center;
  font-weight:900;
  transition:transform .22s ease;
}

.load-more{
  background:var(--pill);
  color:#fff;
  cursor:pointer;
}

.back-home{
  background:var(--accent);
  color:#000;
  text-decoration:none;
  cursor:pointer;
}

.load-more:hover,
.back-home:hover{
  transform:scale(1.04);
}

/* AUTH PAGES */
.auth-logo{
  position:fixed;
  top:12px;
  left:16px;
  z-index:100;
}

.auth-logo img{
  width:64px;
  display:block;
}

.auth-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:110px 20px 50px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,239,213,.10), transparent 35%),
    var(--bg);
}

.auth-card{
  width:min(460px,100%);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-radius:22px;
  padding:32px;
  box-shadow:0 18px 45px rgba(0,0,0,.35);
}

.auth-badge{
  display:inline-flex;
  background:var(--accent);
  color:#000;
  padding:8px 13px;
  border-radius:999px;
  font-weight:900;
  font-size:.78rem;
  letter-spacing:.8px;
}

.auth-card h1{
  margin:18px 0 8px;
  font-size:clamp(32px,5vw,46px);
}

.auth-subtitle{
  margin:0 0 24px;
  color:#ddd;
  line-height:1.5;
}

.auth-card form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.auth-card label{
  font-weight:800;
  margin-top:6px;
}

.auth-card input{
  width:100%;
  border:0;
  outline:0;
  border-radius:14px;
  padding:14px 15px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:1rem;
}

.auth-card input:focus{
  box-shadow:0 0 0 2px var(--accent);
}

.auth-submit{
  margin-top:12px;
  border:0;
  border-radius:999px;
  padding:14px 18px;
  background:var(--accent);
  color:#000;
  font-weight:900;
  cursor:pointer;
  transition:transform .22s ease;
}

.auth-submit:hover{
  transform:scale(1.04);
}

.auth-links{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.auth-links a{
  color:var(--accent);
  font-weight:800;
  text-decoration:none;
}

.auth-links a:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

.auth-error{
  background:rgba(255,80,80,.14);
  border:1px solid rgba(255,80,80,.35);
  color:#ffdede;
  padding:12px 14px;
  border-radius:14px;
  margin:0 0 18px;
  font-weight:700;
}

/* FOOTER */
.site-footer{
  background:#111;
  color:#fff;
  text-align:center;
  padding:28px 20px;
  border-top:1px solid rgba(255,255,255,.1);
}

.site-footer a{
  color:var(--accent);
  text-decoration:none;
  font-weight:800;
}

/* RESPONSIVE */
@media(max-width:1024px){
  .news-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .auth-pills{
    top:14px;
    right:12px;
    gap:7px;
  }

  .auth-pills a{
    height:42px;
    padding:0 12px;
    font-size:.78rem;
  }

  .lang-switch-wrap{
    width:76px;
    height:42px;
    padding:0 5px;
  }

  .lang-toggle{
    width:36px;
    height:36px;
    font-size:.8rem;
  }

  .forum-logo img,
  .auth-logo img{
    width:56px;
  }

  #news{
    padding-top:135px;
  }
}

@media(max-width:620px){
  .news-grid{
    grid-template-columns:1fr;
  }

  .news-filter{
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:6px;
  }

  .chip{
    white-space:nowrap;
  }

  .auth-card{
    padding:24px 20px;
  }
}

.forum-logo .logo-black{
  display:none !important;
}

body.menu-open .forum-logo .logo-white{
  display:none !important;
}

body.menu-open .forum-logo .logo-black{
  display:block !important;
}

/* LAP TETEJĂ‰RE GOMB */

.scroll-top-btn{
  position:fixed;
  right:22px;
  bottom:22px;

  width:58px;
  height:58px;

  border:none;
  border-radius:999px;

  background:#FFEFD5;
  color:#000;

  font-size:28px;
  font-weight:900;

  cursor:pointer;
  z-index:2000;

  opacity:0;
  visibility:hidden;
  transform:translateY(18px);

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease,
    scale .2s ease;

  box-shadow:
    0 12px 30px rgba(0,0,0,.25);
}

.scroll-top-btn.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.scroll-top-btn:hover{
  scale:1.08;
}

@media(max-width:768px){
  .scroll-top-btn{
    width:52px;
    height:52px;
    right:16px;
    bottom:16px;
    font-size:24px;
  }
}

/* ADMIN CREATE TOPIC */

.admin-create-page{
  padding-top:135px;
}

.topic-form{
  margin:0 auto;
  width:min(760px,100%);
}

.topic-form select,
.topic-form textarea{
  width:100%;
  border:0;
  outline:0;
  border-radius:14px;
  padding:14px 15px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:1rem;
  font-family:inherit;
}

.topic-form select:focus,
.topic-form textarea:focus{
  box-shadow:0 0 0 2px var(--accent);
}

.topic-form option{
  background:#1c1c1c;
  color:#fff;
}

.form-checks{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:10px;
}

.form-checks label{
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.08);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
}

.form-checks input{
  width:auto;
}

/* CREATE TOPIC FINOMĂŤTĂS */

.admin-status{
  height:42px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,239,213,.16);
  color:var(--accent);
  font-weight:900;
  font-size:.9rem;
  border:1px solid rgba(255,239,213,.25);
  pointer-events:none;
}

.admin-create-page{
  padding-top:120px;
}

.admin-create-page h2{
  margin-bottom:20px !important;
}

.admin-create-page .category-subtitle{
  text-align:center;
  margin:0 auto 28px;
  color:#ddd;
}

.topic-form{
  background:rgba(255,255,255,.075);
  border-radius:24px;
  padding:34px;
  box-shadow:0 20px 50px rgba(0,0,0,.28);
}

.topic-form label{
  margin-top:12px;
  margin-bottom:4px;
}

.topic-form input[type="text"],
.topic-form select,
.topic-form textarea{
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.06);
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.topic-form input[type="text"]:focus,
.topic-form select:focus,
.topic-form textarea:focus{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,239,213,.45);
  box-shadow:0 0 0 3px rgba(255,239,213,.12);
}

.topic-form textarea{
  resize:vertical;
  min-height:210px;
}

.form-checks{
  margin:18px 0 4px;
}

.form-checks label{
  margin:0;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.06);
  transition:transform .2s ease, background .2s ease;
}

.form-checks label:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.10);
}

.form-checks input{
  accent-color:#FFEFD5;
}

.topic-form .auth-submit{
  width:auto;
  align-self:flex-start;
  padding:14px 24px;
}

.topic-form .auth-links{
  margin-top:20px;
}

/* CREATE TOPIC â€“ gombok kĂ¶zĂ©pre */

.topic-form .form-checks{
  justify-content:center;
}

.topic-form .auth-submit{
  display:block;
  margin:24px auto 0;
  align-self:center;
}

.topic-form .auth-links{
  justify-content:center;
  text-align:center;
}

.topic-form .auth-links a{
  display:inline-flex;
  justify-content:center;
}

/* DELETE TOPIC */

.danger-note{
  color:#ffdede;
  background:rgba(255,80,80,.10);
  border:1px solid rgba(255,80,80,.24);
  border-radius:16px;
  padding:14px 16px;
  line-height:1.45;
  text-align:center;
}

.danger-btn{
  background:#ff6b6b !important;
  color:#000 !important;
}

.auth-success{
  background:rgba(80,255,150,.12);
  border:1px solid rgba(80,255,150,.28);
  color:#d9ffe9;
  padding:12px 14px;
  border-radius:14px;
  margin:0 0 18px;
  font-weight:700;
}


@media(max-width:1024px){
  .desktop-only{
    display:none !important;
  }

  .forum-header{
    height:120px;
  }

  .auth-pills{
    top:72px;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:auto;
    max-width:92vw;
    flex-wrap:nowrap;
    justify-content:center;
  }

  #news{
    padding-top:175px;
  }
}

@media(max-width:620px){
  .auth-pills a,
  .admin-status{
    height:38px;
    padding:0 13px;
    font-size:.78rem;
  }

  .lang-switch-wrap{
    height:38px;
    width:66px;
    min-width:66px;
  }

  .lang-toggle{
    width:32px;
    height:32px;
    font-size:.75rem;
  }

  #news{
    padding-top:185px;
  }
}

/* MOBILE HEADER FIX */

@media (max-width:768px){

  .forum-header{
    height:170px;
    padding:18px 16px 0;
  }

  .forum-logo{
    position:absolute;
    top:20px;
    left:18px;
    z-index:10;
  }

  .forum-logo img{
    width:52px;
  }

  .forum-menu-btn{
    position:absolute;
    top:24px;
    left:50%;
    transform:translateX(-50%);
    z-index:10;
  }

  .auth-pills{
    position:absolute;
    top:82px;
    left:50%;
    transform:translateX(-50%);
    width:calc(100% - 32px);

    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:nowrap;
  }

  .auth-pills a,
  .admin-status{
    height:48px;
    padding:0 18px;
    border-radius:999px;
    font-size:.95rem;
    white-space:nowrap;
  }

  .lang-switch-wrap{
    width:72px;
    min-width:72px;
    height:48px;
  }

  .lang-toggle{
    width:40px;
    height:40px;
  }

  #news{
    padding-top:205px;
  }
}

.forum-header{
  transition:transform .28s ease, opacity .28s ease;
}

.forum-header.header-hidden{
  transform:translateY(-120%);
  opacity:0;
  pointer-events:none;
}

/* TOPIC PAGE */

.topic-page{
  padding-top:135px;
}

.topic-shell{
  max-width:980px;
  margin:0 auto;
  background:rgba(255,255,255,.075);
  border-radius:26px;
  padding:36px;
  box-shadow:0 20px 50px rgba(0,0,0,.28);
}

.topic-category{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  background:var(--accent);
  color:#000;
  font-weight:900;
  margin-bottom:18px;
}

.topic-shell h2{
  text-align:left !important;
  margin:0 0 14px !important;
  font-size:clamp(34px,5vw,58px) !important;
}

.topic-info{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:26px;
  color:#ddd;
}

.topic-info span{
  background:rgba(255,255,255,.08);
  border-radius:999px;
  padding:8px 12px;
}

.topic-content{
  background:rgba(0,0,0,.16);
  border-radius:22px;
  padding:26px;
  color:#f1f1f1;
  line-height:1.65;
  font-size:1.05rem;
}

.topic-actions{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}

@media(max-width:700px){
  .topic-shell{
    padding:24px 18px;
  }

  .topic-content{
    padding:20px;
  }
}

/* CATEGORY PAGE */

.category-page{
  padding-top:135px;
}

.category-page .topic-category{
  margin:0 auto 18px;
  display:flex;
  width:max-content;
}

.category-page h2{
  text-align:center;
}

.category-subtitle{
  text-align:center;
  color:#ddd;
  margin:-12px auto 28px;
  max-width:720px;
  font-size:1.05rem;
}

.category-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:34px;
}

.topic-list{
  max-width:980px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.topic-row{
  background:var(--card);
  border-radius:18px;
  padding:20px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.22);
  transition:.22s ease;
}

.topic-row:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(0,0,0,.28);
}

.topic-main h3{
  margin:0 0 8px;
  font-size:1.25rem;
}

.topic-main p{
  margin:0;
  color:#ddd;
  line-height:1.45;
}

.topic-meta{
  min-width:155px;
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#ccc;
  font-size:.9rem;
  text-align:right;
}

.topic-edit-link{
  color:#000;
  background:var(--accent);
  text-decoration:none;
  font-weight:900;
  border-radius:999px;
  padding:8px 12px;
  text-align:center;
}

.pin{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  margin-right:6px;
  border-radius:999px;
  background:var(--accent);
  color:#000;
  font-weight:900;
  font-size:.78rem;
}

.empty-card{
  background:var(--card);
  border-radius:18px;
  padding:32px;
  text-align:center;
  color:#ddd;
}

.empty-card h3{
  margin:0 0 8px;
  color:#fff;
}

@media(max-width:700px){
  .topic-row{
    grid-template-columns:1fr;
  }

  .topic-meta{
    text-align:left;
  }
}

.topic-admin-bar{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:24px 0 6px;
}

.topic-admin-bar a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(255,255,255,.09);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  transition:.2s ease;
}

.topic-admin-bar a:first-child,
.topic-admin-bar a:nth-child(2){
  background:var(--accent);
  color:#000;
}

.topic-admin-bar a:hover{
  transform:scale(1.05);
}

/* CATEGORY ADMIN BUTTONS */

.topic-admin-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.topic-edit-link,
.topic-delete-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  transition:.2s ease;
}

.topic-edit-link{
  background:var(--accent);
  color:#000;
}

.topic-delete-link{
  background:rgba(255,80,80,.18);
  color:#ffbcbc;
  border:1px solid rgba(255,80,80,.28);
}

.topic-edit-link:hover,
.topic-delete-link:hover{
  transform:scale(1.05);
}

@media(max-width:700px){
  .topic-admin-actions{
    justify-content:flex-start;
  }
}

.forum-menu a.menu-danger{
  color:#ff4d4d;
}

.forum-menu a.menu-danger:hover{
  color:#c90000;
}

/* COMMENT FORM FIX */

.comment-form{
  margin:26px auto 0;
  max-width:760px;
  background:rgba(255,255,255,.07);
  border-radius:22px;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.comment-form label{
  font-weight:900;
  font-size:1.05rem;
}

.comment-form textarea{
  width:100%;
  min-height:150px;
  border:1px solid rgba(255,255,255,.08);
  outline:0;
  border-radius:18px;
  padding:16px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-family:inherit;
  font-size:1rem;
  line-height:1.5;
  resize:vertical;
}

.comment-form textarea::placeholder{
  color:rgba(255,255,255,.45);
}

.comment-form textarea:focus{
  background:rgba(255,255,255,.13);
  border-color:rgba(255,239,213,.45);
  box-shadow:0 0 0 3px rgba(255,239,213,.12);
}

.comment-submit{
  align-self:center;
  border:0;
  border-radius:999px;
  padding:14px 26px;
  background:var(--accent);
  color:#000;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.comment-submit:hover{
  transform:scale(1.05);
}

.topic-open-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  background:rgba(255,255,255,.08);
  color:#fff;
  transition:.2s ease;
}

.topic-open-link:hover{
  transform:scale(1.05);
}

/* ORYN ORIGINAL-LIKE HEADER FIX */

@media(max-width:900px){

  .forum-header{
    position:fixed !important;
    top:0;
    left:0;
    right:0;
    height:92px !important;
    padding:0 !important;
    background:transparent !important;
    z-index:3000;
    transition:transform .28s ease, opacity .28s ease;
  }

  .forum-logo{
    position:fixed !important;
    top:22px !important;
    left:18px !important;
    z-index:3200;
  }

  .forum-logo img{
    width:54px !important;
  }

  .forum-menu-btn{
    position:fixed !important;
    top:26px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    z-index:3300;
  }

  .auth-pills{
    position:fixed !important;
    top:22px !important;
    right:16px !important;
    left:auto !important;
    transform:none !important;
    width:auto !important;
    margin:0 !important;
    max-width:none !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:0 !important;
  }

  .auth-pills > a,
  .auth-pills .admin-status{
    display:none !important;
  }

  .lang-switch-wrap{
    display:flex !important;
    width:78px !important;
    min-width:78px !important;
    height:46px !important;
  }

  .lang-toggle{
    width:38px !important;
    height:38px !important;
  }

  #news{
    padding-top:160px !important;
  }

  .category-page,
  .topic-page,
  .admin-create-page{
    padding-top:160px !important;
  }

  .category-page .topic-category{
    margin-top:0 !important;
  }

  body.menu-open .auth-pills{
    opacity:0 !important;
    pointer-events:none !important;
  }
}

/* FILTER + CATEGORY RESPONSIVE FIX */

@media(max-width:900px){

  /* szĹ±rĹ‘k tĂ¶bb sorba */
  .news-filter{
    max-width:92vw;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap !important;
    overflow:visible !important;
    gap:8px;
    margin-bottom:30px;
  }

  .chip{
    white-space:normal !important;
    text-align:center;
    font-size:.82rem;
    padding:8px 13px;
  }

  /* TABLET = 2 kĂˇrtya */
  .news-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:18px;
  }
}

/* TELEFON = 1 kĂˇrtya */
@media(max-width:620px){

  .news-filter{
    max-width:94vw;
    gap:7px;
  }

  .chip{
    font-size:.78rem;
    padding:8px 11px;
  }

  .news-grid{
    grid-template-columns:1fr !important;
    gap:22px;
  }

  .news-card{
    max-width:100%;
  }
}

/* FINAL GRID + FILTER OVERRIDE */

.news-filter{
  flex-wrap:wrap !important;
  overflow:visible !important;
  justify-content:center !important;
}

.news-grid{
  display:grid !important;
}

/* desktop */
@media(min-width:1025px){
  .news-grid{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  }
}

/* tablet */
@media(min-width:621px) and (max-width:1024px){
  .news-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:18px !important;
  }
}

/* phone */
@media(max-width:620px){
  .news-grid{
    grid-template-columns:1fr !important;
    gap:22px !important;
  }

  .news-filter{
    max-width:94vw !important;
    gap:7px !important;
  }

  .chip{
    white-space:normal !important;
    text-align:center !important;
  }
}

/* PROFILE PAGE */

.profile-page{
  padding-top:135px;
}

.profile-card{
  margin:0 auto;
  width:min(520px,100%);
}

.profile-avatar-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:18px;
}

.profile-avatar{
  width:118px;
  height:118px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid var(--accent);
  box-shadow:0 14px 32px rgba(0,0,0,.35);
}

.profile-card input[type="file"]{
  padding:14px;
  cursor:pointer;
}

@media(max-width:620px){
  .profile-page{
    padding-top:150px;
  }
}

/* COMMENT AVATARS */

.comment-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.comment-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--accent);
  background:#222;
}

.comment-user{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.comment-admin-badge{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background:var(--accent);
  color:#000;
  font-size:.75rem;
  font-weight:900;
}

.comment-date{
  display:block;
  color:#aaa;
  font-size:.88rem;
  margin-top:3px;
}

/* CUSTOM FILE UPLOAD */

.custom-upload{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.upload-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border-radius:999px;
  background:var(--accent);
  color:#000;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
  text-decoration:none;
}

.upload-btn:hover{
  transform:scale(1.04);
}

#file-name{
  color:#bfbfbf;
  font-weight:700;
  font-size:.95rem;
}

/* BETTER PROFILE UPLOAD */

.upload-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:6px 0 12px;
}

.real-file-input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  pointer-events:none;
}

.upload-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 20px;
  border-radius:999px;
  background:var(--accent);
  color:#000;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.upload-button:hover{
  transform:scale(1.04);
}

.upload-file-name{
  color:#bbb;
  font-weight:800;
  font-size:.92rem;
}

/* COMMENT ADMIN ACTIONS */

.comment-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}

.comment-delete-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,80,80,.18);
  color:#ffbcbc;
  border:1px solid rgba(255,80,80,.28);
  text-decoration:none;
  font-weight:900;
  transition:.2s ease;
}

.comment-delete-link:hover{
  transform:scale(1.05);
}

/* COMMENT EDIT */

.comment-edit-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  background:var(--accent);
  color:#000;
  border:0;
  text-decoration:none;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.comment-edit-link:hover{
  transform:scale(1.05);
}

.comment-edit-form{
  margin-top:12px;
}

.comment-edit-form textarea{
  width:100%;
  min-height:110px;
  border:1px solid rgba(255,255,255,.08);
  outline:0;
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-family:inherit;
  font-size:1rem;
  resize:vertical;
}

.comment-edit-form textarea:focus{
  border-color:rgba(255,239,213,.45);
  box-shadow:0 0 0 3px rgba(255,239,213,.12);
}

.comment-edit-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.comment-edit-actions button{
  border:0;
  border-radius:999px;
  padding:10px 16px;
  font-weight:900;
  cursor:pointer;
}

.comment-edit-actions button:first-child{
  background:var(--accent);
  color:#000;
}

.comment-edit-actions button:last-child{
  background:rgba(255,255,255,.10);
  color:#fff;
}

/* COMMENT REACTIONS */

.comment-reactions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

.comment-reactions form{
  margin:0;
}

.reaction-btn{
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  min-height:36px;
  padding:0 12px;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.reaction-btn:hover{
  transform:scale(1.08);
  background:rgba(255,239,213,.16);
}

/* BETTER COMMENT REACTIONS */

.comment-reactions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.comment-reactions form{
  margin:0;
}

.reaction-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:40px;
  min-width:58px;
  padding:0 13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:1rem;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.reaction-btn span{
  font-size:.9rem;
  color:#ddd;
}

.reaction-btn:hover{
  transform:translateY(-2px) scale(1.04);
  background:rgba(255,239,213,.18);
  border-color:rgba(255,239,213,.28);
}


.security-card{
  margin-top:22px;
  text-align:center;
}

.security-card h3{
  margin:0 0 10px;
  font-size:1.4rem;
}

.security-card p{
  color:#ddd;
  line-height:1.5;
}

.auth-lang-wrap{
  position:fixed;
  top:24px;
  right:24px;
  z-index:1000;
}

.auth-lang-wrap .lang-toggle{
  min-width:56px;
}

/* ORYN ORIGINAL HEADER BEHAVIOR */

.forum-header{
  position:fixed !important;
  top:0;
  left:0;
  right:0;
  height:86px;
  z-index:3000;
  transition:transform .32s ease, opacity .32s ease;
  background:transparent;
}

.forum-header.hide{
  transform:translateY(-120%);
  opacity:0;
  pointer-events:none;
}

#news,
.category-page,
.topic-page,
.profile-page,
.admin-create-page{
  padding-top:180px !important;
}

@media(max-width:768px){
  .forum-header{
    height:92px;
  }

  .forum-logo{
    top:18px !important;
    left:18px !important;
  }

  .forum-menu-btn{
    top:22px !important;
  }

  .auth-pills{
    top:18px !important;
    right:14px !important;
    left:auto !important;
    transform:none !important;
    width:auto !important;
  }

  .auth-pills a,
  .auth-pills .admin-status{
    display:none !important;
  }

  .lang-switch-wrap{
    display:flex !important;
  }

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:175px !important;
  }
}

.reaction-btn.active{
  background:var(--accent);
  color:#000;
  border-color:var(--accent);
}

.reaction-btn.active span{
  color:#000;
}

/* EMOJI REACTIONS */

.comment-reactions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.comment-reactions form{
  margin:0;
}

.reaction-btn{
  display:flex;
  align-items:center;
  gap:8px;

  border:none;
  border-radius:999px;

  padding:8px 14px;

  background:rgba(255,255,255,.08);
  color:#fff;

  cursor:pointer;
  font-size:1rem;
  font-weight:800;

  transition:.2s ease;
}

.reaction-btn:hover{
  transform:scale(1.06);
  background:rgba(255,255,255,.14);
}

.reaction-btn span{
  font-size:.92rem;
  color:#ddd;
}

.reaction-btn.active{
  background:#FFEFD5;
  color:#000;
}

.reaction-btn.active span{
  color:#000;
}

.topic-reactions{
    display:flex;
    gap:10px;
    align-items:center;
    margin-top:12px;
}

/* TOPIC HEADER REACTIONS - CLEAN */

.topic-info{
  align-items:center;
}

.topic-reactions{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
}

.topic-reactions form{
  margin:0;
}

.topic-reactions .reaction-btn{
  height:38px;
  min-width:64px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.topic-reactions .reaction-btn span{
  min-width:auto;
  padding:0;
  background:transparent;
  color:inherit;
}

.topic-reactions .reaction-btn.active{
  background:var(--accent);
  color:#000;
  border-color:var(--accent);
}

/* USERS ADMIN */

.users-admin-list{
  max-width:980px;
  margin:30px auto 0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.user-admin-card{
  background:var(--card);
  border-radius:20px;
  padding:20px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  box-shadow:0 10px 26px rgba(0,0,0,.22);
}

.user-admin-main{
  display:flex;
  align-items:center;
  gap:14px;
}

.user-admin-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--accent);
}

.user-admin-main h3{
  margin:0 0 4px;
}

.user-admin-main p{
  margin:0;
  color:#ccc;
}

.user-admin-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.user-admin-meta span{
  background:rgba(255,255,255,.08);
  padding:6px 10px;
  border-radius:999px;
  color:#ddd;
  font-size:.86rem;
  font-weight:800;
}

.user-admin-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.user-role-form{
  display:flex;
  gap:8px;
  align-items:center;
}

.user-role-form select{
  height:40px;
  border:0;
  border-radius:999px;
  padding:0 12px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-weight:800;
}

.user-role-form option{
  background:#1c1c1c;
  color:#fff;
}

.user-role-form button{
  height:40px;
  border:0;
  border-radius:999px;
  padding:0 14px;
  background:var(--accent);
  color:#000;
  font-weight:900;
  cursor:pointer;
}

@media(max-width:760px){
  .user-admin-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .user-admin-actions{
    width:100%;
    justify-content:flex-start;
  }

  .user-role-form{
    flex-wrap:wrap;
  }
}

.public-profile-page{
  max-width:900px;
  margin:0 auto;
}

.public-profile-card{
  text-align:center;
  margin:0 auto 24px;
}

.public-profile-card h2{
  margin-top:18px;
}

.public-profile-meta{
  justify-content:center;
}

.public-profile-section{
  max-width:760px;
  margin:18px auto;
}

.public-profile-section h3{
  margin-top:0;
}

.public-profile-link{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
  font-weight:800;
}

.public-profile-link span{
  color:#ccc;
  font-size:.9rem;
  font-weight:700;
}

.comment-user-link,
.topic-author-link{
  color:#fff;
  text-decoration:none;
  font-weight:900;
}

.comment-user-link:hover,
.topic-author-link:hover{
  color:var(--accent);
}

@media(max-width:760px){
  .auth-pills .admin-status{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    height:42px;
    padding:0 14px;
    border-radius:999px;
    background:var(--accent);
    color:#000;
    font-size:.9rem;
    font-weight:900;
  }

  .auth-pills{
    gap:8px;
  }

  .auth-pills a{
    display:none;
  }

  .auth-pills .lang-switch-wrap{
    display:flex !important;
  }
}

@media(max-width:760px){
  .comment-card{
    padding:24px 0;
    margin-bottom:26px;
  }

  .comment-head{
    gap:16px;
    margin-bottom:18px;
  }

  .comment-avatar{
    width:68px;
    height:68px;
    flex:0 0 68px;
  }

  .comment-user{
    gap:10px;
    flex-wrap:wrap;
  }

  .comment-user strong,
  .comment-user-link{
    font-size:1.25rem;
  }

  .comment-date{
    font-size:1rem;
    margin-top:6px;
  }

  .comment-card p{
    font-size:1.15rem;
    line-height:1.55;
    margin:18px 0;
  }

  .comment-reactions{
    gap:14px;
    row-gap:14px;
    margin-top:20px;
  }

  .comment-reactions .reaction-btn{
    min-width:98px;
    height:52px;
    font-size:1.25rem;
  }

  .comment-actions{
    margin-top:18px;
    gap:12px;
    justify-content:flex-start;
  }
}

.session-timer{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:88px;
    height:44px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-weight:900;
    font-size:.95rem;
}

.session-timer.warning{
    color:#ffcc70;
}

.session-timer.danger{
    color:#ff6b6b;
}




/* FINAL TABLET + MOBILE HEADER FIX */

@media(max-width:1024px){

  .forum-header{
    height:120px !important;
  }

  .forum-logo{
    top:18px !important;
    left:18px !important;
  }

  .forum-menu-btn{
    top:22px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
  }

  .auth-pills{
    position:fixed !important;
    top:18px !important;
    right:14px !important;
    left:auto !important;
    transform:none !important;
    width:auto !important;
    max-width:52vw !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    flex-wrap:wrap !important;
  }

  .auth-pills a,
  .auth-pills .admin-status,
  .session-timer{
    display:inline-flex !important;
    height:36px !important;
    min-width:auto !important;
    padding:0 10px !important;
    font-size:.72rem !important;
    white-space:nowrap !important;
  }

  .session-timer{
    width:58px !important;
  }

  .lang-switch-wrap{
    display:flex !important;
    width:58px !important;
    min-width:58px !important;
    height:36px !important;
    padding:0 4px !important;
  }

  .lang-toggle{
    width:30px !important;
    height:30px !important;
    font-size:.7rem !important;
  }

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:170px !important;
  }
}

@media(max-width:620px){

  .forum-header{
    height:150px !important;
  }

  .auth-pills{
    top:74px !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    width:calc(100% - 28px) !important;
    max-width:none !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
  }

  .auth-pills a,
  .auth-pills .admin-status,
  .session-timer{
    height:34px !important;
    padding:0 9px !important;
    font-size:.68rem !important;
  }

  .session-timer{
    width:56px !important;
  }

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:190px !important;
  }
}

.categories-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));
    gap:24px;
    width:100%;
    align-items:start;
}

@media(max-width:1099px){
    .categories-grid{
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }
}

@media(max-width:760px){
    .categories-grid{
        grid-template-columns:1fr !important;
    }
}

/* FINAL FORUM CARD GRID OVERRIDE */

.news-grid,
#forumGrid{
  width:100% !important;
  max-width:1100px !important;
  margin:0 auto !important;
  padding:0 10px !important;

  display:grid !important;
  grid-auto-flow:row !important;
  gap:24px !important;
}

/* SZĂMĂŤTĂ“GĂ‰P: 3 KĂRTYA */
@media(min-width:1025px){
  .news-grid,
  #forumGrid{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }
}

/* TABLET: 2 KĂRTYA */
@media(min-width:621px) and (max-width:1024px){
  .news-grid,
  #forumGrid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    max-width:760px !important;
  }
}

/* TELEFON: 1 KĂRTYA */
@media(max-width:620px){
  .news-grid,
  #forumGrid{
    grid-template-columns:1fr !important;
    max-width:430px !important;
    padding:0 14px !important;
    gap:22px !important;
  }

  .news-card{
    width:100% !important;
    max-width:100% !important;
  }
}


.reaction-btn.disabled{
    opacity:.75;
    cursor:not-allowed;
    pointer-events:none;
}

.ban-reason-input{
  height:40px;
  min-width:210px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:0 15px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-weight:800;
  outline:none;
}

.ban-reason-input::placeholder{
  color:rgba(255,255,255,.55);
}

.ban-reason-input:focus{
  border-color:rgba(255,239,213,.55);
  box-shadow:0 0 0 3px rgba(255,239,213,.12);
}

.ban-days-select{
  min-width:120px;
}

.community-preview{
  width:100%;
  max-width:1100px;
  margin:56px auto 36px;
  padding:34px;
  border-radius:28px;
  background:rgba(255,255,255,.04);
}

.community-preview h3{
  margin:0;
  color:#fff;
  font-size:2rem;
  font-weight:900;
  text-align:center;
}

.community-preview p{
  margin:10px 0 28px;
  color:rgba(255,255,255,.72);
  text-align:center;
  font-weight:700;
}

.community-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
}

.community-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  padding:18px 10px;
  border-radius:22px;
  background:rgba(255,255,255,.05);
  color:#fff;
  text-decoration:none;
}

.community-avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid #FFEFD5;
}

.community-role{
  padding:6px 11px;
  border-radius:999px;
  background:#FFEFD5;
  color:#000;
  font-size:.75rem;
  font-weight:900;
}

@media(max-width:1024px){
  .community-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:620px){
  .community-preview{
    padding:24px 16px;
  }

  .community-grid{
    grid-template-columns:repeat(2,1fr);
  }
}


/* =========================
   FIX HEADER
========================= */

.forum-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 28px;

  background: rgba(18,18,18,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* content ne csĂşsszon alĂˇ */
body{
  padding-top: 110px;
}

/* jobb felsĹ‘ gombok */
.auth-pills{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:55%;
}

/* session timer */
.session-timer{
  white-space:nowrap;
}

/* =========================
   TABLET
========================= */

@media (max-width:1024px){

  body{
    padding-top:95px;
  }

  .forum-header{
    padding:14px 18px;
  }

  .auth-pills{
    gap:8px;
    max-width:60%;
  }

}

/* =========================
   TELEFON
========================= */

@media (max-width:768px){

  body{
    padding-top:115px;
  }

  .forum-header{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:start;
    gap:10px;
    padding:14px 14px;
  }

  /* hamburger kĂ¶zĂ©pre */
  .forum-menu-btn{
    justify-self:center;
  }

  /* jobb felsĹ‘ gombok */
  .auth-pills{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    align-items:center;
    gap:6px;

    max-width:165px;
  }

  .auth-pills a,
  .auth-pills span,
  .lang-toggle{
    font-size:.8rem;
    padding:10px 14px;
    white-space:nowrap;
  }

  .session-timer{
    font-size:.8rem;
  }

}

@media (max-width:768px){

  .lang-switch-wrap{
    width:54px !important;
    min-width:54px !important;
    height:36px !important;
    padding:3px !important;
    border-radius:999px !important;
  }

  .lang-toggle{
    width:30px !important;
    min-width:30px !important;
    height:30px !important;
    padding:0 !important;
    border-radius:50% !important;
    font-size:.72rem !important;
    line-height:30px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

}

/* FULLSCREEN MENU FIX */

.forum-menu{
  display:none;
}

.forum-menu.show{
  position:fixed !important;
  inset:0 !important;
  z-index:99998 !important;

  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:28px !important;

  width:100vw !important;
  height:100vh !important;
  padding:120px 24px 60px !important;

  background:rgba(18,18,18,.96) !important;
  backdrop-filter:blur(18px) !important;
  -webkit-backdrop-filter:blur(18px) !important;
}

.forum-menu.show a{
  color:#fff !important;
  font-size:1.7rem !important;
  font-weight:900 !important;
  text-decoration:none !important;
}

.forum-menu-btn{
  z-index:100000 !important;
}

.forum-logo,
.auth-pills{
  z-index:100000 !important;
}

.forum-menu-btn{
  color:#fff !important;
}

.forum-menu-btn svg,
.forum-menu-btn i{
  color:#fff !important;
  fill:#fff !important;
  stroke:#fff !important;
}

.forum-menu-btn.active{
  color:#fff !important;
}

.forum-menu-btn.active *{
  color:#fff !important;
  fill:#fff !important;
  stroke:#fff !important;
}

/* BRUTAL WHITE X FIX */

body.menu-open .forum-menu-btn.active span,
body.menu-open .forum-menu-btn.active span:nth-child(1),
body.menu-open .forum-menu-btn.active span:nth-child(2),
body.menu-open .forum-menu-btn.active span:nth-child(3),
.forum-menu-btn.active span,
.forum-menu-btn.active span:nth-child(1),
.forum-menu-btn.active span:nth-child(2),
.forum-menu-btn.active span:nth-child(3){
  background:#fff !important;
  background-color:#fff !important;
  box-shadow:0 2px 8px rgba(0,0,0,.45) !important;
}

.forum-menu-btn.active span:nth-child(2){
  opacity:0 !important;
}

/* MENU HOVER KRĂ‰MSZĂŤN */

.forum-menu.show a{
  transition:
    color .22s ease,
    transform .22s ease;
}

.forum-menu.show a:hover{
  color:#FFEFD5 !important;
  transform:scale(1.06);
}

.forum-menu.show a.menu-danger:hover{
  color:#ff8a8a !important;
}

/* =====================================
   MOBILE HEADER â€” FINAL CLEAN VERSION
===================================== */

@media(max-width:768px){

  .forum-header{
    position:fixed !important;
    top:0;
    left:0;
    right:0;
    height:88px !important;
    z-index:5000;
    background:
      linear-gradient(
        to bottom,
        rgba(28,28,28,.92),
        rgba(28,28,28,.68),
        transparent
      );
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  /* LOGO */

  .forum-logo{
    position:fixed !important;
    top:18px !important;
    left:16px !important;
    z-index:5200;
  }

  .forum-logo img{
    width:46px !important;
  }

  /* HAMBURGER */

  .forum-menu-btn{
    position:fixed !important;
    top:20px !important;
    left:50% !important;
    transform:translateX(-50%) !important;

    width:46px;
    height:46px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    z-index:5300;
  }

  .forum-menu-btn span{
    width:30px !important;
    height:3px !important;
    margin:4px 0 !important;
    border-radius:999px;
  }

  /* AUTH PILLS */

  .auth-pills{
    position:fixed !important;
    top:16px !important;
    right:14px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;

    gap:8px !important;
    flex-wrap:nowrap !important;

    width:auto !important;
    left:auto !important;
    transform:none !important;

    z-index:5200;
  }

  .auth-pills a{
    height:40px !important;
    padding:0 14px !important;
    font-size:.76rem !important;
    border-radius:999px;
    font-weight:800;
  }

  .auth-pills .register{
    min-width:96px;
  }

  /* LANG */

  .lang-switch-wrap{
    width:64px !important;
    min-width:64px !important;
    height:40px !important;
    padding:0 4px !important;
  }

  .lang-toggle{
    width:32px !important;
    height:32px !important;
    font-size:.72rem !important;
  }

  /* TARTALOM LEJJEBB */

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:130px !important;
  }

  body.menu-open .auth-pills{
    opacity:0 !important;
    pointer-events:none !important;
  }
}



/* =====================================
   MOBILE HEADER â€” REAL FIX
===================================== */

@media (max-width:768px){

  .forum-header{
    position:fixed !important;
    top:0;
    left:0;
    right:0;
    height:88px !important;
    padding:0 14px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;

    background:rgba(20,20,20,.92) !important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    z-index:99999 !important;
  }

  /* LOGO */

  .forum-logo{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    flex:0 0 auto;
  }

  .forum-logo img{
    width:42px !important;
  }

  /* HAMBURGER */

  .forum-menu-btn{
    position:absolute !important;
    top:50% !important;
    left:50% !important;
    transform:translate(-50%,-50%) !important;

    width:44px !important;
    height:44px !important;

    z-index:100000 !important;
  }

  .forum-menu-btn span{
    width:28px !important;
    margin:4px auto !important;
  }

  /* JOBB OLDALI GOMBOK */

  .auth-pills{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;

    flex-wrap:nowrap !important;
    gap:6px !important;

    width:auto !important;
    max-width:none !important;
  }

  .auth-pills a,
  .session-timer,
  .admin-status{
    height:38px !important;
    padding:0 12px !important;
    font-size:.72rem !important;
    border-radius:999px !important;
    white-space:nowrap !important;
  }

  .auth-pills .register{
    min-width:88px;
  }

  /* NYELVVĂLTĂ“ */

  .lang-switch-wrap{
    width:54px !important;
    min-width:54px !important;
    height:38px !important;
    padding:3px !important;
  }

  .lang-toggle{
    width:30px !important;
    height:30px !important;
    font-size:.7rem !important;
  }

  /* TARTALOM LEJJEBB */

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:120px !important;
  }
}

/* MOBILE HEADER REAL FIX */

@media (max-width:768px){

  .forum-header{
    position:fixed !important;
    top:0;
    left:0;
    right:0;
    height:92px !important;

    display:grid !important;
    grid-template-columns:auto 1fr auto !important;
    align-items:center !important;

    padding:0 16px !important;
    z-index:3000;
  }

  /* LOGO */

  .forum-logo{
    position:relative !important;
    top:auto !important;
    left:auto !important;

    justify-self:start;
  }

  .forum-logo img{
    width:52px !important;
  }

  /* HAMBURGER */

  .forum-menu-btn{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    transform:none !important;

    justify-self:center;
    margin:0 !important;
  }

  /* JOBB BLOKK */

  .auth-pills{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;
    transform:none !important;

    justify-self:end;

    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    flex-wrap:nowrap !important;

    width:auto !important;
    max-width:none !important;
  }

  .auth-pills a,
  .admin-status{
    height:38px !important;
    padding:0 12px !important;
    font-size:.72rem !important;
    border-radius:999px;
    white-space:nowrap;
  }

  .lang-switch-wrap{
    width:54px !important;
    min-width:54px !important;
    height:38px !important;
    padding:3px !important;
  }

  .lang-toggle{
    width:30px !important;
    height:30px !important;
    font-size:.72rem !important;
  }

  /* CONTENT OFFSET */

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:135px !important;
  }
}



html{
  background:#161616;
}

body{
  background:#161616;
}

/* iOS Safari top + bottom background fix */

body::before,
body::after{
  content:"";
  position:fixed;
  left:0;
  right:0;
  background:#161616;
  z-index:999999;
  pointer-events:none;
}

body::before{
  top:0;
  height:env(safe-area-inset-top);
}

body::after{
  bottom:0;
  height:env(safe-area-inset-bottom);
}

/* ===== TABLET + KISEBB LAPTOP ===== */
@media (min-width: 421px) and (max-width: 1024px){

  .forum-menu-btn{
    position:absolute;
    top:24px;
    left:50%;
    transform:translateX(-50%);
  }

  .forum-logo{
    top:18px;
    left:18px;
  }

  .auth-pills{
    top:18px;
    right:18px;
    left:auto;
    transform:none;
    width:auto;
  }
}

/* ===== KICSI TELEFON ===== */
@media (max-width:420px){

  .forum-menu-btn{
    position:absolute;
    top:22px;
    left:82px; /* logo mellĂ© */
    transform:none;
  }

  .forum-logo img{
    width:58px;
  }

  .auth-pills{
    top:18px;
    right:12px;
    gap:6px;
  }

  .auth-pills a{
    padding:0 12px;
    font-size:.75rem;
    height:40px;
  }

  .lang-switch-wrap{
    width:62px;
    height:40px;
  }

  .lang-toggle{
    width:32px;
    height:32px;
  }
}


/* =====================================
   MOBILE HEADER â€” 2 SOROS CLEAN
===================================== */

@media (max-width:768px){

  .forum-header{
    position:fixed !important;
    top:0;
    left:0;
    right:0;

    height:132px !important;
    padding:14px 16px !important;

    background:
      linear-gradient(
        to bottom,
        rgba(20,20,20,.96),
        rgba(20,20,20,.92)
      ) !important;

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    z-index:99999 !important;
  }

  /* ELSĹ SOR */
  .forum-logo{
    position:fixed !important;
    top:18px !important;
    left:16px !important;
    z-index:100001 !important;
  }

  .forum-logo img{
    width:58px !important;
  }

  /* HAMBURGER */
  .forum-menu-btn{
    position:fixed !important;
    top:24px !important;
    left:88px !important;
    transform:none !important;
    margin:0 !important;
    z-index:100002 !important;
  }

  /* MĂSODIK SOR */
  .auth-pills{
    position:fixed !important;
    top:74px !important;
    left:50% !important;
    transform:translateX(-50%) !important;

    width:calc(100% - 30px) !important;

    display:flex !important;
    justify-content:center !important;
    align-items:center !important;

    flex-wrap:wrap !important;
    gap:8px !important;

    z-index:100001 !important;
  }

  .auth-pills a,
  .admin-status{
    height:40px !important;
    padding:0 14px !important;
    font-size:.76rem !important;
    border-radius:999px !important;
    white-space:nowrap !important;
  }

  .lang-switch-wrap{
    width:62px !important;
    min-width:62px !important;
    height:40px !important;
  }

  .lang-toggle{
    width:32px !important;
    height:32px !important;
    font-size:.72rem !important;
  }

  /* TARTALOM LEJJEBB */
  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:165px !important;
  }
}

/* TABLET = hamburger kĂ¶zĂ©pen */
@media (min-width:769px) and (max-width:1024px){
  .forum-menu-btn{
    position:fixed !important;
    top:24px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
  }
}

@media (max-width:768px){

  .forum-header{
    height:128px !important;
    padding:16px 16px 12px !important;
    position:fixed !important;
    top:0;
    left:0;
    right:0;
    z-index:99999;
  }

  /* LOGO */
  .forum-logo{
    position:absolute !important;
    top:18px !important;
    left:16px !important;
    z-index:1001;
  }

  .forum-logo img{
    width:60px !important;
  }

  /* HAMBURGER - KĂ–ZĂ‰PEN */
  .forum-menu-btn{
    position:absolute !important;
    top:22px !important;
    left:50% !important;
    transform:translateX(-50%) !important;

    width:48px !important;
    height:48px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    z-index:1002;
  }

  /* AUTH GOMBOK - KĂśLĂ–N SOR */
  .auth-pills{
    position:absolute !important;
    top:84px !important;
    left:50% !important;
    transform:translateX(-50%) !important;

    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    flex-wrap:nowrap !important;

    gap:12px !important; /* levegĹ‘ kĂ¶ztĂĽk */

    width:auto !important;
    z-index:1001;
  }

  .auth-pills a,
  .admin-status{
    height:42px !important;
    padding:0 16px !important;
    border-radius:999px !important;
  }

  .lang-switch-wrap{
    width:64px !important;
    height:42px !important;
  }

  /* TARTALOM LEJJEBB */
  main,
  .forum-content,
  .category-page{
    padding-top:138px !important;
  }
}

/* TABLET / SMALL LAPTOP HEADER POLISH */

@media (min-width:769px) and (max-width:1024px){

  .forum-header{
    height:105px !important;
    padding:0 28px !important;
    background:rgba(18,18,18,.94) !important;
  }

  .forum-logo{
    position:fixed !important;
    top:24px !important;
    left:28px !important;
  }

  .forum-logo img{
    width:54px !important;
  }

  .forum-menu-btn{
    position:fixed !important;
    top:30px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
  }

  .auth-pills{
    position:fixed !important;
    top:24px !important;
    right:28px !important;
    left:auto !important;
    transform:none !important;

    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
  }

  .auth-pills a,
  .admin-status,
  .session-timer{
    height:38px !important;
    padding:0 13px !important;
    font-size:.72rem !important;
  }

  .lang-switch-wrap{
    height:38px !important;
    width:58px !important;
    min-width:58px !important;
  }

  .lang-toggle{
    width:30px !important;
    height:30px !important;
    font-size:.7rem !important;
  }

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:145px !important;
  }
}

/* =====================================
   FINAL MOBILE HEADER FIX â€” DO NOT TOUCH
===================================== */

@media (max-width:768px){

  .forum-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;

    height:128px !important;
    padding:14px 16px !important;

    background:rgba(20,20,20,.96) !important;
    backdrop-filter:blur(18px) !important;
    -webkit-backdrop-filter:blur(18px) !important;

    border-bottom:1px solid rgba(255,255,255,.05) !important;

    z-index:99999 !important;
  }

  /* LOGO */
  .forum-logo{
    position:fixed !important;
    top:16px !important;
    left:16px !important;
    z-index:100001 !important;
  }

  .forum-logo img{
    width:60px !important;
    height:auto !important;
  }

  /* HAMBURGER â€” LOGO MELLETT */
  .forum-menu-btn{
    position:fixed !important;
    top:22px !important;
    left:98px !important;
    transform:none !important;
    margin:0 !important;

    width:46px !important;
    height:46px !important;

    z-index:100002 !important;
  }

  .forum-menu-btn span{
    width:30px !important;
    height:3px !important;
    margin:5px 0 !important;
  }

  /* MĂSODIK SOR GOMBOK */
  .auth-pills{
    position:fixed !important;
    top:78px !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;

    width:calc(100% - 30px) !important;
    max-width:none !important;

    display:flex !important;
    justify-content:center !important;
    align-items:center !important;

    flex-wrap:nowrap !important;
    gap:10px !important;

    z-index:100001 !important;
  }

  .auth-pills a,
  .admin-status{
    height:40px !important;
    padding:0 14px !important;
    font-size:.76rem !important;
    border-radius:999px !important;
    white-space:nowrap !important;
  }

  .lang-switch-wrap{
    width:62px !important;
    min-width:62px !important;
    height:40px !important;
  }

  .lang-toggle{
    width:32px !important;
    height:32px !important;
    font-size:.72rem !important;
  }

  /* KISEBB FEKETE SĂV */
  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:138px !important;
  }
}


/* =====================================
   FINAL MOBILE HEADER â€” CLEAN
===================================== */

@media (max-width:768px){

  .forum-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;

    height:118px !important;
    padding:14px 16px 12px !important;

    background:rgba(20,20,20,.96) !important;
    backdrop-filter:blur(18px) !important;
    -webkit-backdrop-filter:blur(18px) !important;

    border-bottom:1px solid rgba(255,255,255,.05) !important;
    z-index:99999 !important;
  }

  /* LOGO */
  .forum-logo{
    position:fixed !important;
    top:16px !important;
    left:16px !important;
    z-index:100001 !important;
  }

  .forum-logo img{
    width:60px !important;
    height:auto !important;
  }

  /* HAMBURGER â€” KĂ–ZĂ‰PEN */
  .forum-menu-btn{
    position:fixed !important;
    top:22px !important;
    left:50% !important;
    transform:translateX(-50%) !important;

    width:46px !important;
    height:46px !important;
    margin:0 !important;

    z-index:100002 !important;
  }

  .forum-menu-btn span{
    width:30px !important;
    height:3px !important;
    margin:5px 0 !important;
  }

  /* MĂSODIK SOR GOMBOK */
  .auth-pills{
    position:fixed !important;
    top:68px !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;

    width:calc(100% - 32px) !important;
    max-width:none !important;

    display:flex !important;
    justify-content:center !important;
    align-items:center !important;

    flex-wrap:nowrap !important;
    gap:10px !important;

    z-index:100001 !important;
  }

  .auth-pills a,
  .admin-status{
    height:40px !important;
    padding:0 14px !important;
    font-size:.76rem !important;
    border-radius:999px !important;
    white-space:nowrap !important;
  }

  .lang-switch-wrap{
    width:62px !important;
    min-width:62px !important;
    height:40px !important;
  }

  .lang-toggle{
    width:32px !important;
    height:32px !important;
    font-size:.72rem !important;
  }

  /* NINCS VASTAG FEKETE BLOKK */
  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:122px !important;
  }
}

/* =====================================
   TRUE FINAL MOBILE HEADER FIX
===================================== */

@media (max-width:768px){

  /* HEADER */
  .forum-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;

    height:118px !important;
    padding:14px 16px 10px !important;

    background:rgba(20,20,20,.96) !important;
    backdrop-filter:blur(18px) !important;
    -webkit-backdrop-filter:blur(18px) !important;

    border-bottom:1px solid rgba(255,255,255,.04) !important;

    z-index:99999 !important;
  }

  /* LOGO */
  .forum-logo{
    position:absolute !important;
    top:16px !important;
    left:16px !important;
    margin:0 !important;
    z-index:100001 !important;
  }

  .forum-logo img{
    width:58px !important;
    height:auto !important;
  }

  /* HAMBURGER - KĂ–ZĂ‰PEN */
  .forum-menu-btn{
    position:absolute !important;
    top:18px !important;
    left:50% !important;
    transform:translateX(-50%) !important;

    width:48px !important;
    height:48px !important;
    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    z-index:100002 !important;
  }

  .forum-menu-btn span{
    width:30px !important;
    height:3px !important;
    margin:4px 0 !important;
  }

  /* GOMBOK KĂśLĂ–N SOR */
  .auth-pills{
    position:absolute !important;
    top:66px !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;

    width:calc(100% - 32px) !important;

    display:flex !important;
    justify-content:center !important;
    align-items:center !important;

    gap:8px !important;
    flex-wrap:nowrap !important;

    z-index:100001 !important;
  }

  .auth-pills a,
  .admin-status,
  .session-timer{
    height:40px !important;
    padding:0 14px !important;
    font-size:.76rem !important;
    border-radius:999px !important;
    white-space:nowrap !important;
  }

  .lang-switch-wrap{
    width:62px !important;
    min-width:62px !important;
    height:40px !important;
  }

  .lang-toggle{
    width:32px !important;
    height:32px !important;
    font-size:.72rem !important;
  }

  /* NINCS VASTAG FEKETE BLOKK */
  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:122px !important;
  }
}

/* =====================================
   FINAL MOBILE HEADER FIX
===================================== */

@media (max-width:768px){

  .forum-header{
    position:fixed !important;
    top:0;
    left:0;
    right:0;

    height:122px !important;
    padding:12px 14px !important;

    background:rgba(18,18,18,.96) !important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(255,255,255,.05);
    z-index:99999 !important;
  }

  /* LOGO */

  .forum-logo{
    position:fixed !important;
    top:16px !important;
    left:14px !important;
    z-index:100001 !important;
  }

  .forum-logo img{
    width:54px !important;
  }

  /* HAMBURGER KĂ–ZĂ‰PEN */

  .forum-menu-btn{
    position:fixed !important;
    top:18px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    margin:0 !important;
    z-index:100002 !important;
  }

  /* MENĂś GOMBOK â€” SZĹ°KEBB */

  .auth-pills{
    position:fixed !important;
    top:68px !important;
    left:50% !important;
    transform:translateX(-50%) !important;

    display:flex !important;
    justify-content:center !important;
    align-items:center !important;

    flex-wrap:nowrap !important;
    gap:6px !important;

    width:auto !important;
    max-width:95vw !important;

    z-index:100001 !important;
  }

  .auth-pills a,
  .admin-status,
  .session-timer{
    height:36px !important;
    padding:0 10px !important;
    font-size:.70rem !important;
    border-radius:999px !important;
    white-space:nowrap !important;
  }

  /* REGISTER kisebb */
  .auth-pills .register{
    min-width:auto !important;
    padding:0 12px !important;
  }

  /* NYELV */

  .lang-switch-wrap{
    width:52px !important;
    min-width:52px !important;
    height:36px !important;
    padding:2px !important;
  }

  .lang-toggle{
    width:30px !important;
    height:30px !important;
    font-size:.68rem !important;
  }

  /* HEADER ALATTI FEKETE SĂV ELTĂśNTETĂ‰S */

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:118px !important;
  }

  /* FULLSCREEN MENU SZĹ°KEBB */

  .forum-menu.show{
    gap:18px !important;
    padding:90px 24px 40px !important;
  }

  .forum-menu.show a{
    font-size:1.35rem !important;
    line-height:1.15 !important;
  }
}


/* Logo maradjon lĂˇthatĂł nyitott menĂĽnĂ©l */

body.menu-open .forum-logo{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  z-index:100003 !important;
}

body.menu-open .forum-logo .logo-white{
  display:block !important;
}

body.menu-open .forum-logo .logo-black{
  display:none !important;
}

/* MENU LINK HOVER FIX */

.forum-menu a{
  color:#fff !important;
  transform:none !important;
  opacity:1 !important;

  transition:
    color .22s ease,
    background .22s ease !important;
}

/* nyitĂˇs utĂˇn is fehĂ©r marad */

.forum-menu.show a{
  color:#fff !important;
  transform:none !important;
}

/* csak hovernĂ©l vĂˇltozzon */

.forum-menu a:hover{
  color:#FFEFD5 !important;
}

/* active / focus bug fix */

.forum-menu a:focus,
.forum-menu a:active{
  color:#fff !important;
  outline:none !important;
}

/* danger link maradjon piros */

.forum-menu a.menu-danger{
  color:#ff4d4d !important;
}

.forum-menu a.menu-danger:hover{
  color:#ff7a7a !important;
}


/* ================================
   STEP 1 â€” HEADER / SPACING FINAL
================================ */

body{
  padding-top:0 !important;
}

#news{
  padding-top:118px !important;
}

.category-page,
.topic-page,
.profile-page,
.admin-create-page{
  padding-top:118px !important;
}

.forum-header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  height:92px !important;
  padding:0 24px !important;

  display:grid !important;
  grid-template-columns:1fr auto 1fr !important;
  align-items:center !important;

  background:rgba(18,18,18,.94) !important;
  backdrop-filter:blur(18px) !important;
  -webkit-backdrop-filter:blur(18px) !important;
  border-bottom:1px solid rgba(255,255,255,.05) !important;

  z-index:99999 !important;
}

.forum-logo{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  justify-self:start !important;
}

.forum-logo img{
  width:58px !important;
}

.forum-menu-btn{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  justify-self:center !important;
  margin:0 !important;
  z-index:100002 !important;
}

.auth-pills{
  position:relative !important;
  top:auto !important;
  right:auto !important;
  left:auto !important;
  transform:none !important;

  justify-self:end !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  flex-wrap:nowrap !important;

  width:auto !important;
  max-width:none !important;
}

@media(max-width:768px){

  .forum-header{
    height:128px !important;
    padding:14px 16px 12px !important;
    display:block !important;
  }

  .forum-logo{
    position:absolute !important;
    top:18px !important;
    left:18px !important;
  }

  .forum-logo img{
    width:58px !important;
  }

  .forum-menu-btn{
    position:absolute !important;
    top:22px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
  }

  .auth-pills{
    position:absolute !important;
    top:74px !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;

    width:calc(100% - 28px) !important;
    justify-content:center !important;
    gap:9px !important;
  }

  .auth-pills a,
  .admin-status,
  .session-timer{
    height:38px !important;
    padding:0 12px !important;
    font-size:.72rem !important;
  }

  .lang-switch-wrap{
    width:58px !important;
    min-width:58px !important;
    height:38px !important;
  }

  .lang-toggle{
    width:32px !important;
    height:32px !important;
    font-size:.72rem !important;
  }

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page{
    padding-top:132px !important;
  }
}

.profile-avatar,
.comment-avatar,
.user-admin-avatar,
.community-avatar{
  background:#111 !important;
  object-fit:cover !important;
  object-position:center !important;
}

.avatar-crop-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(0,0,0,.78);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.avatar-crop-modal.show{
  display:flex;
}

.avatar-crop-box{
  width:min(440px,100%);
  background:#242424;
  border-radius:24px;
  padding:24px;
  text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}

.avatar-crop-box h3{
  margin:0 0 18px;
}

.avatar-crop-preview{
  width:280px;
  height:280px;
  margin:0 auto 18px;
  border-radius:50%;
  overflow:hidden;
  border:3px solid #FFEFD5;
  background:#111;
}

.avatar-crop-preview canvas{
  width:100%;
  height:100%;
  display:block;
}

#avatarZoom{
  width:100%;
  margin:12px 0 20px;
}

.avatar-crop-actions{
  display:flex;
  justify-content:center;
  gap:12px;
}

.avatar-crop-actions button{
  border:0;
  border-radius:999px;
  padding:12px 20px;
  font-weight:900;
  cursor:pointer;
}

#avatarCropSave{
  background:#FFEFD5;
  color:#000;
}

#avatarCropCancel{
  background:rgba(255,255,255,.12);
  color:#fff;
}

.topic-translate-bar{
  display:flex;
  justify-content:flex-end;
  margin:18px 0;
}

.translate-content-btn{
  border:0;
  border-radius:999px;
  padding:12px 20px;
  background:#FFEFD5;
  color:#000;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.translate-content-btn:hover{
  transform:scale(1.04);
}

.translate-content-btn:disabled{
  opacity:.6;
  cursor:wait;
}

/* KIS LAPTOP / ALACSONY KĂ‰PERNYĹ â€“ MENĂś ELRENDEZĂ‰S FIX */
@media (max-width: 1100px) and (max-height: 760px){

  .forum-menu{
    justify-content:flex-start !important;
    padding-top:95px !important;
    padding-bottom:24px !important;
    gap:6px !important;
    overflow-y:auto !important;
  }

  .forum-menu a{
    font-size:18px !important;
    line-height:1.45 !important;
    padding:4px 14px !important;
    text-align:center !important;
  }
}

/* mĂ©g alacsonyabb / nĂ©gyzetesebb kijelzĹ‘ */
@media (max-width: 900px) and (max-height: 680px){

  .forum-menu{
    padding-top:86px !important;
    gap:4px !important;
  }

  .forum-menu a{
    font-size:16px !important;
    line-height:1.35 !important;
    padding:3px 12px !important;
  }
}

/* CSAK HOZZĂSZĂ“LĂS EMOJI FIX */

.comment-content,
.topic-content,
.comment-form textarea,
.comment-edit-form textarea {

  font-family:
    "Segoe UI",
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji",
    sans-serif !important;

  font-variant-emoji: emoji;
  text-rendering: optimizeLegibility;
  unicode-bidi: plaintext;
}

/* textarea Ă­rĂˇs kĂ¶zben is szĂ©p emoji */
.comment-form textarea,
.comment-edit-form textarea{
  line-height:1.6;
}

.desktop-emoji-only{
  display:flex;
}

@media(max-width:768px){
  .desktop-emoji-only{
    display:none !important;
  }
}

.emoji-picker-wrap{
  position:relative;
  justify-content:flex-end;
  margin-bottom:10px;
}

.emoji-btn{
  height:44px;
  padding:0 16px;
  border:1px solid rgba(255,239,213,.28);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.22);
  transition:.2s ease;
}

.emoji-btn span{font-size:21px}
.emoji-btn strong{font-size:.9rem}

.emoji-btn:hover{
  transform:translateY(-2px) scale(1.03);
  background:rgba(255,239,213,.16);
  border-color:rgba(255,239,213,.45);
}

.emoji-picker{
  position:absolute;
  right:0;
  top:54px;
  width:340px;
  max-height:260px;
  overflow-y:auto;
  display:none;
  flex-wrap:wrap;
  gap:8px;
  padding:14px;
  border-radius:20px;
  background:#242424;
  box-shadow:0 18px 45px rgba(0,0,0,.45);
  z-index:5000;
}

.emoji-picker.show{
  display:flex;
}

.emoji-picker span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  cursor:pointer;
  font-size:24px;
  transition:.18s ease;
}

.emoji-picker span:hover{
  background:rgba(255,239,213,.14);
  transform:scale(1.12);
}
/* CSAK HOZZĂSZĂ“LĂSOK EMOJI MEGJELENĂŤTĂ‰SE PC-N */

.comment-card p,
.comment-card .translatable-content,
.comment-form textarea,
.comment-edit-form textarea,
.reaction-btn,
.emoji-btn,
.emoji-picker span{
  font-family:
    "Segoe UI Emoji",
    "Apple Color Emoji",
    "Noto Color Emoji",
    "Segoe UI Symbol",
    "Segoe UI",
    sans-serif !important;
}

/* Emoji picker csak gĂ©pen */
.desktop-emoji-only{
  display:flex;
}

@media(max-width:768px){
  .desktop-emoji-only{
    display:none !important;
  }
}

.emoji-picker-wrap{
  position:relative;
  justify-content:flex-end;
  margin-bottom:10px;
}

.emoji-btn{
  height:44px;
  padding:0 16px;
  border:1px solid rgba(255,239,213,.28);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.22);
  transition:.2s ease;
}

.emoji-btn span{
  font-size:21px;
}

.emoji-btn strong{
  font-size:.9rem;
}

.emoji-btn:hover{
  transform:translateY(-2px) scale(1.03);
  background:rgba(255,239,213,.16);
}

.emoji-picker{
  position:absolute;
  right:0;
  top:54px;
  width:340px;
  max-height:260px;
  overflow-y:auto;
  display:none;
  flex-wrap:wrap;
  gap:8px;
  padding:14px;
  border-radius:20px;
  background:#242424;
  box-shadow:0 18px 45px rgba(0,0,0,.45);
  z-index:5000;
}

.emoji-picker.show{
  display:flex;
}

.emoji-picker span{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  cursor:pointer;
  font-size:24px;
}

/* VĂ‰GSĹ PC EMOJI FIX â€“ komment szĂ¶veghez */

.comments-section .comment-card p.translatable-content,
.comments-section .comment-card p[id^="comment-text-"],
.comments-section .comment-card p,
.comment-form textarea,
.comment-edit-form textarea{
  font-family:
    "Segoe UI Emoji",
    "Noto Color Emoji",
    "Apple Color Emoji",
    "Segoe UI Symbol",
    "Segoe UI",
    sans-serif !important;

  font-variant-emoji: emoji !important;
  text-rendering:auto !important;
}

/* WINDOWS EMOJI FIX â€“ telefonrĂłl Ă­rt emoji is lĂˇtszĂłdjon */

.comment-card p,
.comment-card p.translatable-content,
.topic-content,
.comment-form textarea,
.comment-edit-form textarea {

  font-family:
    "Segoe UI Emoji" !important;
}

/* reaction emoji */
.reaction-btn,
.topic-reactions .reaction-btn{
  font-family:
    "Segoe UI Emoji" !important;
}

img.emoji{
  width:1.15em;
  height:1.15em;
  margin:0 .08em;
  vertical-align:-0.18em;
  display:inline-block;
}

.supporter-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:900;
  border:1px solid rgba(255,255,255,.18);
}

.supporter-1{
  background:#fff;
  color:#000;
}

.supporter-2{
  background:#35ff7a;
  color:#000;
}

.supporter-3{
  background:#ff4d4d;
  color:#000;
}

/* SUPPORTER RANGOK */

.supporter-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:900;
}

.supporter{
  background:#fff;
  color:#000;
}

.green-supporter{
  background:#27d84f;
  color:#fff;
}

.o-partner{
  background:#ff3d3d;
  color:#fff;
}

.user-search-wrap{
  max-width:720px;
  margin:0 auto 24px;
}

.user-search-input{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  outline:0;
  border-radius:999px;
  padding:15px 20px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-weight:800;
}

.user-search-input::placeholder{
  color:rgba(255,255,255,.48);
}

/* USERS SEARCH CLEAR */

.user-search-wrap{
    position:relative;
    max-width:720px;
    margin:0 auto 24px;
}

.user-search-input{
    width:100%;
    padding:15px 58px 15px 20px;
}

.clear-user-search{
    position:absolute;
    top:50%;
    right:12px;
    transform:translateY(-50%) rotate(0deg);

    width:38px;
    height:38px;

    border:none;
    border-radius:999px;

    background:rgba(255,255,255,.12);
    color:#fff;

    font-size:18px;
    font-weight:900;

    cursor:pointer;

    opacity:0;
    pointer-events:none;

    transition:
        transform .35s ease,
        opacity .25s ease,
        background .25s ease;
}

.clear-user-search.show{
    opacity:1;
    pointer-events:auto;
}

.clear-user-search:hover{
    transform:
        translateY(-50%)
        rotate(180deg)
        scale(1.08);

    background:#FFEFD5;
    color:#000;
}

/* MODERATOR = SĂRGA */

.moderator-badge{
    background:#ffd84d !important;
    color:#111 !important;
    border:2px solid rgba(255,216,77,.25) !important;
}

/* ADMIN = BABAKĂ‰K */

.admin-status:not(.moderator-badge),
.adminbadgee{
    background:#9ed8ff !important;
    color:#0f2a3d !important;
    border:2px solid rgba(158,216,255,.30) !important;
}

/* TOPIC CREATOR ROLE BADGE FIX */

.topic-author-wrap{
    display:inline-flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.topic-info .topic-author-wrap span.admin-status,
.topic-info .topic-author-wrap span.adminbadgee,
.topic-info .topic-author-wrap span.moderator-badge,
.topic-info .topic-author-wrap span.supporter-badge,
.topic-info .topic-author-wrap span.supporter,
.topic-info .topic-author-wrap span.green-supporter,
.topic-info .topic-author-wrap span.o-partner{
    padding:6px 12px !important;
    border-radius:999px !important;
    font-size:.78rem !important;
    font-weight:900 !important;
}

/* Admin */
.topic-info .topic-author-wrap .admin-status,
.topic-info .topic-author-wrap .adminbadgee{
    background:#9ed8ff !important;
    color:#0f2a3d !important;
    border:2px solid rgba(158,216,255,.30) !important;
}

/* Moderator */
.topic-info .topic-author-wrap .moderator-badge{
    background:#ffd84d !important;
    color:#111 !important;
    border:2px solid rgba(255,216,77,.28) !important;
}

/* Supporter */
.topic-info .topic-author-wrap .supporter{
    background:#ffffff !important;
    color:#000000 !important;
}

/* Green Supporter */
.topic-info .topic-author-wrap .green-supporter{
    background:#28d95f !important;
    color:#000000 !important;
}

/* O-Partner */
.topic-info .topic-author-wrap .o-partner{
    background:#ff4040 !important;
    color:#ffffff !important;
}
/* PUBLIC PROFILE ROLE BADGES */
.public-profile-meta .comment-admin-badge.adminbadgee,
.public-profile-meta .adminbadgee{
  background:#9ed8ff !important;
  color:#0f2a3d !important;
}

.public-profile-meta .comment-admin-badge.moderator-badge,
.public-profile-meta .moderator-badge{
  background:#ffd84d !important;
  color:#111 !important;
}

.public-profile-meta .supporter-badge.supporter,
.public-profile-meta .supporter{
  background:#ffffff !important;
  color:#000000 !important;
}

.public-profile-meta .supporter-badge.green-supporter,
.public-profile-meta .green-supporter{
  background:#28d95f !important;
  color:#000000 !important;
}

.public-profile-meta .supporter-badge.o-partner,
.public-profile-meta .o-partner{
  background:#ff4040 !important;
  color:#ffffff !important;
}

/* Cookie banner */
.cookie{
  position:fixed;
  inset:auto 22px 22px auto;
  width:min(430px,calc(100vw - 32px));
  z-index:2147483000;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(18px) scale(.98);
  transition:opacity .24s ease, transform .24s ease, visibility .24s ease;
}

.cookie.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.cookie-card{
  background:rgba(26,26,26,.96);
  border:1px solid rgba(255,239,213,.18);
  border-radius:20px;
  padding:18px;
  color:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.cookie-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}

.cookie-title{
  font-size:1.05rem;
  font-weight:900;
  color:#FFEFD5;
}

.cookie-x{
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  position:relative;
  flex:0 0 auto;
}

.cookie-x::before,
.cookie-x::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:15px;
  height:2px;
  border-radius:2px;
  background:#fff;
}

.cookie-x::before{ transform:translate(-50%,-50%) rotate(45deg); }
.cookie-x::after{ transform:translate(-50%,-50%) rotate(-45deg); }

.cookie-text{
  margin:0 0 14px;
  color:#e8e8e8;
  line-height:1.5;
  font-size:.95rem;
}

.cookie-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.cookie-btn{
  border:0;
  border-radius:999px;
  padding:10px 15px;
  font-weight:900;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}

.cookie-btn:hover{ transform:translateY(-1px) scale(1.03); }

.cookie-btn.primary{
  background:#FFEFD5;
  color:#000;
}

.cookie-btn.ghost{
  background:rgba(255,255,255,.10);
  color:#fff;
}

.cookie-settings{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
}

.cookie-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  color:#f1f1f1;
  font-weight:800;
}

.cookie-row input{
  width:18px;
  height:18px;
  accent-color:#FFEFD5;
}

.cookie-actions--settings{
  margin-top:8px;
}

@media(max-width:620px){
  .cookie{
    inset:auto 12px 12px 12px;
    width:auto;
  }

  .cookie-card{
    border-radius:18px;
    padding:16px;
  }

  .cookie-actions{
    justify-content:stretch;
  }

  .cookie-btn{
    flex:1 1 auto;
  }
}

/* PASSWORD EYE TOGGLE */

.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap input {
  width: 100%;
  padding-right: 58px !important;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;

  border: 1px solid rgba(255, 239, 213, 0.45);
  border-radius: 999px;
  background: rgba(255, 239, 213, 0.12);
  color: #FFEFD5;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.password-toggle:hover {
  background: rgba(255, 239, 213, 0.22);
  border-color: rgba(255, 239, 213, 0.75);
}

.password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 239, 213, 0.18);
}


/* ORYN INPUT DESIGN */

.auth-card input,
.auth-card textarea,
.auth-card select {
  background: #111 !important;
  color: #FFEFD5 !important;

  border: 2px solid #EADCC2 !important;
  border-radius: 22px;

  transition: .2s ease;
  box-shadow: none;
}

/* placeholder */
.auth-card input::placeholder,
.auth-card textarea::placeholder {
  color: rgba(255, 239, 213, 0.55);
}

/* focus */
.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus {
  outline: none;
  border-color: #FFEFD5 !important;
  box-shadow:
    0 0 0 4px rgba(255, 239, 213, 0.08);
}

/* autofill fix (Chrome sárga/fehér háttér ellen) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #111 inset !important;
  -webkit-text-fill-color: #FFEFD5 !important;
  border: 2px solid #EADCC2 !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ORYN FORUM HEADER: MATCH MAIN SITE */
:root {
  --forum-header-height: 88px;
  --forum-header-cream: #fff0d5;
  --forum-header-ink: #17130f;
  --forum-header-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.forum-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: var(--forum-header-height) !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
  z-index: 99999 !important;
}

.forum-header::before,
.forum-header::after {
  display: none !important;
  content: none !important;
}

.forum-logo {
  position: fixed !important;
  top: 12px !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  width: 64px !important;
  height: 64px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: var(--forum-header-cream) !important;
  box-shadow: var(--forum-header-shadow) !important;
  overflow: hidden !important;
  z-index: 100002 !important;
  pointer-events: auto;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease !important;
}

.forum-logo:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25) !important;
}

.forum-logo img {
  position: static !important;
  width: 57px !important;
  height: 57px !important;
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
  margin: 0 !important;
  transform: none !important;
  filter: none !important;
}

.forum-logo .logo-white {
  display: none !important;
}

.forum-logo .logo-black {
  display: block !important;
}

body.menu-open .forum-logo {
  background: #5f5f5f !important;
}

body.menu-open .forum-logo .logo-black {
  display: none !important;
}

body.menu-open .forum-logo .logo-white {
  display: block !important;
}

.forum-menu-btn {
  position: fixed !important;
  top: 15px !important;
  left: 50% !important;
  width: 58px !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--forum-header-cream) !important;
  box-shadow: var(--forum-header-shadow) !important;
  transform: translateX(-50%) !important;
  cursor: pointer;
  z-index: 100002 !important;
  pointer-events: auto;
}

.forum-menu-btn span {
  width: 25px !important;
  height: 2px !important;
  margin: 0 !important;
  display: block !important;
  border-radius: 999px !important;
  background: var(--forum-header-ink) !important;
  box-shadow: none !important;
  transform-origin: center !important;
}

.forum-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}

.forum-menu-btn.active span:nth-child(2) {
  opacity: 0 !important;
}

.forum-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

body.menu-open .forum-menu-btn span,
.forum-menu-btn.active span {
  background: var(--forum-header-ink) !important;
}

.auth-pills {
  position: fixed !important;
  top: 15px !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  left: auto !important;
  width: auto !important;
  max-width: calc(50vw - 62px) !important;
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 100002 !important;
  pointer-events: auto;
}

.lang-switch-wrap {
  width: auto !important;
  min-width: 112px !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--forum-header-cream) !important;
  box-shadow: var(--forum-header-shadow) !important;
}

.lang-switch-wrap .lang-toggle,
.lang-switch-wrap .forum-instagram-link {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--forum-header-ink) !important;
}

.lang-switch-wrap .lang-toggle {
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer;
}

.forum-instagram-link {
  position: relative;
  text-decoration: none !important;
}

.forum-instagram-link::before {
  content: "";
  position: absolute;
  left: -4px;
  width: 1px;
  height: 22px;
  background: rgba(23, 19, 15, 0.18);
}

.forum-instagram-link svg {
  width: 23px !important;
  height: 23px !important;
  display: block !important;
}

.lang-switch-wrap .lang-toggle:hover,
.lang-switch-wrap .forum-instagram-link:hover {
  background: rgba(23, 19, 15, 0.08) !important;
  transform: none !important;
}

.forum-menu {
  z-index: 100000 !important;
  padding: calc(var(--forum-header-height) + 24px) 20px 32px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: rgba(18, 18, 18, 0.96) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
}

.forum-menu a {
  color: #fff !important;
  font-size: clamp(20px, 2vw, 28px) !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55) !important;
}

.forum-menu a:hover {
  color: var(--forum-header-cream) !important;
}

html {
  scroll-padding-top: calc(var(--forum-header-height) + 18px);
}

#news,
.category-page,
.topic-page,
.profile-page,
.admin-create-page {
  padding-top: calc(var(--forum-header-height) + 30px) !important;
  scroll-margin-top: calc(var(--forum-header-height) + 18px) !important;
}

.avatar-crop-modal {
  z-index: 200000 !important;
}

body:has(.avatar-crop-modal.show) .forum-header,
body:has([role="dialog"].show) .forum-header {
  transform: translateY(-120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  :root {
    --forum-header-height: 76px;
  }

  .forum-header {
    height: var(--forum-header-height) !important;
  }

  .forum-logo {
    top: 9px !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    width: 56px !important;
    height: 56px !important;
  }

  .forum-logo img {
    width: 50px !important;
    height: 50px !important;
  }

  .forum-menu-btn {
    top: 10px !important;
    width: 54px !important;
    height: 54px !important;
  }

  .auth-pills {
    top: 10px !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    height: 54px !important;
    transform: none !important;
  }

  .auth-pills > :not(.lang-switch-wrap) {
    display: none !important;
  }

  .lang-switch-wrap {
    min-width: 100px !important;
    height: 54px !important;
    padding: 7px 8px !important;
    gap: 4px !important;
  }

  .lang-switch-wrap .lang-toggle,
  .lang-switch-wrap .forum-instagram-link {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page {
    padding-top: calc(var(--forum-header-height) + 30px) !important;
  }
}

@media (max-width: 350px) {
  .forum-logo {
    width: 52px !important;
    height: 52px !important;
  }

  .forum-logo img {
    width: 47px !important;
    height: 47px !important;
  }

  .forum-menu-btn {
    width: 50px !important;
    height: 50px !important;
  }

  .lang-switch-wrap {
    min-width: 92px !important;
    height: 50px !important;
  }
}

/* ORYN FORUM HEADER: KEEP CONTROLS ABOVE OPEN MENU */
body.menu-open .forum-logo,
body.menu-open .forum-menu-btn,
body.menu-open .auth-pills,
body.menu-open .lang-switch-wrap {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ORYN FORUM HEADER: INTERACTION AND ACCOUNT REPAIR */
.forum-logo img,
body.menu-open .forum-logo img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: center !important;
}

body.menu-open .forum-menu-btn,
.forum-menu-btn.active {
  color: var(--forum-header-ink) !important;
  filter: none !important;
}

body.menu-open .forum-menu-btn.active span,
body.menu-open .forum-menu-btn.active span:nth-child(1),
body.menu-open .forum-menu-btn.active span:nth-child(2),
body.menu-open .forum-menu-btn.active span:nth-child(3),
.forum-menu-btn.active span,
.forum-menu-btn.active span:nth-child(1),
.forum-menu-btn.active span:nth-child(2),
.forum-menu-btn.active span:nth-child(3) {
  background: var(--forum-header-ink) !important;
  background-color: var(--forum-header-ink) !important;
  box-shadow: none !important;
  filter: none !important;
}

.forum-menu {
  pointer-events: none !important;
}

.forum-menu.show {
  pointer-events: auto !important;
}

.forum-menu.show a {
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.forum-account-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0;
}

.forum-account-controls > * {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  :root {
    --forum-header-height: 124px;
  }

  .forum-header {
    height: var(--forum-header-height) !important;
  }

  .auth-pills {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: var(--forum-header-height) !important;
    display: block !important;
    pointer-events: none !important;
  }

  .lang-switch-wrap {
    position: absolute !important;
    top: 10px !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    left: auto !important;
    pointer-events: auto !important;
  }

  .forum-account-controls {
    position: absolute !important;
    top: 74px !important;
    left: 50% !important;
    width: calc(100vw - 24px) !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transform: translateX(-50%) !important;
    pointer-events: auto !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .forum-account-controls::-webkit-scrollbar {
    display: none;
  }

  .forum-account-controls > a,
  .forum-account-controls > .admin-status,
  .forum-account-controls > .supporter-badge,
  .forum-account-controls > .session-timer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .auth-pills > :not(.lang-switch-wrap),
  body.menu-open .auth-pills,
  body.menu-open .forum-account-controls {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #news,
  .category-page,
  .topic-page,
  .profile-page,
  .admin-create-page {
    padding-top: calc(var(--forum-header-height) + 24px) !important;
  }

  body.menu-open .forum-account-controls {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ORYN FORUM MENU ICON: SIZE-INDEPENDENT GEOMETRY */
.forum-menu-btn {
  position: fixed !important;
}

.forum-menu-btn span {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 25px !important;
  height: 2px !important;
  margin: 0 !important;
  transform-origin: center center !important;
}

.forum-menu-btn span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 7px)) !important;
}

.forum-menu-btn span:nth-child(2) {
  transform: translate(-50%, -50%) !important;
}

.forum-menu-btn span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 7px)) !important;
}

.forum-menu-btn.active span:nth-child(1),
body.menu-open .forum-menu-btn span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.forum-menu-btn.active span:nth-child(2),
body.menu-open .forum-menu-btn span:nth-child(2) {
  transform: translate(-50%, -50%) !important;
  opacity: 0 !important;
}

.forum-menu-btn.active span:nth-child(3),
body.menu-open .forum-menu-btn span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

body.menu-open .forum-menu-btn span,
.forum-menu-btn.active span {
  background: #17130f !important;
  background-color: #17130f !important;
  box-shadow: none !important;
}

/* ORYN FORUM MOBILE X: CLICKABLE HITBOX */
.forum-menu-btn {
  z-index: 100010 !important;
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  .auth-pills,
  body.menu-open .auth-pills {
    z-index: 100001 !important;
    pointer-events: none !important;
  }

  .auth-pills .lang-switch-wrap,
  .auth-pills .forum-account-controls,
  body.menu-open .auth-pills .lang-switch-wrap {
    pointer-events: auto !important;
  }

  body.menu-open .forum-account-controls {
    pointer-events: none !important;
  }
}

