/* V13.2: mật khẩu hiện/ẩn trong các biểu mẫu hội viên */
/* V13.2.3: icon đúng trạng thái mắt gạch chéo (ẩn) / mắt mở (hiện), nét mảnh sáng */
.member-form .tg-password-control{position:relative;display:block;width:100%;min-width:0}
.member-form .tg-password-control input{display:block;width:100%;padding-right:48px!important}
/* Quan trọng: ghi đè .member-security button{width:100%;padding:12px} của V9. */
.member-form .tg-password-control > button.tg-password-toggle{
  position:absolute;right:5px;top:50%;transform:translateY(-50%);
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:36px!important;min-width:36px;max-width:36px;height:36px!important;min-height:36px;
  margin:0!important;padding:0!important;border:0!important;border-radius:8px;
  background:transparent!important;color:#e9edf4;box-shadow:none!important;
  font-size:0;line-height:1;cursor:pointer;z-index:2;appearance:none;
}
.member-form .tg-password-control > button.tg-password-toggle:hover{background:rgba(235,241,255,.12)!important;color:#fff;filter:none}
.member-form .tg-password-control > button.tg-password-toggle:focus-visible{outline:2px solid var(--gold,#e5be73);outline-offset:-2px}
.member-form .tg-password-toggle svg{display:block;pointer-events:none;width:20px;height:20px}
html[data-tg-mode="light"] .member-form .tg-password-control > button.tg-password-toggle{color:#374151!important}
html[data-tg-mode="light"] .member-form .tg-password-control > button.tg-password-toggle:hover{background:rgba(54,65,81,.1)!important;color:#111827!important}
@media (prefers-reduced-motion:reduce){.member-form .tg-password-toggle{transition:none}}
/* V13.2: hội nhóm. Tái sử dụng màu từ trình chỉnh giao diện V12.5/V12.9 */
.tg-forum-shell{padding-top:22px;padding-bottom:80px;max-width:1190px;min-height:60vh}
.tg-forum-header{padding:30px 22px 28px;text-align:center;border:1px solid var(--line);background:linear-gradient(145deg,var(--surface,#131a25),var(--surface2,#1c2835));border-radius:16px;margin-bottom:22px}
.tg-forum-eyebrow{display:inline-block;color:var(--gold,#e5be73);font-size:11px;letter-spacing:.18em;font-weight:800}
.tg-forum-header h1{font:bold clamp(26px,3.5vw,41px)/1.25 Georgia,'Times New Roman',serif;color:var(--gold,#e5be73);margin:12px 0}
.tg-forum-header p{color:var(--muted,#a7b1be);margin:0 auto;max-width:700px;font-size:14px}
.tg-forum-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:17px 0}
.tg-forum-toolbar h2,.tg-forum-feed-title h2{font-size:20px;margin:0;color:var(--gold,#e5be73)}
.tg-forum-toolbar small{color:var(--muted,#a7b1be)}
.tg-forum-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.tg-forum-card,.tg-forum-panel,.tg-forum-post{border:1px solid var(--line);background:var(--surface,#131c29);border-radius:13px;padding:20px;overflow-wrap:anywhere}
.tg-forum-card{display:flex;flex-direction:column;min-height:200px;transition:transform .2s,border-color .2s}
.tg-forum-card:hover{transform:translateY(-3px);border-color:var(--gold,#e5be73)}
.tg-forum-card-icon{font-size:25px;color:var(--gold,#e5be73)}
.tg-forum-card h2,.tg-forum-panel h2{color:var(--gold,#e5be73);font-size:20px;margin:10px 0 7px}
.tg-forum-card p,.tg-forum-panel p{color:var(--muted,#a7b1be);line-height:1.7}
.tg-forum-card-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted,#a7b1be);font-size:11px;margin-top:auto;padding-top:14px}
.tg-forum-panel{margin:15px 0 20px}
.tg-forum-panel[hidden]{display:none!important}
.tg-forum-form{display:grid;gap:13px}
.tg-forum-form label{display:grid;gap:8px;color:var(--gold,#e5be73);font-weight:700;font-size:13px}
.tg-forum-form input,.tg-forum-form textarea{display:block;width:100%;background:var(--surface2,#1b2634);color:var(--white,#fff);border:1px solid var(--line);padding:12px;border-radius:9px;resize:vertical;min-width:0}
.tg-forum-form textarea:focus,.tg-forum-form input:focus{outline:2px solid var(--gold,#e5be73);outline-offset:1px}
.tg-forum-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.tg-forum-actions .gold-btn,.tg-forum-form .gold-btn,.tg-forum-toolbar .gold-btn{margin:0}
.tg-forum-hint{font-size:12px;color:var(--muted,#a7b1be);line-height:1.75}
.tg-forum-group-summary{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;flex-wrap:wrap}
.tg-forum-group-summary>div:first-child{flex:1;min-width:240px}
.tg-forum-group-summary small{color:var(--muted,#a7b1be)}
.tg-forum-closed{font-size:12px;color:var(--muted,#a7b1be)}
.tg-forum-feed{margin-top:27px}
.tg-forum-feed-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px;flex-wrap:wrap}
.tg-forum-feed-title a{color:var(--gold,#e5be73)}
.tg-forum-post{margin-bottom:13px}
.tg-forum-post-head{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;gap:10px;color:var(--gold,#e5be73)}
.tg-forum-post-head time,.tg-forum-post-head small{font-size:12px;color:var(--muted,#a7b1be)}
.tg-forum-post-body{white-space:normal;overflow-wrap:anywhere;line-height:1.8;margin:14px 0 18px;color:var(--white,#fff)}
.tg-forum-post-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tg-forum-danger{color:#f49d94;background:transparent;border:1px solid #bf6b60;border-radius:8px;padding:8px 13px;font-size:12px}
.tg-forum-danger:hover{background:rgba(188,65,55,.15)}
.tg-forum-comment{border-bottom:1px solid var(--line);padding:13px 0}
.tg-forum-comment p{white-space:normal;line-height:1.7;overflow-wrap:anywhere}
#tg-forum-comments{margin-top:17px;border-top:1px solid var(--line);padding-top:12px}
#tg-forum-comments h3{color:var(--gold,#e5be73)}
.tg-forum-error h2{color:#efa099}
.tg-forum-status{flex-basis:100%;font-size:12px;color:#e5ad92}
@media(max-width:960px){.tg-forum-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tg-forum-grid{grid-template-columns:1fr}.tg-forum-header{padding:23px 12px}.tg-forum-card,.tg-forum-panel,.tg-forum-post{padding:16px}.tg-forum-group-summary>div:first-child{min-width:0}}
/* V13.4 — Hội nhóm: ảnh bìa, vai trò, danh sách duyệt, báo cáo, bài ghim */
.tg-v134-card{padding:0;min-height:260px;overflow:hidden;text-decoration:none}
.tg-v134-card-cover,.tg-v134-card-fallback{display:block;width:100%;height:120px;object-fit:cover;flex:none}
.tg-v134-card-fallback,.tg-v134-hero-empty{display:grid;place-items:center;background:linear-gradient(115deg,#242536,#3f362b,#101a29);color:#eac784;letter-spacing:.13em;font-family:Georgia,serif;font-weight:700}
.tg-v134-card-content{padding:10px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.tg-v134-card-content p{margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tg-v134-card-name{display:flex;align-items:center;gap:10px}
.tg-v134-card-name h2{margin:4px 0 7px;font-size:18px}
.tg-v134-small-avatar{height:42px;width:42px;object-fit:cover;border-radius:12px;border:1px solid var(--gold,#e5be73);flex:none}
.tg-v134-fallback{display:grid;place-items:center;color:var(--gold,#e5be73);background:var(--surface2,#1b2634)}
.tg-v134-group-top{padding:16px}
.tg-v134-hero{width:100%;height:245px;object-fit:cover;border-radius:12px}
.tg-v134-hero-empty{font-size:clamp(16px,3vw,28px)}
.tg-v134-group-title{display:flex;align-items:center;gap:18px;padding:18px 5px}
.tg-v134-group-title>div:nth-child(2){flex:1;min-width:0}
.tg-v134-group-title h2{font-size:clamp(21px,2.8vw,30px);margin:0}
.tg-v134-group-title p{margin:8px 0}
.tg-v134-group-title small{color:var(--muted,#a7b1be)}
.tg-v134-avatar{width:84px;height:84px;object-fit:cover;border-radius:18px;border:2px solid var(--gold,#e5be73);flex:none}
.tg-v134-avatar-empty{background:var(--surface2,#1b2634);display:grid;place-items:center;color:var(--gold,#e5be73);font-size:26px}
.tg-v134-private-notice{text-align:center;padding:30px 20px}
.tg-v134-pin-label{display:inline-block;border-radius:20px;border:1px solid var(--gold,#e5be73);padding:5px 11px;color:var(--gold,#e5be73);font-size:12px;margin-bottom:10px}
.tg-v134-post-image{max-width:min(100%,600px);max-height:520px;object-fit:contain;border:1px solid var(--line);display:block;border-radius:11px;margin:12px 0 18px}
.tg-v134-manage-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.tg-v134-management-panel{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.tg-v134-management-panel[hidden]{display:none!important}
.tg-v134-management-panel h3{color:var(--gold,#e5be73)}
.tg-v134-member-row{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}
.tg-v134-member-id{font-family:monospace}
.tg-v134-chip{border:1px solid var(--line);border-radius:20px;padding:7px 10px;font-size:12px;white-space:nowrap;color:var(--gold,#e5be73)}
.tg-v134-report{padding:12px 0;border-bottom:1px solid var(--line)}
.tg-v134-report p{margin:4px 0 9px}
.tg-forum-form select{display:block;width:100%;background:var(--surface2,#1b2634);color:var(--white,#fff);border:1px solid var(--line);padding:12px;border-radius:9px;min-width:0}
.tg-forum-form input[type=file]{font-size:12px;cursor:pointer;max-width:100%}
.tg-forum-form input[type=file]::file-selector-button{border:1px solid var(--line);border-radius:8px;padding:7px 12px;margin-right:10px;background:var(--surface,#131c29);color:var(--gold,#e5be73);cursor:pointer}
.tg-v134-group-top .tg-forum-actions{margin:0 4px 6px}
@media(max-width:600px){.tg-v134-hero{height:160px}.tg-v134-avatar{height:62px;width:62px}.tg-v134-group-title{align-items:start;gap:12px}.tg-v134-card-cover{height:140px}}
