:root {
  --bg: #0f0d0a;
  --bg2: #17130e;
  --panel: #1d1812;
  --panel2: #251e15;
  --line: #3b2f21;
  --text: #e8dfd0;
  --muted: #9a8e7b;
  --gold: #d9a441;
  --gold2: #f2c76b;
  --red: #c0392b;
  --green: #4caf6a;
  --blue: #5aa9e6;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% -150px, #2b1d0d 0%, var(--bg) 70%) no-repeat, var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 .4rem; }
h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.wrap { width: min(1180px, 94%); margin: 0 auto; }
.main { flex: 1; padding: 1.2rem 0 2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
.pad { padding: 1rem 1.2rem; }
.pad-s { padding: 0 1rem .8rem; margin: 0; }

/* Topbar */
.topbar { background: linear-gradient(#241a0f, #17110a); border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #ffe7a3; font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  background: linear-gradient(135deg, #fff4c4, var(--gold), #8a5a12);
  color: #1a1208; padding: .18rem .5rem; border-radius: 6px; font-weight: 800;
  box-shadow: 0 0 10px #d9a441, 0 0 22px rgba(242,199,107,.55);
  animation: brandGlow 2.2s ease-in-out infinite;
}
.brand-name {
  color: #ffe7a3; letter-spacing: .03em;
  text-shadow: 0 0 8px #f2c76b, 0 0 20px rgba(217,164,65,.75);
  animation: brandGlow 2.2s ease-in-out infinite;
}
.search { flex: 1; min-width: 160px; max-width: 320px; }
.search input { width: 100%; padding: .4rem .7rem; }
.nav { display: flex; align-items: center; gap: .9rem; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--gold2); text-decoration: none; }
.nav-user { color: var(--gold2) !important; font-weight: 600; }
.nav-badge b { background: var(--red); color: #fff; border-radius: 10px; padding: 0 .4rem; margin-left: .25rem; font-size: .75rem; }
.nav-admin { color: #ff9d8a !important; }
.linkbtn { background: none; border: 0; color: var(--gold2); cursor: pointer; padding: 0; font: inherit; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: #ff8a7a; }
.linkbtn.liked { color: var(--green); }

/* Form */
label { display: block; margin: .7rem 0 .2rem; font-weight: 600; }
label small { font-weight: 400; }
label.check { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; background: #120e09; color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: .5rem .65rem; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
textarea { resize: vertical; }
input.num { width: 80px; }
.row-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .4rem 0; }
.row-form input[type=text], .row-form input[type=password], .row-form input[type=email], .row-form input[type=search], .row-form select { width: auto; flex: 1; min-width: 140px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.grid3 { display: grid; grid-template-columns: 2fr 2fr 80px; gap: .5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.narrow { max-width: 460px; margin: 1.5rem auto; }
.narrow-l { max-width: 640px; }
.btn {
  display: inline-block; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: .5rem 1rem; cursor: pointer; font: inherit; font-weight: 600; text-align: center;
}
.btn:hover { border-color: var(--gold); text-decoration: none; color: var(--gold2); }
.btn-primary { background: linear-gradient(#e0ad4d, #b47c1d); color: #1a1208; border-color: #e0ad4d; }
.btn-primary:hover { color: #000; filter: brightness(1.1); }
.btn-danger { background: #5a1e18; border-color: #8a2e24; color: #ffd6d0; }
.btn-danger:hover { border-color: var(--red); color: #fff; }
.btn-sm { padding: .25rem .65rem; font-size: .85rem; }
.btn-block { width: 100%; }

.alert { padding: .7rem 1rem; border-radius: 6px; margin: .6rem 0; border: 1px solid; }
.alert-error { background: #3a1511; border-color: #7a2a20; color: #ffc9c0; }
.alert-ok { background: #12301c; border-color: #2c6b40; color: #c5f0d2; }

.pw-meter { height: 6px; background: #120e09; border-radius: 3px; overflow: hidden; margin: .3rem 0; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }

/* Panel */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.panel.pad { overflow: visible; }
.hero { text-align: center; padding: 1.4rem 1rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #2a1c0b, #140f09); }
.hero h1 { color: var(--gold2); font-size: 2rem; }
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.cat-title { background: linear-gradient(#33250f, #251a0b); margin: 0; padding: .6rem 1rem; font-size: 1.05rem; color: var(--gold2); border-bottom: 1px solid var(--line); }
.center-box { text-align: center; padding: 2.5rem 1rem; }
.big-code { font-size: 4rem; color: var(--gold); margin: 0; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .grid2, .grid3 { grid-template-columns: 1fr; } }
.side-title { margin: 0; padding: .65rem 1rem; background: linear-gradient(90deg, #3a2810, #251a0b 70%); font-size: .92rem; color: var(--gold2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .5rem; letter-spacing: .02em; }
.side-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold2); display: inline-block; }
.side-sub { margin: .5rem 1rem 0; font-size: .85rem; color: var(--muted); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: .5rem 1rem; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-card { box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.recent-list li { padding: .7rem 1rem; }
.recent-list li:hover { background: #261c10; }
.recent-title { display: block; font-weight: 700; line-height: 1.35; }
.recent-title .tag { margin-right: .25rem; }
.recent-meta { display: flex; flex-wrap: wrap; gap: .2rem .55rem; margin-top: .25rem; color: var(--muted); font-size: .75rem; }
.recent-meta span + span::before { content: "·"; margin-right: .55rem; color: #6d5c45; }
.top-ranks { list-style: none; margin: 0; padding: .25rem 0; }
.top-rank { display: flex; align-items: center; gap: .65rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.top-rank:last-child { border-bottom: 0; }
.top-rank:hover { background: #261c10; }
.top-pos { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; background: #2a2114; color: var(--muted); flex-shrink: 0; }
.top-rank.n1 .top-pos { background: linear-gradient(#f2c76b, #b47c1d); color: #1a1208; }
.top-rank.n2 .top-pos { background: linear-gradient(#d8d8d8, #8a8a8a); color: #1a1208; }
.top-rank.n3 .top-pos { background: linear-gradient(#d08a4a, #8a4e1d); color: #1a1208; }
.top-meta { min-width: 0; }
.avatar-sm { width: 36px; height: 36px; font-size: .95rem; margin: 0; border-width: 1px; flex-shrink: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .85rem 1rem .4rem; }
.mini-stats div { background: #15110c; border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: .55rem .2rem; }
.mini-stats b { display: block; font-size: 1.25rem; color: var(--gold2); line-height: 1.1; }
.mini-stats span { color: var(--muted); font-size: .72rem; }
.newest-line { margin: .2rem 1rem .7rem; font-size: .85rem; color: var(--muted); }
.online-box { margin: 0 .75rem .85rem; padding: .7rem .75rem; border-radius: 8px; background: linear-gradient(180deg, #162414, #10140f); border: 1px solid #2d4a2a; }
.online-head { margin: 0; font-size: .88rem; color: #8fe0a4; display: flex; align-items: center; gap: .4rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf6a; box-shadow: 0 0 8px #4caf6a; animation: livePulse 1.6s ease-in-out infinite; }
.online-count { margin: .25rem 0 .5rem; color: var(--muted); font-size: .78rem; }
.online-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.online-chip { background: #1a2418; border: 1px solid #2d4a2a; border-radius: 999px; padding: .12rem .5rem; font-size: .8rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 1rem; border-bottom: 1px solid var(--line); }
.info-list li span { color: var(--muted); }
.panel.pad .info-list li { padding-left: 0; padding-right: 0; }

/* Board list */
.board-row { display: grid; grid-template-columns: 1fr 100px 240px; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); align-items: center; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover, .topic-row:hover { background: var(--panel2); }
.board-name { font-size: 1.05rem; font-weight: 700; }
.board-stats { text-align: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .board-row { grid-template-columns: 1fr; } .board-stats { text-align: left; } }

/* Topic list */
.topic-head { display: grid; grid-template-columns: 1fr 150px 150px; padding: .5rem 1rem; background: #251a0b; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); }
.topic-row { display: grid; grid-template-columns: 1fr 150px 150px; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); align-items: center; }
.topic-row:last-child { border-bottom: 0; }
.topic-row.is-pinned { background: #221a0e; }
.topic-row.unread .topic-title, .topic-row.unread a { font-weight: 700; }
.c-num, .c-last { text-align: center; }
.topic-title { font-weight: 600; font-size: 1.02rem; }
@media (max-width: 700px) { .topic-head { display: none; } .topic-row { grid-template-columns: 1fr; } .c-num, .c-last { text-align: left; } }

/* Tags */
.tag { display: inline-block; padding: 0 .45rem; border-radius: 4px; font-size: .72rem; font-weight: 700; vertical-align: middle; border: 1px solid; }
.tag-pin { color: var(--gold2); border-color: var(--gold); background: #2d200c; }
.tag-lock { color: #ff9d8a; border-color: #8a2e24; background: #301310; }
.tag-prefix { color: #9bd3ff; border-color: #2b5f87; background: #0f2233; }
.tag-staff { color: #d9b3ff; border-color: #6b3d99; background: #231331; }
.tag-del { color: #ff8a7a; border-color: var(--red); background: #3a1511; }

/* Roles & ranks */
.uname { font-weight: 700; }
/* Grup ve rank renkleri (yönetim panelinden seçilir) */
.clr-gold { color: #f2c76b; } .clr-red { color: #ff6b57; } .clr-orange { color: #f0a050; } .clr-green { color: #4fd18a; }
.clr-cyan { color: #4fd1d1; } .clr-blue { color: #5aa9e6; } .clr-purple { color: #b78cf0; } .clr-pink { color: #ff6f91; }
.clr-white { color: #ffffff; } .clr-gray { color: #9a8e7b; }
.gtag { font-weight: 800; font-size: .85em; letter-spacing: .02em; text-shadow: 0 0 6px currentColor; }
.staff-badge { display: inline-block; font-size: .72rem; font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 0 .4rem; margin: .1rem 0; }
.custom-title { color: var(--gold); font-style: italic; font-size: .85rem; }
.rank {
  display: inline-block; position: relative; overflow: hidden; font-size: .78rem; font-weight: 700;
  padding: .08rem .55rem; border-radius: 10px; border: 1px solid currentColor;
  text-shadow: 0 0 8px currentColor; box-shadow: 0 0 8px currentColor;
  animation: rankGlow 2.4s ease-in-out infinite;
}
.rank::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: rankShine 2.8s ease-in-out infinite;
}
.rank.clr-gold, .rank.clr-red { animation-duration: 1.8s; }
.rank-bar { width: 100%; max-width: 140px; height: 5px; background: #120e09; border-radius: 3px; margin: .3rem auto; overflow: hidden; }
.rank-bar.wide { max-width: 320px; margin: .4rem 0; }
.rank-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold2), #fff3c4, var(--gold));
  background-size: 200% 100%;
  animation: rankBar 2.2s linear infinite;
  transition: width .9s ease;
}
@keyframes rankGlow {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 5px currentColor; }
  50% { filter: brightness(1.25); box-shadow: 0 0 14px currentColor; }
}
@keyframes rankShine {
  0%, 35% { left: -45%; }
  65%, 100% { left: 120%; }
}
@keyframes rankBar {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.75); }
}
@keyframes brandGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.28); }
}
@media (prefers-reduced-motion: reduce) {
  .rank, .rank::after, .rank-fill, .live-dot, .brand-mark, .brand-name, .signature { animation: none; }
}

/* Avatar */
.avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6rem; color: #fff; margin: 0 auto .4rem; border: 2px solid var(--gold); }
.avatar-lg { width: 96px; height: 96px; font-size: 2.4rem; margin: 0; }
.av-0 { background: #8a3b2e; } .av-1 { background: #2e6e8a; } .av-2 { background: #5b8a2e; } .av-3 { background: #7a2e8a; }
.av-4 { background: #8a6b2e; } .av-5 { background: #2e8a6b; } .av-6 { background: #8a2e5a; } .av-7 { background: #3b3b8a; }

/* Post */
.post { display: grid; grid-template-columns: 190px 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.post-user { background: var(--bg2); padding: 1rem .8rem; text-align: center; border-right: 1px solid var(--line); word-break: break-word; }
.user-stats { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .8rem; color: var(--muted); text-align: left; }
.post-body { padding: .8rem 1.1rem; min-width: 0; display: flex; flex-direction: column; }
.post-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .7rem; }
.post-content { word-wrap: break-word; overflow-wrap: anywhere; flex: 1; }
.post-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .5rem; font-size: .88rem; }
.signature {
  border-top: 1px dashed var(--line); margin-top: 1rem; padding-top: .7rem;
  text-align: center; font-weight: 700; font-size: 1.02rem; color: #ffe7a3;
  text-shadow: 0 0 8px #f2c76b, 0 0 18px rgba(242,199,107,.55);
  animation: brandGlow 2.6s ease-in-out infinite;
}
.signature .bb-img, .signature img { display: inline-block; margin: .35rem auto; }
.signature .bb-center { text-align: center; }
.edited { font-size: .78rem; margin-top: .5rem; }
@media (max-width: 700px) { .post { grid-template-columns: 1fr; } .post-user { border-right: 0; border-bottom: 1px solid var(--line); } }
.modbar { padding: .6rem 1rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; overflow: visible; }
.modbar select { width: auto; }

/* BBCode */
.bb-quote { margin: .6rem 0; padding: .5rem .8rem; border-left: 3px solid var(--gold); background: #15110c; color: #cbbfa9; border-radius: 0 6px 6px 0; }
.bb-quote cite { display: block; font-style: normal; font-weight: 700; color: var(--gold2); margin-bottom: .2rem; }
.bb-code { background: #0b0906; border: 1px solid var(--line); padding: .6rem; border-radius: 6px; overflow-x: auto; margin: .6rem 0; font-family: Consolas, monospace; font-size: .9rem; }
.bb-img { max-width: 100%; max-height: 600px; border-radius: 6px; margin: .3rem 0; }
.bb-center { text-align: center; }
.bb-spoiler { border: 1px solid var(--line); border-radius: 6px; margin: .5rem 0; background: #15110c; }
.bb-spoiler summary { cursor: pointer; padding: .3rem .7rem; color: var(--gold2); }
.bb-spoiler > div { padding: .5rem .8rem; border-top: 1px solid var(--line); }
.bb-list { margin: .4rem 0 .4rem 1.2rem; }
.bb-size-1 { font-size: .8em; } .bb-size-2 { font-size: .9em; } .bb-size-3 { font-size: 1.15em; } .bb-size-4 { font-size: 1.35em; } .bb-size-5 { font-size: 1.7em; }

/* Editor */
.editor { border: 1px solid var(--line); border-radius: 6px; background: #120e09; margin: .35rem 0 1rem; overflow: visible; }
.editor textarea {
  display: block; width: 100%; min-height: 200px; height: auto;
  background: #0c0a07; color: var(--text); border: 0; border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px; padding: .75rem; line-height: 1.5; resize: vertical;
}
.tag-row { margin: .2rem 0 .8rem; }
.tag-row input[type=text] { min-width: 200px; }
.editor-sm textarea { min-height: 96px; }
.sig-preview { margin: .4rem 0 1rem; padding: .6rem .7rem; background: #15110c; border: 1px dashed var(--line); border-radius: 6px; }
.signature .bb-img, .signature img { max-height: 90px; max-width: 240px; }
.toolbar { display: flex; flex-wrap: wrap; gap: .3rem; padding: .35rem; background: #251a0b; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.toolbar button, .toolbar select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: .15rem .5rem; cursor: pointer; font: inherit; font-size: .85rem; width: auto; }
.toolbar button:hover { border-color: var(--gold); }
.editor-foot { display: flex; justify-content: space-between; padding: .2rem .6rem; font-size: .78rem; }

/* Tables, tabs, pagination */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #251a0b; color: var(--gold2); font-size: .85rem; }
.table.small td, .table.small th { font-size: .82rem; padding: .4rem .6rem; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: .5rem 0 1rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem 1rem; color: var(--muted); border-radius: 6px 6px 0 0; }
.tabs a.active, .tabs a:hover { color: var(--gold2); background: var(--panel); text-decoration: none; border: 1px solid var(--line); border-bottom-color: var(--panel); margin-bottom: -1px; }
.pagination { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.pagination a, .pagination .cur, .pagination .gap { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.pagination .cur { background: var(--gold); color: #1a1208; font-weight: 700; border-color: var(--gold); }
.pagination .gap { border: 0; background: none; }

.profile-head { display: flex; gap: 1.2rem; padding: 1.2rem; align-items: center; flex-wrap: wrap; overflow: visible; }
.profile-actions { margin-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.rules li { margin: .5rem 0; }
.secret code, .temp-pw { background: #0b0906; padding: .3rem .6rem; border: 1px solid var(--gold); border-radius: 6px; font-size: 1.15rem; letter-spacing: .1em; color: var(--gold2); display: inline-block; margin: .3rem .3rem; }
.otp-uri code { word-break: break-all; font-size: .75rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; text-align: center; }
.stat b { display: block; font-size: 1.8rem; color: var(--gold2); }
.stat span { color: var(--muted); font-size: .82rem; }
.stat.warn { border-color: var(--red); }
.stat.warn b { color: #ff8a7a; }
.board-edit { border-top: 1px dashed var(--line); margin-top: .8rem; padding-top: .6rem; display: grid; gap: .4rem; }
.board-edit.new { opacity: .9; }
.report { border-left: 3px solid var(--gold); }
.perm-list { list-style: none; margin: .4rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .2rem .8rem; font-size: .88rem; }
.perm-list li::before { display: inline-block; width: 1.3em; font-weight: 800; }
.perm-list li.yes::before { content: "✓"; color: var(--green); }
.perm-list li.no { color: var(--muted); }
.perm-list li.no::before { content: "✗"; color: #7a2a20; }
.group-card { border-left: 3px solid var(--gold); }
.group-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .3rem; }
.grid3g { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
@media (max-width: 700px) { .grid3g { grid-template-columns: 1fr; } }
fieldset.perms { border: 1px solid var(--line); border-radius: 6px; margin: .8rem 0; padding: .4rem .8rem .6rem; }
fieldset.perms legend { color: var(--gold2); padding: 0 .4rem; font-size: .85rem; }
label.check.disabled { color: var(--muted); }
.team-row { grid-template-columns: 1fr auto; }
.table input[type=text], .table select { min-width: 140px; }
.footer { border-top: 1px solid var(--line); background: #0b0906; color: var(--muted); font-size: .82rem; padding: 1.1rem 0; }
.footer-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; }
.footer-copy { margin: 0; text-align: center; width: 100%; }
.footer-links { margin: 0; display: flex; gap: .7rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-official { white-space: nowrap; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0 .8rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--gold2); }
