/* Module thành viên & bình luận — Hentai18 */
:root {
    --u-accent: var(--accent, #e2497b);
    --u-accent-dark: var(--accent-dark, #c03e69);
    --u-bg: var(--bg-2, #0e0e12);
    --u-bg-2: var(--surface, #141419);
    --u-border: var(--line-2, rgba(255,255,255,.14));
    --u-text: var(--text-2, #c7c7cf);
    --u-muted: var(--muted, #8d8d97);
    --u-white: #fff;
}
.hx .u-card { border-radius: 18px; }
.hx .u-btn { border-radius: 999px; padding: 10px 22px; }
.hx .u-form input[type=text], .hx .u-form input[type=email], .hx .u-form input[type=password], .hx .u-form input[type=file], .hx .u-form textarea { border-radius: 10px; padding: 11px 14px; }
.hx .u-page { margin-top: 32px; }
.hx .glo_header_right { display: contents; }

/* ---------- Nút & tiện ích ---------- */
.u-btn {
    display: inline-block; padding: 8px 18px; border: 1px solid var(--u-accent); border-radius: 4px;
    background: var(--u-accent); color: var(--u-white) !important; font-size: 14px; font-weight: bold;
    line-height: 1.3; text-decoration: none !important; cursor: pointer; transition: background .15s;
}
.u-btn:hover { background: var(--u-accent-dark); border-color: var(--u-accent-dark); }
.u-btn:disabled { opacity: .6; cursor: default; }
.u-btn-ghost { background: transparent; color: var(--u-text) !important; border-color: var(--u-border); }
.u-btn-ghost:hover { background: var(--u-border); border-color: var(--u-border); }
.u-btn-block { display: block; width: 100%; text-align: center; }
.u-muted { color: var(--u-muted); font-size: 13px; }
.u-center { text-align: center; }
.u-link, .u-card a, .u-comments a { color: var(--u-accent); }
.u-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; background: var(--u-accent); color: #fff; font-size: 11px; font-weight: bold; vertical-align: middle; }
.u-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Avatar ---------- */
.u-avatar { display: inline-block; border-radius: 50%; object-fit: cover; flex-shrink: 0; vertical-align: middle; }
.u-avatar-letter { color: #fff; font-weight: bold; text-align: center; user-select: none; }

/* ---------- Menu thành viên trên header ---------- */
.glo_header_right { display: flex; align-items: center; gap: 12px; }
.u-menu { position: relative; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.u-menu .u-btn { padding: 6px 14px; font-size: 13px; }
.u-menu-toggle { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--u-text); cursor: pointer; }
.u-menu-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.u-menu-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000; min-width: 180px; padding: 6px 0;
    border: 1px solid var(--u-border); border-radius: 6px; background: var(--u-bg); box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.u-menu.is-open .u-menu-dropdown { display: block; }
.u-menu-dropdown a, .u-menu-dropdown button {
    display: block; width: 100%; padding: 8px 16px; border: 0; background: none; color: var(--u-text);
    font-size: 14px; text-align: left; text-decoration: none; cursor: pointer;
}
.u-menu-dropdown a:hover, .u-menu-dropdown button:hover { background: var(--u-border); color: var(--u-white); }
.u-menu-dropdown form { margin: 0; border-top: 1px solid var(--u-border); }
.u-menu-mobile { position: absolute; top: 50%; right: 48px; transform: translateY(-50%); }
.hx .u-menu-mobile { position: static; transform: none; }
.hx .u-menu-login { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
.hx .u-menu-dropdown a, .hx .u-menu-dropdown button { display: flex; align-items: center; gap: 10px; }
.u-menu-login { color: var(--u-text); font-size: 18px; }

/* ---------- Trang tài khoản ---------- */
.u-page { width: 100%; max-width: 960px; margin: 20px auto; padding: 0 12px; box-sizing: border-box; }
.u-card { margin-bottom: 16px; padding: 24px; border: 1px solid var(--u-border); border-radius: 8px; background: var(--u-bg); color: var(--u-text); box-sizing: border-box; }
.u-card-narrow { max-width: 420px; margin: 20px auto; }
.u-title { margin: 0 0 16px; color: var(--u-white); font-size: 22px; }
.u-subtitle { margin: 0 0 14px; color: var(--u-white); font-size: 17px; }
.u-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.u-grid > .u-card { margin-bottom: 0; }
.u-grid > .u-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.u-profile-head { display: flex; align-items: center; gap: 20px; }
.u-profile-head .u-title { margin-bottom: 4px; }
.u-bio { margin: 10px 0 0; }

.u-form label { display: block; margin: 14px 0 6px; color: var(--u-text); font-size: 14px; }
.u-form input[type=text], .u-form input[type=email], .u-form input[type=password], .u-form input[type=file], .u-form textarea {
    display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--u-border); border-radius: 4px;
    background: var(--u-bg-2); color: var(--u-white); font-size: 14px; box-sizing: border-box;
}
.u-form input:focus, .u-form textarea:focus, .u-comment-form textarea:focus { outline: none; border-color: var(--u-accent); box-shadow: 0 0 0 3px rgba(226,73,123,.15); }
.u-form input, .u-form textarea, .u-comment-form textarea { transition: border-color .15s, box-shadow .15s; }
.u-form small { display: block; margin-top: 4px; }
.u-form .u-btn { margin-top: 18px; }
.u-form-inline { margin-top: 10px; }
.u-form .u-check, .u-check { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; cursor: pointer; }
.u-check input { margin-top: 3px; }
.u-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.u-row-between .u-check { margin: 0; }

.u-alert { margin: 0 0 14px; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.u-alert ul { margin: 0; padding-left: 18px; }
.u-alert-success { border: 1px solid #2f7d4f; background: rgba(47,125,79,.15); color: #8fdcae; }
.u-alert-error { border: 1px solid #a33a3a; background: rgba(238,45,47,.12); color: #ff9c9c; }
.u-profile-head + .u-alert, .u-card > .u-alert:first-of-type { margin-top: 16px; }

.u-activity { margin: 0; padding: 0; list-style: none; }
.u-activity li { padding: 12px 0; border-bottom: 1px solid var(--u-border); }
.u-activity li:last-child { border-bottom: 0; }
.u-activity-text { margin-top: 4px; word-wrap: break-word; }

/* ---------- Bình luận ---------- */
.u-comments h2 .u-comments-count { color: var(--u-muted); font-weight: normal; }
.u-comment-form { margin: 12px 0 20px; }
.u-comment-form-row { display: flex; align-items: flex-start; gap: 12px; }
.u-comments [hidden] { display: none !important; }
.u-comment-form textarea {
    flex: 1; min-height: 70px; padding: 10px 12px; border: 1px solid var(--u-border); border-radius: 4px;
    background: var(--u-bg-2); color: var(--u-white); font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box;
}
.u-comment-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.u-comment-error { margin-right: auto; color: #ff9c9c; font-size: 13px; }
.u-comment-login { margin: 12px 0 20px; padding: 16px; border: 1px dashed var(--u-border); border-radius: 6px; color: var(--u-text); text-align: center; }
.u-comment-list, .u-comment-replies { margin: 0; padding: 0; list-style: none; }
.u-comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--u-border); }
.u-comment-list > .u-comment:first-child { border-top: 0; }
.u-comment-body { flex: 1; min-width: 0; }
.u-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.u-comment-author { color: var(--u-white) !important; font-weight: bold; font-size: 14px; }
.u-comment-text { margin-top: 4px; color: var(--u-text); font-size: 14px; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere; }
.u-comment-actions { margin-top: 6px; }
.u-comment-actions button { margin-right: 14px; padding: 0; border: 0; background: none; color: var(--u-muted); font-size: 12px; cursor: pointer; }
.u-comment-actions button:hover { color: var(--u-accent); }
.u-comment-replies:not(:empty) { margin-top: 6px; }
.u-comment-reply { padding: 10px 0 0; border-top: 0; }
.u-reply-form { margin: 10px 0 0; }
.u-comment-more { margin-top: 10px; }
.u-comment-empty { padding: 10px 0; text-align: center; }
.u-comment:target, .u-comment.is-new { animation: u-flash 2s ease-out; }
@keyframes u-flash { from { background: rgba(226,73,123,.18); } to { background: transparent; } }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .u-grid { grid-template-columns: 1fr; }
    .u-card { padding: 18px; }
    .u-profile-head { flex-direction: column; text-align: center; gap: 12px; }
    .u-comment-form-row .u-avatar { display: none; }
    .u-menu:not(.u-menu-mobile) { display: none; }
}
@media (min-width: 769px) {
    .u-menu-mobile { display: none; }
}

/* =========================================================================
   Trang profile (giao diện mới)
   ========================================================================= */
.pf { max-width: 1180px; padding-top: 22px; padding-bottom: 20px; }
.pf .u-alert { margin: 14px 0 0; }
.pf-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.pf-back:hover { color: #fff; }

.pf-hero {
    position: relative; margin-top: 16px; padding: 26px; overflow: hidden;
    border: 1px solid rgba(226,73,123,.28); border-radius: 22px;
    background: radial-gradient(120% 140% at 85% 0%, rgba(226,73,123,.16), transparent 55%), linear-gradient(180deg, #141419, #0e0e12);
}
.pf-head { display: flex; align-items: flex-start; gap: 26px; }
.pf-avatar-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pf-avatar { position: relative; padding: 4px; border-radius: 50%; background: conic-gradient(from 200deg, var(--accent), #f7c6d6, var(--accent)); }
.pf-avatar.is-admin { background: conic-gradient(from 200deg, #f5c518, #ffe9a3, #f5c518); }
.pf-avatar .u-avatar { display: block; border: 3px solid var(--bg); }
.pf-avatar .u-avatar-letter { font-size: 44px !important; }
.pf-cam {
    position: absolute; right: 2px; bottom: 4px; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer;
    transition: transform .15s, background .15s;
}
.pf-cam:hover { background: var(--accent-dark); transform: scale(1.08); }
.pf-level {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text); font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.pf-level .ic { color: var(--gold); }

.pf-info { flex: 1; min-width: 0; padding-top: 6px; }
.pf-info h1 { overflow: hidden; font-size: clamp(26px, 3.4vw, 38px); text-overflow: ellipsis; white-space: nowrap; }
.pf-role {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; margin-top: 10px; padding: 0 14px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 6px 22px rgba(226,73,123,.35);
}
.pf-role.is-admin { background: linear-gradient(135deg, #f5c518, #e8a800); color: #1a1300; box-shadow: 0 6px 22px rgba(245,197,24,.3); }
.pf-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--text-2); font-size: 14px; }
.pf-meta span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.pf-meta .ic { color: var(--muted); }
.pf-progress { max-width: 360px; margin-top: 16px; }
.pf-progress-bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.pf-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #f7c6d6); }
.pf-progress small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.pf-progress strong { color: var(--text); }

.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.pf-stat { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20,20,25,.7); transition: border-color .15s, transform .15s; }
a.pf-stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pf-stat-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.pf-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; }
.pf-stat-icon.is-pink { background: rgba(226,73,123,.16); color: var(--accent-2); }
.pf-stat-icon.is-gray { background: rgba(255,255,255,.08); color: var(--text-2); }
.pf-stat-icon.is-green { background: rgba(34,197,94,.14); color: var(--green); }
.pf-stat-icon.is-gold { background: rgba(245,197,24,.14); color: var(--gold); }
.pf-stat strong { display: block; margin-top: 10px; color: #fff; font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }

.pf-tabs {
    display: inline-flex; gap: 4px; max-width: 100%; margin-top: 26px; padding: 5px; overflow-x: auto;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); scrollbar-width: none;
}
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs button {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
    background: none; color: var(--text-2); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
.pf-tabs button:hover { color: #fff; }
.pf-tabs button.is-active { background: #fff; color: #0b0b0d; }

.pf-panel { margin-top: 18px; }
.pf-panel[hidden] { display: none; }
.pf-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.pf-card + .pf-card { margin-top: 16px; }
.pf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pf-card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.pf-card-head h2 .ic { color: var(--accent); }
.pf-card-head h2 small { color: var(--muted); font-size: 14px; font-weight: 600; }
.pf-continue { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pf-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pf-settings .pf-card + .pf-card { margin-top: 0; }

.pf-comments { display: grid; gap: 4px; }
.pf-comments li { display: flex; gap: 14px; padding: 12px; border-radius: 12px; transition: background .15s; }
.pf-comments li:hover { background: var(--surface); }
.pf-comment-cover img { width: 44px; height: 62px; border-radius: 8px; background: var(--surface-2); object-fit: cover; color: transparent; }
.pf-comment-body { min-width: 0; }
.pf-comment-meta { color: var(--muted); font-size: 12.5px; }
.pf-comment-meta a { color: var(--text); font-weight: 700; }
.pf-comment-meta a:hover { color: var(--accent-2); }
.pf-comment-body p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 1023px) {
    .pf-stats { grid-template-columns: repeat(2, 1fr); }
    .pf-continue { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pf-settings { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .pf-hero { padding: 20px 16px; border-radius: 18px; }
    .pf-head { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
    .pf-avatar .u-avatar { width: 96px !important; height: 96px !important; line-height: 96px !important; }
    .pf-info { width: 100%; padding-top: 0; }
    .pf-info h1 { white-space: normal; }
    .pf-meta { justify-content: center; flex-direction: column; align-items: center; gap: 6px; }
    .pf-meta span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .pf-progress { margin-left: auto; margin-right: auto; }
    .pf-stats { gap: 10px; margin-top: 20px; }
    .pf-stat { padding: 12px 14px; }
    .pf-stat strong { font-size: 24px; }
    .pf-tabs { display: flex; border-radius: 16px; }
    .pf-card { padding: 16px 14px; }
    .pf-continue { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
}

/* ---------- Tab Settings ---------- */
.pf-settings { grid-template-columns: 1fr !important; max-width: 820px; gap: 18px; }
.st-card { padding: 26px; border-radius: 22px; }
.st-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.st-head h2 { font-size: 22px; }
.st-head-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(226,73,123,.35); border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); }
.st-head-icon.is-red { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); color: #f87171; }

.st-avatar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.st-avatar-img { position: relative; flex-shrink: 0; padding: 2px; border-radius: 50%; background: conic-gradient(from 200deg, var(--accent), #f7c6d6, var(--accent)); cursor: pointer; }
.st-avatar-img .u-avatar { display: block; border: 2px solid var(--bg); }
.st-avatar-cam { position: absolute; right: -2px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); color: #fff; }
.st-avatar-text { flex: 1; min-width: 0; }
.st-avatar-text strong { display: block; font-size: 15px; }
.st-avatar-text span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.st-avatar-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.st-link { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.st-link:hover { color: #f87171; }

.st-form { display: grid; gap: 18px; }
.st-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.st-field[hidden] { display: none; }
.st-field > label { color: var(--text); font-size: 14px; font-weight: 700; }
.st-field small { color: var(--muted); font-size: 12.5px; }
.st-input {
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.st-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226,73,123,.15); }
.st-input input, .st-input textarea { border-radius: 0; box-shadow: none; }
.st-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--surface) inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.st-input > .ic { color: var(--muted); }
.st-input input, .st-input textarea { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; outline: 0; background: none; color: #fff; font: 500 15px var(--font); }
.st-input.is-textarea { height: auto; min-height: 50px; padding: 12px 14px; }
.st-input textarea { height: auto; min-height: 72px; resize: vertical; line-height: 1.5; }
.st-input.is-readonly { background: rgba(255,255,255,.02); }
.st-input.is-readonly input { color: var(--text-2); cursor: default; }
.st-eye { display: inline-flex; padding: 4px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.st-eye:hover { color: #fff; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; }
.st-match { min-height: 16px; }
.st-match.is-ok { color: var(--green); }
.st-match.is-bad { color: #f87171; }

.st-tips { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.st-tips strong { font-size: 14px; }
.st-tips ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 10px; }
.st-tips li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; transition: color .15s; }
.st-tips li::before { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); transition: background .15s, box-shadow .15s; }
.st-tips li.is-ok { color: var(--text); }
.st-tips li.is-ok::before { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

.st-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start; height: 48px; padding: 0 26px;
    border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 800 15px var(--font); cursor: pointer;
    box-shadow: 0 8px 26px rgba(226,73,123,.35); transition: background .15s, opacity .15s, transform .15s;
}
.st-submit:hover { background: var(--accent-dark); }
.st-submit:active { transform: scale(.98); }
.st-submit.is-red { background: #dc2626; box-shadow: 0 8px 26px rgba(220,38,38,.35); }
.st-submit.is-red:hover { background: #b91c1c; }
.st-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

@media (max-width: 767px) {
    .st-card { padding: 18px 14px; border-radius: 18px; }
    .st-head h2 { font-size: 19px; }
    .st-avatar { flex-wrap: wrap; }
    .st-avatar-actions { flex-direction: row; width: 100%; justify-content: flex-start; padding-left: 82px; }
    .st-row, .st-tips ul { grid-template-columns: 1fr; }
    .st-submit { justify-self: stretch; }
}

/* ---------- Admin: Chapter reports ---------- */
.ar-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.ar-stats div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.ar-stats strong { display: block; color: #fff; font-size: 28px; font-weight: 900; line-height: 1; }
.ar-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ar-list { display: grid; gap: 12px; margin-top: 18px; }
.ar-item { display: flex; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.ar-main { flex: 1; min-width: 0; }
.ar-title { display: flex; align-items: flex-start; gap: 14px; }
.ar-title a { color: var(--text) !important; font-size: 15px; }
.ar-title a:hover { color: var(--accent-2) !important; }
.ar-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.ar-count { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; background: rgba(239,68,68,.14); color: #f87171; font-weight: 900; }
.ar-noindex { color: var(--gold); font-weight: 700; }
.ar-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0 50px; }
.ar-reason { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 700; }
.ar-reason-images, .ar-reason-missing_pages { background: rgba(239,68,68,.14); color: #f87171; }
.ar-reason-duplicate, .ar-reason-wrong_content { background: rgba(245,197,24,.14); color: var(--gold); }
.ar-notes { margin: 10px 0 0 50px; display: grid; gap: 4px; }
.ar-notes li { color: var(--text-2); font-size: 13.5px; }
.ar-notes small { color: var(--muted); }
.ar-actions { display: flex; flex-direction: column; gap: 8px; }
.ar-actions form { margin: 0; }
.ar-actions .hx-btn { width: 100%; justify-content: flex-start; }
@media (max-width: 767px) {
    .ar-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .ar-stats div { padding: 12px; }
    .ar-stats strong { font-size: 22px; }
    .ar-item { flex-direction: column; }
    .ar-reasons, .ar-notes { margin-left: 0; }
    .ar-actions { flex-direction: row; flex-wrap: wrap; }
    .ar-actions .hx-btn { width: auto; }
}

/* ------------------------------------------------------------------ Thư viện cá nhân: Comics | Videos, bình luận truyện + video */
.pf-seg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pf-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pf-seg button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.pf-seg button:hover { color: #fff; }
.pf-seg button.is-active { background: #fff; color: #0b0b0d; }
.pf-seg button span { padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 700; }
.pf-seg button.is-active span { background: #e9e9ee; color: #333; }
.pf-more { display: flex; justify-content: center; margin-top: 18px; }
.pf-more[hidden] { display: none; }
.pf-comments li { position: relative; align-items: flex-start; }
.pf-comment-cover.is-video img { width: 44px; height: 62px; }
.pf-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pf-comment-type { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pf-comment-type.is-video { background: var(--accent-soft); color: var(--accent-2); }
.pf-comment-type .ic { fill: none; }
.pf-comment-type.is-video .ic { fill: currentColor; }
.pf-comment-del { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: auto; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; opacity: .6; transition: opacity .15s, background .15s, color .15s; }
.pf-comments li:hover .pf-comment-del, .pf-comment-del:focus-visible { opacity: 1; }
.pf-comment-del:hover { background: rgba(239,68,68,.14); color: #f87171; }
.pf-comment-del[disabled] { opacity: .3; cursor: default; }
@media (max-width: 767px) {
    .pf-card-head:has(.pf-seg) { flex-wrap: wrap; }
    .pf-seg button { height: 32px; padding: 0 11px; font-size: 13px; }
    .pf-comment-del { opacity: 1; }
}

/* ------------------------------------------------------------------ Trang đăng nhập / đăng ký
.u-check input[type=checkbox] { flex-shrink: 0; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent, #e2497b); cursor: pointer; }
.u-check span { color: var(--u-text); font-size: 14px; line-height: 1.5; }
/* Ô xác nhận 18+ / Privacy Policy: khung nhẹ, chữ liền mạch, link nhấn màu */
.u-form .u-agree { margin-top: 20px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.u-form .u-agree:hover { border-color: rgba(255,255,255,.14); }
.u-form .u-agree:has(input:checked) { border-color: rgba(226,73,123,.45); background: rgba(226,73,123,.08); }
.u-agree span { color: var(--u-muted); font-size: 13.5px; }
.u-agree strong { color: var(--u-text); font-weight: 600; }
.u-agree a { color: var(--u-accent, #e2497b); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(226,73,123,.45); text-underline-offset: 3px; }
.u-agree a:hover { color: #ec6a95; text-decoration-color: currentColor; }
/* "Already have an account? / Don't have an account?" tách khỏi nút bằng khoảng cách + đường kẻ */
.u-auth-switch { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: var(--u-muted); font-size: 14px; text-align: center; }
.u-auth-switch a { margin-left: 4px; color: var(--u-accent, #e2497b); font-weight: 700; }
.u-auth-switch a:hover { color: #ec6a95; text-decoration: underline; text-underline-offset: 3px; }
.u-row-between > a { color: var(--u-accent, #e2497b); font-size: 14px; font-weight: 600; }
.u-row-between > a:hover { text-decoration: underline; text-underline-offset: 3px; }
