:root {
  --wishka-primary: #6250db;
  --wishka-primary-dark: #4e3bbb;
  --wishka-ink: #28233f;
  --wishka-muted: #726d86;
  --wishka-soft: #f0edfc;
  --wishka-border: #e7e3f1;
  --bs-body-font-family: Vazirmatn, Tahoma, sans-serif;
  --bs-body-color: var(--wishka-ink);
  --bs-body-bg: #f8f7fc;
  --bs-primary-rgb: 98, 80, 219;
  --bs-border-color: var(--wishka-border);
  --bs-link-color: var(--wishka-primary);
  --bs-link-hover-color: var(--wishka-primary-dark);
}
body {
  min-height: 100vh;
  line-height: 1.8;
}
a {
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  color: var(--wishka-ink);
  font-weight: 700;
}
h1 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.5;
  margin: 0;
}
h2 {
  font-size: 1.12rem;
  line-height: 1.6;
}
h3 {
  font-size: 1rem;
  line-height: 1.7;
}
.hidden {
  display: none !important;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  inset-block-start: -80px;
  inset-inline-start: 20px;
  background: white;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 12px;
}
.skip-link:focus {
  inset-block-start: 10px;
}
.app-navbar {
  background: #ffffffed;
  border-bottom: 1px solid var(--wishka-border);
  padding: 15px 0;
  backdrop-filter: blur(16px);
}
.navbar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: var(--wishka-ink);
  font-weight: 700;
  font-size: 1.3rem;
}
.navbar-brand:hover {
  color: var(--wishka-primary);
}
.navbar-brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--wishka-muted);
  margin-top: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--wishka-primary);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 5px 14px #6250db22;
}
.brand-mark .icon {
  width: 25px;
  height: 25px;
}
.navbar-nav {
  gap: 8px;
}
.app-navbar .nav-link {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #655f79;
  padding: 10px 16px !important;
  font-size: 13px;
  border-radius: 12px;
}
.app-navbar .nav-link:hover {
  background: #f8f6ff;
  color: var(--wishka-primary);
}
.app-navbar .nav-link.active {
  background: var(--wishka-soft);
  color: #4b37b7;
  font-weight: 700;
}
.navbar-toggler {
  border-color: var(--wishka-border);
  padding: 7px;
  border-radius: 11px;
}
.navbar-toggler-icon {
  width: 24px;
  height: 24px;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wishka-primary);
  --bs-btn-border-color: var(--wishka-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wishka-primary-dark);
  --bs-btn-hover-border-color: var(--wishka-primary-dark);
  --bs-btn-active-bg: var(--wishka-primary-dark);
  --bs-btn-active-border-color: var(--wishka-primary-dark);
  --bs-btn-disabled-bg: #8f83d8;
  --bs-btn-disabled-border-color: #8f83d8;
  --bs-btn-focus-shadow-rgb: 98, 80, 219;
}
.btn-secondary {
  --bs-btn-color: #574876;
  --bs-btn-bg: #f4f1fc;
  --bs-btn-border-color: #e6e0f5;
  --bs-btn-hover-color: #433268;
  --bs-btn-hover-bg: #eae4f9;
  --bs-btn-hover-border-color: #d3c7ed;
  --bs-btn-active-color: #433268;
  --bs-btn-active-bg: #eae4f9;
  --bs-btn-active-border-color: #d3c7ed;
  --bs-btn-disabled-color: #726d86;
  --bs-btn-disabled-bg: #f4f1fc;
  --bs-btn-disabled-border-color: #e6e0f5;
}
.btn-delete,
.btn-danger-soft {
  color: #a13c50;
  background: #fff2f4;
  border: 1px solid #f8e0e6;
}
.btn-delete:hover,
.btn-danger-soft:hover {
  color: #8a283b;
  background: #fce2e8;
  border-color: #e8bac5;
}
.btn:disabled {
  cursor: wait;
}
.btn-sm {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}
.main-container {
  padding-top: 38px;
  padding-bottom: 64px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.page-title-group {
  display: flex;
  gap: 17px;
  align-items: center;
}
.page-icon,
.small-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: #ece7fc;
  color: #6250db;
}
.page-icon .icon {
  width: 29px;
  height: 29px;
}
.small-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wishka-muted);
}
.page-description {
  margin: 6px 0 0;
  color: var(--wishka-muted);
  font-size: 13px;
  line-height: 1.9;
}
.page-status {
  color: var(--wishka-muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.page-status:empty {
  display: none;
}
.text-muted {
  color: var(--wishka-muted) !important;
}
.soft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 9px;
  background: var(--wishka-soft);
  color: #625482;
  font-size: 11px;
  white-space: nowrap;
}
.soft-badge:empty {
  display: none;
}
.back-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 22px;
  color: var(--wishka-muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 22px 0 16px;
}
.section-heading h2 {
  margin: 0;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px;
  background: white;
  border: 1px dashed #dcd3ef;
  border-radius: 22px;
}
.empty-state h2 {
  margin: 20px 0 10px;
}
.empty-state p {
  font-size: 13px;
  color: var(--wishka-muted);
  max-width: 380px;
  margin-bottom: 22px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--wishka-soft);
  color: var(--wishka-primary);
}
.empty-icon .icon {
  width: 32px;
  height: 32px;
}
.modal-content {
  border: 1px solid var(--wishka-border);
  border-radius: 22px;
  box-shadow: 0 24px 70px #28233f22;
}
.modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--wishka-border);
}
.modal-title {
  font-size: 1.15rem;
}
.modal-body {
  padding: 24px 26px;
}
#toast-container {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  display: grid;
  gap: 10px;
  z-index: 2000;
  max-width: min(380px, calc(100vw - 32px));
}
#toast-container .toast {
  display: block;
  opacity: 1;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px #28233f18;
  border: 1px solid var(--wishka-border);
  background: white;
  color: var(--wishka-ink);
  font-size: 13px;
  transition: opacity 0.3s;
}
#toast-container .toast-success {
  border-inline-start: 4px solid #228264;
}
#toast-container .toast-error {
  border-inline-start: 4px solid #b43e55;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #a79aec;
  outline-offset: 3px;
}
@media (max-width: 991px) {
  .app-navbar .navbar-collapse {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--wishka-border);
  }
  .navbar-nav {
    gap: 4px;
  }
  .logout-button {
    margin-top: 10px;
    width: 100%;
  }
}
@media (max-width: 575px) {
  .main-container {
    padding: 26px 20px 40px;
  }
  .app-nav-container {
    padding-inline: 20px;
  }
  .page-header {
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
  }
  .page-title-group {
    align-items: flex-start;
    gap: 12px;
  }
  .page-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }
  .page-icon .icon {
    width: 23px;
    height: 23px;
  }
  .page-header > .btn {
    width: 100%;
  }
  .page-description {
    font-size: 12px;
  }
  #toast-container {
    inset-inline-end: 16px;
  }
  .modal-body,
  .modal-header {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
