        /* Gaming Fonts Setup */
        html, body {
            font-family: "Changa", "Cairo", sans-serif;
        }
        
        h1, h2, h3, h4, h5, h6, .gaming-font {
            font-family: "Lalezar", "Changa", sans-serif !important;
            letter-spacing: 0.5px;
        }
        
        /* Smooth Scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Navbar Effects */
        .nav-glass {
            background: rgba(10, 11, 16, 0.85);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        }

        .nav-item-link {
            position: relative;
            font-size: 0.75rem !important;
            letter-spacing: 0.02em;
        }
        
        .nav-item-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: 0;
            width: 0%;
            height: 2px;
            background: linear-gradient(90deg, #06b6d4, #2563eb);
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .nav-item-link:hover::after {
            width: 100%;
        }

        /* Search Input Focus */
        .search-input-wrapper:focus-within {
            box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
            border-color: rgba(6, 182, 212, 0.5);
        }
        /* Critical dark theme styles */
:root {
  color-scheme: dark;
  --bg-deep: #0a0b10;
  --bg-surface: #12141d;
  --accent-primary: #06b6d4;
  --accent-secondary: #2563eb;
}

html {
  background-color: var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: #94a3b8;
  min-height: 100vh;
  font-size: 0.85rem;
}

article h1 {
  font-size: 1.5em;
  margin-top: 0.67em;
  margin-bottom: 0.67em;
  font-weight: bold;
  color: #fff;
}

article h2 {
  font-size: 1.25em;
  margin-top: 0.83em;
  margin-bottom: 0.83em;
  font-weight: bold;
  color: #fff;
}

article h3 {
  font-size: 1.1em;
  margin-top: 1em;
  margin-bottom: 1em;
  font-weight: bold;
  color: #fff;
}

article h4 {
  font-size: 1em;
  margin-top: 1.33em;
  margin-bottom: 1.33em;
  font-weight: bold;
  color: #fff;
}

/* Smooth page load transition */
.hide-content {
  display: none;
}

.show-content {
  display: block;
  animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.game-card-hover {
  @apply transition-all duration-300 hover:scale-[1.03] hover:-translate-y-1 hover:shadow-2xl hover:shadow-cyan-500/10;
}

.dropdown-submenu>a::after {
  content: '>';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.parent_child::after {
  content: '›';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
}

.btn-game-action {
  @apply p-2 rounded-xl bg-[#12141d] hover:bg-cyan-600 transition-all duration-300 text-sm border border-white/5 hover:border-cyan-400/30 hover:scale-105;
}

.btn-game-primary {
  @apply px-4 py-2 rounded-xl bg-gradient-to-r from-cyan-600 to-blue-600 text-white hover:from-cyan-500 hover:to-blue-500 transition-all duration-300 flex items-center gap-2 text-[10px] font-bold shadow-lg shadow-cyan-900/20 hover:scale-105;
}

.widget-title {
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 14px;
  @apply text-cyan-400;
}

.game-content {
  overflow: hidden;
}

.game-iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 600px;
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Comments */

.comment-user-avatar {
  position: absolute;
  width: 40px;
  height: 40px;
}

.comment-user-avatar img {
  border-radius: 50%;
}

.comment-avatar {
  float: left;
  width: 40px;
  height: 40px;
}

.comment-avatar img {
  border-radius: 50%;
}

.comment-input {
  margin-left: 55px;
}

.comment-btn-post {
  text-align: right;
}

.comment-p {
  margin-top: 20px;
}

.comment-p .comment-date {
  float: right;
  color: #64748b;
  font-size: 0.75em;
}

.comment-username {
  font-weight: bold;
  color: #fff;
}

.comment-details {
  margin-left: 55px;
}

.comment-text {
  white-space: pre-line;
  color: #94a3b8;
}

.color-red {
  color: #ef4444;
}

i.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* NEW COMMENT SYSTEM */

#tpl-comment-section {
  margin-top: 30px;
  margin-bottom: 20px;
}

#comment-form {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-profile-avatar {
  margin-right: 15px;
}

.comment-profile-avatar img {
  border-radius: 50%;
  float: left;
  width: 3rem;
  height: 3rem;
  max-width: 40px;
  max-height: 40px;
}

.comment-form-wrapper {
  background: #12141d;
  margin-bottom: 30px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  width: 100%;
}

.comment-form-wrapper textarea {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
}

.post-comment-btn-wrapper {
  float: right;
  margin-top: 15px;
}

textarea#comment-input {
  height: 80px;
}

.user-comment-wrapper {
  display: flex;
}

.tpl-user-comment {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 25px;
}

.tpl-comment-children .tpl-user-comment:last-child {
  border-bottom: none;
}

img.tpl-user-comment-avatar {
  border-radius: 50%;
  float: left;
  width: 3rem;
  height: 3rem;
  max-width: 40px;
  max-height: 40px;
  margin-right: 15px;
}

.tpl-comment-children img.tpl-user-comment-avatar {
  max-width: 32px;
  max-height: 32px;
}

.tpl-comment-author {
  font-weight: bold;
  color: #fff;
}

.tpl-user-comment .comment-content {
  margin-bottom: 15px;
  width: 100%;
}

.tpl-comment-timestamp {
  margin-top: 2px;
  font-size: 13px;
  color: #64748b;
}

.tpl-comment-text {
  margin-top: 10px;
  white-space: unset;
  color: #94a3b8;
}

.comment-actions {
  margin-top: 12px;
}

.comment-action-right {
  float: right;
}

.comment-action-left {
  float: left;
}

.tpl-comment-children {
  display: block;
  margin-left: 55px;
}

.tpl-reply-form {
  display: flex;
}

.comment-reply-wrapper {
  margin-left: 55px;
  background: #12141d;
  margin-bottom: 25px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  width: 100%;
}

.comment-reply-wrapper textarea {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.reply-action-buttons {
  float: right;
  margin-top: 12px;
}

.tpl-btn-cancel-reply {
  color: #64748b;
}

#tpl-btn-load-more-comments {
  color: #64748b;
}

.comment-require-login-wrapper {
  display: flex;
  margin-bottom: 30px;
}

.comment-require-login-wrapper .comment-alert {
  padding: 12px;
  background-color: #12141d;
  text-align: center;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

/* END COMMENT */

/* USER */

/* Grid System */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-md-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-md-8 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

/* Forms */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #fff;
  background-color: #12141d;
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.1);
    outline: none;
}

.form-check {
  position: relative;
  display: block;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-check-input {
  position: absolute;
  margin-top: 0.3rem;
  margin-left: -1.25rem;
}

.form-check-label {
  margin-bottom: 0;
}

/* User Profile Styles */
.user-page {
  padding: 2rem 0;
  padding-top: 100px;
}

.single-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.section {
  background-color: #12141d;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.profile-photo img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid #1e293b;
}

.profile-username {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  margin: 1rem 0;
}

.profile-join {
  color: #64748b;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.profile-bio {
  font-style: italic;
  color: #94a3b8;
  font-size: 0.85rem;
}

.login-body {
  background-color: unset;
}

/* Game Lists */
.profile-gamelist-horizontal {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.profile-gamelist-horizontal ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.profile-game-item {
  flex: 0 0 auto;
  margin-right: 1rem;
}

.list-thumbnail img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: 'Changa', sans-serif;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(8, 145, 178, 0.3);
}

.btn-danger {
  color: #fff;
  background-color: #ef4444;
  border: none;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.btn-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-color: rgba(6, 182, 212, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.btn-left {
  left: 0;
}

.btn-right {
  right: 0;
}

/* Progress Bar */
.progress {
  display: flex;
  height: 0.75rem;
  overflow: hidden;
  font-size: .65rem;
  background-color: #1e293b;
  border-radius: 10px;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  transition: width .6s ease;
}

/* Comments */
.profile-comment-item {
  background-color: #12141d;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-text {
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.comment-date {
  font-size: 0.75rem;
  color: #64748b;
}

.delete-comment {
  color: #ef4444;
  cursor: pointer;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-secondary {
  color: #64748b;
}

.text-danger {
  color: #ef4444;
}

.mb-3 {
  margin-bottom: 1rem;
}

/* Avatar Chooser */
.avatar-chooser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.input-hidden {
  position: absolute;
  left: -9999px;
}

.input-hidden+label img {
  width: 100%;
  height: auto;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-hidden:checked+label img {
  border-color: #06b6d4;
  transform: scale(1.05);
}

/* END USER */

/* Mobile Header Fixes */
@media (max-width: 768px) {

  /* Fix logo and menu alignment */
  .mobile-logo-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Search bar full width on mobile */
  .mobile-search {
    width: 100%;
    margin: 1rem 0;
  }

  .mobile-search input {
    width: 100%;
  }

  /* Mobile dropdown styles */
  .mobile-nav {
    padding: 1rem;
  }

  .mobile-nav ul {
    background: #12141d;
    width: 100%;
  }

  .mobile-nav li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-nav li:last-child {
    border-bottom: none;
  }

  /* Fix submenu positioning */
  .mobile-nav .submenu {
    position: relative;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }
}

.login-body {
  color: #fff;
}

