
:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: #334155;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

#main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  gap: 16px;
}

#theblockinhead {
  display: flex;
  align-items: center;
  gap: 16px;
}

#nameH {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.mprofdiv, .m2prfl, .mprfil {
  display: flex;
  align-items: center;
}

.mprfil table {
  width: auto !important;
}

.mprfilimg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.logoimage {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.logoimage::after {
  content: "X-uCoz";
  background: linear-gradient(to right, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#mucodes {
  list-style: none;
  background-color: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

#mucodes table {
  width: 100%;
  border-collapse: collapse;
}

#mucodes td {
  display: flex;
  flex-wrap: wrap;
  padding: 8px 12px;
  gap: 8px;
}

#mucodes li {
  display: inline-block;
  list-style: none;
}

.hover_Ucodes {
  display: inline-block;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.hover_Ucodes:hover {
  color: var(--text-main);
  background-color: var(--bg-card-hover);
}

.forumContent {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
}

.forumContent table {
  width: 100% !important;
  border-collapse: collapse;
}

.forumContent td[align="right"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 16px;
}

.linpg {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px;
  background-color: var(--bg-main);
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.linpg:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main) !important;
  border-color: var(--accent) !important;
}

.forumNamesBar {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 0;
}

.forumBar {
  color: var(--accent);
  font-weight: 600;
}

#ftrBrd {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 24px 0;
}

#footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.rightFtr {
  text-align: right;
  line-height: 1.6;
}

.pbdwANUU {
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  #header {
    flex-direction: column;
    align-items: flex-start;
  }

  #mucodes td {
    flex-direction: column;
    width: 100%;
  }

  .hover_Ucodes {
    width: 100%;
  }

  .forumContent td[align="right"] {
    justify-content: flex-start;
  }

  #footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .rightFtr {
    text-align: center;
  }
}


#body2 {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

#menu_main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#menu_pusto {
  display: none;
}

#menu_main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: block;
}

#menu_main a:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-hover);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.header-content .logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.reklama .banner1 img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.forumContent {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.forumContent > table {
  width: 100% !important;
  border-collapse: collapse;
}

.fNavLink {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  margin: 0 4px;
  transition: color 0.2s;
}

.fNavLink:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.switches {
  border-collapse: collapse;
}

.pagesInfo {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.curPage, .numPages {
  font-weight: 700;
  color: var(--text-main);
}

.switchActive {
  background: var(--accent-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
}

.frmBtns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.frmBtns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--accent-color);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}

.frmBtns a:hover {
  background: var(--accent-hover);
}

.frmBtns img {
  display: none;
}

.frmBtns a[href]:nth-child(1)::after { content: "Ответить"; }
.frmBtns a[href]:nth-child(2)::after { content: "Новая тема"; }
.frmBtns a[href]:nth-child(3)::after { content: "Новый опрос"; }

.forumNamesBar {
  padding: 16px 0 !important;
  font-size: 0.95rem;
}

.forumBar, .forumBarA {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.forumBarA {
  color: var(--text-main);
  font-weight: 700;
}

.gDivLeft {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  margin-top: 12px;
}

.gTable {
  width: 100% !important;
  border-collapse: collapse;
}

.gTableTop {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  font-weight: 700;
  padding: 14px 20px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

.postTable {
  width: 100% !important;
  border-collapse: collapse;
  background: var(--bg-surface);
}

.postTdTop {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.postUser {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.postTdInfo {
  padding: 16px;
  width: 200px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  background: rgba(0, 0, 0, 0.1);
}

.userAvatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  margin-bottom: 12px;
}

.postRankIco img {
  margin: 8px 0;
}

.numposts, .reputation {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.repNums, .reputation a {
  color: var(--accent-color);
  text-decoration: none;
}

.posttdMessage {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--text-main);
}

.edited {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.signatureHr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 16px 0 8px 0;
}

.postBottom {
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 16px;
}

.postBottom table {
  width: 100% !important;
}

.postSeparator {
  height: 12px;
  background: var(--bg-dark);
}

.fastLogBt {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.fastLogBt:hover {
  background: var(--accent-hover);
}

footer, table[width="1042"], table[width="1043"] {
  width: 100% !important;
  margin-top: auto;
  border-collapse: collapse;
}

td[background*="footer"] {
  background: var(--bg-surface) !important;
  border-top: 1px solid var(--border-color);
  padding: 16px !important;
  height: auto !important;
}

.text {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.hint {
  position: absolute;
  z-index: 1000;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  box-shadow: var(--shadow);
  pointer-events: none;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .postTable tr {
    display: flex;
    flex-direction: column;
  }

  .postTdInfo {
    width: 100%;
    border-right: none;
  }

  .frmBtns {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 12px;
  }
}


#body2 {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

#menu_main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#menu_pusto {
  display: none;
}

#menu_main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

#menu_main a:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.header-content .logo img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.reklama .banner1 img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.forumContent {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.forumContent > table {
  width: 100% !important;
  border-collapse: collapse;
}

.fNavLink {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.fNavLink:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.switches {
  border-collapse: collapse;
}

.pagesInfo {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.curPage, .numPages {
  font-weight: 700;
  color: var(--accent-color);
}

.switchActive {
  background: var(--accent-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.frmBtns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.frmBtns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--accent-color);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.frmBtns a:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.frmBtns img {
  display: none;
}

.frmBtns a[href]:nth-child(1)::after { content: "Ответить"; }
.frmBtns a[href]:nth-child(2)::after { content: "Новая тема"; }
.frmBtns a[href]:nth-child(3)::after { content: "Новый опрос"; }

.forumNamesBar {
  padding: 16px 0 !important;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.forumBar, .forumBarA {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forumBar:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.forumBarA {
  color: var(--text-main);
  font-weight: 700;
}

.gDivLeft {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.gTable {
  width: 100% !important;
  border-collapse: collapse;
}

.gTableTop {
  background: linear-gradient(180deg, var(--bg-surface-hover) 0%, var(--bg-surface) 100%);
  color: var(--text-main);
  font-weight: 700;
  padding: 16px 20px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

.postTable {
  width: 100% !important;
  border-collapse: collapse;
  background: var(--bg-surface);
}

.postTdTop {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.postUser {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.postUser:hover {
  color: var(--accent-hover);
}

.postTdInfo {
  padding: 20px;
  width: 220px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  background: rgba(0, 0, 0, 0.15);
}

.userAvatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  margin-bottom: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.postRankIco img {
  margin: 10px 0;
}

.numposts, .reputation {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.repNums, .reputation a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.posttdMessage {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
}

.edited {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.signatureHr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 20px 0 10px 0;
}

.postBottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 20px;
}

.postBottom table {
  width: 100% !important;
}

.postSeparator {
  height: 16px;
  background: var(--bg-dark);
}

.fastLogBt {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fastLogBt:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

footer, table[width="1042"], table[width="1043"] {
  width: 100% !important;
  margin-top: auto;
  border-collapse: collapse;
}

td[background*="footer"] {
  background: var(--bg-surface) !important;
  border-top: 1px solid var(--border-color);
  padding: 20px !important;
  height: auto !important;
}

.text {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
}

.hint {
  position: absolute;
  z-index: 1000;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
  #body2 {
    padding: 12px;
    gap: 12px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .postTable tr {
    display: flex;
    flex-direction: column;
  }

  .postTdInfo {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .frmBtns {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 12px;
    width: 100%;
  }

  .frmBtns a {
    flex: 1;
    min-width: 120px;
  }
}

html, body {
    background: #424243 url(../images/bg_headr.jpg) repeat-x;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0px;
    height: 100%;
}
.contBlock#menublock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border-color, #334155);
  border-radius: var(--radius-lg, 12px);
  padding: 12px;
  box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));

  width: 100%;
}

.menul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md, 8px);
  background: transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.menul:hover {
  background: var(--bg-surface-hover, #334155);
  border-color: var(--border-color, #334155);
  transform: translateX(4px);
}

.menul a {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
  transition: color 0.2s ease;
  flex: 1;
}

.menul:hover a {
  color: var(--text-main, #f8fafc);
}

.picmenu {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menul:hover .picmenu {
  opacity: 1;
  transform: scale(1.1);
}

.menublock-mainpage::before {
  content: "🏠";
  font-size: 0.9rem;
}

.menublock-forum::before {
  content: "💬";
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .contBlock#menublock {
    max-width: 100%;
  }
}
