.auth-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-left: 1rem;
  flex-wrap: nowrap;
}

.auth-nav-collapse {
  display: flex;
  margin-left: auto;
}

.auth-nav-toggle {
  display: none;
  border: 1px solid rgba(var(--theme-primary-rgb, 13, 110, 253), 0.3);
  border-radius: 10px;
  background: #ffffff;
  width: 40px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.auth-nav-toggle:focus-visible {
  outline: 2px solid rgba(var(--theme-primary-rgb, 13, 110, 253), 0.5);
  outline-offset: 2px;
}

.auth-nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--theme-primary-dark, #0d3f98);
}

body {
  background: var(--theme-body-bg, #f8fafc);
}

.navbar.navbar-light {
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08) !important;
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 600;
  color: #334155;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
  color: var(--theme-primary, #0d6efd);
}

.page-header {
  background:
    radial-gradient(900px 280px at 15% -20%, rgba(var(--theme-primary-rgb, 13, 110, 253), 0.24), transparent 60%),
    linear-gradient(180deg, var(--theme-hero-from, #0b1220) 0%, var(--theme-hero-to, #0f1f3f) 100%);
}

.service-item,
.team-item,
.testimonial-item,
.price-item,
.users-table-wrap,
.users-kpi,
.users-hero,
.contact-page .contact-form .bg-light,
.auth-card,
.card-clean {
  border: 1px solid #e7edf7 !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.contact-page .contact-form .bg-light,
.bg-light.text-center.p-5 {
  background: #fff !important;
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 10px;
  border-color: #d9e4f5;
}


.auth-user-chip {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
  height: 26px;
  padding: 0 0.55rem;
  border: 1px solid rgba(var(--theme-primary-rgb, 13, 110, 253), 0.2);
  border-radius: 999px;
  background: var(--theme-primary-soft, #f5f8ff);
  color: var(--theme-primary-dark, #0f2b63);
  font-size: 0.72rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0;
  min-width: 64px;
  height: 26px;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.auth-btn-outline {
  color: var(--theme-primary-dark, #0d3f98);
  border: 1px solid rgba(var(--theme-primary-rgb, 13, 110, 253), 0.3);
  background: #ffffff;
}

.auth-btn-outline:hover {
  color: var(--theme-primary-dark, #0b347f);
  border-color: rgba(var(--theme-primary-rgb, 13, 110, 253), 0.45);
  background: var(--theme-primary-soft, #f4f8ff);
}

.auth-btn-primary {
  border: 1px solid var(--theme-primary, #0d61e3);
  background: var(--theme-primary, #0d6efd);
  color: #fff;
  box-shadow: 0 6px 14px rgba(var(--theme-primary-rgb, 13, 110, 253), 0.2);
}

.auth-btn-primary:hover {
  color: #fff;
  background: var(--theme-primary-dark, #0b5fd9);
  box-shadow: 0 8px 16px rgba(var(--theme-primary-rgb, 13, 110, 253), 0.24);
}

.admin-profile-menu {
  position: relative;
}

.admin-profile-trigger {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.admin-profile-trigger::-webkit-details-marker {
  display: none;
}

.admin-profile-trigger::after {
  content: "▾";
  font-size: 0.62rem;
  margin-left: 0.35rem;
  line-height: 1;
}

.admin-profile-menu[open] .admin-profile-trigger::after {
  content: "▴";
}

.avatar-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 46px;
  max-width: 220px;
}

.avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #123370;
  border: 1px solid rgba(var(--theme-primary-rgb, 13, 110, 253), 0.26);
  background: #e9f1ff;
  flex: 0 0 auto;
}

.avatar-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: #143363;
}

.admin-profile-head {
  border-bottom: 1px solid #e6edf9;
  padding: 0.35rem 0.5rem 0.48rem;
  margin-bottom: 0.2rem;
}

.admin-profile-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a2e4d;
}

.admin-profile-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.73rem;
  color: #5f6f85;
  word-break: break-word;
}

.admin-profile-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 190px;
  padding: 0.35rem;
  border: 1px solid #d8e4f8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-profile-dropdown a,
.admin-profile-dropdown button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: #22324d;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.48rem 0.58rem;
  text-decoration: none;
}

.admin-profile-dropdown a:hover,
.admin-profile-dropdown button:hover {
  background: #f2f6ff;
  color: var(--theme-primary-dark, #0d3f98);
}

.auth-card {
  border: 1px solid #e9eef7;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(9, 25, 56, 0.08);
}

.auth-page {
  min-height: calc(100vh - 90px);
  background:
    radial-gradient(circle at 90% 10%, rgba(var(--theme-primary-rgb, 13, 110, 253), 0.14), rgba(var(--theme-primary-rgb, 13, 110, 253), 0) 36%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%);
}

.auth-help {
  color: #5f6f85;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .navbar[data-auth-nav] {
    flex-wrap: wrap;
  }

  .auth-nav-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-right: 1rem;
  }

  .auth-nav-collapse {
    display: none;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid #e7edf7;
    background: #ffffff;
  }

  .auth-nav-collapse.is-open {
    display: block;
  }

  .auth-nav-actions {
    justify-content: flex-start;
    margin-left: 0;
    padding: 0.8rem 1rem 0.9rem;
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .auth-user-chip {
    max-width: 140px;
    width: 100%;
    justify-content: flex-start;
  }

  .auth-btn {
    flex: 0 0 auto;
    min-width: 64px;
    height: 26px;
    font-size: 0.72rem;
  }

  .admin-profile-dropdown {
    position: static;
    margin-top: 0.4rem;
    box-shadow: none;
    border-color: #e1e9f8;
  }

  .admin-profile-menu {
    width: 100%;
  }

  .avatar-profile-trigger {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
  }

  .avatar-name {
    max-width: 200px;
  }
}

@media (min-width: 992px) {
  .auth-nav-collapse {
    display: flex !important;
  }
}
