:root {
  --bs-bg-base: #ffffff;
  --bs-bg-muted: #f8fafc;
  --bs-bg-soft: #f1f5f9;
  --bs-border: #e2e8f0;
  --bs-border-strong: #cbd5e1;
  --bs-text: #0f172a;
  --bs-muted: #64748b;
  --bs-black: #000000;
  --bs-white: #ffffff;
  --bs-magenta: #d900c4;
  --bs-blue: #2a61ff;
  --bs-gradient: linear-gradient(90deg, #d900c4, #8b18ff);
  --bs-radius: 8px;
  --bs-radius-control: 999px;
  --bs-shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.04);
  --bs-shadow-panel: 0 18px 42px rgba(15, 23, 42, 0.08);
}

html,
body {
  letter-spacing: 0;
}

body,
button,
input,
textarea,
select {
  font-family: "Inter", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not(.workspace-body) {
  background:
    radial-gradient(circle at 8% -8%, rgba(42, 97, 255, 0.06), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(217, 0, 196, 0.055), transparent 28rem),
    var(--bs-bg-base);
  color: var(--bs-text);
}

body:not(.workspace-body) .main-content {
  background: transparent;
}

.header-custom,
.workspace-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--bs-border);
  box-shadow: none !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--bs-text);
  padding-bottom: 0 !important;
}

.header-custom {
  line-height: 1.6;
}

.header-custom .container,
.header-custom .header-container,
.workspace-header__container {
  max-width: 1440px;
  margin: 0 auto;
}

.header-custom .header-container.workspace-header__container {
  padding-inline: 0;
}

.header-custom .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--bs-border);
}

.header-custom .bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  border-top: 0 !important;
  padding: 12px 24px !important;
  min-height: 56px;
}

.header-custom .top-left,
.header-custom .top-right {
  display: flex;
  align-items: center;
}

.header-custom .top-left {
  gap: 32px;
}

.header-custom .top-right {
  gap: 20px;
}

.header-custom .logo-link {
  color: var(--bs-text) !important;
  gap: 10px;
  padding: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header-custom .logo {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.header-custom .logo-wordmark {
  color: var(--bs-text) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1;
}

.header-custom .role-switcher,
.workspace-header__mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: var(--bs-radius-control);
  background: var(--bs-bg-soft);
}

.header-custom .role-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 0 !important;
  border-radius: var(--bs-radius-control) !important;
  color: var(--bs-muted) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  box-shadow: none !important;
}

.header-custom .role-btn.active,
.header-custom .role-btn:hover {
  background: var(--bs-bg-base) !important;
  color: var(--bs-text) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

.header-custom .role-btn {
  line-height: normal;
}

.header-custom .menu-list {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-custom .menu-item {
  color: var(--bs-muted) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header-custom .menu-item:hover,
.header-custom .menu-item.active {
  color: var(--bs-text) !important;
}

.header-custom .btn-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: var(--bs-radius-control);
  background: var(--bs-gradient) !important;
  color: var(--bs-white) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 10px 22px rgba(217, 0, 196, 0.18);
  transition: filter 0.2s ease;
}

.header-custom .btn-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--bs-radius-control);
  animation: calm-ripple 2.5s infinite ease-out;
}

.header-custom .btn-animated:hover {
  filter: brightness(1.1);
}

@keyframes calm-ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 0, 196, 0.28);
  }

  100% {
    box-shadow: 0 0 0 8px rgba(217, 0, 196, 0);
  }
}

.header-custom .lang-toggle,
.workspace-header .dropdown-toggle {
  color: var(--bs-text) !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--bs-radius);
  text-decoration: none;
  padding: 8px;
}

.header-custom .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: normal;
}

.header-custom .lang-toggle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.header-custom .lang-toggle:hover,
.workspace-header .dropdown-toggle:hover {
  background: var(--bs-bg-muted);
}

.header-custom .auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-custom .btn-login {
  color: var(--bs-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-custom .btn-login:hover {
  color: var(--bs-muted);
}

.header-custom .btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  color: var(--bs-white);
  background: var(--bs-black);
  border-radius: var(--bs-radius-control);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.header-custom .btn-signup:hover {
  color: var(--bs-white);
  opacity: 0.82;
}

.workspace-header .workspace-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--bs-text);
  background: transparent;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius-control);
  font-size: 14px;
  font-weight: 600;
}

.header-custom .workspace-topnav__panels {
  flex: 1 1 auto;
  min-width: 0;
}

.header-custom .workspace-topnav__list {
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: auto;
}

.header-custom .dashboard-top-link {
  gap: 0;
}

.header-custom .dashboard-top-link__icon {
  display: none;
}

.header-custom .dashboard-top-link:not(.btn-animated):hover,
.header-custom .dashboard-top-link:not(.btn-animated).active {
  background: transparent !important;
  color: var(--bs-text) !important;
}

.header-custom .dashboard-profile {
  position: relative;
  --profile-text: #111827;
  --profile-muted: #64748b;
  --profile-border: #e2e8f0;
  --profile-soft: #f8fafc;
  --profile-shadow: 0 14px 36px rgba(15, 23, 42, 0.11);
}

.header-custom .dashboard-profile__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--profile-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--profile-text);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.header-custom .dashboard-profile__trigger:hover,
.header-custom .dashboard-profile__trigger:focus-visible,
.header-custom .dashboard-profile__trigger.show {
  color: var(--profile-text);
  border-color: #cbd5e1;
  background: var(--profile-soft);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  outline: none;
}

.header-custom .dashboard-profile__trigger::after {
  margin-left: 0.05rem;
  border-top-width: 0.3em;
  border-right-width: 0.3em;
  border-left-width: 0.3em;
  opacity: 0.45;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.header-custom .dashboard-profile__trigger:hover::after,
.header-custom .dashboard-profile__trigger.show::after {
  opacity: 0.8;
}

.header-custom .dashboard-profile__trigger.show::after {
  transform: rotate(180deg);
}

.header-custom .dashboard-profile__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #1f2937;
  box-shadow: none;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-custom .dashboard-profile__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.12;
}

.header-custom .dashboard-profile__eyebrow {
  color: var(--profile-muted) !important;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
}

.header-custom .dashboard-profile__name {
  display: block;
  max-width: 154px;
  overflow: hidden;
  color: var(--profile-text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-custom .dropdown-menu {
  min-width: 140px;
  padding: 8px;
  border: 1px solid var(--bs-border) !important;
  border-radius: var(--bs-radius) !important;
  box-shadow: var(--bs-shadow-panel) !important;
}

.header-custom .dropdown-item {
  border-radius: 6px;
  color: var(--bs-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  padding: 8px 12px;
}

.header-custom .dropdown-item:hover,
.header-custom .dropdown-item:focus,
.header-custom .dropdown-item.active,
.header-custom .dropdown-item:active {
  background: var(--bs-bg-muted) !important;
  color: var(--bs-text) !important;
}

.header-custom .lang-dropdown-wrapper .dropdown-menu {
  min-width: 132px;
}

.header-custom .dashboard-profile__menu {
  min-width: 286px;
  margin-top: 8px !important;
  padding: 8px;
  border: 1px solid var(--profile-border) !important;
  border-radius: 14px !important;
  background: #ffffff;
  box-shadow: var(--profile-shadow) !important;
  transform-origin: top right;
}

.header-custom .dashboard-profile__menu.show {
  animation: dashboard-profile-menu-in 0.16s ease-out both;
}

.header-custom .dashboard-profile__menu-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 5px;
  padding: 7px 9px 10px;
  border-bottom: 1px solid #eef2f7;
  min-width: 0;
}

.header-custom .dashboard-profile__menu-eyebrow {
  color: var(--profile-muted) !important;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.header-custom .dashboard-profile__menu-name {
  overflow: hidden;
  color: var(--profile-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-custom .dropdown-item.dashboard-profile__item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 40px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 650;
  transition: color 0.14s ease, background 0.14s ease;
}

.header-custom .dropdown-item.dashboard-profile__item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.14s ease, background 0.14s ease;
}

.header-custom .dropdown-item.dashboard-profile__item span {
  flex: 1 1 auto;
  min-width: 0;
}

.header-custom .dropdown-item.dashboard-profile__item:hover,
.header-custom .dropdown-item.dashboard-profile__item:focus,
.header-custom .dropdown-item.dashboard-profile__item.active {
  background: #f8fafc !important;
  color: var(--profile-text) !important;
}

.header-custom .dropdown-item.dashboard-profile__item:hover i,
.header-custom .dropdown-item.dashboard-profile__item:focus i,
.header-custom .dropdown-item.dashboard-profile__item.active i {
  background: #e2e8f0;
  color: #334155;
}

.header-custom .dropdown-item.dashboard-profile__item.text-danger {
  color: #c0262d !important;
}

.header-custom .dropdown-item.dashboard-profile__item.text-danger i {
  background: rgba(220, 38, 38, 0.07);
  color: #dc2626;
}

.header-custom .dropdown-item.dashboard-profile__item.text-danger:hover,
.header-custom .dropdown-item.dashboard-profile__item.text-danger:focus {
  background: rgba(220, 38, 38, 0.07) !important;
  color: #b91c1c !important;
}

.header-custom .dashboard-profile__menu .dropdown-divider {
  margin: 7px 4px;
  border-color: rgba(15, 23, 42, 0.08);
  opacity: 1;
}

@keyframes dashboard-profile-menu-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 767.98px) {
  .header-custom .dashboard-profile__trigger {
    gap: 0;
    min-height: 44px;
    padding: 3px;
  }

  .header-custom .dashboard-profile__copy,
  .header-custom .dashboard-profile__trigger::after {
    display: none;
  }

  .header-custom .dashboard-profile__menu {
    min-width: min(286px, calc(100vw - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-custom .dashboard-profile__trigger,
  .header-custom .dashboard-profile__trigger::after,
  .header-custom .dashboard-profile__menu.show,
  .header-custom .dropdown-item.dashboard-profile__item,
  .header-custom .dropdown-item.dashboard-profile__item i {
    animation: none;
    transition: none;
  }
}

.btn-dark,
.btn-outline-dark,
.btn-outline-secondary,
.btn-secondary,
.btn-primary,
.btn-theme,
.btn-primary-gradient {
  border-radius: var(--bs-radius-control) !important;
  font-weight: 700;
}

.btn-dark,
.btn-primary,
.btn-theme,
.btn-primary-gradient {
  background: var(--bs-black) !important;
  border-color: var(--bs-black) !important;
  color: var(--bs-white) !important;
}

.btn-primary-gradient {
  background: var(--bs-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 26px rgba(217, 0, 196, 0.16);
}

.btn-dark:hover,
.btn-primary:hover,
.btn-theme:hover,
.btn-primary-gradient:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.site-footer {
  --footer-bg: #0a0b0d;
  --footer-border: rgba(255, 255, 255, 0.05);
  --footer-text: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
  color: var(--footer-text);
  background-color: var(--footer-bg);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 8px
  );
  border-top: 1px solid var(--footer-border);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}

.site-footer::before {
  top: -10%;
  right: 10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 59, 143, 0.1) 0%, transparent 60%);
}

.site-footer::after {
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 120, 255, 0.05) 0%, transparent 60%);
}

.site-footer .footer-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.site-footer .footer-col-title {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer .footer-menu a {
  display: inline-block;
  color: var(--footer-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-footer .footer-menu a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transform: translateX(6px);
}

.site-footer .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-top: 60px;
  border-top: 1px solid var(--footer-border);
}

.site-footer .footer-socials {
  display: flex;
  gap: 20px;
}

.site-footer .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-footer .social-link:hover {
  color: #ffffff;
  background-color: #ff3b8f;
  border-color: #ff3b8f;
  box-shadow: 0 10px 25px rgba(255, 59, 143, 0.4);
  transform: translateY(-5px);
}

.site-footer .footer-copyright {
  max-width: 880px;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 1024px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .site-footer .footer-bottom {
    gap: 28px;
    padding-top: 40px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 80px 20px 48px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-socials {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

.workspace-body {
  --workspace-bg: var(--bs-bg-base);
  --workspace-surface: rgba(255, 255, 255, 0.94);
  --workspace-surface-strong: var(--bs-white);
  --workspace-border: var(--bs-border);
  --workspace-border-strong: var(--bs-border-strong);
  --workspace-text: var(--bs-text);
  --workspace-muted: var(--bs-muted);
  --workspace-accent: var(--bs-magenta);
  --workspace-accent-dark: #8b18ff;
  --workspace-accent-soft: rgba(217, 0, 196, 0.09);
  --workspace-focus-rgb: 42, 97, 255;
  --workspace-shadow: var(--bs-shadow-panel);
  --workspace-shadow-soft: var(--bs-shadow-soft);
  --workspace-radius-xl: var(--bs-radius);
  --workspace-radius-lg: var(--bs-radius);
  --workspace-radius-md: var(--bs-radius);
  background:
    radial-gradient(circle at 4% -8%, rgba(42, 97, 255, 0.07), transparent 30rem),
    radial-gradient(circle at 96% 0%, rgba(217, 0, 196, 0.06), transparent 28rem),
    var(--bs-bg-base) !important;
}

.workspace-shell {
  padding-top: 1.25rem;
}

.workspace-sidebar__surface,
.dashboard-sidebar__surface,
.dashboard-panel,
.dashboard-filter-panel,
.dashboard-table-panel,
.workspace-body .card,
.workspace-body .result table {
  border-radius: var(--bs-radius) !important;
  border: 1px solid var(--bs-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--bs-shadow-soft) !important;
}

.dashboard-page-head__eyebrow,
.dashboard-sidebar__eyebrow,
.dashboard-profile__eyebrow,
.dashboard-profile__menu-eyebrow,
.dashboard-nav-group__label,
.dashboard-hero__eyebrow,
.dashboard-mini-card__label,
.dashboard-stat-card__label,
.report-meta-card span {
  letter-spacing: 0 !important;
  color: var(--bs-muted) !important;
}

.dashboard-page-head__title,
.dashboard-hero__title,
.dashboard-sidebar__title {
  color: var(--bs-text) !important;
  letter-spacing: 0 !important;
}

.dashboard-nav-link,
.dashboard-sidebar__backlink {
  border-radius: var(--bs-radius) !important;
}

body.workspace-body.workspace-sidebar-collapsed .dashboard-sidebar__surface {
  border-radius: 1.35rem !important;
}

body.workspace-body.workspace-sidebar-collapsed .dashboard-nav-link,
body.workspace-body.workspace-sidebar-collapsed .dashboard-sidebar__backlink {
  border-radius: 0.9rem !important;
}

body.workspace-body.workspace-sidebar-collapsed .dashboard-nav-link__icon {
  border-radius: 0.75rem !important;
}

.dashboard-nav-link:hover:not(.is-active):not(.active),
.dashboard-sidebar__backlink:hover {
  background: var(--bs-bg-soft) !important;
  color: var(--bs-text) !important;
}

.dashboard-nav-link.is-active,
.dashboard-nav-link.is-active:hover,
.dashboard-nav-link.active,
.dashboard-nav-link.active:hover {
  background: var(--bs-black) !important;
  border-color: var(--bs-black) !important;
  color: var(--bs-white) !important;
}

.dashboard-nav-link.is-active .dashboard-nav-link__icon,
.dashboard-nav-link.active .dashboard-nav-link__icon {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--bs-white) !important;
}

.workspace-body .form-control,
.workspace-body .form-select,
.workspace-body .selectpicker-lite > .dropdown-toggle {
  border-radius: var(--bs-radius) !important;
  border-color: var(--bs-border-strong) !important;
  background: var(--bs-white) !important;
}

.workspace-body .form-control:focus,
.workspace-body .form-select:focus {
  border-color: rgba(var(--workspace-focus-rgb), 0.48) !important;
  box-shadow: 0 0 0 0.22rem rgba(var(--workspace-focus-rgb), 0.10) !important;
}

.workspace-body .input-group-date > .form-control:focus {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.workspace-body .result thead th {
  background: var(--bs-black) !important;
  color: var(--bs-white) !important;
  letter-spacing: 0 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  text-shadow: none !important;
}

.workspace-body .result tbody tr:nth-child(even) td {
  background: var(--bs-bg-muted) !important;
}

.workspace-body .result tbody tr:hover td {
  background: rgba(42, 97, 255, 0.055) !important;
  border-top-color: rgba(42, 97, 255, 0.12) !important;
}

.workspace-body .page-item.active .page-link {
  background: var(--bs-black) !important;
  border-color: var(--bs-black) !important;
}

.document-page,
.kb-page-v2 {
  background: transparent !important;
}

.accordion-item,
.program-card-v2,
.showcase-card {
  border-radius: var(--bs-radius) !important;
  border: 1px solid var(--bs-border) !important;
  box-shadow: var(--bs-shadow-soft) !important;
}

.auth-page {
  min-height: calc(100vh - var(--header-height, 136px));
  display: flex;
  align-items: center;
  padding: 32px 24px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.95)),
    repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.035) 0, rgba(15, 23, 42, 0.035) 1px, transparent 1px, transparent 14px) !important;
}

.auth-page > .container {
  width: 100%;
}

.auth-page > .container .auth-form-wrapper {
  max-width: 520px;
  margin-inline: auto;
}

.auth-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.auth-shell--register {
  width: min(1240px, 100%);
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
}

.auth-page--login .auth-shell,
.auth-page--register .auth-shell {
  grid-template-columns: 1fr;
  justify-content: center;
}

.auth-page--login .auth-shell {
  width: min(560px, 100%);
}

.auth-page--register .auth-shell {
  width: min(760px, 100%);
}

.auth-page--reset .auth-shell {
  width: min(560px, 100%);
  grid-template-columns: 1fr;
  justify-content: center;
}

.auth-visual,
.auth-form-wrapper {
  border: 1px solid var(--bs-border) !important;
  border-radius: var(--bs-radius) !important;
  box-shadow: var(--bs-shadow-panel) !important;
}

.auth-visual {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  color: var(--bs-white);
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.94), rgba(15, 23, 42, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 14px);
}

.auth-brand,
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.auth-brand:hover,
.auth-logo:hover {
  color: inherit;
}

.auth-brand__logo,
.auth-logo .logo {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
}

.auth-brand__word,
.auth-logo span {
  color: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.auth-visual__content {
  max-width: 440px;
  padding-block: 26px 22px;
}

.auth-eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-visual h1 {
  margin: 0;
  color: var(--bs-white);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-visual p {
  color: rgba(255, 255, 255, 0.72);
}

.auth-visual__content > p:last-child {
  max-width: 390px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.auth-signal-list {
  display: grid;
  gap: 10px;
}

.auth-signal {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--bs-radius);
  background: rgba(255, 255, 255, 0.055);
}

.auth-signal span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bs-radius);
  background: rgba(255, 255, 255, 0.10);
  color: var(--bs-white);
  font-size: 18px;
}

.auth-signal strong,
.auth-signal small {
  display: block;
}

.auth-signal strong {
  color: var(--bs-white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.auth-signal small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.auth-form-panel {
  min-width: 0;
}

.auth-form-wrapper {
  min-height: 100%;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96) !important;
}

.auth-form-header {
  margin-bottom: 28px;
}

.auth-form-header .auth-logo {
  display: none;
  color: var(--bs-text);
  margin-bottom: 22px;
}

.auth-page--login .auth-form-header .auth-logo,
.auth-page--register .auth-form-header .auth-logo,
.auth-page--reset .auth-form-header .auth-logo {
  display: inline-flex;
}

.auth-form-header h2 {
  margin: 0;
  color: var(--bs-text);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-form-header p {
  margin: 10px 0 0;
  color: var(--bs-muted);
  font-size: 15px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-form-wrapper .form-group-v2 {
  margin: 0;
}

.auth-form-wrapper .form-group-v2::after {
  content: none;
}

.auth-form-wrapper .form-label,
.auth-label-row .form-label {
  margin: 0 0 8px;
  color: var(--bs-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.auth-input {
  --auth-input-bg: var(--bs-white);
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius);
  background: var(--auth-input-bg);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input:focus-within {
  --auth-input-bg: #f7f9ff;
  border-color: rgba(42, 97, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(42, 97, 255, 0.10);
  background: var(--auth-input-bg);
}

.auth-input:has(.form-control-v2.is-invalid) {
  border-color: rgba(220, 53, 69, 0.65);
}

.auth-input > i {
  width: 44px;
  flex: 0 0 44px;
  align-self: stretch;
  display: grid;
  place-items: center;
  color: var(--bs-muted);
  font-size: 17px;
  transition: color 0.18s ease;
}

.auth-input:focus-within > i {
  color: #2a61ff;
}

.auth-input .form-control-v2 {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px 0 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: var(--bs-text);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none !important;
}

.auth-input .form-control-v2:focus {
  border: 0 !important;
  outline: 0;
}

.auth-input .form-control-v2:-webkit-autofill,
.auth-input .form-control-v2:-webkit-autofill:hover,
.auth-input .form-control-v2:-webkit-autofill:focus,
.auth-input .form-control-v2:autofill {
  -webkit-text-fill-color: var(--bs-text);
  -webkit-box-shadow: 0 0 0 1000px var(--auth-input-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--auth-input-bg) inset !important;
  caret-color: var(--bs-text);
}

.auth-input + .invalid-feedback,
.auth-form-wrapper .form-group-v2:has(.form-control-v2.is-invalid) .invalid-feedback,
.auth-input:has(.form-control-v2.is-invalid) + .invalid-feedback {
  display: block;
}

.auth-form-wrapper .invalid-feedback {
  margin-top: 7px;
  color: #dc3545;
  font-size: 13px;
  line-height: 1.4;
}

.auth-password-strength {
  display: grid;
  gap: 7px;
  margin-top: -6px;
}

.auth-password-strength .progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.auth-password-strength .progress-bar {
  width: 0;
  min-width: 0;
  transition: width 0.18s ease;
}

.auth-password-strength .progress-text {
  min-height: 18px;
  color: var(--bs-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-link {
  color: var(--bs-text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
  color: var(--bs-blue);
  text-decoration: none;
}

.auth-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-captcha__image {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius);
  background: var(--bs-bg-muted);
}

.auth-captcha__image img {
  max-width: 100%;
  height: 58px;
  object-fit: contain;
}

.auth-captcha__refresh {
  width: 50px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius);
  background: var(--bs-white);
  color: var(--bs-text);
  font-size: 18px;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-captcha__refresh:hover,
.auth-captcha__refresh:focus {
  border-color: rgba(42, 97, 255, 0.46);
  color: var(--bs-blue);
  box-shadow: 0 0 0 4px rgba(42, 97, 255, 0.10);
}

.auth-captcha__refresh:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: var(--bs-radius-control) !important;
  font-size: 15px;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
  color: var(--bs-muted);
  font-size: 14px;
}

.auth-alert {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--bs-radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.auth-alert i {
  margin-top: 2px;
  font-size: 17px;
}

.auth-alert--success {
  border: 1px solid rgba(25, 135, 84, 0.18);
  background: rgba(25, 135, 84, 0.08);
  color: #146c43;
}

.auth-alert--danger {
  border: 1px solid rgba(220, 53, 69, 0.18);
  background: rgba(220, 53, 69, 0.08);
  color: #b02a37;
}

.auth-actions {
  display: grid;
  gap: 12px;
}

.auth-actions .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .auth-shell,
  .auth-shell--register {
    width: min(640px, 100%);
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: auto;
    padding: 28px;
  }

  .auth-visual__content {
    padding-block: 36px 24px;
  }

  .auth-visual h1 {
    font-size: 36px;
  }

  .auth-signal-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-signal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .auth-page {
    min-height: calc(100vh - var(--header-height, 112px));
    padding: 24px 16px;
    align-items: flex-start;
  }

  .auth-visual {
    display: none;
  }

  .auth-form-wrapper {
    padding: 24px;
  }

  .auth-form-header {
    margin-bottom: 22px;
  }

  .auth-form-header .auth-logo {
    display: inline-flex;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .auth-captcha {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .auth-captcha__refresh {
    width: 48px;
  }

  .header-custom .top-row,
  .header-custom .bottom-row {
    padding-inline: 16px !important;
  }

  .header-custom .bottom-row {
    overflow-x: auto;
  }

  .header-custom .top-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .header-custom .top-left,
  .header-custom .top-right {
    flex-wrap: wrap;
    gap: 16px;
  }

  .header-custom .menu-list {
    flex-wrap: nowrap;
    gap: 24px;
  }
}
