:root {

  --primary-color: #5e72e4;

  --primary-hover: #4a5bd0;

  --primary-active: #3949ab;

  --secondary-color: #f5f7fa;

  --dark-bg: #1a1a2e;

  --dark-bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);

  --card-bg: #27293d;

  --card-bg-hover: #2d2f45;

  --card-header-bg: #2c2d42;

  --light-text: #e3e3e3;

  --bright-text: #ffffff;

  --muted-text: #8b92a9;

  --accent-text: #5e72e4;

  --border-color: #344675;

  --border-hover: #4056a1;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);

  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);

  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.20);

  --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.25);

  --glow: 0 0 15px rgba(94, 114, 228, 0.3);

}

html {

    scrollbar-width: thin;

  scrollbar-color: var(--primary-color) var(--card-bg);

}

* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



body {

  background-color: var(--dark-bg);

  color: var(--light-text);

  background-image: url('../img/background4.svg');

  background-repeat: no-repeat;

  background-size: cover;

  background-position: center;

  background-attachment: fixed;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  display: flex;

  flex-direction: column;

  min-height: 100vh;

  line-height: 1.6;

  font-size: 15px;

}



a {

  color: var(--primary-color);

  text-decoration: none;

  transition: all 0.2s ease;

}



a:hover {

  color: var(--primary-hover);

  text-decoration: none;

}



.container {

  max-width: 1200px;

  width: 100%;

  margin: 0 auto;

  padding: 30px 20px;

  flex: 1;

}



.ms-grid {

  display: flex;

  justify-content: space-between;

  gap: 25px;

  padding: 0;

}



.ms-col-sm-12 {

  width: 100%;

}



.ms-col-md-8 {

  width: 68%;

}



.ms-col-md-4 {

  width: 32%;

}



.ms-card {

  background-color: var(--card-bg);

  border: none;

  border-radius: 12px;

  margin-bottom: 25px;
  box-shadow: var(--shadow-md);

  transition: all 0.3s ease;

  overflow: hidden;

}



.ms-card:hover {

  transform: translateY(-4px);

  box-shadow: var(--shadow-lg);

}



.category-header {

  background-color: var(--card-header-bg);

  padding: 16px 20px;

  font-size: 16px;

  font-weight: 600;

  border-radius: 12px 12px 0 0;

  color: var(--bright-text);

  letter-spacing: 0.3px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.forum-item {

  padding: 18px 20px;

  border-bottom: 1px solid rgba(54, 57, 63, 0.6);

  display: flex;

  justify-content: space-between;

  align-items: center;

  transition: all 0.3s ease;

}



.forum-item:hover {

  background: rgba(255, 255, 255, 0.03);

}



.forum-item:last-child {

  border-bottom: none;

  border-radius: 0 0 12px 12px;

}



.forum-info {

  display: flex;

  flex-direction: column;

}



.forum-name {

  font-weight: 600;

  margin-bottom: 8px;

  color: var(--bright-text);

  font-size: 15px;

  transition: color 0.2s ease;

}



.forum-item:hover .forum-name {

  color: var(--primary-color);

}



.forum-description {

  font-size: 13px;

  color: var(--muted-text);

  margin-bottom: 8px;

  max-width: 80%;

}



.forum-stats {

  font-size: 13px;

  color: var(--muted-text);

  display: flex;

  gap: 15px;

}



.stats-item {

  display: flex;

  align-items: center;

  gap: 4px;

}



.stats-item i {

  font-size: 12px;

  opacity: 0.7;

}



.forum-latest {

  display: flex;

  flex-direction: column;

  align-items: flex-end;

  min-width: 180px;

}



.latest-title {

  font-size: 13px;

  color: var(--light-text);

  margin-bottom: 4px;

  text-align: right;

}



.latest-meta {

  font-size: 12px;

  color: var(--muted-text);

}



.latest-author {

  color: var(--primary-color);

}



.no-posts {

  text-align: right;

  color: var(--muted-text);

  font-style: italic;

  font-size: 13px;

}



.sidebar-card {

  background-color: var(--card-bg);

  border-radius: 12px;

  box-shadow: var(--shadow-md);

  overflow: hidden;

  transition: all 0.3s ease;

  margin-bottom: 25px;

}



.sidebar-card:hover {

  transform: translateY(-4px);

  box-shadow: var(--shadow-lg);

}



.sidebar-title {

  background-color: var(--card-header-bg);

  padding: 16px 20px;

  font-size: 16px;

  font-weight: 600;

  border-radius: 12px 12px 0 0;

  color: var(--bright-text);

  letter-spacing: 0.3px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}



.sidebar-content {

  padding: 18px 20px;

}



.stat-item {

  margin-bottom: 12px;

  color: var(--light-text);

  font-size: 14px;

  display: flex;

  justify-content: space-between;

}



.stat-item:last-child {

  margin-bottom: 0;

}



.stat-value {

  font-weight: 600;

  color: var(--bright-text);

}



.latest-posts-list {

  list-style-type: none;

}



.latest-post-item {

  padding: 12px 0;

  border-bottom: 1px solid rgba(54, 57, 63, 0.6);

}



.latest-post-item:last-child {

  border-bottom: none;

  padding-bottom: 0;

}



.latest-post-item:first-child {

  padding-top: 0;

}



.latest-post-title {

  font-size: 14px;

  margin-bottom: 5px;

  font-weight: 500;

}



.latest-post-meta {

  font-size: 12px;

  color: var(--muted-text);

  display: flex;

  justify-content: space-between;

}



.btn {

  display: inline-block;

  font-weight: 500;

  text-align: center;

  white-space: nowrap;

  vertical-align: middle;

  user-select: none;

  border: 1px solid transparent;

  padding: 0.5rem 1rem;

  font-size: 14px;

  line-height: 1.5;

  border-radius: 6px;

  transition: all 0.15s ease-in-out;

  cursor: pointer;

}



.btn-primary {

  color: #fff;

  background-color: var(--primary-color);

  border-color: var(--primary-color);

}



.btn-primary:hover {

  background-color: var(--primary-hover);

  border-color: var(--primary-hover);

  box-shadow: var(--shadow-sm);

}



.btn-primary:active {

  background-color: var(--primary-active);

  border-color: var(--primary-active);

  box-shadow: var(--shadow-inset);

}



.btn-sm {

  padding: 0.25rem 0.5rem;

  font-size: 12px;

  border-radius: 4px;

}



.user-status {

  display: inline-block;

  width: 8px;

  height: 8px;

  border-radius: 50%;

  margin-right: 5px;

}



.user-online {

  background-color: #43b581;

}



.user-offline {

  background-color: #747f8d;

}



.footer {

  text-align: center;

  padding: 25px 0;

  background-color: rgba(41, 43, 47, 0.95);

  border-top: 1px solid rgba(54, 57, 63, 0.8);

  margin-top: auto;

  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);

}



.footer-content {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;

  max-width: 1200px;

  margin: 0 auto;

  padding: 0 20px;

}



.footer img {

  width: 40px;

  height: 40px;

  border-radius: 50%;

  transition: transform 0.3s ease;

}



.footer img:hover {

  transform: scale(1.1);

}



.footer-links {

  margin-top: 15px;

  display: flex;

  gap: 20px;

}



.footer-links a {

  color: var(--muted-text);

  font-size: 14px;

  transition: color 0.2s ease;

}



.footer-links a:hover {

  color: var(--light-text);

}



.footer-copyright {

  font-size: 13px;

  color: var(--muted-text);

  margin-top: 10px;

}



.badge {

  display: inline-block;

  padding: 0.25em 0.6em;

  font-size: 75%;

  font-weight: 600;

  line-height: 1;

  text-align: center;

  white-space: nowrap;

  vertical-align: baseline;

  border-radius: 10px;

  background-color: var(--primary-color);

  color: white;

}



.badge-new {

  background-color: #43b581;

}



.badge-hot {

  background-color: #f04747;

}



@keyframes fadeIn {

  from {

    opacity: 0;

  }

  to {

    opacity: 1;

  }

}



.navbar {

  background-color: rgba(39, 41, 61, 0.95);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border-color);

  padding: 0.75rem 1.5rem;

  box-shadow: var(--shadow-md);

  position: sticky;

  top: 0;

  z-index: 1000;

}



.navbar-nav {

  display: flex;

  align-items: center;

  gap: 0.75rem;

}



.navbar-brand {

  margin-right: 1.5rem;

  display: flex;

  align-items: center;

}



.logo {

  border-radius: 6px;

  transition: all 0.2s ease;

  height: 28px;

}



.logo:hover {

  transform: scale(1.05);

  filter: brightness(1.1);

}



.nav-item {

  position: relative;

}



.nav-link {

  color: var(--muted-text);

  text-decoration: none;

  padding: 0.75rem 1rem;

  border-radius: 6px;

  display: flex;

  align-items: center;

  gap: 0.5rem;

  transition: all 0.2s ease;

  font-weight: 500;

  font-size: 0.95rem;

}



.nav-link:hover {

  color: var(--light-text);

  background-color: rgba(255, 255, 255, 0.05);

  transform: translateY(-1px);

}



.nav-link:active {

  background-color: rgba(255, 255, 255, 0.08);

  transform: translateY(0px);

}



.nav-link.active {

  color: var(--primary-color);

  font-weight: 600;

  background-color: rgba(94, 114, 228, 0.08);

  position: relative;

}



.nav-link.active::after {

  content: '';

  position: absolute;

  bottom: -1px;

  left: 50%;

  transform: translateX(-50%);

  width: 20px;

  height: 3px;

  background-color: var(--primary-color);

  border-radius: 3px 3px 0 0;

}



.user-profile {

  display: flex;

  align-items: center;

}



.user-info {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  padding: 0.5rem 1rem;

  background-color: rgba(255, 255, 255, 0.03);

  border-radius: 8px;

  border: 1px solid var(--border-color);

  transition: all 0.2s ease;

}



.user-info:hover {

  border-color: var(--border-hover);

  box-shadow: 0 0 0 1px rgba(94, 114, 228, 0.15);

}



.user-avatar {

  border-radius: 50%;

  width: 32px;

  height: 32px;

  object-fit: cover;

  border: 2px solid var(--primary-color);

  transition: all 0.2s ease;

}



.user-info:hover .user-avatar {

  border-color: var(--primary-hover);

  transform: scale(1.05);

}



.user-details {

  display: flex;

  flex-direction: column;

  line-height: 1.2;

}



.username {

  font-weight: 600;

  color: var(--light-text);

}



.rank {

  font-size: 0.8rem;

  color: var(--primary-color);

}



@media (max-width: 768px) {

  .ms-grid {

    flex-direction: column;

  }



  .ms-col-md-8,

  .ms-col-md-4 {

    width: 100%;

  }



  .navbar {

    flex-wrap: wrap;

    padding: 0.5rem;

    gap: 0.5rem;

  }



  .navbar-nav {

    width: 100%;

    overflow-x: auto;

    padding: 0.5rem 0;

    justify-content: flex-start;

    -ms-overflow-style: none;

    scrollbar-width: none;

  }



  .navbar-nav::-webkit-scrollbar {

    display: none;

  }



  .user-profile {

    width: 100%;

    justify-content: flex-end;

    padding: 0.5rem 0;

  }



  .user-details {

    display: none;

  }



  .forum-item {

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

  }



  .forum-latest {

    align-items: flex-start;

    width: 100%;

  }



  .latest-title,

  .no-posts {

    text-align: left;

  }

}



@media (max-width: 480px) {

  .container {

    padding: 20px 10px;

  }



  .category-header,

  .sidebar-title {

    padding: 12px 15px;

    font-size: 15px;

  }



  .forum-item,

  .sidebar-content {

    padding: 15px;

  }

}



.ms-hero {

  max-width: 700px;

  margin: 4rem auto;

  background: rgba(39, 41, 61, 0.65);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(52, 70, 117, 0.4);

  border-radius: 15px;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  text-align: center;

  overflow: hidden;

  animation: fadeInHero 1s ease-out forwards;

}



@keyframes fadeInHero {

  from {

    opacity: 0;

    transform: translateY(20px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}



.ms-hero-body {

  padding: 3rem 2rem;

}



.ms-hero-title {

  font-size: 2.8rem;

  font-weight: 700;

  margin-bottom: 1rem;

  background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

  color: transparent;

}



.ms-hero-content p {

  font-size: 1.1rem;

  color: var(--muted-text);

  max-width: 90%;

  margin: 0 auto 2rem auto;

  line-height: 1.7;

}



.ms-hero-content a {

  text-decoration: none;

  margin: 0 0.5rem;

}



.ms-btn {

  display: inline-block;

  padding: 0.8rem 1.75rem;

  border-radius: 8px;

  font-weight: 600;

  font-size: 1rem;

  text-align: center;

  border: 2px solid transparent;

  transition: all 0.3s ease;

  cursor: pointer;

}



.ms-btn.ms-primary {

  background: var(--primary-color);

  color: var(--bright-text);

  box-shadow: 0 4px 15px rgba(94, 114, 228, 0.2);

}



.ms-btn.ms-primary:hover {

  background: var(--primary-hover);

  transform: translateY(-3px);

  box-shadow: 0 6px 20px rgba(94, 114, 228, 0.3);

}



.ms-btn.ms-secondary {

  background: transparent;

  color: var(--light-text);

  border-color: var(--border-color);

}



.ms-btn.ms-secondary:hover {

  background: var(--primary-color);

  border-color: var(--primary-color);

  color: var(--bright-text);

  transform: translateY(-3px);

}



.forum-item {

  padding: 18px 20px;

  border-bottom: 1px solid rgba(54, 57, 63, 0.6);

  display: flex;

  align-items: center;

  gap: 15px;

  transition: background-color 0.2s ease;

}



.forum-item:last-child {

  border-bottom: none;

}



.forum-item:hover {

  background: rgba(255, 255, 255, 0.03);

}



.forum-icon {

  font-size: 1.5rem;

  color: var(--muted-text);

  flex-shrink: 0;

}



.forum-info {

  flex-grow: 1; 

  min-width: 0; 

}



a.forum-name-link {

  font-size: 16px;

  font-weight: 600;

  color: var(--bright-text);

  display: block;

  margin-bottom: 4px;

}

a.forum-name-link:hover {

  color: var(--primary-color);

}



.forum-description {

  font-size: 13px;

  color: var(--muted-text);

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.forum-stats {

  font-size: 13px;

  color: var(--muted-text);

  text-align: left;

  flex-shrink: 0;

  width: 120px; 

}

.forum-stats span {

  display: block; 

}



.forum-activity {

  font-size: 13px;

  text-align: right;

  flex-shrink: 0;

  width: 180px; 

}



a.latest-title-link {

  color: var(--light-text);

  font-weight: 500;

}

a.latest-title-link:hover {

  color: var(--primary-hover);

}



.latest-meta {

  font-size: 12px;

  color: var(--muted-text);

}

a.latest-author {

  color: var(--accent-text);

}



.sub-forum-list {

  margin-top: 8px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 5px 10px;

}



.sub-forum-label {

  font-size: 12px;

  color: var(--muted-text);

}



a.sub-forum-link {

  font-size: 12px;

  color: var(--muted-text);

  background-color: rgba(0, 0, 0, 0.2);

  padding: 2px 8px;

  border-radius: 4px;

  border: 1px solid transparent;

  transition: all 0.2s ease;

}



a.sub-forum-link:hover {

  border-color: var(--primary-color);

  color: var(--primary-color);

  background-color: rgba(94, 114, 228, 0.1);

}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--glow);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bright-text);
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Section Title Styling --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--bright-text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted-text);
  max-width: 600px;
  margin: 0 auto;
}


/* --- Pricing Page Specifics --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 3rem auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card.premium {
  border-color: var(--primary-color);
  box-shadow: var(--glow);
  transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient, linear-gradient(135deg, var(--primary-hover), var(--primary-color)));
    color: var(--bright-text);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}


.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bright-text);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bright-text);
  margin-bottom: 0.25rem;
}

.pricing-price .term {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-text);
}

.pricing-description {
  font-size: 0.9rem;
  color: var(--muted-text);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  flex-grow: 1; /* Pushes button to bottom */
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.pricing-features i {
  color: #43b581; /* A success green color */
  font-size: 1.2rem;
}

.pricing-card .ms-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
}

/* --- Explainer Card --- */
.explainer-card {
    background: var(--card-bg);
    border-radius: 12px;
    margin: 4rem auto 2rem auto;
    padding: 2rem;
    max-width: 900px;
    border: 1px solid var(--border-color);
}
.explainer-card h3 {
    color: var(--bright-text);
    margin-bottom: 1rem;
}
.explainer-card p {
    color: var(--muted-text);
    line-height: 1.7;
}
.explainer-card p:not(:last-child) {
    margin-bottom: 1rem;
}