/* =========================================================
   PTK FORUM CORE - SAFE UI
========================================================= */

.ptk-forum-wrap,
.ptk-forum-form-wrap,
.ptk-forum-login-box{
  width:100%;
  max-width:980px;
  margin:0 auto;
}

.ptk-forum-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.ptk-forum-title,
.ptk-forum-form-wrap h2{
  margin:0 0 6px;
  color:#f4e3b4;
  font-size:28px;
  line-height:1.25;
}

.ptk-forum-desc{
  margin:0;
  color:#aaa;
  line-height:1.7;
}

.ptk-forum-submit-link,
.ptk-forum-btn-primary,
.ptk-forum-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  transition:all .2s ease;
}

.ptk-forum-submit-link,
.ptk-forum-btn-primary{
  background:#c49a3d;
  color:#111;
  border-color:#c49a3d;
}

.ptk-forum-btn-secondary{
  background:#1a1a1a;
  color:#fff;
}

.ptk-forum-submit-link:hover,
.ptk-forum-btn-primary:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}

.ptk-forum-list{
  display:grid;
  gap:12px;
}

.ptk-forum-card{
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg,#1a1a1a 0%,#121212 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 26px rgba(0,0,0,.20);
}

.ptk-forum-card-link{
  display:flex;
  gap:12px;
  padding:14px;
  color:inherit;
  text-decoration:none;
}

.ptk-forum-card:hover{
  transform:translateY(-2px);
  border-color:rgba(196,154,61,.18);
}

.ptk-forum-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  object-fit:cover;
  background:#111;
}

.ptk-forum-card-body{
  min-width:0;
  flex:1;
}

.ptk-forum-card-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:6px;
  color:#9a9a9a;
  font-size:12.5px;
}

.ptk-forum-card-title{
  margin:0 0 6px;
  color:#f2f2f2;
  font-size:17px;
  line-height:1.45;
}

.ptk-forum-card-excerpt{
  color:#bfbfbf;
  font-size:13.5px;
  line-height:1.65;
}

.ptk-forum-card-footer{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.ptk-forum-cat,
.ptk-forum-comments{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
}

.ptk-forum-cat{
  background:rgba(196,154,61,.16);
  color:#f4e3b4;
}

.ptk-forum-comments{
  background:rgba(255,255,255,.04);
  color:#ccc;
}

.ptk-forum-pagination{
  margin-top:20px;
  text-align:center;
}

.ptk-forum-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  padding:0 12px;
  margin:3px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:#ddd;
  text-decoration:none;
}

.ptk-forum-pagination .current{
  background:#c49a3d;
  color:#111;
}

.ptk-forum-form-wrap,
.ptk-forum-login-box{
  padding:18px;
  border-radius:20px;
  background:linear-gradient(180deg,#1a1a1a 0%,#121212 100%);
  border:1px solid rgba(255,255,255,.06);
}

.ptk-forum-form .ptk-field{
  margin-bottom:16px;
}

.ptk-forum-form label{
  display:block;
  margin-bottom:8px;
  color:#f2f2f2;
  font-weight:700;
}

.ptk-forum-form input[type="text"],
.ptk-forum-form select,
.ptk-forum-form textarea{
  width:100%;
  box-sizing:border-box;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#111;
  color:#fff;
  outline:none;
}

.ptk-forum-form input[type="text"]:focus,
.ptk-forum-form select:focus,
.ptk-forum-form textarea:focus{
  border-color:rgba(196,154,61,.45);
  box-shadow:0 0 0 3px rgba(196,154,61,.10);
}

.ptk-forum-notice.error{
  margin-bottom:14px;
  padding:12px;
  border-radius:14px;
  background:#fff1f1;
  border:1px solid #f0d1d1;
  color:#8a2d2d;
}

.ptk-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ptk-forum-empty{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  color:#bbb;
  text-align:center;
}

@media (max-width:640px){
  .ptk-forum-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .ptk-forum-title,
  .ptk-forum-form-wrap h2{
    font-size:24px;
  }

  .ptk-forum-card-link{
    padding:12px;
  }
}

/* =========================================================
   PTK FORUM UI - PRO CLEAN
========================================================= */

.ptk-forum-wrap{
  width:100%;
  max-width:980px;
  margin:0 auto;
}

.ptk-forum-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.ptk-forum-title{
  margin:0;
  font-size:28px;
  line-height:1.25;
  color:#f4e3b4;
}

.ptk-forum-desc{
  margin:6px 0 0;
  color:#aaa;
  font-size:14px;
  line-height:1.6;
}

.ptk-forum-submit-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:14px;
  background:#c49a3d;
  color:#111 !important;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(196,154,61,.18);
}

.ptk-forum-submit-link:hover{
  background:#d8ae4d;
  color:#111 !important;
  transform:translateY(-1px);
}

/* LIST */
.ptk-forum-list{
  display:grid;
  gap:14px;
}

.ptk-forum-card{
  overflow:hidden;
  border-radius:18px;
  background:linear-gradient(180deg,#1a1a1a 0%,#121212 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 26px rgba(0,0,0,.20);
  transition:all .2s ease;
}

.ptk-forum-card:hover{
  transform:translateY(-2px);
  border-color:rgba(196,154,61,.20);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}

.ptk-forum-card-link{
  display:flex;
  gap:12px;
  padding:14px;
  color:inherit;
  text-decoration:none;
}

.ptk-forum-card-left{
  flex:0 0 46px;
}

.ptk-forum-card-left img,
.ptk-forum-card-left .avatar{
  width:46px;
  height:46px;
  border-radius:999px;
  object-fit:cover;
  display:block;
  border:2px solid rgba(196,154,61,.25);
  background:#111;
}

.ptk-forum-card-body{
  flex:1 1 auto;
  min-width:0;
}

.ptk-forum-card-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:6px;
  font-size:12.5px;
  color:#999;
}

.ptk-forum-card-meta > span:first-child{
  color:#f1f1f1;
  font-weight:700;
}

.ptk-dot{
  opacity:.55;
}

.ptk-forum-card-title{
  margin:0 0 7px;
  font-size:17px;
  line-height:1.45;
  color:#f4e3b4;
}

.ptk-forum-card-excerpt{
  margin:0 0 10px;
  font-size:13.5px;
  line-height:1.65;
  color:#c9c9c9;
}

.ptk-forum-card-footer{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.ptk-forum-cat,
.ptk-forum-comments{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
}

.ptk-forum-cat{
  background:rgba(196,154,61,.14);
  color:#e0bb63;
  border:1px solid rgba(196,154,61,.18);
}

.ptk-forum-comments{
  background:rgba(255,255,255,.04);
  color:#bdbdbd;
  border:1px solid rgba(255,255,255,.07);
}

/* EMPTY */
.ptk-forum-empty{
  padding:22px;
  border-radius:18px;
  background:#171717;
  border:1px solid rgba(255,255,255,.06);
  color:#aaa;
  text-align:center;
}

/* PAGINATION */
.ptk-forum-pagination{
  margin-top:22px;
  display:flex;
  justify-content:center;
}

.ptk-forum-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  margin:0 3px;
  padding:0 12px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  color:#ddd;
  text-decoration:none;
}

.ptk-forum-pagination .page-numbers.current{
  background:#c49a3d;
  color:#111;
  border-color:#c49a3d;
}

/* FORM */
.ptk-forum-form-wrap{
  width:100%;
  max-width:820px;
  margin:0 auto;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(180deg,#1a1a1a 0%,#121212 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 26px rgba(0,0,0,.20);
}

.ptk-forum-form-wrap h2{
  margin:0 0 16px;
  color:#f4e3b4;
  font-size:26px;
  line-height:1.3;
}

.ptk-forum-form .ptk-field{
  margin-bottom:14px;
}

.ptk-forum-form .ptk-field label{
  display:block;
  margin-bottom:7px;
  color:#eee;
  font-size:14px;
  font-weight:700;
}

.ptk-forum-form input[type="text"],
.ptk-forum-form select,
.ptk-forum-form textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#1f1f1f;
  color:#fff;
  outline:none;
}

.ptk-forum-form textarea{
  min-height:180px;
  line-height:1.7;
  resize:vertical;
}

.ptk-forum-form input:focus,
.ptk-forum-form select:focus,
.ptk-forum-form textarea:focus{
  border-color:rgba(196,154,61,.38);
  box-shadow:0 0 0 3px rgba(196,154,61,.08);
}

.ptk-forum-btn-primary,
.ptk-forum-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:14px;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  border:0;
}

.ptk-forum-btn-primary{
  background:#c49a3d;
  color:#111;
}

.ptk-forum-btn-secondary{
  background:rgba(255,255,255,.06);
  color:#eee;
  border:1px solid rgba(255,255,255,.08);
}

.ptk-forum-btn-primary:hover,
.ptk-forum-btn-secondary:hover{
  transform:translateY(-1px);
}

/* MOBILE */
@media (max-width:640px){
  .ptk-forum-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .ptk-forum-title{
    font-size:24px;
  }

  .ptk-forum-submit-link{
    width:100%;
  }

  .ptk-forum-card-link{
    padding:12px;
  }

  .ptk-forum-card-left{
    flex-basis:42px;
  }

  .ptk-forum-card-left img,
  .ptk-forum-card-left .avatar{
    width:42px;
    height:42px;
  }

  .ptk-forum-card-title{
    font-size:16px;
  }

  .ptk-forum-form-wrap{
    padding:14px;
    border-radius:16px;
  }

  .ptk-actions{
    flex-direction:column;
  }

  .ptk-forum-btn-primary,
  .ptk-forum-btn-secondary{
    width:100%;
  }
}

/* =========================================================
   PTK FORUM LIST - THUMBNAIL
========================================================= */

.ptk-forum-card-thumb{
  width:56px;
  height:56px;
  border-radius:14px;
  overflow:hidden;
  background:#111;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 16px rgba(0,0,0,.22);
}

.ptk-forum-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ptk-forum-card:hover .ptk-forum-card-thumb img{
  transform:scale(1.04);
  transition:transform .35s ease;
}

@media (max-width:640px){
  .ptk-forum-card-thumb{
    width:48px;
    height:48px;
    border-radius:12px;
  }
}

/* =========================================================
   PTK FORUM NAV ACTIONS
========================================================= */

.ptk-forum-nav-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.ptk-forum-nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;

  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:#ddd;

  font-size:13px;
  font-weight:700;
  text-decoration:none;
  transition:all .2s ease;
}

.ptk-forum-nav-btn:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.ptk-forum-nav-btn.is-active{
  background:#c49a3d;
  border-color:#c49a3d;
  color:#111;
}

@media (max-width:640px){
  .ptk-forum-nav-actions{
    gap:6px;
  }

  .ptk-forum-nav-btn{
    flex:1 1 auto;
    min-height:38px;
    padding:0 10px;
    font-size:12.5px;
  }
}

/* =========================================================
   PTK FORUM BADGE SPACING FIX
========================================================= */

.ptk-forum-author-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:6px;
  vertical-align:middle;
}

.ptk-forum-author-badge .ptk-badge,
.ptk-forum-author-badge span{
  margin-left:4px;
}

.ptk-forum-card-meta,
.ptk-author-name{
  gap:6px;
}

/* =========================================================
   📌 PTK FORUM - ROOM BACK BUTTON
========================================================= */
.ptk-forum-room-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  margin: 0 0 14px;
  padding: 9px 14px;

  border-radius: 999px;
  border: 1px solid rgba(196,154,61,0.32);
  background: rgba(255,255,255,0.05);

  color: #f5d061;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  transition: all 0.2s ease;
}

.ptk-forum-room-back:hover {
  background: rgba(196,154,61,0.14);
  border-color: rgba(196,154,61,0.65);
  color: #fff2b8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.ptk-forum-room-back:active {
  transform: translateY(0);
}

.ptk-forum-room-back::before {
  content: "‹";
  font-size: 22px;
  line-height: 0.8;
}

/* =========================================================
   📌 FIX: REMOVE UNDERLINE FORCE
========================================================= */
.ptk-forum-room-back,
.ptk-forum-room-back:link,
.ptk-forum-room-back:visited,
.ptk-forum-room-back:hover,
.ptk-forum-room-back:focus,
.ptk-forum-room-back:active {
  text-decoration: none !important;
  box-shadow: none !important;
}

.ptk-forum-room-back * {
  text-decoration: none !important;
}

/* =========================
   CARD
========================= */
.ptk-forum-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* =========================
   PIN (DESKTOP)
========================= */
.ptk-forum-card-pin {
  position: absolute;
  top: 10px;
  right: 12px;

  padding: 0;
  border: none;
  z-index: 2;
}

/* =========================
   MOBILE FIX (ไม่ให้บังหัวข้อ)
========================= */
@media (max-width: 768px) {

  .ptk-forum-card-pin {
    position: static;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
  }

}

/* =========================
   PIN BUTTON
========================= */
.ptk-forum-pin-room-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 12px;
  font-weight: 500;

  padding: 5px 12px;
  border-radius: 999px;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);

  color: rgba(255,255,255,0.85);

  border: 1px solid rgba(255,255,255,0.12);

  text-decoration: none;
  transition: all 0.25s ease;
}

/* hover */
.ptk-forum-pin-room-btn:hover {
  background: rgba(0,0,0,0.75);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* =========================
   PINNED STATE
========================= */
.ptk-forum-pin-room-btn.is-pinned {
  background: rgba(196,154,61,0.18);
  color: #f0c96a;
  border: 1px solid rgba(196,154,61,0.45);
}

/* hover pinned */
.ptk-forum-pin-room-btn.is-pinned:hover {
  background: rgba(196,154,61,0.28);
  color: #ffd978;
}

/* =========================
   STAR ICON
========================= */
.ptk-pin-star {
  font-size: 12px;
  margin-right: 4px;
  transition: all 0.25s ease;

  color: rgba(255,255,255,0.35);
}

/* hover */
.ptk-forum-pin-room-btn:hover .ptk-pin-star {
  color: rgba(255,255,255,0.7);
}

/* pinned */
.ptk-forum-pin-room-btn.is-pinned .ptk-pin-star {
  color: #f5d061;
  text-shadow: 0 0 6px rgba(245,208,97,0.4);
}

/* hover pinned */
.ptk-forum-pin-room-btn.is-pinned:hover .ptk-pin-star {
  color: #ffd978;
}

/* =========================
   MOBILE SPACING FIX 
========================= */
@media (max-width: 768px) {

  .ptk-forum-card-pin {
    padding: 0 12px 12px;  
  }

  .ptk-forum-pin-room-btn {
    margin-right: 4px;
    margin-bottom: 2px;    
  }

}

@media (max-width: 768px) {

  .ptk-forum-card {
    display: flex;
    flex-direction: column;
  }

  .ptk-forum-card-pin {
    order: -1; 
    position: static;

    padding: 10px 16px 0;
    display: flex;
     justify-content: flex-start;
  }

}

/* =========================================================
   📌 PTK FORUM - BEST ANSWER COMPONENT
========================================================= */

/* =========================
   🟡 BEST ANSWER BOX
========================= */
.ptk-best-answer-box {
  margin: 20px 0;
  padding: 14px;
  border-radius: 12px;

  background: rgba(196,154,61,0.08);
  border: 1px solid rgba(196,154,61,0.35);
}

/* =========================
   🏷️ LABEL (หัวข้อคำตอบเด่น)
========================= */
.ptk-best-answer-label {
  font-weight: 700;
  color: #f5d061;
  margin-bottom: 6px;
}

/* =========================
   🔘 BUTTON (เลือกคำตอบเด่น)
========================= */
.ptk-best-answer-btn {
  font-size: 12px;
  color: #aaa;
  transition: color 0.2s ease;
}

/* =========================
   ⭐ ACTIVE STATE
========================= */
.ptk-best-answer-btn.is-best {
  color: #f5d061;
}

/* =========================================================
   PTK FORUM - FINAL CLEAN (NO SCROLL + BREATHING UI)
========================================================= */

/* 🔒 กันล้นทั้งหน้า */
html,
body {
  overflow-x: hidden;
}

/* 🔒 wrapper หลัก */
.ptk-forum-single-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* =========================================================
   🔥 COMMENT LAYOUT CLEAN
========================================================= */

.ptk-comments-wrap,
.ptk-comment-list {
  width: 99%;
  max-width: 99%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ptk-comment-card {
  width: 99%;
  max-width: 99%;
  margin: 0 auto;
  overflow: visible;
  box-sizing: border-box;
}

/* bubble (กล่องคอมเมนต์) */
.ptk-comment-bubble {
  width: 98.5%; /* 🔥 กันชนขอบจริง */
  max-width: 98.5%;
  margin-left: 0;
  margin-right: auto;
  overflow: visible;
  box-sizing: border-box;
}

/* =========================================================
   🔥 CONTENT (NO SCROLL REAL)
========================================================= */

.ptk-comment-content {
  max-width: 100%;
  overflow: visible;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* บังคับแตกข้อความ */
.ptk-comment-content,
.ptk-comment-content * {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* code block */
.ptk-comment-content pre,
.ptk-comment-content code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow: visible;
}

/* media */
.ptk-forum-single-content img,
.ptk-comment-content img,
.ptk-comment-content iframe,
.ptk-comment-content video,
.ptk-forum-single-images img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* link ยาว */
.ptk-forum-single-content a,
.ptk-comment-content a {
  word-break: break-word;
}

/* =========================================================
   🔥 FORM WIDTH FIX
========================================================= */

.ptk-comment-form,
.ptk-comment-form-shell,
.ptk-comment-form-body,
.ptk-comment-textarea {
  width: 98.5%;
  max-width: 98.5%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* =========================================================
   PTK FORUM COMMENT ACTIONS STYLE
========================================================= */

.ptk-delete-comment-btn,
.ptk-report-comment-btn,
.ptk-comment-reported {
  font-size: 12px;
  text-decoration: none;
}

.ptk-delete-comment-btn {
  color: #aaa;
}

.ptk-delete-comment-btn:hover {
  color: #ff5c5c;
}

.ptk-report-comment-btn {
  color: #aaa;
}

.ptk-report-comment-btn:hover {
  color: #ffcc66;
}

.ptk-comment-reported {
  color: #888;
}

/* =========================================================
   🔥 COMMENT HIDDEN (REPORT SYSTEM)
========================================================= */

.ptk-comment-hidden {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(196,154,61,0.10);
  border: 1px solid rgba(196,154,61,0.28);
  color: #f5d061;
  font-size: 13px;
  line-height: 1.6;
}

.ptk-comment-hidden.is-critical {
  background: rgba(255, 92, 92, 0.10);
  border-color: rgba(255, 92, 92, 0.35);
  color: #ff9a9a;
}

/* =========================================================
   PTK FORUM - PINNED TOPIC UI
========================================================= */

.ptk-forum-card.is-pinned-topic {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(20, 20, 20, 0.96));
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.14);
}

.ptk-forum-card.is-pinned-topic::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: #d4af37;
}

.ptk-forum-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #f5d061;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.ptk-pin-topic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #f5d061;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ptk-pin-topic-btn:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.75);
    color: #fff2b8;
    transform: translateY(-1px);
}

.ptk-pin-topic-btn.is-pinned {
    background: linear-gradient(135deg, #d4af37, #8f6b18);
    border-color: rgba(255, 230, 150, 0.85);
    color: #17120a;
}

.ptk-forum-card-pin {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.ptk-forum-card {
    position: relative;
}

@media (max-width: 640px) {
    .ptk-forum-card-pin {
        position: static;
        margin-top: 10px;
        padding: 0 12px 12px;
    }

    .ptk-pin-topic-btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
    }

    .ptk-forum-pinned-badge {
        font-size: 11px;
    }
}

/* =========================================================
   ADMIN PINNED (CLEAN VERSION - NO OVERLAY LABEL)
========================================================= */

.ptk-forum-card.is-admin-pinned-topic {
    position: relative;
    border: 1px solid rgba(255, 207, 92, 0.6);
    background: linear-gradient(135deg, rgba(255, 207, 92, 0.08), rgba(20, 20, 20, 0.96));
    box-shadow: 0 10px 28px rgba(255, 190, 60, 0.14);
}

/* เส้นทองด้านซ้าย (แทน label) */
.ptk-forum-card.is-admin-pinned-topic::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd76a, #b88718);
}

/* badge เล็กใน meta */
.ptk-forum-admin-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 215, 106, 0.14);
    border: 1px solid rgba(255, 215, 106, 0.45);
    color: #ffe39a;
    font-size: 12px;
    font-weight: 800;
}

/* ปุ่มแอดมิน */
.ptk-admin-pin-topic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 215, 106, 0.08);
    border: 1px solid rgba(255, 215, 106, 0.35);
    color: #ffe39a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ptk-admin-pin-topic-btn:hover {
    background: rgba(255, 215, 106, 0.18);
    border-color: rgba(255, 230, 150, 0.8);
    color: #fff6cf;
    transform: translateY(-1px);
}

.ptk-admin-pin-topic-btn.is-pinned {
    background: linear-gradient(135deg, #ffd76a, #b88718);
    border-color: rgba(255, 238, 170, 0.9);
    color: #1b1204;
}

/* มือถือ */
@media (max-width: 640px) {
    .ptk-forum-card.is-admin-pinned-topic::before {
        top: 10px;
        bottom: 10px;
    }
}

/* =========================================================
   PTK FORUM PINNED UI - PREMIUM CLEAN
   Admin announcement + personal pinned
========================================================= */

/* ---------- Admin pinned card ---------- */
.ptk-forum-card.is-admin-pinned-topic {
    position: relative;
    border: 1px solid rgba(255, 215, 106, 0.62);
    background:
        radial-gradient(circle at top right, rgba(255, 215, 106, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 215, 106, 0.08), rgba(13, 13, 13, 0.98));
    box-shadow:
        0 12px 34px rgba(255, 190, 60, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.ptk-forum-card.is-admin-pinned-topic::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe39a, #b88718);
    box-shadow: 0 0 16px rgba(255, 215, 106, 0.35);
}

.ptk-forum-card.is-admin-pinned-topic:hover {
    border-color: rgba(255, 230, 150, 0.82);
    box-shadow:
        0 16px 42px rgba(255, 190, 60, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---------- Personal pinned card ---------- */
.ptk-forum-card.is-pinned-topic:not(.is-admin-pinned-topic) {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.46);
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 32%),
        linear-gradient(135deg, rgba(212, 175, 55, 0.055), rgba(13, 13, 13, 0.97));
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.1);
}

.ptk-forum-card.is-pinned-topic:not(.is-admin-pinned-topic)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.78);
}

/* ---------- Badges ---------- */
.ptk-forum-admin-pinned-badge,
.ptk-forum-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    vertical-align: middle;
}

.ptk-forum-admin-pinned-badge {
    background: rgba(255, 215, 106, 0.14);
    border: 1px solid rgba(255, 215, 106, 0.5);
    color: #ffe39a;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.ptk-forum-pinned-badge {
    background: rgba(212, 175, 55, 0.11);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f5d061;
}

/* ---------- Buttons container ---------- */
.ptk-forum-card-pin {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 0 14px 14px;
    flex-wrap: wrap;
}

/* ---------- User pin button ---------- */
.ptk-pin-topic-btn,
.ptk-admin-pin-topic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.ptk-pin-topic-btn {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #f5d061;
}

.ptk-pin-topic-btn:hover {
    background: rgba(212, 175, 55, 0.17);
    border-color: rgba(245, 208, 97, 0.72);
    color: #fff2b8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.12);
}

.ptk-pin-topic-btn.is-pinned {
    background: linear-gradient(135deg, #f5d061, #a8791b);
    border-color: rgba(255, 235, 160, 0.86);
    color: #17120a;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.16);
}

/* ---------- Admin pin button ---------- */
.ptk-admin-pin-topic-btn {
    background: rgba(255, 215, 106, 0.08);
    border: 1px solid rgba(255, 215, 106, 0.38);
    color: #ffe39a;
}

.ptk-admin-pin-topic-btn:hover {
    background: rgba(255, 215, 106, 0.18);
    border-color: rgba(255, 235, 160, 0.82);
    color: #fff6cf;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 190, 60, 0.14);
}

.ptk-admin-pin-topic-btn.is-pinned {
    background: linear-gradient(135deg, #ffe39a, #b88718);
    border-color: rgba(255, 238, 170, 0.9);
    color: #17120a;
    box-shadow: 0 10px 24px rgba(255, 190, 60, 0.18);
}

/* ---------- Meta layout polish ---------- */
.ptk-forum-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .ptk-forum-card.is-admin-pinned-topic::before,
    .ptk-forum-card.is-pinned-topic:not(.is-admin-pinned-topic)::before {
        top: 12px;
        bottom: 12px;
    }

    .ptk-forum-card-pin {
        justify-content: stretch;
        padding: 0 12px 12px;
    }

    .ptk-pin-topic-btn,
    .ptk-admin-pin-topic-btn {
        width: 100%;
        min-height: 40px;
        font-size: 13px;
    }

    .ptk-forum-admin-pinned-badge,
    .ptk-forum-pinned-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.ptk-topic-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    padding: 24px;
}

.ptk-topic-lightbox.is-active {
    display: flex;
}

.ptk-topic-lightbox-img {
    max-width: min(96vw, 1200px);
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.65);
}

.ptk-topic-lightbox-close,
.ptk-topic-lightbox-prev,
.ptk-topic-lightbox-next {
    position: absolute;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    transition: .2s ease;
}

.ptk-topic-lightbox-close:hover,
.ptk-topic-lightbox-prev:hover,
.ptk-topic-lightbox-next:hover {
    background: rgba(245, 208, 97, 0.25);
    color: #f5d061;
}

.ptk-topic-lightbox-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.ptk-topic-lightbox-prev,
.ptk-topic-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 64px;
    border-radius: 999px;
    font-size: 46px;
    line-height: 1;
}

.ptk-topic-lightbox-prev {
    left: 20px;
}

.ptk-topic-lightbox-next {
    right: 20px;
}

body.ptk-topic-lightbox-lock {
    overflow: hidden;
}

@media (max-width: 640px) {
    .ptk-topic-lightbox {
        padding: 12px;
    }

    .ptk-topic-lightbox-img {
        max-width: 96vw;
        max-height: 82vh;
    }

    .ptk-topic-lightbox-prev,
    .ptk-topic-lightbox-next {
        width: 38px;
        height: 54px;
        font-size: 38px;
    }
}

/* =========================================================
   PTK FORUM STATS (VIEW + TRENDING)
========================================================= */

.ptk-forum-views{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:13px;
  font-weight:700;
  color:#f5d061;
}

.ptk-forum-comments{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:13px;
  font-weight:700;
  color:#ccc;
}

/* 🔥 กำลังมาแรง */
.ptk-forum-trending-badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(255,80,0,0.15);
  border:1px solid rgba(255,80,0,0.45);
  color:#ff7a18;
}

/* hover highlight กระทู้มาแรง */
.ptk-forum-card:hover .ptk-forum-trending-badge{
  background:rgba(255,120,0,0.22);
  border-color:rgba(255,140,0,0.65);
  color:#ffb347;
}

/* ถ้าเป็น trending ให้ทั้ง card เด่น */
.ptk-forum-card:has(.ptk-forum-trending-badge){
  border:1px solid rgba(255,140,0,0.25);
}

/* hover */
.ptk-forum-card:has(.ptk-forum-trending-badge):hover{
  box-shadow:0 10px 28px rgba(255,120,0,0.18);
  border-color:rgba(255,160,0,0.5);
}

/* mobile */
@media (max-width:640px){
  .ptk-forum-views,
  .ptk-forum-comments{
    font-size:12px;
  }

  .ptk-forum-trending-badge{
    font-size:11px;
    padding:3px 7px;
  }
}

/* =========================================================
   🏆 RANK BADGE
========================================================= */

.ptk-forum-rank-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

/* TOP 1 */
.ptk-forum-rank-badge.rank-1{
  background:linear-gradient(135deg,#ffd76a,#b88718);
  color:#1b1204;
  box-shadow:0 0 12px rgba(255,215,106,.35);
}

/* TOP 2 */
.ptk-forum-rank-badge.rank-2{
  background:rgba(200,200,200,.15);
  border:1px solid rgba(200,200,200,.4);
  color:#ddd;
}

/* TOP 3 */
.ptk-forum-rank-badge.rank-3{
  background:rgba(205,127,50,.18);
  border:1px solid rgba(205,127,50,.5);
  color:#e6b17a;
}

/* =========================================================
   🔥 TRENDING PULSE
========================================================= */

.ptk-forum-trending-badge{
  animation:ptkPulse 1.8s infinite ease-in-out;
}

@keyframes ptkPulse{
  0%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(255,120,0,0.5);
  }
  50%{
    transform:scale(1.05);
    box-shadow:0 0 10px 4px rgba(255,120,0,0.25);
  }
  100%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(255,120,0,0);
  }
}

/* =========================================================
   PTK FORUM LIKE - STABLE AJAX UI
   รวมปุ่ม Like กระทู้ + คอมเมนต์ / กัน layout shift
========================================================= */

html {
  overflow-anchor: none;
}

.ptk-forum-card-engagement {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 4px;
  padding-top: 4px;
  padding-left: 14px;
}

.ptk-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #bbb;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  transition: background .2s ease, color .2s ease;
}

.ptk-like-btn:hover {
  color: #ff7a90;
  background: rgba(255,80,120,0.08);
}

.ptk-like-btn.is-liked {
  color: #ff4d6d;
  background: rgba(255,80,120,0.15);
  font-weight: 800;
}

.ptk-comment-like-btn,
.ptk-topic-like-btn,
.ptk-forum-topic-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 92px;
  white-space: nowrap;
  vertical-align: middle;
  scroll-margin: 0 !important;
}

.ptk-comment-like-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.ptk-like-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  line-height: 1;
}

.ptk-like-label {
  display: inline-block;
  min-width: 48px;
}

.ptk-like-count {
  display: inline-block;
  min-width: 18px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   PTK FORUM LIKE - SOFT PULSE UX
   animation เบา ๆ ไม่ดัน layout
========================================================= */

.ptk-comment-like-btn,
.ptk-topic-like-btn,
.ptk-forum-topic-like-btn {
  transform-origin: center;
}

.ptk-like-pulse .ptk-like-heart {
  animation: ptkLikeHeartPulse 0.28s ease-out;
}

@keyframes ptkLikeHeartPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

/* =========================================================
   PTK FORUM INFINITE SCROLL - LOAD MORE UI
   ปุ่มโหลดกระทู้เพิ่มเติม / สถานะกำลังโหลด / แสดงครบแล้ว
========================================================= */

.ptk-forum-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 22px 0 14px;
}

.ptk-forum-load-more-btn {
  border: 1px solid rgba(196, 154, 61, 0.42);
  background: rgba(196, 154, 61, 0.12);
  color: #f5d061;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.ptk-forum-load-more-btn:hover {
  background: rgba(196, 154, 61, 0.2);
  border-color: rgba(245, 208, 97, 0.65);
  color: #fff1b8;
}

.ptk-forum-load-more-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
}

.ptk-forum-load-more-btn.is-loading {
  opacity: 0.78;
}

/* =========================================================
   PTK FORUM TAGS (LIGHT RED VERSION)
   SAFE MODE: ไม่แตะ card / badge / footer เดิม
========================================================= */

.ptk-forum-card-body > .ptk-forum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
}

.ptk-forum-card-body > .ptk-forum-tags .ptk-forum-tag {
  display: inline-flex;
  align-items: center;

  padding: 4px 9px;
  border-radius: 999px;

  border: 1px solid rgba(255,90,90,0.28);
  background: rgba(255,90,90,0.08);
  color: #ff8a8a;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;

  white-space: nowrap;
  transition: all 0.15s ease;
}

.ptk-forum-card-body > .ptk-forum-tags .ptk-forum-tag:hover {
  background: rgba(255,90,90,0.16);
  border-color: rgba(255,90,90,0.45);
  color: #ffb3b3;
}

/* help text เฉพาะฟอร์ม */
.ptk-forum-form .ptk-field-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* =========================================================
   PTK FORUM SINGLE TAGS
   - ปรับให้เนียน + อ่านง่ายขึ้น
========================================================= */

.ptk-forum-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
}

.ptk-forum-single-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;

  border-radius: 999px;
  border: 1px solid rgba(255,90,90,0.30);

  background: rgba(255,90,90,0.09);
  color: #ff9a9a;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;

  text-decoration: none !important;
  white-space: nowrap;

  transition: all 0.18s ease;
}

.ptk-forum-single-tag:hover {
  background: rgba(255,90,90,0.18);
  border-color: rgba(255,90,90,0.55);
  color: #ffd1d1;

  transform: translateY(-1px);
}

/* =========================================================
   PTK FORUM SINGLE ACTION BUTTONS
   - Bookmark + Pin ขนาดเท่ากัน / ไม่เต็มจอ
========================================================= */

.ptk-forum-single-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px;
}

.ptk-forum-single-actions .ptk-bookmark-toggle,
.ptk-forum-single-actions .ptk-pin-topic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: auto;
  min-width: 140px;
  min-height: 38px;
  padding: 8px 14px;

  border-radius: 10px;
  border: 1px solid rgba(196,154,61,0.35);

  background: rgba(255,255,255,0.05);
  color: #e8e1d2 !important;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  transition: all 0.2s ease;

  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.ptk-forum-single-actions .ptk-bookmark-toggle:hover,
.ptk-forum-single-actions .ptk-pin-topic-btn:hover {
  background: rgba(196,154,61,0.15);
  border-color: rgba(196,154,61,0.7);
  color: #f5d061 !important;
  transform: translateY(-1px);
}

.ptk-forum-single-actions .ptk-bookmark-toggle.is-active,
.ptk-forum-single-actions .ptk-pin-topic-btn.is-pinned {
  background: linear-gradient(135deg, #c49a3d, #f5d061);
  border-color: #c49a3d;
  color: #111 !important;
  box-shadow: 0 4px 12px rgba(196,154,61,0.35);
}

@media (max-width: 640px) {
  .ptk-forum-single-actions {
    justify-content: flex-start;
  }

  .ptk-forum-single-actions .ptk-bookmark-toggle,
  .ptk-forum-single-actions .ptk-pin-topic-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
  }
}

/* =========================================================
   PTK FORUM SEARCH FORM
   - ช่องค้นหากระทู้
========================================================= */

.ptk-forum-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  max-width: 420px;
}

.ptk-forum-search-form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;

  border-radius: 10px;
  border: 1px solid rgba(196,154,61,0.25);

  background: rgba(255,255,255,0.05);
  color: #f2f2f2;

  font-size: 13px;
  outline: none;
}

.ptk-forum-search-form input[type="text"]::placeholder {
  color: rgba(255,255,255,0.45);
}

.ptk-forum-search-form input[type="text"]:focus {
  border-color: rgba(196,154,61,0.65);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(196,154,61,0.10);
}

.ptk-forum-search-form button {
  height: 38px;
  padding: 0 14px;

  border-radius: 10px;
  border: 1px solid rgba(196,154,61,0.35);

  background: rgba(196,154,61,0.14);
  color: #f5d061;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
  transition: all 0.18s ease;
}

.ptk-forum-search-form button:hover {
  background: rgba(196,154,61,0.24);
  border-color: rgba(245,208,97,0.65);
  color: #fff2b8;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ptk-forum-search-form {
    max-width: 100%;
  }

  .ptk-forum-search-form input[type="text"] {
    height: 40px;
  }

  .ptk-forum-search-form button {
    height: 40px;
    flex: 0 0 auto;
  }
}

/* =========================================================
   PTK FORUM ROOM SEARCH
========================================================= */

.ptk-forum-room-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  max-width: 420px;
}

.ptk-forum-room-search-form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(196,154,61,0.25);
  background: rgba(255,255,255,0.05);
  color: #f2f2f2;
  font-size: 13px;
  outline: none;
}

.ptk-forum-room-search-form input[type="text"]::placeholder {
  color: rgba(255,255,255,0.45);
}

.ptk-forum-room-search-form input[type="text"]:focus {
  border-color: rgba(196,154,61,0.65);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(196,154,61,0.10);
}

.ptk-forum-room-search-form button {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(196,154,61,0.35);
  background: rgba(196,154,61,0.14);
  color: #f5d061;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ptk-forum-room-search-form button:hover {
  background: rgba(196,154,61,0.24);
  border-color: rgba(245,208,97,0.65);
  color: #fff2b8;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ptk-forum-room-search-form {
    max-width: 100%;
  }

  .ptk-forum-room-search-form input[type="text"],
  .ptk-forum-room-search-form button {
    height: 40px;
  }
}