*,*::before,*::after { margin:0; padding:0; box-sizing:border-box }

:root {
  --bg:  #080808;
  --s1:  #111;
  --s2:  #181818;
  --s3:  #222;
  --b1:  #282828;
  --b2:  #363636;
  --t1:  #F2F2F2;
  --t2:  #888;
  --t3:  #4A4A4A;
  --yellow:     #FFEA00;
  --ydim:       rgba(255,234,0,.1);
  --ymid:       rgba(255,234,0,.2);
  --red:        #CC2200;
  --rdim:       rgba(204,34,0,.12);
  --green:      #22C55E;
  --gdim:       rgba(34,197,94,.12);
  --blue:       #3B82F6;
  --bdim:       rgba(59,130,246,.12);
  --purple:     #A855F7;
  --purpledim:  rgba(168,85,247,.12);
  --r:   10px;
  --rs:  6px;
  --tr:  .18s ease;
  --shadow: 0 2px 8px rgba(0,0,0,.4);
}

[data-theme="light"] {
  --bg:  #f4f5f7;
  --s1:  #ffffff;
  --s2:  #f0f1f4;
  --s3:  #e6e8ec;
  --b1:  #d9dce3;
  --b2:  #c3c8d0;
  --t1:  #16191e;
  --t2:  #5b626d;
  --t3:  #9aa1ab;
  --yellow:     #a16207;
  --ydim:       rgba(161,98,7,.12);
  --ymid:       rgba(161,98,7,.25);
  --red:        #c62828;
  --rdim:       rgba(198,40,40,.1);
  --green:      #15803d;
  --gdim:       rgba(21,128,61,.12);
  --blue:       #1d4ed8;
  --bdim:       rgba(29,78,216,.1);
  --purple:     #7c3aed;
  --purpledim:  rgba(124,58,237,.1);
  --shadow: 0 2px 8px rgba(0,0,0,.08);
}

[data-theme="light"] .btn-p,
[data-theme="light"] .tab.active,
[data-theme="light"] .f-chip.active,
[data-theme="light"] .pager-item.active,
[data-theme="light"] .search-bar button,
[data-theme="light"] .msg-bubble-me,
[data-theme="light"] .stats-btn { color: #fff; }
[data-theme="light"] .btn-p:hover { color: #fff; }
[data-theme="light"] .hdr-nav .btn:hover { color: #fff; }
[data-theme="light"] .auth-card { background: #ffffff; border-color: var(--b1); }
[data-theme="light"] .auth-screen .field,
[data-theme="light"] .auth-screen input { background: #ffffff; border-color: var(--b1); }

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--t1);
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}
a { color: var(--yellow); text-decoration: none }
a:hover { text-decoration: underline }
img { max-width: 100%; height: auto; display: block }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none }
input,textarea,select { font: inherit }
select option { background: var(--s2); color: var(--t1) }
::-webkit-scrollbar { width: 4px; height: 4px }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 2px }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,.04) 2px,rgba(0,0,0,.04) 4px);
  pointer-events: none;
  z-index: 9998;
}

.hdr {
  background: var(--s1);
  border-bottom: 1px solid var(--b1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hdr-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}
.hdr-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--t1);
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--t1);
  flex-shrink: 0;
}
.hdr-logo:hover { text-decoration: none }
.hdr-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url('/favicon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  font-size: 0;
  color: transparent;
}
.hdr-logo-text { font-size: 14px; font-weight: 700 }
.hdr-logo-sub  { font-size: 11px; color: var(--t2) }

.hdr-search {
  flex: 1;
  max-width: 280px;
  position: relative;
}
.hdr-search input {
  width: 100%;
  background: var(--s2);
  border: 1.5px solid var(--b1);
  border-radius: var(--rs);
  padding: 7px 12px 7px 34px;
  color: var(--t1);
  font-size: 13px;
  transition: border-color var(--tr);
}
.hdr-search input:focus { border-color: var(--yellow); outline: none }
.hdr-search input::placeholder { color: var(--t3) }
.hdr-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  pointer-events: none;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hdr-nav > a:not(.btn),
.hdr-nav .hdr-user-name {
  color: var(--t2) !important;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 5px 7px;
  border-radius: 6px;
  text-decoration: none;
  position: relative;
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.hdr-nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 2px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .22s ease;
}
.hdr-nav > a:not(.btn):hover,
.hdr-nav .hdr-user-name:hover {
  color: var(--t1) !important;
  text-decoration: none;
}
.hdr-nav > a:not(.btn):hover::after { transform: scaleX(1); }

.hdr-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  background: transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.hdr-nav .btn.btn-s {
  background: transparent;
  border-color: var(--b2);
  color: var(--t1);
}
.hdr-nav .btn.btn-s:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
}
.hdr-nav .btn.btn-p {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  box-shadow: 0 0 12px rgba(255, 234, 0, .18);
}
.hdr-nav .btn.btn-p:hover {
  background: #f4d605;
  border-color: #f4d605;
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 234, 0, .32);
}
.hdr-nav .btn span,
.hdr-nav .btn svg { flex-shrink: 0; }
.hdr-nav form button.btn { cursor: pointer; }

[data-theme="light"] .hdr-nav .btn.btn-p {
  background: #a16207;
  border-color: #a16207;
  color: #fff;
  box-shadow: 0 0 10px rgba(161, 98, 7, .2);
}
[data-theme="light"] .hdr-nav .btn.btn-p:hover {
  background: #78350f;
  border-color: #78350f;
  color: #fff;
  box-shadow: 0 0 18px rgba(161, 98, 7, .35);
}
[data-theme="light"] .hdr-nav .btn.btn-s {
  border-color: var(--b2);
  color: var(--t1);
}
[data-theme="light"] .hdr-nav .btn.btn-s:hover {
  border-color: #a16207;
  color: #a16207;
}

.hdr-user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.hdr-user-name { font-size: 13px; font-weight: 600 }

.notif-badge {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

.ts-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--s3);
  border: 1.5px solid var(--b2);
  border-radius: 100px;
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--tr);
}
.ts-wrap:hover { border-color: var(--yellow); }
.ts-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr), opacity var(--tr), color var(--tr);
  user-select: none;
  pointer-events: none;
}
.ts-icon.ts-sun  { opacity: .38; background: transparent; color: var(--t2); }
.ts-icon.ts-moon { opacity: 1;   background: #22C55E;     color: #fff; }
[data-theme="light"] .ts-icon.ts-sun  { opacity: 1;   background: var(--yellow); color: #78350f; }
[data-theme="light"] .ts-icon.ts-moon { opacity: .38; background: transparent;   color: var(--t2); }
.ts-wrap-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 500;
  box-shadow: var(--shadow);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.bc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--t2);
  flex-wrap: wrap;
}
.bc a { color: var(--t2) }
.bc a:hover { color: var(--yellow); text-decoration: none }
.bc-sep { color: var(--t3) }

.ph { margin-bottom: 20px }
.ph h1, .ph-title { font-size: 22px; font-weight: 700; margin-bottom: 4px }
.ph-sub { font-size: 13px; color: var(--t2) }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--rs);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--tr);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none }
.btn svg { width: 16px; height: 16px }
.btn-p {
  background: var(--yellow);
  color: #000;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 10px rgba(255,234,0,.4);
}
.btn-p:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(204,34,0,.6);
}
.btn-s {
  background: var(--s3);
  color: var(--t1);
  border: 1px solid var(--b1);
}
.btn-s:hover { background: var(--b1) }
.btn-d {
  background: var(--rdim);
  color: var(--red);
  border: 1px solid rgba(204,34,0,.25);
}
.btn-d:hover { background: rgba(204,34,0,.22) }
.btn-g {
  background: var(--gdim);
  color: var(--green);
  border: 1px solid rgba(34,197,94,.25);
}
.btn-g:hover { background: rgba(34,197,94,.22) }
.btn-sm  { padding: 5px 11px; font-size: 12px }
.btn-xs  { padding: 3px 8px; font-size: 11px; border-radius: 4px }
.btn-lg  { padding: 13px 24px; font-size: 15px }
.btn-full { width: 100%; justify-content: center }
.btn-icon { width: 36px; height: 36px; padding: 0 }
.btn-icon svg { width: 18px; height: 18px }

.field,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  background: var(--s2);
  border: 1.5px solid var(--b1);
  border-radius: var(--rs);
  padding: 10px 14px;
  color: var(--t1);
  font-size: 14px;
  transition: border-color var(--tr);
  outline: none;
}
.field:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus { border-color: var(--yellow); background: var(--s1) }
input::placeholder,
textarea::placeholder { color: var(--t3) }
textarea { resize: vertical; min-height: 80px }
select.field {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field-label,
label.lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.field-group,
.field-g { margin-bottom: 14px; }
.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 5px;
}
.field-group:last-child,
.field-g:last-child { margin-bottom: 0 }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }

.err-box {
  background: rgba(204,34,0,.1);
  border: 1px solid rgba(204,34,0,.35);
  color: #ff8a80;
  border-radius: var(--rs);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.msg-box {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--green);
  border-radius: var(--rs);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.av {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}

.auth-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  padding: 16px;
  overflow-y: auto;
}
.auth-container { width: 100%; max-width: 900px; }
.auth-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 36px 28px;
  background: rgba(17,17,17,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
}
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/favicon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  font-size: 0;
  color: transparent;
  position: relative;
}
.auth-logo-text  { font-size: 18px; font-weight: 600 }
.auth-logo-sub   { font-size: 12px; color: var(--t2) }
.auth-title      { font-size: 20px; font-weight: 600; margin-bottom: 6px }
.auth-sub        { color: var(--t2); margin-bottom: 24px; font-size: 13px }
.auth-footer     { margin-top: 16px; text-align: center; color: var(--t3); font-size: 12px }
.auth-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.auth-actions a {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 9px 12px;
  background: var(--s2);
  border-radius: var(--rs);
  color: var(--t2);
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--b1);
  transition: var(--tr);
  text-decoration: none;
}
.auth-actions a:hover {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
  text-decoration: none;
}
.auth-screen .field,
.auth-screen input[type="text"],
.auth-screen input[type="email"],
.auth-screen input[type="password"],
.auth-screen input[type="tel"],
.auth-screen input[type="number"],
.auth-screen input[type="search"],
.auth-screen input[type="url"],
.auth-screen textarea,
.auth-screen select {
  background: rgba(24,24,24,.9);
  border: 1.5px solid rgba(255,255,255,.08);
}
.auth-screen .field:focus,
.auth-screen input:focus {
  border-color: var(--yellow);
  background: rgba(0,0,0,.8);
}
.auth-screen .field::placeholder,
.auth-screen input::placeholder { color: var(--t3) }
.auth-screen .field-group { margin-bottom: 16px }
.auth-illustration {
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-illustration img { max-height: 360px; width: 100%; object-fit: contain }
.auth-card { margin: 0 auto; }
.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--t2);
  margin-top: 14px;
}
.auth-switch a { color: var(--yellow); }

.profile-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 24px;
  max-width: 600px;
}
.profile-avatar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 20px;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-meta {
  font-size: 12px;
  color: var(--t2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--s3);
  color: var(--t2);
  border: 1px solid var(--b2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.role-admin {
  background: rgba(168,85,247,.15);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,.3);
}
.ban-status-ok { color: var(--green); font-weight: 600; }
.ban-status-perm { color: var(--red); font-weight: 700; }
.ban-status-temp { color: #facc15; font-weight: 600; }

.stats-bar {
  display: flex;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
}
.stat-b {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-right: 1px solid var(--b1);
}
.stat-b:last-child { border-right: none }
.stat-b-val { font-size: 20px; font-weight: 700; color: var(--yellow) }
.stat-b-lbl { font-size: 11px; color: var(--t2); margin-top: 2px }
.stat-b-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}
.stat-b-link:hover { background: var(--s2); text-decoration: none; }

.f-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: var(--t2);
  background: var(--s1);
  border: 1.5px solid var(--b1);
  transition: var(--tr);
  text-decoration: none;
}
.f-chip:hover { background: var(--s2); color: var(--t1); text-decoration: none }
.f-chip.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}
.f-chip .tab-count { font-size: 11px; opacity: .7 }

.topic-list {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
}
.topic-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--b1);
  transition: background var(--tr);
  position: relative;
  cursor: pointer;
}
.topic-item:last-child { border-bottom: none }
.topic-item:hover { background: var(--s2) }
.topic-pin { color: var(--yellow); flex-shrink: 0; padding-top: 2px; font-size: 13px }
.topic-body { flex: 1; min-width: 0 }
.topic-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.topic-title:hover { color: var(--yellow); text-decoration: none }
.topic-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.topic-item > a,
.topic-meta a,
.topic-last a { position: relative; z-index: 2; }
.topic-meta {
  font-size: 11px;
  color: var(--t3);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.topic-meta a { color: var(--t2) }
.topic-meta a:hover { color: var(--yellow); text-decoration: none }
.topic-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--t2);
  white-space: nowrap;
}
.topic-reply-cnt { color: var(--yellow); font-weight: 700 }
.topic-counters {
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
  font-size: 11px;
  color: var(--t2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.topic-counters strong { font-size: 15px; color: var(--yellow); }
.topic-last {
  flex-shrink: 0;
  min-width: 110px;
  text-align: right;
  font-size: 11px;
  color: var(--t2);
}
.topic-last a { color: var(--t1); font-size: 12px; }
.topic-last a:hover { color: var(--yellow); text-decoration: none; }
.topic-last span { color: var(--t3); }
.topic-closed { color: var(--red); margin-right: 4px; }

.section-block {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--s2);
  border-bottom: 1px solid var(--b1);
}
.section-icon { font-size: 18px; flex-shrink: 0 }
.section-title { font-size: 15px; font-weight: 700 }
.section-sub   { font-size: 12px; color: var(--t2) }

.post {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
}
.post.helpful { border-color: rgba(34,197,94,.35); }
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--s2);
  border-bottom: 1px solid var(--b1);
  flex-wrap: wrap;
}
.post-author-name { font-size: 13px; font-weight: 700; color: var(--t1); }
.post-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--t1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.post-body p   { margin-bottom: 10px }
.post-body p:last-child { margin-bottom: 0 }
.post-body pre { background: var(--s2); border-radius: var(--rs); padding: 12px 14px; overflow-x: auto; font-size: 13px; margin: 8px 0 }
.post-body code { background: var(--s2); padding: 2px 5px; border-radius: 3px; font-size: 13px }
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid var(--b1);
  gap: 8px;
  flex-wrap: wrap;
}
.post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--s2);
  border-bottom: 1px solid var(--b1);
  flex-wrap: wrap;
}
.post-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.post-username { font-size: 13px; font-weight: 700; }
.post-username a { color: var(--t1); text-decoration: none; }
.post-username a:hover { color: var(--yellow); text-decoration: none; }
.post-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: var(--ydim);
  color: var(--yellow);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.post-stats { font-size: 11px; color: var(--t3); margin-top: 2px; }
.post-date { font-size: 11px; color: var(--t3); flex-shrink: 0; }
.post-quote {
  border-left: 3px solid var(--yellow);
  background: var(--s2);
  border-radius: 0 var(--rs) var(--rs) 0;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--t2);
}
.post-quote-who { font-size: 12px; font-weight: 700; color: var(--t1); margin-bottom: 4px; }
.post-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--t1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.post-text a { color: var(--yellow); }
.post-helpful-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--gdim);
  border: 1px solid rgba(34,197,94,.25);
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 10px;
}
.post-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.post-photo {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--rs);
  border: 1px solid var(--b1);
  cursor: zoom-in;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-top: 1px solid var(--b1);
}
.post-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--b1);
  background: var(--s2);
  color: var(--t2);
  transition: var(--tr);
}
.post-like-btn svg { width: 14px; height: 14px; }
.post-like-btn:hover,
.post-like-btn.liked {
  background: var(--ydim);
  color: var(--yellow);
  border-color: var(--ymid);
}
.post-action-link {
  font-size: 12px;
  color: var(--t2);
  padding: 4px 8px;
  border-radius: var(--rs);
  text-decoration: none;
  transition: var(--tr);
}
.post-action-link:hover { color: var(--yellow); background: var(--s2); text-decoration: none; }

.quote {
  border-left: 3px solid var(--yellow);
  background: var(--s2);
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 0 var(--rs) var(--rs) 0;
  font-size: 13px;
  color: var(--t2);
}
.quote-author {
  font-weight: 700;
  color: var(--t1);
  font-size: 12px;
  margin-bottom: 4px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pager-item {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: var(--rs);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--b1);
  background: var(--s1);
  color: var(--t1);
  text-decoration: none;
  transition: var(--tr);
  cursor: pointer;
}
.pager-item:hover { background: var(--s2); text-decoration: none }
.pager-item.active { background: var(--yellow); color: #000; border-color: var(--yellow); font-weight: 700 }
.pager-item.disabled { opacity: .35; pointer-events: none }

.dialog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--b1);
  cursor: pointer;
  transition: background var(--tr);
  text-decoration: none;
  color: var(--t1);
}
.dialog-item:hover { background: var(--s2); text-decoration: none }
.dialog-item.unread { background: rgba(255,234,0,.04) }
.dialog-body   { flex: 1; min-width: 0 }
.dialog-name   { font-size: 13px; font-weight: 700 }
.dialog-preview { font-size: 12px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.msg-bubble {
  max-width: 72%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.msg-bubble-me   { background: var(--yellow); color: #000; margin-left: auto; border-bottom-right-radius: 4px }
.msg-bubble-them { background: var(--s2); color: var(--t1); border-bottom-left-radius: 4px }
.pm-item { position: relative; }
.pm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.pm-actions { display: flex; gap: 4px; align-items: center; opacity: 0; transition: opacity .15s ease; }
.pm-item:hover .pm-actions { opacity: 1; }
.pm-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--b1);
  background: var(--s2);
  color: var(--t2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--tr), border-color var(--tr);
}
.pm-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.pm-body { font-size: 13px; word-wrap: break-word; overflow-wrap: break-word; }
.pm-body textarea { font-size: 13px; }

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--b1);
  align-items: flex-start;
  transition: background var(--tr);
}
.notif-item:hover  { background: var(--s2) }
.notif-item.unread { background: rgba(255,234,0,.04) }
.notif-icon { font-size: 18px; flex-shrink: 0; padding-top: 1px }
.notif-body { flex: 1; font-size: 13px }
.notif-time { font-size: 11px; color: var(--t3); white-space: nowrap }

.card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
}
.card-pad { padding: 16px }
.panel { background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r); margin-bottom: 16px; overflow: hidden }
.panel-head {
  padding: 12px 16px;
  background: var(--s2);
  border-bottom: 1px solid var(--b1);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.panel-body { padding: 16px }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-unread { background: var(--red); color: #fff }
.badge-new    { background: var(--bdim); color: var(--blue) }

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--b1);
  background: var(--s2);
  color: var(--t2);
  transition: var(--tr);
}
.like-btn:hover, .like-btn.liked {
  background: var(--ydim);
  color: var(--yellow);
  border-color: var(--ymid);
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
}
.loading-logo { font-size: 28px; font-weight: 700; color: var(--yellow); letter-spacing: .1em }
.loading-bar  { width: 120px; height: 2px; background: var(--b1); border-radius: 2px; overflow: hidden }
.loading-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--yellow);
  border-radius: 2px;
  animation: loadBar 1s ease-in-out infinite;
}
@keyframes loadBar {
  0%   { transform: translateX(-100%) }
  100% { transform: translateX(300%) }
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--t3);
}
.empty-icon  { font-size: 40px; margin-bottom: 12px }
.empty-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--t2) }
.empty-sub   { font-size: 13px; color: var(--t3); max-width: 280px; margin: 0 auto }
.empty-state { text-align: center; padding: 48px 20px; color: var(--t3); }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--t2); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast {
  background: var(--s2);
  border: 1px solid var(--b2);
  border-radius: var(--rs);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  min-width: 200px;
  animation: toastIn .2s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  word-break: break-word;
}
.toast.success { border-color: rgba(34,197,94,.3) }
.toast.error   { border-color: rgba(204,34,0,.3) }
@keyframes toastIn { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
  padding: 16px;
}
.modal {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--b1);
}
.modal-title { font-size: 16px; font-weight: 700 }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-close:hover { background: var(--s2) }
.modal-body { padding: 20px; max-height: 60vh; overflow-y: auto }
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--b1);
  display: flex;
  gap: 10px;
}
.modal-footer .btn { flex: 1 }

.hidden { display: none !important }
.sep { border: none; border-top: 1px solid var(--b1); margin: 16px 0 }
.text-muted   { color: var(--t2) }
.text-danger  { color: var(--red) }
.text-success { color: var(--green) }
.text-yellow  { color: var(--yellow) }
.code-box {
  background: var(--s2);
  border: 1.5px dashed var(--yellow);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.stats-btn {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: var(--yellow);
  color: #000 !important;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--tr);
  margin-left: 10px;
}
.stats-btn:hover { background: #d4c000; transform: scale(1.05); text-decoration: none }

.background-canvas { position: fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; display:flex; align-items:center; justify-content:center }
.triangles-container { position:relative; width:100%; height:100%; opacity:0.4 }
.master-triangle { position:absolute; top:50%; left:50%; width:0; height:0; transform-style:preserve-3d; animation:masterRotate 28s infinite linear }
.fragment { position:absolute; width:0; height:0; border-left:35px solid transparent; border-right:35px solid transparent; border-bottom:60px solid var(--ydim); transform-origin:center bottom; animation:fragmentDissolve 7s infinite ease-in-out; filter:drop-shadow(0 0 6px var(--ymid)) }
.fragment:nth-child(1) { border-bottom-color:var(--yellow); animation-delay:0s }
.fragment:nth-child(2) { border-bottom-color:var(--red); animation-delay:-1.2s }
.fragment:nth-child(3) { border-bottom-color:var(--ymid); animation-delay:-2.4s }
.fragment:nth-child(4) { border-bottom-color:var(--t1); animation-delay:-3.6s }
.fragment:nth-child(5) { border-bottom-color:var(--ydim); animation-delay:-4.8s }
.fragment:nth-child(6) { border-bottom-color:var(--rdim); animation-delay:-6.0s }
.fragment:nth-child(1) { top:-95px; left:-55px }
.fragment:nth-child(2) { top:-95px; left:20px }
.fragment:nth-child(3) { top:-35px; left:-18px }
.fragment:nth-child(4) { top:-35px; left:-88px }
.fragment:nth-child(5) { top:-35px; left:50px }
.fragment:nth-child(6) { top:20px; left:-18px }
@keyframes fragmentDissolve {
  0%   { transform:translate(0,0) scale(1) rotate(0deg); opacity:.9 }
  30%  { transform:translate(var(--tx,45px),var(--ty,-45px)) scale(.7) rotate(15deg); opacity:.4 }
  60%  { transform:translate(calc(var(--tx,30px)*-.8),calc(var(--ty,-30px)*-.6)) scale(.85) rotate(-10deg); opacity:.7 }
  80%  { transform:translate(calc(var(--tx,10px)*.3),calc(var(--ty,-10px)*.25)) scale(.95) rotate(4deg); opacity:.95 }
  100% { transform:translate(0,0) scale(1) rotate(0deg); opacity:.9 }
}
@keyframes masterRotate {
  0%   { transform:translate(-50%,-50%) rotate(0deg) }
  100% { transform:translate(-50%,-50%) rotate(360deg) }
}
.auth-logo-icon { position: relative }
.auth-logo-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--yellow);
  border-radius: 12px;
  opacity: 0;
  animation: igsPulseRing 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes igsPulseRing {
  0%   { transform:scale(.96); opacity:0 }
  40%  { opacity:.55 }
  100% { transform:scale(1.08); opacity:0 }
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sec-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 14px 16px;
  color: var(--t1);
  text-decoration: none;
  transition: border-color var(--tr), transform var(--tr);
}
.sec-card:hover {
  border-color: var(--ymid);
  text-decoration: none;
  transform: translateY(-1px);
}
.sec-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--ydim);
  border: 1px solid var(--ymid);
}
.sec-body { flex: 1; min-width: 0; }
.sec-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 2px;
  transition: color var(--tr);
}
.sec-card:hover .sec-title { color: var(--yellow); }
.sec-desc { font-size: 12px; color: var(--t2); line-height: 1.45; margin-bottom: 6px; }
.sec-meta { font-size: 11px; color: var(--t3); }

.home-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
.home-sidebar { display: flex; flex-direction: column; gap: 16px; }
.recent-topics-widget {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 16px;
}
.recent-topics-widget h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--t1);
}
.recent-topic-item { padding: 9px 0; border-bottom: 1px solid var(--b1); }
.recent-topic-item:first-child { padding-top: 0; }
.recent-topic-item:last-child { border-bottom: none; padding-bottom: 0; }
.rt-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.rt-title a { color: var(--t1); text-decoration: none; }
.rt-title a:hover { color: var(--yellow); text-decoration: none; }
.rt-meta { font-size: 11px; color: var(--t3); margin-top: 2px; }

.promo-banner {
  background: linear-gradient(135deg, rgba(255,234,0,.12), rgba(204,34,0,.14));
  border: 1px solid var(--ymid);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.promo-banner h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.promo-banner p { font-size: 12px; color: var(--t2); margin-bottom: 10px; }

.news-section { margin-top: 8px; }
.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.news-section-header h2 { font-size: 18px; font-weight: 700; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--tr), transform var(--tr);
}
.news-card:hover { border-color: var(--ymid); transform: translateY(-1px); }
.news-card-big { grid-column: span 2; }
.news-cover {
  height: 130px;
  background: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--b1);
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card-big .news-cover { height: 190px; }
.news-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-type {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.news-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.news-title a { color: var(--t1); text-decoration: none; }
.news-title a:hover { color: var(--yellow); text-decoration: none; }
.news-excerpt { font-size: 12px; color: var(--t2); line-height: 1.5; flex: 1; }
.news-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.news-tag { font-size: 11px; color: var(--yellow); opacity: .8; }
.news-meta {
  font-size: 11px;
  color: var(--t3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.news-meta a { color: var(--t2); }
.news-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.news-item .info { flex: 1; min-width: 0; }
.news-item .title { font-size: 14px; font-weight: 700; color: var(--t1); }
.news-item .meta { font-size: 12px; color: var(--t2); margin-top: 3px; }
.news-single {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 20px;
  max-width: 780px;
}
.news-single-cover {
  height: 220px;
  background: var(--s2);
  border-radius: var(--rs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  overflow: hidden;
  margin-bottom: 14px;
}
.news-single-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-single-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.news-single-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.news-single-meta {
  font-size: 12px;
  color: var(--t3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 18px;
}
.news-single-meta a { color: var(--t2); }
.news-body-text { font-size: 14px; line-height: 1.8; color: var(--t1); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.search-bar input { flex: 1; }
.search-bar button {
  padding: 0 18px;
  border-radius: var(--rs);
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  border: none;
  transition: var(--tr);
}
.search-bar button:hover { background: var(--red); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.status { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.status.published { background: var(--gdim); color: var(--green); }
.status.draft { background: var(--s2); color: var(--t2); border: 1px solid var(--b1); }

.reply-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-top: 20px;
}
.reply-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.fmt-bar { display: flex; gap: 6px; margin-bottom: 8px; }
.fmt-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--b1);
  background: var(--s2);
  color: var(--t1);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
}
.fmt-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.photo-upload-wrap { margin-bottom: 12px; }
.photo-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  padding: 7px 12px;
  border: 1px dashed var(--b2);
  border-radius: var(--rs);
  cursor: pointer;
  transition: var(--tr);
}
.photo-upload-label:hover { color: var(--yellow); border-color: var(--yellow); }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-preview img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--b1);
}
.closed-banner {
  text-align: center;
  padding: 16px;
  background: var(--rdim);
  border: 1px solid rgba(204,34,0,.3);
  border-radius: var(--r);
  color: #ff8a80;
  font-size: 13px;
  font-weight: 600;
}
.login-banner {
  text-align: center;
  padding: 16px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  color: var(--t2);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--b1);
  background: var(--s1);
  padding: 48px 24px 24px;
  margin-top: 80px;
  display: block;
  position: relative;
  z-index: 2;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--b1);
}
.footer-col { min-width: 0; }
.footer-col-brand { max-width: 340px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow) !important;
  text-decoration: none !important;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.footer-brand img {
  height: 36px;
  width: auto;
  max-width: 36px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(204,34,0,.35));
}
.footer-brand span { white-space: nowrap; }
.footer-brand:hover { opacity: .9; text-decoration: none !important; }
.footer-tagline {
  font-size: 13px;
  line-height: 1.65;
  color: var(--t2) !important;
  margin: 0;
}
.footer-title {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow) !important;
  margin: 0 0 16px;
}

.footer-menu,
.footer-contacts {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-menu li,
.footer-contacts li {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.footer-menu a,
.footer-contacts a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--t1) !important;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
  line-height: 1.5;
}
.footer-menu a:hover,
.footer-contacts a:hover {
  color: var(--yellow) !important;
  text-decoration: none !important;
  transform: translateX(3px);
}
.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--t1) !important;
  line-height: 1.55;
}
.footer-ico {
  flex-shrink: 0;
  font-size: 14px;
  opacity: .75;
  line-height: 1.55;
}

.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.footer-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 12px;
  color: var(--t2) !important;
  letter-spacing: .3px;
  width: auto;
  padding: 0;
  border: none;
  margin: 0;
  background: none;
}
.footer-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.footer-stats .stat-icon { opacity: .7; margin: 0; }
.footer-stats .stat-value {
  font-weight: 700;
  color: var(--yellow) !important;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: .02em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  font-size: 12px;
  color: var(--t2) !important;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
.footer-legal a {
  color: var(--t2) !important;
  text-decoration: none !important;
  border-bottom: 1px dotted rgba(136,136,136,.35);
  transition: color .2s ease;
}
.footer-legal a:hover {
  color: var(--yellow) !important;
  border-bottom-color: var(--yellow);
}
.footer-sep { opacity: .4; }
.footer-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t2); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }
.stat-icon { margin-right: 2px; }
.stat-value { color: var(--yellow); font-weight: 600; }

.complaint-item {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  background: var(--s1);
  border: 1px solid var(--b1);
  text-decoration: none;
  transition: var(--tr);
}
.tab:hover { color: var(--t1); background: var(--s2); text-decoration: none; }
.tab.active { background: var(--yellow); color: #000; border-color: var(--yellow); }
.form-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 24px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.filter-bar input[type="text"] { flex: 1; min-width: 160px; width: auto; }
.filter-bar select { width: auto; min-width: 140px; }
.user-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.user-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--s2);
  border-bottom: 1px solid var(--b1);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--t2);
  white-space: nowrap;
}
.user-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--b1);
  vertical-align: middle;
}
.user-table tr:last-child td { border-bottom: none; }
.user-table tbody tr:hover { background: var(--s2); }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card-big { grid-column: span 2; }
}

@media (max-width: 768px) {
  .sec-grid { grid-template-columns: 1fr; }
  .home-two-col { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-big { grid-column: span 1; }
  .related-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .topic-last { display: none; }
  .post-photo { width: 96px; height: 72px; }
  .news-single-cover { height: 160px; }

  .hdr-inner {
    height: 54px;
    min-height: 54px;
    flex-wrap: nowrap;
    padding: 0 14px;
    position: relative;
  }
  .hdr-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--s2);
    border: 1px solid var(--b1);
    font-size: 18px;
    flex-shrink: 0;
    order: 10;
  }
  .ts-wrap {
    margin-left: auto;
    order: 9;
    padding: 2px;
    border-color: var(--b2);
  }
  .hdr-search { display: none; }

  .hdr-nav {
    display: none;
    position: fixed;
    top: 54px;
    left: 0; right: 0;
    background: var(--s1);
    border-bottom: 1.5px solid var(--b1);
    border-top: 1px solid var(--b1);
    flex-direction: column;
    padding: 8px 0 12px;
    z-index: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    max-height: calc(100vh - 54px);
    overflow-y: auto;
    margin-left: 0;
    gap: 0;
  }
  .hdr-nav.open { display: flex; }

  .hdr-nav > a:not(.btn),
  .hdr-nav .hdr-user-name,
  .hdr-nav .btn,
  .hdr-nav form,
  .hdr-nav form button {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 13px 20px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--b1) !important;
    background: none !important;
    font-size: 14px !important;
    color: var(--t1) !important;
    font-weight: 500;
    box-shadow: none !important;
    transform: none !important;
  }
  .hdr-nav > a:not(.btn)::after,
  .hdr-nav .hdr-user-name::after { display: none; }

  .hdr-nav > a:not(.btn):hover,
  .hdr-nav .hdr-user-name:hover {
    background: var(--s2) !important;
    color: var(--yellow) !important;
  }
  .hdr-nav .btn.btn-p { background: var(--yellow) !important; color: #111 !important; }
  .hdr-nav .btn.btn-p:hover { background: #f4d605 !important; }
  .hdr-nav .btn.btn-s { color: var(--t1) !important; }
  .hdr-nav .btn.btn-s:hover {
    color: var(--yellow) !important;
    background: var(--s2) !important;
  }
  .hdr-nav form button.btn {
    justify-content: flex-start;
    color: var(--t1);
  }
  .hdr-nav form button.btn:hover {
    color: var(--yellow);
    background: var(--s2) !important;
  }
  .hdr-nav > *:last-child { border-bottom: none !important; }
  [data-theme="light"] .hdr-nav .btn.btn-p {
    background: #a16207 !important;
    color: #fff !important;
  }

  .auth-wrapper { flex-direction: column; gap: 20px; }
  .auth-illustration { display: none; }
  .auth-card { max-width: 100%; padding: 28px 20px; }
  .wrap { padding: 16px 12px 40px; }
  .field-row { grid-template-columns: 1fr; }
  .topic-stats { display: none; }
  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-b {
    border-right: none;
    border-bottom: 1px solid var(--b1);
  }
  .stat-b:nth-child(odd) { border-right: 1px solid var(--b1) }
  .stat-b:last-child { border-bottom: none }
  .toasts { right: 12px }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 600px) {
  .footer { padding: 36px 18px 20px; margin-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-brand { font-size: 14px; }
  .footer-brand img { height: 32px; max-width: 32px; }
  .footer-stats { font-size: 11px; gap: 8px 16px; }
  .footer-legal { font-size: 11px; flex-direction: column; gap: 4px; }
  .footer-sep { display: none; }
}

@media (max-width: 480px) {
  .hdr-inner {
    min-height: 50px;
    height: auto;
    padding: 6px 10px;
    gap: 8px;
  }
  
  .hdr-logo-text { font-size: 13px }
  .hdr-logo-sub  { display: none }
  .hdr-search    { display: none }
  .hdr-nav { gap: 0; }
  .hdr-nav .btn,
  .hdr-nav a {
    padding: 11px 16px !important;
    font-size: 13px !important;
  }
  .wrap { padding: 12px 10px 40px; }
  .auth-card {
    padding: 20px 14px;
    border-radius: 12px;
  }
  .auth-title  { font-size: 17px }
  .auth-logo   { margin-bottom: 20px }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  textarea,
  select,
  .field { font-size: 16px; }

  .profile-card { padding: 16px 12px; max-width: 100%; }
  .topic-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .topic-item { padding: 10px 12px }
  .post-head   { padding: 8px 12px }
  .post-header { padding: 8px 12px }
  .post-body   { padding: 12px }
  .post-footer { padding: 6px 12px }
  .post-actions { padding: 6px 12px }
  .topic-counters { min-width: 48px }
  .news-single { padding: 14px }
  .pager-item {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .panel-head { padding: 10px 12px }
  .panel-body { padding: 12px }
  .btn { padding: 8px 14px; font-size: 13px }
  .btn-sm { padding: 5px 9px; font-size: 12px }
  .bc { font-size: 11px; gap: 5px }
  .msg-bubble { max-width: 88% }
  .stats-bar { grid-template-columns: 1fr }
  .stat-b { border-right: none !important; border-bottom: 1px solid var(--b1) }
  .stat-b:last-child { border-bottom: none }
  .modal-backdrop { padding: 0 }
  .modal { border-radius: 16px 16px 0 0; max-height: 95vh }
}

@media (max-width: 360px) {
  .hdr-logo-icon { width: 32px; height: 32px; font-size: 0 }
  .auth-card { padding: 16px 12px }
  .auth-actions { flex-direction: column }
  .auth-actions a { flex: none; width: 100% }
}

.rules-card {
    background: var(--s1);
    border: 1px solid var(--b1);
    border-radius: var(--r);
    padding: 24px 22px;
    margin-bottom: 20px;
}
.rules-intro {
    font-size: 14px;
    line-height: 1.7;
    color: var(--t2);
    padding: 16px 18px;
    background: var(--s2);
    border-left: 3px solid var(--yellow);
    border-radius: 0 var(--rs) var(--rs) 0;
    margin-bottom: 24px;
}
.rules-intro strong { color: var(--t1) }

.rule {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--b1);
}
.rule:last-of-type { border-bottom: none; padding-bottom: 0 }
.rule-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ydim);
    border: 1px solid var(--ymid);
    color: var(--yellow);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rule-body { flex: 1; min-width: 0 }
.rule-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 5px;
    line-height: 1.35;
}
.rule-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--t2);
}
.rule-text code {
    background: var(--s2);
    color: var(--yellow);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
}

.rules-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--b1);
}
.rules-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 12px;
}
.rules-section p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--t2);
    margin: 0;
}
.rules-section p a { color: var(--yellow); }
.rules-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rules-section li {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--t2);
    padding-left: 18px;
    position: relative;
}
.rules-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
}
.rules-section li strong { color: var(--t1) }

.rules-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .rules-card { padding: 18px 14px }
    .rule { gap: 12px; padding: 14px 0 }
    .rule-num { width: 34px; height: 34px; font-size: 13px }
    .rule-title { font-size: 14px }
    .rule-text { font-size: 13px }
    .rules-section h3 { font-size: 14px }
    .rules-section li { font-size: 13px }
    .rules-footer { flex-direction: column }
    .rules-footer .btn { width: 100% }
}

.rules-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    background: var(--s2);
    border: 1px solid var(--b1);
    border-radius: var(--rs);
    transition: border-color var(--tr), background var(--tr);
    line-height: 1.5;
}
.rules-agree:hover { border-color: var(--ymid) }
.rules-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: var(--yellow);
    cursor: pointer;
}
.rules-agree span {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.5;
}
.rules-agree span a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rules-agree span a:hover { color: var(--red) }
.rules-agree input[type="checkbox"]:invalid + span { color: var(--t3) }

.rules-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9500;
    max-width: 360px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 38px 16px 16px;
    background: var(--s1);
    border: 2px solid var(--yellow);
    border-left-width: 4px;
    border-radius: var(--r);
    box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 20px var(--ymid);
    animation: rulesNoticeIn .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes rulesNoticeIn {
    from { opacity: 0; transform: translateY(20px) scale(.96) }
    to   { opacity: 1; transform: translateY(0) scale(1) }
}
.rules-notice-icon {
    font-size: 22px;
    line-height: 1;
    padding-top: 2px;
    flex-shrink: 0;
}
.rules-notice-body { flex: 1; min-width: 0 }
.rules-notice-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 4px;
}
.rules-notice-text {
    font-size: 12.5px;
    color: var(--t2);
    line-height: 1.45;
    margin-bottom: 10px;
}
.rules-notice-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--yellow);
    color: #111 !important;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.rules-notice-btn:hover {
    background: var(--red);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(204,34,0,.5);
}
.rules-notice-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    color: var(--t3);
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--tr), background var(--tr);
}
.rules-notice-close:hover {
    color: var(--t1);
    background: var(--s2);
}
[data-theme="light"] .rules-notice {
    background: #ffffff;
    border-color: var(--yellow);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
}
[data-theme="light"] .rules-notice-btn {
    background: #a16207;
    color: #fff !important;
}
[data-theme="light"] .rules-notice-btn:hover {
    background: #78350f;
}

@media (max-width: 480px) {
    .rules-notice {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
        padding: 14px 34px 14px 14px;
    }
    .rules-notice-icon { font-size: 20px }
    .rules-notice-title { font-size: 12.5px }
    .rules-notice-text { font-size: 12px }
}

.bb-code {
    background: var(--s2);
    border: 1px solid var(--b1);
    border-radius: var(--rs);
    padding: 12px 14px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
    font-size: 13px;
    line-height: 1.55;
    margin: 8px 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.bb-code code {
    background: none;
    padding: 0;
    color: var(--t1);
    font-family: inherit;
    font-size: inherit;
}

.bb-spoiler {
    background: var(--s2);
    border: 1px solid var(--b1);
    border-radius: var(--rs);
    padding: 8px 12px;
    margin: 8px 0;
}
.bb-spoiler summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--yellow);
    list-style: none;
    user-select: none;
    padding: 2px 0;
}
.bb-spoiler summary::-webkit-details-marker { display: none; }
.bb-spoiler summary::before {
    content: '▶';
    display: inline-block;
    transition: transform .18s ease;
    margin-right: 6px;
    font-size: 10px;
    vertical-align: middle;
}
.bb-spoiler[open] summary::before { transform: rotate(90deg); }
.bb-spoiler-body { margin-top: 10px; color: var(--t1); }

.bb-list {
    margin: 8px 0 8px 20px;
    padding-left: 6px;
    list-style: disc;
}
.bb-list li { margin-bottom: 4px; }

.mention {
    color: var(--yellow);
    font-weight: 600;
    background: var(--ydim);
    padding: 1px 5px;
    border-radius: 4px;
    text-decoration: none;
    transition: background var(--tr);
}
.mention:hover {
    background: var(--ymid);
    text-decoration: none;
}

.topic-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    margin-right: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(59,130,246,.7);
    vertical-align: middle;
}
.topic-solved-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    background: var(--gdim);
    border: 1px solid rgba(34,197,94,.3);
    padding: 1px 7px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.post.solution {
    border-color: rgba(34,197,94,.5);
    background: linear-gradient(180deg, rgba(34,197,94,.04), transparent 100%);
}
.post.solution .post-head {
    background: linear-gradient(90deg, rgba(34,197,94,.14), transparent);
    border-bottom-color: rgba(34,197,94,.25);
}
.post-solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    background: var(--gdim);
    border: 1px solid rgba(34,197,94,.3);
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 10px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.94);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
    animation: lightboxIn .22s ease;
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease;
    z-index: 10000;
    padding: 0;
}
.lightbox-close { top: 20px; right: 20px; font-size: 22px; }
.lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.28); }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    background: rgba(0,0,0,.55);
    padding: 4px 14px;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next { width: 38px; height: 38px; font-size: 20px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 8px; right: 8px; }
}

.poll-fields {
    margin-top: 8px;
    padding: 14px 14px 4px;
    background: var(--s2);
    border: 1px solid var(--b1);
    border-radius: var(--rs);
}
.poll-field-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.poll-field-row input { flex: 1; min-width: 0; }
.poll-field-row .btn { flex-shrink: 0; }

.cf-turnstile {
    margin: 14px 0;
    display: flex;
    justify-content: center;
}