/* GA-Server forum + shoutbox (forum.php) */
.forum-case { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.forum { display: grid; gap: 18px; }
.forum > * { margin: 0; }
.forum .news { margin: 0; }
.forum h1 { margin: 0; font: 800 clamp(24px, 2.6vw, 32px)/1.25 'Be Vietnam Pro', sans-serif; color: #fff; }
.f-flash { margin: 0; }

/* breadcrumbs */
.f-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--sub); }
.f-crumbs a { color: #7dd3fc; text-decoration: none; }
.f-crumbs a:hover { text-decoration: underline; }
.f-crumbs i { font-style: normal; color: var(--muted); }
.f-crumbs span { color: #dbe7fb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* heads */
.f-index-head, .f-board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.f-index-head p, .f-board-head p { margin: 6px 0 0; color: var(--sub); font-size: 14.5px; }
.f-me { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.f-topic-head { display: grid; gap: 6px; }
.f-topic-head h1 { word-break: break-word; }
.f-topic-meta { color: var(--sub); font-size: 13px; }

.f-note { padding: 14px 18px; border-radius: 14px; font-size: 14px; color: #dbe7fb; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .25); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-note a:not(.btn3d) { color: #7dd3fc; font-weight: 600; }
.forum .error { margin: 0; text-align: left; }

/* roles */
.f-role { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.f-role.r-admin { color: #fecaca; background: rgba(248, 113, 113, .15); border: 1px solid rgba(248, 113, 113, .45); }
.f-role.r-mod { color: #bbf7d0; background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .45); }
.f-role.r-member { color: #bae6fd; background: rgba(56, 189, 248, .12); border: 1px solid rgba(56, 189, 248, .35); }
.f-nick { font-weight: 700; }
.f-nick.r-admin { color: #f87171; text-shadow: 0 0 12px rgba(248, 113, 113, .35); }
.f-nick.r-mod { color: #34d399; }
.f-nick.r-member { color: #7dd3fc; }
.f-legend { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.f-ava { --h: 200; display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; font: 800 15px/1 'Be Vietnam Pro', sans-serif; color: #fff;
	background: linear-gradient(135deg, hsl(var(--h) 75% 55%), hsl(calc(var(--h) + 50) 70% 42%)); box-shadow: 0 4px 12px hsl(var(--h) 70% 30% / .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.f-ava.big { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }

/* shoutbox */
.f-shout { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2)); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); backdrop-filter: blur(14px); }
.f-shout-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px;
	background: linear-gradient(90deg, rgba(59, 130, 246, .55), rgba(139, 92, 246, .45)); border-bottom: 1px solid rgba(125, 211, 252, .3); }
.f-shout-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 19px/1.2 'Be Vietnam Pro', sans-serif; color: #fff; }
.f-shout-head h2 svg { width: 22px; height: 22px; fill: #fff; }
.f-shout-tools { display: flex; gap: 6px; }
.forum .f-icon { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.forum .f-icon::before { display: none; }
.f-icon svg { width: 18px; height: 18px; fill: #fff; opacity: .55; }
.f-icon.on svg { opacity: 1; }
.f-shout.closed .f-shout-body { display: none; }
.f-shout-list { list-style: none; margin: 0; padding: 10px 14px; height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, .3) transparent; }
.f-shout-item { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 7px 8px; border-radius: 10px; }
.f-shout-item:hover { background: rgba(56, 189, 248, .06); }
.f-shout-item .f-ava { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.f-shout-line { min-width: 0; padding-top: 5px; font-size: 14.5px; line-height: 1.5; color: #eaf2ff; overflow-wrap: anywhere; }
.f-shout-item time { padding-top: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.forum .f-shout-del { position: absolute; right: 44px; top: 7px; width: 24px; height: 24px; padding: 0; border-radius: 7px; font-size: 16px; line-height: 1; opacity: 0;
	color: #fecaca; background: rgba(248, 113, 113, .18); border: 1px solid rgba(248, 113, 113, .4); box-shadow: none; }
.forum .f-shout-del::before { display: none; }
.f-shout-item:hover .f-shout-del { opacity: 1; }
.f-shout-empty, .f-shout-error { list-style: none; padding: 20px; text-align: center; color: var(--sub); font-size: 14px; }
.f-shout-error { padding: 8px; color: #fecaca; }
.f-shout-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.f-shout-form input[type="text"] { width: 100%; margin: 0; min-width: 0; }
.forum .f-shout-btn { width: 48px; padding: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(3, 7, 18, .5); border: 1px solid var(--line-2); box-shadow: none; }
.forum .f-shout-btn::before { display: none; }
.f-shout-btn svg { width: 22px; height: 22px; fill: #7dd3fc; }
.forum .f-shout-btn.send { background: var(--grad); border-color: transparent; }
.f-shout-btn.send svg { fill: #fff; }
.f-shout-login { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; text-align: center; }
.f-shout-login a { color: #7dd3fc; font-weight: 600; }
.f-shout-active { padding: 10px 18px 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub); }
.f-shout-active .k { color: var(--sub); }

.f-emoji-pop { position: absolute; z-index: 1000; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 8px; border-radius: 14px;
	background: #0b1328; border: 1px solid var(--line-2); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.f-emoji-pop[hidden] { display: none; }
.f-emoji-pop button { width: 34px; height: 34px; padding: 0; font-size: 20px; line-height: 1; border-radius: 8px; background: none; border: 0; box-shadow: none; cursor: pointer; }
.f-emoji-pop button::before { display: none; }
.f-emoji-pop button:hover { background: rgba(56, 189, 248, .15); transform: none; }

/* lists of boards / topics */
.f-cat { display: grid; gap: 10px; }
.f-cat-title { margin: 0; padding-left: 14px; position: relative; font: 700 13px/1.4 'Be Vietnam Pro', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #93c5fd; }
.f-cat-title::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 3px; background: var(--grad); }
.f-list { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2)); backdrop-filter: blur(14px); }
.f-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 80px 80px 230px; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .05); transition: background .25s; }
.f-row:last-child { border-bottom: 0; }
.f-row:hover { background: rgba(56, 189, 248, .05); }
.f-row.pinned { background: linear-gradient(90deg, rgba(250, 204, 21, .07), transparent 60%); }
.board-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); box-shadow: 0 6px 16px rgba(59, 130, 246, .35); }
.board-ic.staff { background: linear-gradient(135deg, #f87171, #db2777); box-shadow: 0 6px 16px rgba(219, 39, 119, .35); }
.board-ic svg { width: 22px; height: 22px; fill: #fff; }
.f-row-main { display: grid; gap: 3px; min-width: 0; }
.f-row-title { font-size: 16px; font-weight: 700; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.f-row-title:hover { color: #7dd3fc; }
.f-row-sub { font-size: 13px; color: var(--sub); }
.f-row-stat { text-align: center; display: grid; gap: 2px; }
.f-row-stat b { font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.f-row-stat span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.f-row-last { display: grid; gap: 3px; min-width: 0; font-size: 13px; }
.f-row-last a { color: #dbe7fb; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-row-last a:hover { color: #7dd3fc; }
.f-row-last span { color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-muted { color: var(--muted); }
.f-empty { padding: 28px; text-align: center; color: var(--sub); font-size: 14px; }
.f-tag { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: 3px; }
.f-tag.pin { color: #fde68a; background: rgba(250, 204, 21, .14); border: 1px solid rgba(250, 204, 21, .4); }
.f-tag.lock { color: #cbd5e1; background: rgba(148, 163, 184, .14); border: 1px solid rgba(148, 163, 184, .4); }

.f-stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
.f-stats > div { display: grid; gap: 4px; padding: 16px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .06); }
.f-stats > div:last-child { border-right: 0; }
.f-stats b { font: 800 24px/1.1 'Be Vietnam Pro', sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-stats span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.f-stats .f-newest .f-nick { font-size: 16px; }

/* pager */
.f-pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.f-pager a, .f-pager b, .f-pager span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; font-size: 14px; font-weight: 600; }
.f-pager a { color: #7dd3fc; background: rgba(3, 7, 18, .5); border: 1px solid var(--line); text-decoration: none; }
.f-pager a:hover { border-color: var(--line-2); }
.f-pager b { color: #fff; background: var(--grad); }
.f-pager span { color: var(--muted); }

/* posts */
.f-post { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2)); backdrop-filter: blur(14px); scroll-margin-top: 100px; }
.f-post:target { border-color: #38bdf8; box-shadow: 0 0 0 1px #38bdf8, 0 0 30px rgba(56, 189, 248, .25); }
.f-author { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 22px 14px; text-align: center; background: rgba(3, 7, 18, .35); border-right: 1px solid var(--line); }
.f-author .f-nick { font-size: 15.5px; overflow-wrap: anywhere; }
.f-stat { font-size: 12px; color: var(--sub); }
.f-banned { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fecaca; background: rgba(248, 113, 113, .15); border: 1px solid rgba(248, 113, 113, .4); }
.f-ok { color: #6ee7b7; font-size: 13px; font-weight: 600; }
.f-post-main { display: flex; flex-direction: column; min-width: 0; }
.f-post-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 12.5px; color: var(--sub); }
.f-permalink { color: var(--muted); text-decoration: none; font-weight: 700; }
.f-permalink:hover { color: #7dd3fc; }
.f-post-body { flex: 1; padding: 18px 20px; font-size: 15px; line-height: 1.7; color: #e2ebfb; overflow-wrap: anywhere; }
.f-post-body a { color: #7dd3fc; }
.f-edited { padding: 0 20px 8px; font-size: 12px; font-style: italic; color: var(--muted); }
.f-post-act { display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, .05); }
.forum .f-link { padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #7dd3fc; background: none; border: 0; box-shadow: none; cursor: pointer; text-decoration: none; }
.forum .f-link::before { display: none; }
.forum .f-link:hover { background: rgba(56, 189, 248, .1); transform: none; }
.forum .f-link.danger { color: #fca5a5; }
.forum .f-link.danger:hover { background: rgba(248, 113, 113, .12); }
.f-inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }

/* bbcode */
.fbb-quote { margin: 8px 0 12px; padding: 10px 14px; border-left: 3px solid #38bdf8; border-radius: 0 10px 10px 0; background: rgba(56, 189, 248, .07); color: #c9d6ee; font-size: 14px; }
.fbb-quote cite { display: block; margin-bottom: 4px; font-style: normal; font-weight: 700; font-size: 12.5px; color: #7dd3fc; }
.fbb-code { margin: 8px 0 12px; padding: 12px 14px; border-radius: 10px; background: rgba(3, 7, 18, .7); border: 1px solid var(--line); font: 13px/1.6 Consolas, monospace; color: #a5f3fc; overflow-x: auto; white-space: pre; }
.fbb-img { max-width: 100%; max-height: 520px; border-radius: 10px; vertical-align: middle; }
.fbb-center { text-align: center; }
.fbb-spoiler { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: rgba(3, 7, 18, .5); border: 1px dashed var(--line-2); }
.fbb-spoiler summary { cursor: pointer; font-weight: 700; color: #c4b5fd; }

/* editor + forms */
.f-box { display: grid; gap: 4px; }
.f-editor { display: grid; gap: 0; }
.f-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgba(3, 7, 18, .55); }
.forum .f-tool { min-width: 34px; height: 32px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #cfe3ff; background: rgba(255, 255, 255, .05); border: 1px solid transparent; box-shadow: none; }
.forum .f-tool::before { display: none; }
.forum .f-tool:hover { background: rgba(56, 189, 248, .15); border-color: var(--line-2); transform: none; }
.f-tool[data-tag="i"] { font-style: italic; }
.f-tool[data-tag="u"] { text-decoration: underline; }
.f-tool[data-tag="s"] { text-decoration: line-through; }
.f-editor textarea { width: 100%; min-height: 200px; margin: 0; border-radius: 0 0 12px 12px; resize: vertical; font: 14.5px/1.6 'Be Vietnam Pro', sans-serif; box-sizing: border-box; }
.f-hint { margin-top: 6px; }
.f-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.f-actions input[type="submit"] { margin: 0; }
.forum .ga-form .field-reg { width: 100%; }

/* moderation + admin */
.f-modbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .3); }
.f-modbar-k { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6ee7b7; margin-right: 4px; }
.f-modbar select { margin: 0; width: auto; padding-top: 7px; padding-bottom: 7px; }
.f-admin-list { display: grid; gap: 8px; }
.f-admin-row, .f-admin-board { display: grid; gap: 8px; align-items: center; margin: 0; padding: 10px; border-radius: 12px; background: rgba(3, 7, 18, .35); border: 1px solid rgba(255, 255, 255, .05); }
.f-admin-row { grid-template-columns: minmax(0, 1fr) 80px auto auto; }
.f-admin-board { display: flex; flex-wrap: wrap; }
.f-admin-board > input[name="name"] { flex: 1 1 220px; width: auto; }
.f-admin-board > input[name="description"] { flex: 3 1 380px; width: auto; }
.f-admin-board > select { flex: 0 0 170px; width: 170px; }
.f-admin-board > .f-num { flex: 0 0 70px; width: 70px; }
.f-admin-board > .f-count { flex: 1 1 auto; }
.f-admin-row.add, .f-admin-board.add { border-style: dashed; border-color: var(--line-2); }
.f-admin-row input, .f-admin-board input, .f-admin-board select { width: 100%; margin: 0; min-width: 0; box-sizing: border-box; }
.f-inline { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); white-space: nowrap; }
.f-inline select { width: auto; }
.f-count { font-size: 12.5px; color: var(--sub); white-space: nowrap; }
.f-num { text-align: center; }
.f-search { display: flex; gap: 8px; margin-bottom: 12px; }
.f-search input { margin: 0; flex: 1; max-width: 320px; }
.f-table-wrap { overflow-x: auto; }
.f-members { width: 100%; border-collapse: collapse; font-size: 14px; }
.f-members th { padding: 10px; text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; border-bottom: 1px solid var(--line); }
.f-members td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.f-members td .f-ava { width: 28px; height: 28px; font-size: 12px; vertical-align: middle; margin-right: 6px; }
.f-members td small { display: block; color: var(--muted); }
.f-members select, .f-members input { margin: 0; width: auto; padding-top: 6px; padding-bottom: 6px; }
.f-member-act input { max-width: 140px; }

@media (max-width: 900px) {
	.f-row { grid-template-columns: auto minmax(0, 1fr) 64px; }
	.f-row-stat + .f-row-stat, .f-row-last { display: none; }
	.f-post { grid-template-columns: 1fr; }
	.f-author { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
	.f-ava.big { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
	.f-stats { grid-template-columns: repeat(3, 1fr); }
	.f-stats .f-newest { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .06); }
	.f-admin-row { grid-template-columns: 1fr 70px; }
	.f-admin-board > input[name="name"], .f-admin-board > input[name="description"] { flex-basis: 100%; }
	.f-modbar select { flex: 1 1 100%; }
	.f-shout-list { height: 300px; }
}

/* the theme styles every <button> as a blue 3D button: colour variants and plain links need more specific rules */
.forum button.btn-danger { --face: linear-gradient(135deg, #f87171, #dc2626); --depth: #7f1d1d; --glow: rgba(248, 113, 113, .35); }
.forum button.btn-ghost { --face: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); --depth: rgba(15, 30, 60, .95); --glow: rgba(56, 189, 248, .15); outline: 1px solid rgba(125, 211, 252, .35); outline-offset: -1px; }
.forum .f-link { color: #7dd3fc !important; text-shadow: none; }
.forum .f-link.danger { color: #fca5a5 !important; }
.forum .f-tool { color: #cfe3ff !important; text-shadow: none; }
