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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0d0d0d;
  padding-bottom: 2rem;
}

/* Background */
.bg-blur {
  filter: blur(6px);
  transform: scale(1.05);
}

.bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.75) 0%,
    rgba(13, 13, 13, 0.55) 30%,
    rgba(13, 13, 13, 0.25) 60%,
    rgba(13, 13, 13, 0.05) 100%
  );
}

#langToggle:focus-visible,
#navToggle:focus-visible {
  outline: 2px solid #ff3a3a;
  outline-offset: 2px;
}

/* Language dropdown scrollbar */
.langs-scroll::-webkit-scrollbar {
  width: 3px;
}

.langs-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.langs-scroll::-webkit-scrollbar-thumb {
  background: #2a2a2a;
}

/* Language dropdown */
.lang-option:hover {
  background-color: rgba(255, 58, 58, 0.08);
  color: #ff3a3a;
}

/* Terrorist image overlap effect */
.terrorist-wrapper {
  position: relative;
  z-index: 30;
}

.terrorist-img {
  position: relative;
  z-index: 30;
  margin-bottom: -69px;
  height: auto;
  width: auto;
  max-height: 140px;
}

@media (max-width: 767px) {
  .terrorist-img {
    margin-bottom: -12px;
    max-height: 80px;
  }
}

/* Navigation bar */
.nav-bar {
  background: linear-gradient(180deg, #1c1c1c 0%, #151515 100%);
  border-top: 1px solid #2a2a2a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Desktop nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 1.25rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: color 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #00ff41;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #0d0d0d;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link.nav-active {
  color: #0d0d0d;
  background: #00ff41;
}

.nav-link.nav-active::before {
  transform: scaleX(1);
  background: transparent;
}

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  padding: 1.125rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-top: 1px solid #1f1f1f;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-link:hover {
  color: #0d0d0d;
  background-color: #00ff41;
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.35);
}

.mobile-nav-link.mobile-nav-active {
  color: #0d0d0d;
  background: #00ff41;
  border-left: 2px solid #00ff41;
}

/* Content wrapper with glass effect */
.content-wrapper {
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .content-wrapper {
    padding: 2.5rem;
  }
}

/* Cards */
.card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #222;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  border-bottom: 1px solid #222;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

/* Inputs */
.card-input {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  color: #ddd;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.card-input:focus {
  border-color: #00ff41;
}

.card-input::placeholder {
  color: #444;
}

/* Checkbox */
input[type="checkbox"] {
  accent-color: #00ff41;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00ff41;
  color: #0d0d0d;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #00e63a;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* News items */
.news-item-full {
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1rem;
}

.news-item-full:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 1px solid #1f1f1f;
}

.news-body {
  min-width: 0;
}

.news-date {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #00ff41;
}

.news-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #eee;
  margin: 0.25rem 0;
  letter-spacing: 0.03em;
}

.news-text {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.6;
}

/* Chat */
.chat-box {
  border: 1px solid #1f1f1f;
  background: rgba(0, 0, 0, 0.3);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: rgba(0, 255, 65, 0.04);
  border-bottom: 1px solid #1f1f1f;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ccc;
}

.chat-messages {
  height: 180px;
  overflow-y: auto;
  padding: 0.625rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #1f1f1f;
}

.chat-msg-wrap {
  position: relative;
}

.chat-msg-wrap:hover .chat-actions {
  opacity: 1;
}

.chat-msg {
  font-size: 0.75rem;
  line-height: 1.6;
  padding: 0.125rem 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.chat-user {
  font-weight: 700;
  color: #ccc;
}

.chat-text {
  color: #aaa;
  margin-left: 0.25rem;
  word-break: break-word;
}

.chat-edited {
  font-size: 0.5625rem;
  color: #3a3a3a;
  font-style: italic;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.125rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chat-time {
  font-size: 0.5625rem;
  color: #333;
  margin-right: 0.25rem;
}

.chat-action-btn {
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  padding: 1px 4px;
  font-size: 0.625rem;
  transition: color 0.15s ease;
}

.chat-action-btn:hover {
  color: #00ff41;
}

.chat-action-del:hover {
  color: #ff3a3a;
}

.chat-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 1px 6px;
  letter-spacing: 0.12em;
  border: 1px solid;
}

.badge-user {
  color: #888;
  border-color: #333;
  background: rgba(255, 255, 255, 0.03);
}

.badge-mod {
  color: #00ff41;
  border-color: rgba(0, 255, 65, 0.3);
  background: rgba(0, 255, 65, 0.06);
}

.badge-owner {
  color: #ff3a3a;
  border-color: rgba(255, 58, 58, 0.3);
  background: rgba(255, 58, 58, 0.06);
}

.chat-input-row {
  display: flex;
  border-top: 1px solid #1f1f1f;
}

.chat-input {
  flex: 1;
  background: #0d0d0d;
  border: none;
  color: #ddd;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-family: inherit;
  outline: none;
}

.chat-input::placeholder {
  color: #444;
}

.chat-send {
  background: #00ff41;
  color: #0d0d0d;
  border: none;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-send:hover {
  background: #00e63a;
}

.chat-input:disabled,
.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Social cards (Discord, Facebook) */
.social-card,
.discord-card {
  background: rgba(88, 101, 242, 0.06);
  border: 1px solid rgba(88, 101, 242, 0.15);
  padding: 1.25rem;
  text-align: center;
}

.social-card.social-fb {
  background: rgba(8, 102, 255, 0.06);
  border-color: rgba(8, 102, 255, 0.15);
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.discord-bg {
  background: #5865f2;
}

.fb-bg {
  background: #0866ff;
}

.social-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.social-sub {
  font-size: 0.625rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  color: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.discord-btn-bg {
  background: #5865f2;
}

.discord-btn-bg:hover {
  background: #4752c4;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.fb-btn-bg {
  background: #0866ff;
}

.fb-btn-bg:hover {
  background: #0754d4;
  box-shadow: 0 0 20px rgba(8, 102, 255, 0.3);
}

/* Footer */
.footer {
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 3rem 2rem 1.5rem;
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 2fr;
    text-align: left;
  }

  .footer-col-social {
    text-align: right;
  }
}

.footer-logo {
  height: 100px;
  width: auto;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-about {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-about {
    margin: 0;
  }
}

.footer-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #aaa;
  margin-bottom: 1rem;
}

.footer-links-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-links-grid {
    align-items: flex-start;
  }
}

.footer-links-grid a {
  font-size: 0.75rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-grid a:hover {
  color: #00ff41;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-socials {
    justify-content: flex-start;
  }

  .footer-col-social .footer-socials {
    justify-content: flex-end;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social:hover {
  transform: translateY(-2px);
}

.footer-social.discord {
  background: #5865f2;
}

.footer-social.discord:hover {
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.4);
}

.footer-social.facebook {
  background: #0866ff;
}

.footer-social.facebook:hover {
  box-shadow: 0 0 18px rgba(8, 102, 255, 0.4);
}

.footer-social i {
  font-size: 1rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: #666;
}

.footer-dot {
  width: 3px;
  height: 3px;
  background: #2a2a2a;
  border-radius: 50%;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }
}

/* Server cards */
.server-card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #222;
  backdrop-filter: blur(10px);
}

.server-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1a1a1a;
}

/* Lighter text for server info */
.server-card .text-\[#555\] { color: #aaa; }
.server-card .text-\[#666\] { color: #999; }
.server-card .text-\[#444\] { color: #777; }

.server-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-status-dot.online {
  background: #00ff41;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.server-status-dot.offline {
  background: #ff3a3a;
  box-shadow: 0 0 8px rgba(255, 58, 58, 0.3);
}

/* Stats cards */
.stats-card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #222;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
  text-align: center;
}

/* Privilege cards */
.privilege-card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #222;
  backdrop-filter: blur(10px);
}

.privilege-card.vip-card {
  border-color: rgba(0, 255, 65, 0.15);
}

.privilege-card.admin-card {
  border-color: rgba(255, 58, 58, 0.15);
}

.privilege-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1a1a1a;
  gap: 1rem;
  flex-wrap: wrap;
}

.privilege-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0d0d0d;
}

.vip-icon {
  background: #00ff41;
}

.admin-icon {
  background: #ff3a3a;
}

.privilege-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.privilege-body {
  padding: 1.25rem 1.5rem;
}

.privilege-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #aaa;
  margin-bottom: 0.75rem;
}

.privilege-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privilege-list li {
  font-size: 0.8125rem;
  color: #999;
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.privilege-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: #00ff41;
}

.vip-card .privilege-list li::before {
  background: #00ff41;
}

.admin-card .privilege-list li::before {
  background: #ff3a3a;
}

.forbidden-list li::before {
  background: #ff3a3a !important;
}

.privilege-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 58, 58, 0.04);
  border: 1px solid rgba(255, 58, 58, 0.12);
  padding: 1.25rem 1.5rem;
}

.privilege-notice i {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.privilege-notice-text {
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.7;
}

/* Rules content */
.rules-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 1.5rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rules-content ul, .rules-content ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.rules-content li {
  font-size: 0.8125rem;
  color: #aaa;
  line-height: 1.8;
}

.rules-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin: 1rem 0;
}

.rules-content th {
  padding: 0.6rem 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-align: left;
  border-bottom: 2px solid #1f1f1f;
}

.rules-content td {
  padding: 0.6rem 0.75rem;
  color: #ccc;
  border-bottom: 1px solid #1a1a1a;
}
