@font-face {
  font-family: "Becham";
  src: url("../../font/Becham-Regular.otf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
}

/*------------------
DASHBOARD
------------------*/

#x_header {
  position: relative;
  top: 0;
  z-index: 998;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;

  background: url("../../img/header.jpg") top center no-repeat;
  background-size: cover;
}

#x_header .layered {
  width: 100%;
  height: 150px;
  margin: auto;
  max-width: 100%;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 5%,
      rgba(0, 0, 0, 0.8) 30%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0) 100%
    ),
    radial-gradient(
      circle at center,
      rgba(0, 140, 255, 0.35) 0%,
      rgba(0, 80, 180, 0.15) 30%,
      rgba(0, 0, 0, 0) 70%
    );
  overflow: hidden;
}

.layered::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00aaff, transparent);

  box-shadow:
    0 0 10px #00aaff,
    0 0 20px #00aaff;
}

#x_header .paid {
  color: #915fda;
}

#x_navbar {
  margin: 0px 0 15px 0;
  display: table;
  height: auto;
  width: 100%;
  background: #2b0945;
  color: #fff;
  box-shadow: 2px 0px 50px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 9999;
}

#x_panel {
  width: 960px;
  padding: 0 10px;
  margin: auto;
  font-size: 12px;
}

.nav-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

/* angka badge */
.nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #ff2d55;
  border-radius: 50px;
  box-shadow: 0 0 8px rgba(255, 45, 85, 0.5);
}

.acc-info {
  width: 930px;
  height: 150px;
  margin: auto;
  display: flex;
  align-items: center;
  position: relative;
}

.member-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  flex: 1;
}

.member-name {
  font-size: 42px;
  font-family: "Kondo", Verdana, Tahoma, sans-serif;
  letter-spacing: 0.2px;
  font-weight: 700;
  color: #fff;

  text-shadow:
    0 0 10px rgba(0, 150, 255, 0.6),
    0 0 20px rgba(0, 150, 255, 0.4);
}

.member-city {
  margin-top: 15px;
  display: flex;
  overflow: hidden;
  justify-content: left;
  font-family: "Becham", Arial, Verdana;
  font-weight: 700;
  color: #ffff00;
  font-size: 25px;
  padding-bottom: 5px;
}

.member-city img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  object-fit: cover;
  display: inline-flex;
}

.member-account {
  font-family: "Kondo", Verdana, Tahoma, sans-serif;
  color: #8fd3ff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: left;
  gap: 10px;
}

.stat-account {
  width: 18px;
  height: 18px;
  margin-right: 3px;
  object-fit: cover;
  display: inline-flex;
}

.member-extra {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  margin-right: 0;
  color: #ccc;
  line-height: 1.6;
  white-space: nowrap;
}

.member-avatar {
  position: absolute;
  right: 40px;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.x_user {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #00aaff;
  background: rgba(3, 3, 3, 0.3);
  box-shadow:
    0 0 5px rgba(0, 170, 255, 0.55),
    0 0 10px rgba(0, 170, 255, 0.25);
  transform: none;
  margin-right: 20px;
}

.x_gbr {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ddsmoothmenu ul li a.nav-badge-link {
  display: inline-flex !important;
}

/*=========================================
HEADER GUEST
=========================================*/

.guest-header {
  width: 950px;
  height: 150px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.logo-tamu img {
  height: 82px;
  display: block;
}

.guest-button {
  display: flex;
  gap: 12px;
}

.btn-login,
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 95px;
  height: 38px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  border-radius: 4px;
  transition: 0.25s;
}

.btn-login {
  background: linear-gradient(#d0173c, #95001f);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 0, 70, 0.5);
}

.btn-register {
  background: linear-gradient(#b9b9b9, #7c7c7c);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.badge-standard {
  background: #f1c40f;
  color: #222;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
}

.upgrade-btn {
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 15px;
  background: #9b27b0;
  transition: 0.25s;
}

.upgrade-btn:hover {
  background: #d81b60;
}

.badge-account {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: #444;
  color: #fff;
  font-size: 13px;
}

.btn-upgrade {
  width: 90px;
  height: 25px;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  border: 2px solid #ccc;
  transition: 0.25s;
}

.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 170, 0, 0.35);
}

.badge-account.standard {
  background: #6c757d;
  color: #fff;
}

.badge-account.premium {
  background: linear-gradient(180deg, #ffe082, #ffca28);
  color: #4e3200;
}

.mobile-menu-btn {
  display: none;
}

/* =======================
   MOBILE
======================== */
@media screen and (max-width: 768px) {
  .guest-header {
    width: 100%;
    height: 100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
  }

  #x_header {
    height: 100px;
  }

  .layered {
    height: 100px !important;
  }

  .layered::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: none;

    box-shadow:
      0 0 0px #00aaff,
      0 0 0px #00aaff;
  }

  .logo-tamu img {
    height: 45px;
  }

  .guest-button {
    display: flex;
    gap: 8px;
  }

  .btn-login,
  .btn-register {
    width: 85px;
    height: 34px;
    font-size: 12px;
    border-radius: 3px;
    letter-spacing: 1px;
  }

  .acc-info {
    width: 100%;
    height: 100px;

    padding: 0 15px;
    box-sizing: border-box;
  }

  .member-info {
    padding-left: 15px;
  }

  .member-name {
    color: #fff;
    font-size: 32px;
    line-height: 25px;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    letter-spacing: 0.2px;
  }

  .member-city {
    font-size: 18px;
    margin-top: 3px;
    padding-bottom: 2px;
  }

  .member-account {
    font-size: 16px;
  }

  .btn-upgrade {
    width: 60px;
    height: auto;
    border-radius: 3px;
    border: 1px solid #ccc;
  }

  .member-extra {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-left: auto;
    margin-right: 50px;
    transform: none;
  }

  #x_navbar {
    display: none;
  }

  .x_user {
    display: block;
    width: 68px;
    height: 68px;
    margin-right: 0;
    border-radius: 8px;
    border: 3px solid #00aaff;
  }

  .x_gbr {
    border-radius: 6px;
  }
}

#mobileOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s;
  z-index: 9998;
}

#mobileMenu {
  position: fixed;
  top: 0;
  padding: 0;
  margin: 0;
  left: -320px;
  width: 240px;
  max-width: 85%;
  background: #160627;
  transition: 0.35s;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

#mobileMenu.active {
  left: 0;
}

#mobileOverlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a,
.submenu-btn {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.submenu {
  display: none;
  background: #220b39;
}

.has-sub.active .submenu {
  display: block;
}

@media (max-width: 768px) {
  #x_navbar {
    display: none;
  }

  .member-extra {
    display: flex;
    transform: translateY(20px);
    gap: 10px;
    margin-right: 0;
  }

  .mobile-menu-btn {
    display: flex;
    position: absolute;
    top: 12px;
    right: 15px;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
  }

  .mobile-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00aaff;
    flex-shrink: 0;
  }

  .mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
  }

  .mobile-account {
    margin-top: 4px;
    color: #ffd400;
    font-size: 14px;
  }

  .mobile-menu-body {
    padding: 5px;
    color: #ddd;
  }

  .mobile-nav {
    margin: 5px;
    padding: 0;
    list-style: none;
  }

  .mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-nav a,
  .submenu-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: none;
    border: none;
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.8px;
    font-family: "Bricolage", Verdana, Arial, Tahoma;

    box-sizing: border-box;
  }

  .mobile-nav a:hover,
  .submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-nav a span,
  .submenu-toggle span,
  .submenu a span {
    display: flex;
    align-items: center;
    gap: 10px; /* <-- Atur jarak icon dengan text di sini */
  }

  .mobile-nav a i,
  .submenu-toggle i,
  .submenu a i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
  }

  .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #241038;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .has-sub.active > .submenu {
    max-height: 400px;
    padding: 0 5px;
    background: #241038;
  }

  .arrow {
    transition: 0.3s;
  }

  .has-sub.active .arrow {
    transform: rotate(90deg);
  }

  .submenu li:first-child {
    border-top: 2px solid rgba(255, 255, 255, 0.06);
  }

  .submenu li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  }

  .submenu a {
    padding: 6px 35px;

    font-size: 13px;

    color: #ddd;
  }

  .arrow {
    transition: 0.25s;

    font-size: 11px;
  }

  .has-sub.active > .submenu {
    display: block;
  }

  .has-sub.active > .submenu-toggle .arrow {
    transform: rotate(90deg);
  }
}

.messg-badge {
  position: relative;
  top: -0px;
  right: 0px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  animation: badgePulse 1.5s infinite;
}

@media (max-width: 480px) {
  .logo-tamu img {
    height: 40px;
    display: block;
  }

  .guest-button {
    display: flex;
    gap: 5px;
  }

  .btn-login,
  .btn-register {
    width: 70px;
    height: 25px;
    font-size: 12px;
    border-radius: 3px;
    letter-spacing: 1px;
  }

  .member-name {
    color: #fff;
    font-size: 22px;
    line-height: 22px;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    letter-spacing: 0.2px;
  }

  .member-info {
    padding-left: 8px;
    min-width: 0;
  }

  .member-city {
    font-size: 15px;
  }

  .member-account {
    font-size: 13px;
  }

  .member-city img,
  .stat-account {
    width: 15px;
    height: 15px;
  }

  .x_user {
    width: 58px;
    height: 58px;
    margin-right: 0;
    border: 2px solid #00aaff;
  }

  .member-extra {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
    margin-right: 0;
    color: #ccc;
    line-height: 1.6;
    white-space: nowrap;
    transform: translateY(20px);
  }

  .member-extra[data-account="Standard"] .btn-register {
    display: inline-flex;
  }

  .member-extra[data-account="Premium"] .btn-login {
    display: none;
  }
}

@media (max-width: 375px) {
  .btn-login,
  .btn-register {
    width: 100px;
    height: 25px;
    font-size: 12px;
    border-radius: 3px;
    letter-spacing: 1px;
  }

  .member-extra[data-account="Standard"] .btn-register {
    display: none;
  }

  .member-extra[data-account="Premium"] .btn-login {
    display: none;
  }
}

@media (max-width: 320px) {
  .logo-tamu img {
    height: 40px;
    display: block;
  }

  .guest-button {
    display: flex;
    gap: 5px;
  }

  .btn-login,
  .btn-register {
    width: 100px;
    height: 25px;
    font-size: 12px;
    border-radius: 3px;
    letter-spacing: 1px;
  }

  .member-name {
    color: #fff;
    font-size: 22px;
    line-height: 22px;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    letter-spacing: 0.2px;
  }

  .member-info {
    padding-left: 8px;
    min-width: 0;
  }

  .member-city {
    font-size: 15px;
  }

  .member-account {
    font-size: 13px;
  }

  .member-city img,
  .stat-account {
    width: 15px;
    height: 15px;
  }

  .x_user {
    display: none;
    width: 58px;
    height: 58px;
    margin-right: 0;
    border: 2px solid #00aaff;
  }

  .member-extra {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0px;
    margin-left: auto;
    margin-right: 0;
    color: #ccc;
    line-height: 1.6;
    white-space: nowrap;
    transform: translateY(20px);
  }

  .member-extra[data-account="Standard"] .btn-register {
    display: none;
  }

  .member-extra[data-account="Premium"] .btn-login {
    display: none;
  }
}
