/* Community, forum, thread, and staff portal styles */

select, textarea { font: inherit; }

.forum-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 76px;
  background:
    radial-gradient(circle at 78% 24%, rgba(96, 183, 255, .14), transparent 30%),
    radial-gradient(circle at 18% 65%, rgba(213, 173, 90, .08), transparent 28%),
    linear-gradient(180deg, #0b1020, var(--bg));
}
.forum-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--bg)); }
.forum-hero-layout { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 42px; }
.forum-hero h1 { margin: 4px 0 13px; font-family: "Manrope", sans-serif; font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -.06em; }
.forum-hero p { max-width: 690px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.forum-hero-actions { width: min(430px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.forum-search { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.05); backdrop-filter: blur(14px); }
.forum-search svg { width: 18px; height: 18px; fill: none; stroke: #8390a5; stroke-width: 1.8; }
.forum-search input { width: 100%; border: 0; outline: 0; color: white; background: transparent; }
.forum-search input::placeholder { color: #6f7b90; }

.forum-page { padding: 38px 0 110px; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 28px; align-items: start; }
.forum-main { min-width: 0; display: grid; gap: 26px; }
.forum-section { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(15, 21, 34, .76); box-shadow: 0 22px 55px rgba(0,0,0,.22); }
.forum-section-heading { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); }
.forum-section-heading h2 { margin: 2px 0 0; font-family: "Manrope", sans-serif; font-size: 1.25rem; letter-spacing: -.025em; }
.forum-section-heading > span { color: #708097; font-size: .78rem; text-align: right; }
.forum-overline { display: block; color: var(--gold-bright); font-size: .65rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.forum-category-list { display: grid; }
.forum-category-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 74px minmax(185px, .72fr); align-items: center; gap: 18px; min-height: 108px; padding: 17px 22px; border-bottom: 1px solid var(--line); transition: background .18s ease, transform .18s ease; }
.forum-category-row:last-child { border-bottom: 0; }
.forum-category-row:hover { background: rgba(255,255,255,.035); }
.forum-category-row[hidden] { display: none; }
.forum-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.forum-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-gold { color: #f0ce7a; background: rgba(213,173,90,.08); }
.icon-blue { color: #77c2ff; background: rgba(96,183,255,.08); }
.icon-purple { color: #b6a9ff; background: rgba(155,136,255,.08); }
.icon-green { color: #79e0ad; background: rgba(103,215,162,.08); }
.icon-orange { color: #f0aa70; background: rgba(231,135,72,.08); }
.icon-red { color: #ff8a8f; background: rgba(240,89,96,.08); }
.icon-pink { color: #f5a4da; background: rgba(226,111,187,.08); }
.icon-elaria-forum { color: #ad9cff; background: radial-gradient(circle, rgba(155,136,255,.18), rgba(155,136,255,.05)); }
.forum-category-copy { min-width: 0; display: grid; gap: 4px; }
.forum-category-copy strong { display: flex; align-items: center; gap: 8px; font-family: "Manrope", sans-serif; font-size: .97rem; }
.forum-category-copy strong em { padding: 3px 6px; border-radius: 5px; background: rgba(155,136,255,.12); color: #b9adff; font-style: normal; font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; }
.forum-category-copy small { overflow: hidden; color: #7f8ba0; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.forum-count { display: grid; justify-items: center; gap: 1px; color: #778399; }
.forum-count strong { color: #c9d2e2; font-size: .86rem; }
.forum-count small { font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.forum-latest { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.forum-latest > span:last-child { min-width: 0; display: grid; gap: 2px; }
.forum-latest strong, .forum-latest small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-latest strong { color: #cbd4e3; font-size: .77rem; font-weight: 700; }
.forum-latest small { color: #68758a; font-size: .68rem; }
.mini-avatar { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: linear-gradient(135deg, #27344b, #141b2a); color: #dce5f3; font-family: "Manrope", sans-serif; font-size: .65rem; font-weight: 800; }
.mini-avatar.staff { background: linear-gradient(135deg, rgba(213,173,90,.35), rgba(37,120,213,.22)); color: #ffe8a8; }
.featured-forum { background: linear-gradient(90deg, rgba(155,136,255,.035), transparent 45%); }
.compact-categories .forum-category-row { min-height: 96px; }
.forum-empty { padding: 75px 24px; text-align: center; }
.forum-empty img { margin: 0 auto 16px; }
.forum-empty h2 { margin: 0; font-family: "Manrope", sans-serif; }
.forum-empty p { margin: 7px 0 0; color: var(--muted); }

.forum-sidebar { position: sticky; top: 98px; display: grid; gap: 18px; }
.sidebar-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(15, 21, 34, .76); box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.sidebar-card h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.04rem; letter-spacing: -.025em; }
.sidebar-card p { margin: 10px 0 18px; color: #8591a6; font-size: .84rem; }
.sidebar-kicker { display: block; margin-bottom: 8px; color: var(--gold-bright); font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.account-card { background: radial-gradient(circle at 100% 0, rgba(96,183,255,.13), transparent 42%), rgba(15,21,34,.86); }
.sidebar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sidebar-actions .button { min-height: 43px; padding-inline: 11px; font-size: .77rem; }
.server-card { padding: 0; overflow: hidden; }
.server-card-top { min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--line); color: #8190a5; font-size: .72rem; }
.server-card-top strong { color: #7ce1ad; font-size: .72rem; }
.online-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(103,215,162,.1); }
.server-ip-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 18px; }
.server-ip-line > div { min-width: 0; display: grid; gap: 2px; }
.server-ip-line small { color: #66758b; font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.server-ip-line strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; }
.small-copy { border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.045); padding: 7px 10px; cursor: pointer; color: #d4dceb; font-size: .7rem; font-weight: 700; }
.small-copy:hover { background: rgba(255,255,255,.08); }
.server-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.018); }
.server-card-stats span { display: grid; place-items: center; gap: 1px; min-height: 65px; border-right: 1px solid var(--line); }
.server-card-stats span:last-child { border-right: 0; }
.server-card-stats strong { font-size: .77rem; }
.server-card-stats small { color: #657187; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.sidebar-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.sidebar-title-row a { color: #7998bd; font-size: .68rem; font-weight: 700; }
.recent-thread-list { display: grid; }
.recent-thread { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.recent-thread:first-child { border-top: 0; padding-top: 0; }
.recent-thread:last-child { padding-bottom: 0; }
.recent-thread > span:last-child { min-width: 0; display: grid; gap: 2px; }
.recent-thread strong { overflow: hidden; color: #cbd4e2; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-thread small { color: #66748a; font-size: .65rem; }
.forum-stats-card dl { margin: 0; display: grid; gap: 11px; }
.forum-stats-card dl div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.forum-stats-card dt { color: #748096; font-size: .75rem; }
.forum-stats-card dd { margin: 0; color: #d3dcea; font-size: .76rem; font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px; background: rgba(2,4,8,.76); backdrop-filter: blur(12px); }
.modal-backdrop[hidden] { display: none; }
.modal-card { position: relative; width: min(650px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #0f1522; box-shadow: 0 40px 100px rgba(0,0,0,.52); }
.modal-card h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 2rem; letter-spacing: -.04em; }
.modal-intro { margin: 8px 0 23px; color: #8591a6; font-size: .86rem; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); cursor: pointer; color: #aeb9ca; font-size: 1.25rem; line-height: 1; }
.form-stack { display: grid; gap: 16px; }
.form-stack label { display: grid; gap: 7px; }
.form-stack label > span { color: #aab5c7; font-size: .75rem; font-weight: 700; }
.form-stack input, .form-stack select, .form-stack textarea, .admin-form input, .admin-form select, .admin-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: rgba(255,255,255,.035); color: white; padding: 12px 13px; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: rgba(96,183,255,.55); box-shadow: 0 0 0 3px rgba(96,183,255,.08); }
.form-stack textarea, .admin-form textarea { resize: vertical; }
.form-stack select option, .admin-form select option { color: #101521; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.form-actions .button { min-width: 120px; }
body.modal-open { overflow: hidden; }

/* Thread page */
.thread-page { padding: 132px 0 110px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: #718097; font-size: .76rem; }
.breadcrumbs a:hover { color: white; }
.thread-heading { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 26px; }
.thread-heading h1 { margin: 6px 0 0; font-family: "Manrope", sans-serif; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.06; letter-spacing: -.05em; }
.thread-meta-line { display: flex; gap: 12px; flex-wrap: wrap; color: #718097; font-size: .75rem; }
.thread-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: rgba(96,183,255,.08); color: #86c8ff; font-size: .67rem; font-weight: 700; }
.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.thread-posts { display: grid; gap: 15px; }
.thread-post { display: grid; grid-template-columns: 160px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(15,21,34,.78); }
.thread-author { padding: 25px 20px; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); text-align: center; }
.thread-avatar { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: linear-gradient(145deg, #2a3951, #111825); color: white; font-family: "Manrope", sans-serif; font-size: 1.05rem; font-weight: 800; }
.thread-avatar.staff { background: linear-gradient(145deg, rgba(213,173,90,.55), rgba(37,120,213,.3)); color: #ffe9ad; }
.thread-author strong { display: block; font-size: .85rem; }
.thread-author span { display: inline-flex; margin-top: 4px; color: #7a879c; font-size: .68rem; }
.thread-author small { display: block; margin-top: 13px; color: #566276; font-size: .64rem; }
.thread-content { min-width: 0; padding: 24px 27px 28px; }
.thread-post-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 15px; margin-bottom: 19px; border-bottom: 1px solid var(--line); color: #68758a; font-size: .7rem; }
.thread-post-number { color: #77869c; font-weight: 700; }
.thread-body { color: #c5cedd; font-size: .93rem; }
.thread-body p { margin: 0 0 15px; }
.thread-body p:last-child { margin-bottom: 0; }
.thread-side { position: sticky; top: 98px; display: grid; gap: 16px; }
.thread-actions-card { display: grid; gap: 9px; }
.thread-actions-card .button { width: 100%; }
.reply-card { padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: rgba(15,21,34,.78); }
.reply-card h2 { margin: 0 0 6px; font-family: "Manrope", sans-serif; font-size: 1.25rem; }
.reply-card > p { margin: 0 0 18px; color: #7c899d; font-size: .8rem; }
.thread-not-found { padding: 80px 20px; text-align: center; }
.thread-not-found img { margin: 0 auto 17px; }
.thread-not-found h1 { font-family: "Manrope", sans-serif; }


.thread-details { margin: 0; display: grid; gap: 11px; }
.thread-details div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.thread-details dt { color: #748096; font-size: .75rem; }
.thread-details dd { margin: 0; color: #d3dcea; font-size: .76rem; font-weight: 700; text-align: right; }

/* Admin portal */
.admin-body { min-height: 100vh; background: #090d15; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--line); background: #0b101a; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 4px 9px 25px; border-bottom: 1px solid var(--line); font-family: "Manrope", sans-serif; font-size: .82rem; font-weight: 800; letter-spacing: .1em; }
.admin-nav { display: grid; gap: 5px; margin-top: 20px; }
.admin-nav button, .admin-nav a { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #8692a5; cursor: pointer; text-align: left; font-size: .82rem; font-weight: 700; }
.admin-nav button:hover, .admin-nav a:hover, .admin-nav button.active { background: rgba(255,255,255,.055); color: white; }
.admin-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-sidebar-bottom { margin-top: auto; padding: 17px 9px 2px; border-top: 1px solid var(--line); }
.admin-user { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; }
.admin-user .mini-avatar { width: 38px; height: 38px; }
.admin-user span:last-child { display: grid; }
.admin-user strong { font-size: .76rem; }
.admin-user small { color: #657187; font-size: .65rem; }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(9,13,21,.82); backdrop-filter: blur(14px); }
.admin-topbar-left { display: flex; align-items: center; gap: 13px; }
.admin-mobile-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); cursor: pointer; }
.admin-topbar h1 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.05rem; }
.admin-topbar p { margin: 1px 0 0; color: #647186; font-size: .7rem; }
.admin-mode-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(240,181,73,.18); border-radius: 999px; background: rgba(240,181,73,.07); color: #e7bd64; font-size: .67rem; font-weight: 700; }
.admin-content { padding: 30px; }
.admin-warning { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 24px; padding: 15px 17px; border: 1px solid rgba(240,181,73,.18); border-radius: 13px; background: rgba(240,181,73,.06); color: #cbb98e; font-size: .78rem; }
.admin-warning svg { flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: #e7bd64; stroke-width: 1.8; }
.admin-warning strong { display: block; margin-bottom: 2px; color: #f1d18b; }
.admin-panel[hidden] { display: none; }
.admin-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 23px; }
.admin-panel-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.65rem; letter-spacing: -.035em; }
.admin-panel-heading p { margin: 5px 0 0; color: #718096; font-size: .78rem; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.admin-stat { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(15,21,34,.76); }
.admin-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #78869a; font-size: .73rem; }
.admin-stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(96,183,255,.08); color: #77c2ff; }
.admin-stat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.admin-stat strong { font-family: "Manrope", sans-serif; font-size: 1.7rem; letter-spacing: -.04em; }
.admin-stat small { color: #647186; font-size: .67rem; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 17px; }
.admin-card { border: 1px solid var(--line); border-radius: 15px; background: rgba(15,21,34,.76); overflow: hidden; }
.admin-card-header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.admin-card-header h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: .88rem; }
.admin-card-header a, .admin-card-header button { border: 0; background: transparent; color: #7798be; cursor: pointer; font-size: .68rem; font-weight: 700; }
.admin-activity-list { display: grid; }
.admin-activity { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 69px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.admin-activity:last-child { border-bottom: 0; }
.admin-activity > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.admin-activity strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-activity small { color: #637087; font-size: .66rem; }
.admin-activity time { color: #59667b; font-size: .64rem; }
.admin-health { padding: 18px; display: grid; gap: 14px; }
.health-row { display: grid; gap: 7px; }
.health-row-top { display: flex; justify-content: space-between; color: #7d899d; font-size: .7rem; }
.health-row-top strong { color: #cbd4e3; font-size: .7rem; }
.health-bar { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.health-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4da1e8, #78d9ad); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: #66748a; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.admin-table td { color: #aeb9ca; font-size: .74rem; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table-title { max-width: 330px; display: grid; gap: 2px; }
.admin-table-title strong { overflow: hidden; color: #dde4ef; text-overflow: ellipsis; white-space: nowrap; }
.admin-table-title small { overflow: hidden; color: #647186; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: .63rem; font-weight: 700; }
.status-published { background: rgba(103,215,162,.1); color: #79dfaF; }
.status-draft { background: rgba(240,181,73,.1); color: #e9c269; }
.status-locked { background: rgba(240,89,96,.1); color: #ff8e94; }
.admin-actions { display: flex; gap: 6px; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); color: #8794a8; cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.07); color: white; }
.icon-button.danger:hover { border-color: rgba(240,89,96,.25); background: rgba(240,89,96,.08); color: #ff8e94; }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.admin-form-card { padding: 22px; }
.admin-form { display: grid; gap: 17px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.admin-form label { display: grid; gap: 7px; }
.admin-form label > span { color: #9ca8ba; font-size: .72rem; font-weight: 700; }
.admin-form-note { color: #657187; font-size: .7rem; }
.settings-switch-row { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.settings-switch-row:last-child { border-bottom: 0; }
.settings-switch-row > span { display: grid; gap: 2px; }
.settings-switch-row strong { font-size: .78rem; }
.settings-switch-row small { color: #637087; font-size: .68rem; }
.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { position: absolute; opacity: 0; }
.toggle-switch span { position: absolute; inset: 0; border-radius: 999px; background: #222c3a; cursor: pointer; transition: .2s ease; }
.toggle-switch span::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #9ba6b8; transition: .2s ease; }
.toggle-switch input:checked + span { background: rgba(96,183,255,.35); }
.toggle-switch input:checked + span::after { transform: translateX(20px); background: #83c9ff; }
.report-list { display: grid; }
.report-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.report-item:last-child { border-bottom: 0; }
.report-item-copy { min-width: 0; display: grid; gap: 3px; }
.report-item-copy strong { font-size: .78rem; }
.report-item-copy span { overflow: hidden; color: #718096; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.report-item-actions { display: flex; gap: 7px; }
.empty-admin-state { padding: 45px 20px; color: #6f7b90; text-align: center; font-size: .78rem; }

@media (max-width: 1080px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .forum-sidebar .sidebar-card:nth-child(3), .forum-sidebar .sidebar-card:nth-child(4) { grid-column: auto; }
  .thread-layout { grid-template-columns: 1fr; }
  .thread-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .forum-category-row { grid-template-columns: 52px minmax(0, 1fr) 64px; }
  .forum-latest { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; z-index: 200; width: 258px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 25px 0 70px rgba(0,0,0,.42); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-toggle { display: grid; place-items: center; }
}

@media (max-width: 780px) {
  .forum-hero { padding-top: 126px; }
  .forum-hero-layout { align-items: stretch; flex-direction: column; }
  .forum-hero-actions { width: 100%; }
  .forum-page { padding-top: 24px; }
  .forum-sidebar { grid-template-columns: 1fr; }
  .forum-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .forum-section-heading > span { text-align: left; }
  .thread-page { padding-top: 112px; }
  .thread-heading { align-items: flex-start; flex-direction: column; }
  .thread-post { grid-template-columns: 1fr; }
  .thread-author { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .thread-avatar { width: 52px; height: 52px; margin: 0; border-radius: 15px; }
  .thread-author small { margin: 0; }
  .thread-side { grid-template-columns: 1fr; }
  .admin-topbar { padding-inline: 18px; }
  .admin-content { padding: 20px 16px; }
  .admin-panel-heading { align-items: flex-start; flex-direction: column; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
  .forum-hero-actions { grid-template-columns: 1fr; }
  .forum-category-row { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; min-height: 92px; padding: 15px; }
  .forum-icon { width: 44px; height: 44px; border-radius: 12px; }
  .forum-icon svg { width: 22px; height: 22px; }
  .forum-count { display: none; }
  .forum-category-copy small { white-space: normal; line-height: 1.35; }
  .modal-card { padding: 28px 20px 22px; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions .button { min-width: 0; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-mode-badge { display: none; }
  .thread-content { padding: 20px; }
  .thread-author { grid-template-columns: 48px 1fr; }
  .thread-author small { display: none; }
}


/* ===== Hollowcrest redesign pass ===== */
.admin-main {
  background:
    radial-gradient(circle at top right, rgba(96,183,255,.07), transparent 28%),
    radial-gradient(circle at top left, rgba(213,173,90,.06), transparent 22%),
    linear-gradient(180deg, #070c15 0%, #09101a 100%);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

.admin-content {
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 28px 40px;
}

.admin-warning {
  margin-bottom: 28px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(240,181,73,.10), rgba(240,181,73,.04));
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
}

.admin-panel-heading {
  margin-bottom: 26px;
}

.admin-panel-heading h2 {
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  line-height: 1.04;
}

.admin-panel-heading p {
  max-width: 720px;
  font-size: .83rem;
  line-height: 1.55;
}

.admin-stats {
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stat,
.admin-card {
  border-color: rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(15,21,34,.96), rgba(11,17,29,.90));
  box-shadow: 0 22px 50px rgba(0,0,0,.18);
}

.admin-stat {
  min-height: 148px;
  border-radius: 18px;
  padding: 20px;
}

.admin-stat:hover,
.admin-card:hover {
  border-color: rgba(255,255,255,.16);
}

.admin-stat-top {
  font-size: .75rem;
  color: #8b9aaf;
}

.admin-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(96,183,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.admin-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 2.15rem;
  line-height: .95;
  color: #f7f9fd;
}

.admin-stat small {
  display: block;
  margin-top: 8px;
  font-size: .74rem;
  line-height: 1.45;
}

.admin-dashboard-grid {
  gap: 18px;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, .68fr);
}

.admin-card {
  border-radius: 18px;
}

.admin-card-header {
  min-height: 64px;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

.admin-card-header h3 {
  font-size: .97rem;
}

.admin-card-header a,
.admin-card-header button {
  color: #91b8e4;
}

.admin-activity {
  grid-template-columns: 42px minmax(0,1fr) auto;
  min-height: 75px;
  padding: 12px 18px;
}

.admin-activity strong {
  font-size: .8rem;
}

.admin-activity small,
.health-row-top,
.health-row-top strong {
  font-size: .7rem;
}

.health-row {
  gap: 8px;
}

.health-bar {
  height: 7px;
}

.status-pill {
  letter-spacing: .02em;
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(10,14,24,.98), rgba(8,12,20,.98));
  box-shadow: inset -1px 0 0 rgba(255,255,255,.06);
}

.admin-brand {
  min-height: 62px;
  padding-inline: 10px;
}

.admin-nav a {
  min-height: 48px;
  border-radius: 14px;
  color: #a7b6cb;
}

.admin-nav a.active {
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.admin-profile {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
}

.thread-page {
  padding-top: 120px;
  padding-bottom: 88px;
  background:
    radial-gradient(circle at top right, rgba(96,183,255,.06), transparent 25%),
    radial-gradient(circle at 0% 0%, rgba(213,173,90,.04), transparent 25%),
    linear-gradient(180deg, #070b13 0%, #090e17 100%);
}

.thread-page .shell[data-thread-view] {
  max-width: 1440px;
}

.breadcrumbs {
  margin-bottom: 20px;
  color: #7e8aa0;
  font-size: .76rem;
}

.thread-heading {
  align-items: start;
  margin-bottom: 30px;
}

.thread-heading h1 {
  max-width: 920px;
  margin-top: 10px;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: .97;
  letter-spacing: -.06em;
}

.thread-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.thread-label {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(33,118,214,.20);
  border: 1px solid rgba(96,183,255,.12);
}

.thread-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
}

.thread-posts {
  gap: 18px;
}

.thread-post {
  grid-template-columns: 210px minmax(0, 1fr);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15,21,34,.95), rgba(10,16,27,.92));
  box-shadow: 0 24px 46px rgba(0,0,0,.18);
}

.thread-author {
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}

.thread-author-card {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.thread-avatar {
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 18px;
  font-size: 1rem;
}

.thread-author-meta {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.thread-author-meta strong {
  font-size: .98rem;
  line-height: 1.2;
}

.thread-author-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.thread-role-text {
  color: #95a4ba;
  font-size: .74rem;
  font-weight: 600;
}

.thread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .66rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
}

.thread-badge-admin {
  color: #ffd5d7;
  background: linear-gradient(180deg, #7a1018, #581116);
  border: 1px solid rgba(255,90,110,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.thread-author small {
  margin-top: 2px;
  font-size: .69rem;
  color: #667489;
}

.thread-content {
  padding: 24px 28px 26px;
}

.thread-post-top {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.thread-body {
  color: #e4eaf4;
  font-size: .96rem;
  line-height: 1.75;
}

.thread-body p {
  margin: 0 0 1em;
}

.thread-body p:last-child {
  margin-bottom: 0;
}

.thread-side {
  gap: 18px;
}

.sidebar-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15,21,34,.95), rgba(10,16,27,.92));
}

.thread-actions-card .button,
.thread-side .copy-ip {
  width: 100%;
}

.thread-actions-card {
  display: grid;
  gap: 12px;
}

.thread-actions-card p {
  margin-bottom: 0;
}

.reply-card {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(15,21,34,.95), rgba(10,16,27,.92));
  box-shadow: 0 24px 46px rgba(0,0,0,.18);
}

.reply-card h2 {
  font-size: 1.3rem;
}

.thread-not-found {
  padding-top: 90px;
}

@media (max-width: 1180px) {
  .thread-post {
    grid-template-columns: 185px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .admin-content {
    padding: 20px 16px 34px;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .thread-page {
    padding-top: 110px;
  }

  .thread-heading h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .thread-layout {
    grid-template-columns: 1fr;
  }

  .thread-post {
    grid-template-columns: 1fr;
  }

  .thread-author {
    padding: 18px 18px 16px;
  }

  .thread-author-card {
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
  }

  .thread-avatar {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 590px) {
  .admin-warning {
    font-size: .74rem;
  }

  .thread-content {
    padding: 18px 18px 20px;
  }

  .thread-author-card {
    grid-template-columns: 1fr;
  }
}

/* Live forum thread states */
.thread-loading {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.thread-loading[hidden] { display: none; }
.thread-loading img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.thread-loading p { margin: 0; color: #7f8ca0; font-size: .84rem; }
.thread-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,.09);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: hc-spin .8s linear infinite;
}

@keyframes hc-spin { to { transform: rotate(360deg); } }

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

.reply-auth-actions[hidden] { display: none; }

.thread-badge-mod {
  color: #d7ecff;
  background: linear-gradient(180deg, #174f7d, #123651);
  border: 1px solid rgba(96,183,255,.34);
}

.thread-badge-support {
  color: #d7ffeb;
  background: linear-gradient(180deg, #176044, #12422f);
  border: 1px solid rgba(103,215,162,.32);
}

.thread-state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  color: #f5d88f;
  background: rgba(213,173,90,.10);
  border: 1px solid rgba(213,173,90,.20);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.thread-state-badge.locked {
  color: #ffb8be;
  background: rgba(240,89,96,.10);
  border-color: rgba(240,89,96,.22);
}

.thread-post-number { text-decoration: none; }
.thread-post-number:hover { color: #a7d5ff; }

@media (max-width: 590px) {
  .reply-auth-actions { display: grid; grid-template-columns: 1fr; }
}

/* Hollowcrest staff ranks and centered forum author cards */
.thread-author {
  display: grid;
  place-items: center;
}

.thread-author-card {
  width: 100%;
  justify-items: center;
  text-align: center;
}

.thread-author-meta {
  width: 100%;
  justify-items: center;
}

.thread-author-role {
  justify-content: center;
}

.thread-avatar {
  margin-inline: auto;
}

.thread-badge-owner,
.thread-badge-admin,
.thread-badge-sr-mod,
.thread-badge-mod,
.thread-badge-trainee {
  color: #fff;
  background: var(--rank-color);
  border: 1px solid color-mix(in srgb, var(--rank-color) 75%, white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 5px 18px color-mix(in srgb, var(--rank-color) 24%, transparent);
}
.thread-badge-sr-mod,
.thread-badge-mod,
.thread-badge-trainee { color: #17110a; }

@media (max-width: 780px) {
  .thread-author-card {
    grid-template-columns: 56px minmax(0,1fr);
    justify-items: stretch;
    text-align: left;
  }

  .thread-author-meta {
    justify-items: start;
  }

  .thread-author-role {
    justify-content: flex-start;
  }

  .thread-avatar {
    margin: 0 auto;
  }
}

@media (max-width: 590px) {
  .thread-author-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .thread-author-meta {
    justify-items: center;
  }

  .thread-author-role {
    justify-content: center;
  }
}
