/*************************************************************
A - SETUP - LIGHT COMPACT THEME
**************************************************************/

/* A1 Import the colour scheme */
@import url(style_cs.1761755960.css);

/* A2 Deal with browser defaults and wonkiness */
html, body {
  margin: 0; 
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1f4a8a;
  min-height: 100vh;
  font-size: 13px;
}

.punbb * {
  margin: 0;
  box-sizing: border-box;
}

.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
  padding: 0;
  list-style: none;
}

.punbb img {
  border: none;
  max-width: 100%;
}

.punbb .main table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.checkfield input[type="checkbox"], .radiofield input[type="radio"] {
  margin: 0 0.3em;
}

p[class="checkfield"] *, div[class="checkfield"] *, fieldset[class="radiofield"] * {
  height: 1.6em;
  vertical-align: middle;
}

/* A3 Text setup */
body {
  font-size: 100.01%;
  background: #0d336c;
  min-height: 100vh;
  line-height: 1.4;
  color: #4a5568;
}

.punbb {
  font: normal 12px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4;
  color: #4a5568;
}

.punbb textarea, .punbb input, .punbb select, .punbb optgroup {
  font: 12px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  background: white;
  color: #4a5568;
  transition: all 0.2s ease;
}

.punbb h1, .punbb h2, .punbb h3, .punbb h4, .punbb table, .punbb th {
  font-size: 1em;
  font-weight: 600;
}

.punbb h1 span, .punbb h2 span, .punbb legend span {
  font-size: 1.1em;
}

.punbb pre {
  font: 11px/130% 'Consolas', 'Monaco', 'Courier New', monospace;
  background: #f7fafc;
  padding: 10px;
  border-radius: 3px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  color: #4a5568;
}

.punbb address, .punbb em {
  font-style: normal;
}

.punbb .post-content em {
  font-style: italic;
}

.punbb .post-content em.bbuline {
  font-style: normal;
  text-decoration: underline;
}

.punbb a {
  text-decoration: none;
  transition: all 0.2s ease;
}

.punbb optgroup {
  font-weight: bold;
}

/* A4 Float clearing */
#pun:after,
.punbb .container:after,
.punbb .post-links ul:after,
.punbb .main div.inline:after,
.punbb .post-box:after,
.punbb .linksb:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  line-height: 0.0;
  font-size: 0;
}

.acchide,
#pun-index #pun-main h1,
#pun-navlinks h2,
#pun-pagelinks h2,
#pun-status h2,
#pun-ulinks h2,
.punbb .forum h2,
.punbb .multipage .topic h2,
.punbb dl.post-sig dt span,
.punbb p.crumbs strong,
.punbb .divider hr,
.punbb .required label em,
.punbb .formsubmit label,
.punbb .submitfield label,
.punbb .modmenu label,
#pun-userlist .main h2 {
  font-size: 0;
  height: 0;
  width: 0;
  line-height: 0.0;
  position: absolute;
  left: -9999px;
  overflow: hidden;
}

/* A5 Basic page layout - COMPACT */
#pun {
  margin: 15px auto;
  max-width: 1100px;
  position: relative;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.punbb {
  width: 100%;
  height: auto;
}

#pun-redirect, #pun-maint {
  margin: 30px 15% 8px 15%;
  width: auto;
  float: none;
  background: white;
  padding: 1.8em;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.punbb .section, .punbb .main {
  margin-bottom: 1.2em;
}

.punbb .category, .punbb .post {
  margin-top: 0.8em;
}

.punbb #pun-category1, .punbb .toppost, .punbb .topicpost {
  margin-top: 0;
}

#pun-post .topic {
  margin-top: 1.2em;
}

.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info,
.punbb .category, .punbb .post {
  border: none;
}

.punbb .container {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: white;
}

.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 {
  padding: 0.9em 1.2em;
  border: none;
  background: #2d3748;
  color: white;
  border-radius: 4px 4px 0 0;
  font-weight: 600;
  font-size: 1.1em;
  border-bottom: 1px solid #4a5568;
}

/*************************************************************
B - MAIN CONTENT - GENERAL - COMPACT
**************************************************************/

.punbb .post-content {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.punbb .post-sig dt {
  display: block;
  border-top: 1px solid #e2e8f0;
  width: 200px;
  margin: 12px 0;
  padding-top: 10px;
  color: #718096;
  font-size: 11px;
}

.punbb .post-content p {
  margin: 0;
  padding: 0 0 1em 0;
  line-height: 1.5;
  color: #4a5568;
  font-size: 12px;
}

.punbb .post-content img {
  vertical-align: text-bottom;
  border-radius: 2px;
}

.punbb .post-content img.postimg {
  vertical-align: middle;
}

.punbb .post-content .blockquote, .punbb .post-content blockquote {
  width: 100%;
  overflow: hidden;
  border-left: 3px solid #4299e1;
  padding-left: 15px;
  margin: 12px 0;
  font-style: italic;
  color: #718096;
  background: #f7fafc;
  padding: 12px;
  border-radius: 2px;
  font-size: 11px;
}

.punbb .post-content .scrollbox {
  width: 100%;
  overflow: auto;
  border-radius: 2px;
  border: 1px solid #e2e8f0;
}

.punbb .post-content .quote-box, .punbb .post-content .code-box {
  margin: 1em 0;
  padding: 1.2em;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  background: #f7fafc;
  font-size: 11px;
}

.punbb .quote-box cite, .punbb .code-box strong.legend {
  display: block;
  padding-bottom: 0.6em;
  font-size: 1em;
  font-weight: 600;
  font-style: normal;
  margin: 0;
  color: #2d3748;
}

/* Information boxes */
.punbb .info-box {
  padding: 1.2em;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  margin: 0 0 1.2em 0;
  background: #f7fafc;
  font-size: 11px;
}

.punbb .info-box * {
  padding: 0 0 0.6em 0;
}

.punbb #pun-main .info-box .legend {
  font-size: 1.1em;
  font-weight: 600;
  color: #2d3748;
}

/* Pagination and Post Links - COMPACT */
.punbb .linkst {
  float: left;
  position: relative;
  width: 100%;
  font-size: 1em;
  height: auto;
  margin: 18px 0;
  background: #f7fafc;
  padding: 1em;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.multipage {
  margin-top: 2.2em;
}

.linkst .pagelink {
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
  width: auto;
  font-size: 11px;
}

.linkst .postlink {
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  width: auto;
  text-align: right;
  font-weight: 600;
  font-size: 11px;
}

.punbb .linksb {
  text-align: right;
  padding: 1em;
  font-size: 1em;
  background: #f7fafc;
  border-radius: 4px;
  margin: 18px 0;
  border: 1px solid #e2e8f0;
}

.linksb .pagelink {
  float: left;
  width: auto;
  text-align: left;
  font-size: 11px;
}

.linksb .postlink {
  float: right;
  width: auto;
  font-weight: 600;
  font-size: 11px;
}

/* Reply and Share Buttons - COMPACT */
.punbb .post-links ul {
  padding: 1em 1.2em;
  margin: 0;
  text-align: right;
  background: #f7fafc;
  border-radius: 0 0 4px 4px;
  font-size: 11px;
}

.punbb .post-links li {
  display: inline-block;
  margin: 0 4px;
}

.punbb .post-links a {
  display: inline-block;
  padding: 6px 12px;
  background: white;
  color: #4299e1;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 11px;
}

.punbb .post-links a:hover {
  background: #4299e1;
  color: white;
  border-color: #4299e1;
  transform: translateY(-1px);
}

.punbb .post-links a[href*="reply"] {
  background: #4299e1;
  color: white;
  border: 1px solid #4299e1;
  font-weight: 600;
}

.punbb .post-links a[href*="reply"]:hover {
  background: #3182ce;
  color: white;
  transform: translateY(-1px);
}

.subscribelink {
  clear: both;
  padding: 1em 0;
  text-align: center;
  font-size: 11px;
}

/*************************************************************
C - MAIN CONTENT - SPECIFIC - COMPACT
**************************************************************/

/* Form layout */
.punbb .formal .container {
  padding: 1.8em;
}

.punbb .formsubmit {
  padding: 1.2em 0 0 0;
  margin: 1.2em 0 0 0;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.2em;
}

.punbb .formsubmit input, .punbb .formsubmit a, .punbb .formsubmit span {
  margin: 0 0.6em;
  padding: 9px 18px;
  border: none;
  border-radius: 3px;
  background: #4299e1;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 11px;
}

.punbb .formsubmit input:hover {
  background: #3182ce;
  transform: translateY(-1px);
}

.punbb fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1.2em;
  margin: 0 0 1.2em 0;
  background: white;
}

.punbb fieldset legend {
  padding: 0 1em;
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #2d3748;
  background: #f7fafc;
  border-radius: 2px;
}

.punbb fieldset fieldset {
  border: none;
  margin: 1em 0 0 0;
  padding: 1em;
  background: #f7fafc;
  border-radius: 3px;
}

/* Table layout - COMPACT */
.punbb .main .tcl {
  overflow: hidden;
  text-align: left;
  width: 50%;
  padding: 1em;
  font-size: 11px;
}

.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  text-align: center;
  width: 10%;
  padding: 1em;
  font-size: 11px;
}

.punbb .main .tcr {
  overflow: hidden;
  text-align: left;
  width: 30%;
  padding: 1em;
  font-size: 11px;
}

.punbb .main td {
  border: 1px solid #e2e8f0;
  padding: 1em;
  vertical-align: top;
  background: white;
  color: #4a5568;
  font-size: 11px;
  transition: background-color 0.2s ease;
}

.punbb .main th {
  border: 1px solid #e2e8f0;
  padding: 0.8em 1em;
  background: #f7fafc;
  font-weight: 600;
  color: #2d3748;
  font-size: 11px;
}

.punbb .main tr:hover td {
  background: #f7fafc;
}

/* Document icons for topics */
.punbb table div.icon {
  border: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234a5568" width="16px" height="16px"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  float: left;
  position: relative;
  margin-left: 0;
}

div.inew {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234299e1" width="16px" height="16px"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>');
}

/* Posts - COMPACT */
.punbb .post .container {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-top: 1em;
  padding: 0;
  background: white;
  transition: box-shadow 0.2s ease;
}

.punbb .post .container:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.punbb .post h3 {
  border: none;
  background: #f7fafc;
  color: #2d3748;
  border-radius: 4px 4px 0 0;
  margin: 0;
  border-bottom: 1px solid #e2e8f0;
}

.punbb .post h3 span {
  padding: 1em 1.2em;
  display: block;
  margin-left: 0;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 1em;
}

.punbb .post h3 strong {
  float: right;
  width: auto;
  text-align: right;
  font-weight: 600;
  background: #4299e1;
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
  margin-left: 10px;
  font-size: 0.9em;
}

.punbb .post .post-author {
  float: left;
  width: 200px;
  margin: 0;
  padding: 1.2em;
  background: #f7fafc;
  border-right: 1px solid #e2e8f0;
  min-height: 180px;
  font-size: 11px;
}

.punbb .post .post-author ul, .punbb .post .post-author p {
  padding: 0 0 1em 0;
  line-height: 1.4;
  color: #4a5568;
}

.pa-author {
  font-size: 1.1em;
  font-weight: 600;
  color: #2d3748;
}

.pa-author a {
  text-decoration: none;
  color: #2d3748;
}

li.pa-title {
  padding-bottom: 0.8em;
  font-weight: 600;
  color: #718096;
}

li.pa-online {
  line-height: 1.3em;
  border-left: 3px solid #48bb78;
  padding-left: 0.8em;
  margin-top: 0.8em;
  color: #48bb78;
  font-weight: 600;
  font-size: 0.9em;
}

.punbb .post-body {
  margin-left: 200px;
  border-left: 1px solid #e2e8f0;
  padding: 1.2em;
  min-height: 180px;
  font-size: 12px;
}

.punbb .post-box {
  padding: 0;
}

.punbb .post-links {
  margin-left: 200px;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  background: #f7fafc;
  border-radius: 0 0 4px 0;
}

/*************************************************************
D - PUNBB SECTIONS OTHER THAN MAIN CONTENT - COMPACT
**************************************************************/

/* D1 Animated Header with Images */
#pun-title {
  position: relative;
  overflow: hidden;
  background-image: url('https://i.imgur.com/Ett9sxc.jpeg'), 
                    url('https://i.imgur.com/p73ht94.jpeg'), 
                    url('https://i.imgur.com/VFt86gf.jpeg'), 
                    url('https://i.imgur.com/zog1cOw.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 280px;
  animation: headerBackground 20s ease-in-out infinite;
  border: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

@keyframes headerBackground {
  0%, 100% { background-image: url('https://i.imgur.com/Ett9sxc.jpeg'); }
  25% { background-image: url('https://i.imgur.com/p73ht94.jpeg'); }
  50% { background-image: url('https://i.imgur.com/VFt86gf.jpeg'); }
  75% { background-image: url('https://i.imgur.com/zog1cOw.jpeg'); }
}

/* Overlay for better text readability */
#pun-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

#pun-title h1,
#pun-title .container {
  position: relative;
  z-index: 2;
}

#pun-title h1 {
  display: block;
  padding: 3em 2em 0 2em;
  height: auto;
  text-align: center;
}

#pun-title h1 span {
  font-size: 2.2em;
  font-weight: 300;
  color: #2d3748;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9);
}

#pun-title .container {
  border: none;
  background: transparent;
}

/* D2 Horizontal Navigation Menu - COMPACT */
#pun-navlinks .container {
  background: #2d3748;
  color: white;
  padding: 0;
  border: none;
  border-bottom: 1px solid #4a5568;
}

#pun-navlinks ul {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin: 0;
  padding: 0;
  list-style: none;
}

#pun-navlinks li {
  display: table-cell;
  text-align: center;
  border-right: 1px solid #4a5568;
  position: relative;
  transition: background-color 0.2s ease;
}

#pun-navlinks li:last-child {
  border-right: none;
}

#pun-navlinks li a {
  display: block;
  padding: 14px 15px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-weight: 500;
  font-size: 1em;
}

#pun-navlinks li a:hover {
  background: #4a5568;
  color: white;
  text-decoration: none;
}

#pun-navlinks li.isactive a {
  background: #4299e1;
  color: white;
  font-weight: 600;
}

/* D3 User links - COMPACT */
#pun-ulinks {
  margin-top: 0;
}

#pun-ulinks .container {
  border-top: none;
  padding: 0.8em 1.2em;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin: 1em 0;
  font-size: 11px;
}

#pun-ulinks li, #pun-ulinks li a {
  display: inline;
  border-left: 1px solid #e2e8f0;
  white-space: nowrap;
  color: #718096;
}

#pun-ulinks li a {
  padding: 0 0.4em 0 0.6em;
  color: #4299e1;
  font-weight: 500;
}

#pun-ulinks li.item1, #pun-ulinks li.item1 a {
  border-left: none;
  padding-left: 0;
}

/* D4 Statistics and other sections - COMPACT */
#pun-stats .container {
  padding: 1em;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 11px;
}

#pun-stats li.item1, #pun-stats li.item2 {
  float: left;
  clear: both;
  line-height: 1.4;
  color: #4a5568;
}

#pun-stats li.item3, #pun-stats li.item4 {
  text-align: right;
  line-height: 1.4;
  color: #4a5568;
}

li#onlinelist {
  margin-top: 1em;
  border-top: 1px solid #e2e8f0;
  float: left;
  width: 100%;
  line-height: 1.3;
  padding-top: 1em;
  color: #718096;
  font-size: 11px;
}

/* Page title and breadcrumbs - COMPACT */
#pun-crumbs1 .container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1em 1.2em;
  margin: 1em 0;
  font-size: 1em;
}

#pun-crumbs1 p.container {
  font-size: 1em;
  font-weight: 600;
  color: #2d3748;
}

#pun-crumbs1 a {
  color: #4a5568;
  font-weight: 500;
}

#pun-crumbs1 a:hover {
  color: #4299e1;
}

/*************************************************************
E - RESPONSIVE DESIGN - COMPACT
**************************************************************/

@media (max-width: 768px) {
  #pun {
    margin: 8px;
    border-radius: 4px;
  }
  
  #pun-title {
    height: 200px;
    animation-duration: 25s;
  }
  
  #pun-title h1 span {
    font-size: 1.6em;
  }
  
  .punbb .post .post-author {
    float: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    min-height: auto;
  }
  
  .punbb .post-body {
    margin-left: 0;
    border-left: none;
    min-height: auto;
  }
  
  .punbb .post-links {
    margin-left: 0;
    border-left: none;
    border-radius: 0 0 4px 4px;
  }
  
  #pun-navlinks li {
    display: block;
    border-right: none;
    border-bottom: 1px solid #4a5568;
  }
  
  #pun-navlinks li:last-child {
    border-bottom: none;
  }
  
  .punbb .main .tcl,
  .punbb .main .tc2,
  .punbb .main .tc3,
  .punbb .main .tcr {
    width: 100%;
    display: block;
  }
  
  .punbb .post-links ul {
    text-align: center;
  }
  
  .punbb .post-links li {
    display: inline-block;
    margin: 4px;
  }
  
  body {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #pun-title {
    height: 150px;
  }
  
  #pun-title h1 span {
    font-size: 1.3em;
  }
  
  .punbb .formal .container {
    padding: 1.2em;
  }
  
  .punbb .post .post-author,
  .punbb .post-body {
    padding: 1em;
  }
  
  .punbb .post-links a {
    padding: 5px 10px;
    font-size: 10px;
  }
}

/* Clearfix for modern browsers */
.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
}

/* Focus styles for accessibility */
.punbb a:focus,
.punbb button:focus,
.punbb input:focus,
.punbb select:focus,
.punbb textarea:focus {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
}

/* Custom scrollbar */
.punbb ::-webkit-scrollbar {
  width: 6px;
}

.punbb ::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 3px;
}

.punbb ::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.punbb ::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/*************************************************************
F - HORIZONTAL PROFILE SETTINGS MENU
**************************************************************/

/* Horizontal profile navigation */
#profilenav {
  float: none;
  width: 100%;
  margin-left: 0;
  display: block;
  margin-bottom: 1.8em;
}

#profilenav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0;
  margin: 0 0 1.8em 0;
  background: white;
  list-style: none;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#profilenav li {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 0;
  font-weight: 600;
  border-right: 1px solid #e2e8f0;
  margin: 0;
  transition: all 0.2s ease;
}

#profilenav li:last-child {
  border-right: none;
}

#profilenav li a {
  display: block;
  padding: 14px 10px;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 11px;
  background: white;
  position: relative;
  overflow: hidden;
}

#profilenav li a:hover {
  background: #f7fafc;
  color: #4299e1;
}

#profilenav li a:hover::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4299e1;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

#profilenav li.isactive a {
  background: #4299e1;
  color: white;
  border-bottom: 2px solid #3182ce;
}

#profilenav li.isactive a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #3182ce;
}

/* Profile content layout */
#profile .container {
  padding-left: 0;
  padding: 1.8em;
}

#viewprofile ul, #profilenav ul {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0;
  margin: 0 0 1.8em 0;
  background: white;
}

#viewprofile h2, #profilenav h2 {
  background: #2d3748;
  color: white;
  padding: 1.2em 1.4em;
  margin: 0;
  border-radius: 4px 4px 0 0;
  font-weight: 600;
  font-size: 1.1em;
  border-bottom: 1px solid #4a5568;
}

#viewprofile h2 span, #profilenav h2 span {
  padding: 0;
  position: static;
  background: transparent;
  color: white;
}

/* Profile form elements */
#profile .formal .container {
  padding: 1.8em;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

#profile .fs-box {
  padding: 1.4em 0;
  border-bottom: 1px solid #e2e8f0;
}

#profile .fs-box:last-child {
  border-bottom: none;
}

#profile .required label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.6em;
  display: block;
  font-size: 12px;
}

#profile .datafield {
  margin-bottom: 1.4em;
}

#profile .datafield:last-child {
  margin-bottom: 0;
}

#profile .inputfield input,
#profile .passfield input,
#profile .selectfield select,
#profile .areafield textarea {
  width: 100%;
  max-width: 400px;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  background: white;
  font-size: 12px;
  color: #4a5568;
  transition: all 0.2s ease;
}

#profile .inputfield input:focus,
#profile .passfield input:focus,
#profile .selectfield select:focus,
#profile .areafield textarea:focus {
  border-color: #4299e1;
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
}

/* Avatar settings */
.punbb img.avatardemo {
  float: none;
  margin: 1.2em 0;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 5px;
  background: white;
  max-width: 150px;
}

/* Checkbox and radio fields in profile */
#profile .checkfield,
#profile .radiofield {
  margin: 1em 0;
}

#profile .checkfield input[type="checkbox"],
#profile .radiofield input[type="radio"] {
  margin-right: 8px;
}

#profile .checkfield label,
#profile .radiofield label {
  font-weight: 500;
  color: #4a5568;
  font-size: 12px;
}

/* Profile action buttons */
#profile .formsubmit {
  text-align: center;
  padding-top: 1.8em;
  margin-top: 1.8em;
  border-top: 1px solid #e2e8f0;
}

#profile .formsubmit input {
  background: #4299e1;
  color: white;
  border: none;
  padding: 11px 28px;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 10px;
  font-size: 11px;
}

#profile .formsubmit input:hover {
  background: #3182ce;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Profile field layout improvements */
#viewprofile li {
  padding: 0 0 0 14em;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  min-height: 2.8em;
  font-size: 12px;
}

#viewprofile li span {
  float: none;
  width: 12em;
  margin-left: -14em;
  padding: 1em 1.2em;
  font-weight: 600;
  color: #2d3748;
  background: #f7fafc;
  border-right: 1px solid #e2e8f0;
  min-height: 100%;
  display: flex;
  align-items: center;
}

#viewprofile li strong, 
#viewprofile li div {
  display: flex;
  align-items: center;
  padding: 1em 1.2em;
  font-weight: normal;
  color: #4a5568;
  flex: 1;
  min-height: 100%;
  background: white;
}

/* Alternative compact menu style */
.profile-tabs-compact {
  display: flex;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.8em;
}

.profile-tabs-compact .tab {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  background: white;
  border-right: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile-tabs-compact .tab:last-child {
  border-right: none;
}

.profile-tabs-compact .tab:hover {
  background: #f7fafc;
  color: #4299e1;
}

.profile-tabs-compact .tab.active {
  background: #4299e1;
  color: white;
  font-weight: 600;
}

.profile-tabs-compact .tab a {
  color: inherit;
  text-decoration: none;
  display: block;
  font-size: 11px;
  font-weight: 500;
}

/* Responsive profile */
@media (max-width: 1024px) {
  #profilenav ul {
    flex-wrap: wrap;
  }
  
  #profilenav li {
    flex: 0 0 25%;
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  #profilenav ul {
    flex-direction: column;
  }
  
  #profilenav li {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  
  #profilenav li:last-child {
    border-bottom: none;
  }
  
  #viewprofile li {
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
  }
  
  #viewprofile li span {
    width: 100%;
    margin-left: 0;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  
  #profile .container {
    padding: 1.2em;
  }
  
  #profile .formal .container {
    padding: 1.4em;
  }
  
  .profile-tabs-compact {
    flex-wrap: wrap;
  }
  
  .profile-tabs-compact .tab {
    flex: 0 0 33.333%;
  }
}

@media (max-width: 480px) {
  #profilenav li {
    flex: 0 0 50%;
  }
  
  .profile-tabs-compact .tab {
    flex: 0 0 50%;
  }
  
  #profile .formsubmit input {
    display: block;
    width: 100%;
    margin: 6px 0;
  }
}

/* Profile section specific styles */
#profile .main h2 {
  background: #2d3748;
  color: white;
  padding: 1.2em 1.4em;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
  font-size: 1.1em;
}

#profile .main .container {
  border-radius: 0 0 4px 4px;
}

/* Help text in profile */
#profile .helplinks {
  color: #718096;
  font-size: 10px;
  margin-top: 0.4em;
}

#profile .helplinks span {
  padding: 2px 0;
}

/* Required field indicators */
#profile .required label em {
  color: #f56565;
  font-style: normal;
  margin-left: 4px;
}
/* Полностью убрать рекламный блок внизу страницы */
div#pun-about {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}