* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background: #f5f6f8;
  font-family: var(--font-main);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  align-items: center;
  color: #4e5566;
}

.nav-links a {
  text-decoration: none;
  color: #4e5566;
  position: relative;
  transition: 0.25s ease;
  padding: 5px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #111;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #000;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

.login-btn {
  border: 1px solid #ddd;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  background: transparent;
  transition: 0.2s ease;
}

.login-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 8px;
}

.sidebar li a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  text-decoration: none;
  color: #4e5566;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.sidebar li a i {
  width: 18px;
  min-width: 18px;
  text-align: center;
}

.sidebar li:hover a {
  background: #f5f6f8;
}

.sidebar li.active a {
  background: #585f70;
  color: #fff;
  font-weight: 600;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.main-content h2,
.main-content h3 {
  color: #4e5566;
  font-family: var(--font-main);
  font-weight: 600;
}

.main-content p {
  color: #41434c;
  font-family: var(--font-main);
}

.account-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 60px 60px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.sidebar {
  width: 250px;
  flex: 0 0 250px;

  position: sticky;
  top: 98px;

  height: calc(100vh - 118px);

  background: #fff;
  border-radius: 14px;
  padding: 20px;

  overflow-y: auto;

  border: 1px solid #ececec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);

  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.btn {
  background: #4e5566;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
}

.error-msg {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo {
  height: 15px;
  width: auto;
  object-fit: contain;
}

.user-logout-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(8px);

  z-index: 1000;
}

.user-logout-modal-box {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  width: 340px;
  text-align: center;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.user-logout-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.user-logout-text {
  font-size: 14px;
  color: #666;
}

.user-logout-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.user-logout-cancel {
  background: #e5e7eb;
  color: #222;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.user-logout-cancel:hover {
  background: #636363;
  color: #fff;
}

.user-logout-confirm {
  background: #ef4444;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

.user-logout-confirm:hover {
  background: #dc2626;
}

@media (max-width: 1100px) {
  .navbar {
    padding: 18px 30px;
  }

  .account-container {
    padding: 20px 30px 50px;
  }

  .sidebar {
    width: 210px;
    flex-basis: 210px;
    padding: 16px;
  }

  .sidebar li a {
    padding: 0 12px;
  }
}

@media (max-width: 850px) {
  .account-container {
    padding: 18px 20px 50px;
    gap: 16px;
  }

  .sidebar {
    width: 180px;
    flex-basis: 180px;
    padding: 14px;
  }

  .sidebar li a {
    gap: 10px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .account-container {
    padding: 16px 14px 40px;
    gap: 12px;
  }

  .sidebar {
    width: 64px;
    flex-basis: 64px;
    padding: 10px 8px;
    border-radius: 12px;
  }

  .sidebar li {
    margin-bottom: 8px;
  }

  .sidebar li a {
    width: 48px;
    height: 48px;

    justify-content: center;

    padding: 0;
    gap: 0;

    font-size: 0;
  }

  .sidebar li a i {
    width: auto;
    min-width: auto;
    font-size: 17px;
  }

  .main-content {
    width: calc(100% - 76px);
    min-width: 0;
  }

  .user-logout-modal-box {
    width: calc(100% - 40px);
    max-width: 340px;
  }
}

@media (max-width: 520px) {
  .navbar {
    padding: 14px 12px;
  }

  .account-container {
    padding: 12px 10px 35px;
    gap: 10px;
  }

  .sidebar {
    width: 56px;
    flex-basis: 56px;
    padding: 8px 5px;
  }

  .sidebar li a {
    width: 46px;
    height: 46px;
  }

  .sidebar li a i {
    font-size: 16px;
  }

  .main-content {
    width: calc(100% - 66px);
  }

  .user-logout-actions {
    flex-wrap: wrap;
  }
}