:root {
  --ux-bg: #f8f4ef;
  --ux-panel: #ffffff;
  --ux-border: #eadfce;
  --ux-text: #1c2a41;
  --ux-muted: #60708a;
  --ux-primary: #ef7d1a;
  --ux-primary-dark: #d5670f;
  --ux-primary-soft: #fff1e4;
  --ux-secondary: #223759;
  --ux-secondary-soft: #334f78;
  --ux-success: #138e63;
  --ux-danger: #cb3a4d;
  --ux-warning: #c88405;
  --ux-shadow-sm: 0 6px 18px rgba(33, 45, 70, 0.08);
  --ux-shadow-md: 0 16px 40px rgba(33, 45, 70, 0.14);
  --ux-radius-sm: 10px;
  --ux-radius-md: 14px;
  --ux-radius-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--ux-text);
  background:
    radial-gradient(circle at 10% -20%, rgba(239, 125, 26, 0.16), transparent 36%),
    radial-gradient(circle at 95% 0%, rgba(34, 55, 89, 0.11), transparent 34%),
    var(--ux-bg);
}

a {
  color: var(--ux-secondary-soft);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--ux-primary-dark);
  opacity: 0.95;
}

#main {
  padding: 1.75rem;
}

#main .page-content,
#main .section {
  animation: ux-fade-in 0.24s ease;
}

.page-heading h3,
.page-heading .h3 {
  font-size: clamp(1.08rem, 1.7vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.page-heading .text-subtitle,
.page-heading p {
  color: var(--ux-muted) !important;
}

.breadcrumb {
  gap: 0.35rem;
}

.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a {
  color: var(--ux-muted);
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #b48760;
}

.sidebar-wrapper {
  background: linear-gradient(170deg, #1f3150 0%, #223759 55%, #2a4268 100%);
  box-shadow: var(--ux-shadow-md);
}

.sidebar-wrapper .sidebar-header {
  padding: 1.3rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-wrapper,
#main {
  transition: margin-left 0.24s ease, width 0.24s ease, padding 0.24s ease;
}

.sidebar-wrapper .sidebar-header .toggler {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sidebar-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 201, 157, 0.36);
  color: #fff;
  transform: translateY(-1px);
}

.sidebar-collapse-btn i {
  font-size: 1rem;
  line-height: 1;
}

.sidebar-wrapper .sidebar-header .logo a {
  color: #fff;
  font-size: 1.16rem;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.sidebar-wrapper .sidebar-header .logo .sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.sidebar-wrapper .sidebar-header .logo .sidebar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem;
}

.sidebar-wrapper .menu {
  margin-top: 1rem;
  padding: 0 1rem 1.25rem;
}

.sidebar-wrapper .menu .sidebar-title {
  color: rgba(244, 224, 202, 0.9);
  margin: 1.2rem 0 0.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-wrapper .menu .sidebar-link {
  color: #eaf0fb;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.sidebar-wrapper .menu .sidebar-link i,
.sidebar-wrapper .menu .sidebar-link svg {
  color: #ffd2ae;
}

.sidebar-wrapper .menu .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 201, 157, 0.36);
}

.sidebar-wrapper .menu .sidebar-item.active .sidebar-link {
  background: linear-gradient(145deg, #f2913f, #e57214);
  border-color: rgba(255, 228, 203, 0.7);
  box-shadow: 0 8px 18px rgba(10, 22, 45, 0.35);
}

.sidebar-wrapper .menu .submenu .submenu-item a {
  color: #dbe6f8;
  border-radius: 8px;
  margin: 0.08rem 0;
  padding: 0.58rem 1.5rem;
}

.sidebar-wrapper .menu .submenu .submenu-item a:hover {
  margin-left: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-wrapper .menu .sidebar-item.has-sub.is-open > .sidebar-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 201, 157, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sidebar-wrapper .menu .sidebar-item.has-sub.is-open > .sidebar-link span,
.sidebar-wrapper .menu .sidebar-item.has-sub.is-open > .sidebar-link i,
.sidebar-wrapper .menu .sidebar-item.has-sub.is-open > .sidebar-link svg {
  color: #ffffff;
}

.sidebar-wrapper .menu .submenu.active {
  display: block;
}

.sidebar-wrapper .menu .submenu .submenu-item > a.is-current {
  background: linear-gradient(145deg, rgba(242, 145, 63, 0.92), rgba(229, 114, 20, 0.92));
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(9, 20, 40, 0.28);
  border: 1px solid rgba(255, 226, 200, 0.45);
}

.sidebar-wrapper .menu .submenu .submenu-item > a.is-current i,
.sidebar-wrapper .menu .submenu .submenu-item > a.is-current svg {
  color: #ffffff;
}

.card {
  border: 1px solid var(--ux-border);
  border-radius: var(--ux-radius-lg);
  box-shadow: var(--ux-shadow-sm);
  background: var(--ux-panel);
  overflow: visible;
}

.card .card-header {
  padding: 1rem 1.3rem 0.65rem;
  border-bottom: 1px solid #f0e5d9;
}

.card .card-header h4,
.card .card-header .card-title {
  margin-bottom: 0;
  color: var(--ux-secondary);
  font-weight: 700;
}

.card .card-body {
  padding: 1rem 1.3rem;
  overflow: visible;
}

.card .card-footer {
  border-top: 1px solid #f0e5d9;
  background: #fffaf5;
}

.stats-icon {
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.nav-tabs {
  border-bottom: 1px solid #efe3d6;
  padding: 0.35rem 0.6rem 0;
  gap: 0.35rem;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.nav-tabs .nav-link {
  border-radius: 10px 10px 0 0;
  color: #536887;
  font-weight: 700;
  white-space: nowrap;
}

.nav-tabs .nav-link:hover {
  color: var(--ux-primary-dark);
  background: #fff3e8;
}

.nav-tabs .nav-link.active {
  color: var(--ux-primary-dark);
  background: #fff2e7;
}

.nav-tabs .nav-link.active:after {
  background-color: var(--ux-primary) !important;
  box-shadow: 0 2px 5px rgba(239, 125, 26, 0.4) !important;
}

.btn {
  border-radius: var(--ux-radius-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(17, 31, 58, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(17, 31, 58, 0.14);
}

.btn.btn-primary {
  border-color: var(--ux-primary-dark);
  background: linear-gradient(140deg, #f59a48, var(--ux-primary));
}

.btn.btn-danger {
  border-color: #c63349;
  background: linear-gradient(140deg, #dd455c, #c83349);
}

.btn.btn-success {
  border-color: #10885f;
  background: linear-gradient(140deg, #1ca777, #128a62);
}

.btn.btn-secondary {
  border-color: var(--ux-secondary-soft);
  background: linear-gradient(140deg, #3c5680, var(--ux-secondary));
}

.btn.btn-outline-secondary {
  border-color: #d4b494;
  color: #7a4e2a;
  background: #fff8f1;
}

.btn.btn-light-primary {
  background-color: var(--ux-primary-soft);
  color: #8c4e1a;
}

label,
.form-label,
.form-group label {
  color: #31496e !important;
  font-size: 0.91rem;
  font-weight: 700;
  margin-bottom: 0.36rem;
}

.form-control,
.form-select,
.dataTable-input {
  border: 1px solid #d8c7b6 !important;
  border-radius: var(--ux-radius-sm) !important;
  min-height: 42px;
  color: #243956;
  background-color: #fffdfb;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #8f7c69;
}

.form-control:focus,
.form-select:focus,
.dataTable-input:focus {
  border-color: var(--ux-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(239, 125, 26, 0.18) !important;
  background-color: #ffffff;
}

.input-group-text {
  border-color: #d8c7b6;
  background: #fff3e7;
  color: #81542d;
}

.choices {
  margin-bottom: 0;
  position: relative;
  z-index: 5;
}

.choices.is-open {
  z-index: 80;
}

.choices__inner {
  border: 1px solid #d8c7b6 !important;
  border-radius: var(--ux-radius-sm) !important;
  min-height: 42px;
  background-color: #fffdfb;
  color: #243956;
  padding: 0.45rem 0.75rem 0.25rem;
}

.choices[data-type*=select-one] .choices__inner {
  padding-bottom: 0.45rem;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner,
.choices__inner:focus-within {
  border-color: var(--ux-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(239, 125, 26, 0.18) !important;
  background-color: #ffffff;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  border: 1px solid #d8c7b6;
  border-radius: 10px;
  margin-top: 4px;
  box-shadow: 0 10px 24px rgba(22, 33, 53, 0.12);
  z-index: 90;
}

.choices[data-type*=select-one] .choices__input {
  min-height: 34px;
  border: 1px solid #e2d3c4 !important;
  border-radius: 8px !important;
  background-color: #ffffff;
  margin-bottom: 0.35rem;
}

.choices__placeholder {
  color: #8f7c69;
  opacity: 1;
}

.choices[data-type*=select-multiple] .choices__button,
.choices[data-type*=text] .choices__button {
  border-left-color: rgba(255, 255, 255, 0.6);
}

.choices__list--multiple .choices__item {
  background: var(--ux-primary);
  border-color: var(--ux-primary-dark);
  border-radius: 8px;
}

.text-primary {
  color: var(--ux-primary-dark) !important;
}

.bg-light-primary {
  background-color: var(--ux-primary-soft) !important;
  color: #8c4e1a !important;
}

.alert-primary {
  background-color: var(--ux-primary) !important;
  color: #fff !important;
}

.table,
.dataTable-table {
  color: #1c2f4a;
}

.table thead th,
.dataTable-table thead th {
  background: #fff3e6;
  color: #4d331f;
  font-weight: 700;
  font-size: 0.86rem;
  border-bottom: 1px solid #ebd8c4 !important;
  white-space: nowrap;
}

.table tbody td,
.dataTable-table tbody td {
  border-color: #f1e8df !important;
  vertical-align: middle;
  font-size: 0.88rem;
}

.table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: #fffdfa;
}

.table tbody tr:hover,
.dataTable-table tbody tr:hover {
  background: #fff4ea;
}

.dataTable-container {
  border: 1px solid #eadccc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.dataTable-top,
.dataTable-bottom {
  padding: 0.8rem 1rem;
  background: #fffaf4;
  border-bottom: 1px solid #f0e1d1;
}

.dataTable-bottom {
  border-top: 1px solid #f0e1d1;
  border-bottom: 0;
}

.table-responsive {
  border-radius: 12px;
  border: 1px solid #eadccc;
}

.modal .modal-content {
  border-radius: var(--ux-radius-md);
  border: 1px solid #eadccc;
  box-shadow: var(--ux-shadow-md);
}

.modal .modal-header {
  border-bottom-color: #f0e1d1;
}

.modal .modal-footer {
  border-top-color: #f0e1d1;
}

.toast {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(11, 29, 56, 0.24);
}

.pagination.pagination-primary .page-item.active .page-link {
  background-color: var(--ux-primary) !important;
  border-color: var(--ux-primary-dark) !important;
  box-shadow: 0 2px 5px rgba(239, 125, 26, 0.35) !important;
}

.nav-pills .nav-link.active {
  background-color: var(--ux-primary) !important;
  box-shadow: 0 2px 10px rgba(239, 125, 26, 0.35) !important;
}

.stats-icon.purple,
.stats-icon.blue {
  background-color: var(--ux-primary) !important;
}

.stats-icon.green {
  background-color: #1f9f74 !important;
}

.stats-icon.red {
  background-color: #d65158 !important;
}

footer .footer {
  margin-top: 1rem;
  padding: 0.9rem 0.75rem 0.2rem;
  border-top: 1px solid #e8d8c8;
  color: #60718a !important;
}

#auth {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(239, 125, 26, 0.34), transparent 35%),
    radial-gradient(circle at 90% 100%, rgba(255, 193, 135, 0.26), transparent 40%),
    linear-gradient(130deg, #1f3150 0%, #264064 48%, #2d4a72 100%);
}

#auth-card {
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 28px 46px rgba(10, 22, 48, 0.35);
}

#auth-card .auth-title {
  color: #13284a;
  font-size: clamp(1.6rem, 2vw, 1.95rem);
}

#auth-card .auth-subtitle {
  color: #5d6f89;
}

#auth-card .auth-logo span {
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ux-primary-dark);
}

.error-page .img-error {
  max-width: min(460px, 92%);
}

.error-page .error-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

:focus-visible {
  outline: 2px solid var(--ux-primary);
  outline-offset: 2px;
}

@keyframes ux-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  #main {
    margin-left: 0;
    padding: 1rem;
  }

  .sidebar-wrapper {
    box-shadow: 14px 0 34px rgba(8, 21, 41, 0.45);
  }
}

@media (max-width: 991px) {
  .card .card-header,
  .card .card-body {
    padding: 0.95rem 1rem;
  }

  .page-heading {
    margin-bottom: 1.35rem;
  }

  .page-heading .breadcrumb-header {
    float: none !important;
    margin-top: 0.65rem;
  }
}

@media (max-width: 767px) {
  header.py-3 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 0 0.65rem !important;
    margin: 0;
    position: relative;
    z-index: 9;
  }

  .burger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: auto;
    left: auto;
    z-index: 9;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--ux-primary);
    border: 0;
    box-shadow: none;
    padding: 0.1rem 0.2rem;
  }

  .burger-btn i {
    font-size: 1.9rem !important;
    color: var(--ux-primary);
    line-height: 1;
  }

  body.sidebar-open-mobile .burger-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .table,
  .dataTable-table {
    min-width: 700px;
  }

  .nav-tabs {
    padding: 0.35rem 0.35rem 0;
  }

  .btn {
    min-height: 40px;
  }

  .page-heading {
    margin-top: 0;
  }

  footer .footer {
    text-align: center;
  }

  footer .float-start,
  footer .float-end {
    float: none !important;
  }
}

@media (max-width: 575px) {
  #main {
    padding: 0.75rem;
  }

  .page-heading h3 {
    font-size: 1.05rem;
  }

  .card {
    border-radius: 14px;
  }

  .card .card-header,
  .card .card-body {
    padding: 0.85rem;
  }

  #auth {
    padding: 0.8rem;
  }

  #auth-card {
    padding: 1.5rem 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1200px) {
  :root {
    --ux-sidebar-width: 280px;
    --ux-sidebar-collapsed-width: 88px;
  }

  html {
    font-size: 15px;
  }

  .sidebar-wrapper {
    width: var(--ux-sidebar-width);
  }

  #sidebar:not(.active) .sidebar-wrapper {
    left: calc(-1 * var(--ux-sidebar-width));
  }

  #main {
    margin-left: var(--ux-sidebar-width);
    padding: 1.2rem;
  }

  .sidebar-wrapper .sidebar-header {
    padding: 1.05rem 1.1rem 0.85rem;
  }

  .sidebar-wrapper .menu {
    margin-top: 0.7rem;
    padding: 0 0.8rem 1rem;
  }

  .sidebar-wrapper .menu .sidebar-link {
    padding: 0.62rem 0.78rem;
    border-radius: 10px;
  }

  .sidebar-wrapper .menu .submenu .submenu-item a {
    padding: 0.48rem 1.25rem;
    font-size: 0.82rem;
  }

  .page-heading {
    margin-bottom: 1.1rem;
  }

  .page-heading h3,
  .page-heading .h3 {
    font-size: clamp(1rem, 1.35vw, 1.34rem);
  }

  .card {
    margin-bottom: 1.35rem;
  }

  .card .card-header {
    padding: 0.82rem 1rem 0.55rem;
  }

  .card .card-body {
    padding: 0.9rem 1rem;
  }

  .card .card-header h4,
  .card .card-header .card-title {
    font-size: 1.05rem;
  }

  .nav-tabs {
    padding: 0.28rem 0.45rem 0;
  }

  .nav-tabs .nav-link {
    padding: 0.62rem 0.95rem;
    font-size: 0.93rem;
  }

  label,
  .form-label,
  .form-group label {
    font-size: 0.84rem;
    margin-bottom: 0.28rem;
  }

  .form-control,
  .form-select,
  .dataTable-input,
  .choices__inner {
    min-height: 38px;
    font-size: 0.92rem;
  }

  .choices__inner {
    padding-top: 0.36rem;
    padding-bottom: 0.2rem;
  }

  .btn {
    min-height: 38px;
    padding: 0.5rem 0.88rem;
    font-size: 0.92rem;
  }

  body.sidebar-collapsed #main {
    margin-left: var(--ux-sidebar-collapsed-width);
  }

  body.sidebar-collapsed #sidebar.active .sidebar-wrapper {
    width: var(--ux-sidebar-collapsed-width);
  }

  body.sidebar-collapsed .sidebar-wrapper .sidebar-header {
    padding: 1rem 0.9rem 0.8rem;
    justify-content: center;
  }

  body.sidebar-collapsed .sidebar-wrapper .sidebar-header .logo {
    display: none;
  }

  body.sidebar-collapsed .sidebar-wrapper .sidebar-header .toggler {
    width: auto;
    justify-content: center;
  }

  body.sidebar-collapsed .sidebar-wrapper .menu {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-title,
  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-link span,
  body.sidebar-collapsed .sidebar-wrapper .menu .submenu,
  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-item.has-sub .submenu,
  body.sidebar-collapsed .sidebar-wrapper .menu .submenu.active {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-link {
    justify-content: center;
    padding: 0.72rem;
  }

  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-item.active .sidebar-link,
  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-link[aria-current="page"] {
    background: linear-gradient(145deg, #f2913f, #e57214);
    border-color: rgba(255, 228, 203, 0.75);
    box-shadow: 0 10px 20px rgba(10, 22, 45, 0.34);
  }

  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-link i,
  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-link svg {
    margin-right: 0 !important;
  }

  body.sidebar-collapsed .sidebar-wrapper .menu .sidebar-item.has-sub > .sidebar-link::after {
    display: none;
  }

  body.sidebar-collapsed .sidebar-collapse-btn {
    background: rgba(239, 125, 26, 0.16);
    border-color: rgba(255, 201, 157, 0.32);
  }

  .table-md.dataTable-table tr td,
  .table-md.dataTable-table tr th,
  .table-sm.dataTable-table tr td,
  .table-sm.dataTable-table tr th,
  .table.table-md tr td,
  .table.table-md tr th,
  .table.table-sm tr td,
  .table.table-sm tr th,
  .dataTable-table td,
  .dataTable-table thead th,
  .table td,
  .table thead th {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }

  .dataTable-top,
  .dataTable-bottom {
    padding: 0.65rem 0.85rem;
  }

  footer .footer {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
  }
}
.admin-topbar-wrap {
  margin-bottom: 1rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(232, 220, 207, 0.96);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(239, 125, 26, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 249, 242, 0.96), rgba(255, 255, 255, 0.95));
  box-shadow: 0 16px 34px rgba(19, 37, 62, 0.08);
}

.admin-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
  color: #1d3559;
}

.admin-topbar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 49, 75, 0.08);
  box-shadow: 0 10px 24px rgba(18, 49, 75, 0.08);
}

.admin-topbar__logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.admin-topbar__brand strong {
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.admin-topbar__eyebrow {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(239, 125, 26, 0.12);
  color: #a05619;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-topbar__divider {
  width: 1px;
  height: 20px;
  background: rgba(126, 144, 173, 0.28);
}

.admin-topbar__date {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #667a98;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.admin-topbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(218, 202, 188, 0.9);
  background: rgba(255, 255, 255, 0.88);
  color: #4d6384;
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-topbar__chip:hover {
  background: #fff3e7;
  border-color: rgba(239, 125, 26, 0.28);
}

.admin-topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.45rem 0.55rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(224, 212, 200, 0.9);
  min-width: 220px;
}

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

.admin-topbar__user-summary {
  cursor: pointer;
  list-style: none;
}

.admin-topbar__user-summary::-webkit-details-marker {
  display: none;
}

.admin-topbar__user-copy {
  min-width: 0;
  flex: 1;
}

.admin-topbar__user strong {
  display: block;
  color: #203a63;
  font-size: 0.87rem;
  font-weight: 800;
  line-height: 1.1;
}

.admin-topbar__user-copy span {
  display: block;
  color: #7285a0;
  font-size: 0.76rem;
  line-height: 1.15;
}

.admin-topbar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #223759, #304c78);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(23, 39, 64, 0.2);
}

.admin-topbar__caret {
  color: #7285a0;
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}

.admin-topbar__user-menu[open] .admin-topbar__user {
  border-color: rgba(239, 125, 26, 0.35);
  box-shadow: 0 14px 30px rgba(22, 37, 61, 0.12);
}

.admin-topbar__user-menu[open] .admin-topbar__caret {
  transform: rotate(180deg);
}

.admin-topbar__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 240px;
  padding: 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(224, 212, 200, 0.9);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(20, 36, 59, 0.16);
  z-index: 40;
}

.admin-topbar__menu-link,
.admin-topbar__menu-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.82rem 0.88rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #2a4167;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
}

.admin-topbar__menu-link:hover,
.admin-topbar__menu-button:hover {
  background: #fff4ea;
  color: var(--ux-primary-dark);
}

.admin-topbar__menu-button {
  cursor: pointer;
}

.admin-topbar__menu-form {
  margin: 0;
}

.settings-shell {
  display: grid;
  gap: 1rem;
}

.settings-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.45rem;
  border-radius: 22px;
  border: 1px solid rgba(231, 218, 206, 0.96);
  background:
    radial-gradient(circle at left top, rgba(239, 125, 26, 0.14), transparent 32%),
    radial-gradient(circle at right center, rgba(34, 55, 89, 0.1), transparent 34%),
    #fffdfb;
  box-shadow: var(--ux-shadow-sm);
}

.settings-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(239, 125, 26, 0.1);
  color: #9d5a1e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-hero__title {
  margin: 0.75rem 0 0.35rem;
  color: #1a345d;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  font-weight: 900;
}

.settings-hero__text {
  max-width: 680px;
  margin: 0;
  color: #637591;
  font-size: 0.96rem;
}

.settings-hero__meta {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.82rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(227, 214, 201, 0.9);
  color: #536884;
  font-size: 0.84rem;
  font-weight: 700;
}

.settings-hero__aside {
  min-width: 270px;
  max-width: 330px;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 216, 203, 0.92);
}

.settings-hero__aside-label {
  display: block;
  color: #7a8ea9;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.settings-hero__aside strong {
  display: block;
  color: #1d3559;
  font-size: 1rem;
  font-weight: 800;
}

.settings-hero__aside span {
  display: block;
  color: #71839d;
  font-size: 0.88rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.settings-card {
  border-radius: 22px;
  border: 1px solid rgba(231, 218, 206, 0.96);
  background: #fff;
  box-shadow: var(--ux-shadow-sm);
  overflow: hidden;
}

.settings-card__head {
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid #f1e7db;
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.92), rgba(255, 255, 255, 0.98));
}

.settings-card__eyebrow {
  display: block;
  color: #db7f1d;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-card__title {
  margin: 0.3rem 0 0;
  color: #1d3559;
  font-size: 1.15rem;
  font-weight: 900;
}

.settings-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.settings-form {
  display: grid;
  gap: 0.95rem;
}

.settings-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.settings-form__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.settings-help {
  margin: 0;
  color: #6e7f99;
  font-size: 0.86rem;
}

.settings-errors {
  margin: 0 0 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(203, 58, 77, 0.18);
  background: rgba(255, 244, 245, 0.96);
  color: #8f2f3e;
}

.settings-errors strong {
  display: block;
  margin-bottom: 0.35rem;
}

.settings-errors ul {
  margin: 0;
  padding-left: 1rem;
}

.settings-card .btn {
  min-height: 44px;
}

.page-heading {
  position: relative;
  margin-bottom: 1.2rem;
}

.page-heading .page-title {
  padding: 0.2rem 0 0.15rem;
}

.page-heading .breadcrumb-header {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(229, 215, 201, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 18px rgba(22, 36, 60, 0.06);
  backdrop-filter: blur(10px);
}

.page-heading .breadcrumb {
  margin-bottom: 0;
}

.page-heading .breadcrumb .breadcrumb-item,
.page-heading .breadcrumb .breadcrumb-item a {
  color: #607796;
  font-weight: 700;
}

.page-heading .breadcrumb .breadcrumb-item:last-child a,
.page-heading .breadcrumb .breadcrumb-item:last-child {
  color: #9f5b1f;
}

.admin-footer-wrap {
  margin-top: 1rem;
}

.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-top: 1px solid rgba(231, 218, 205, 0.95);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.2), rgba(255, 255, 255, 0.6));
}

.admin-footer__left,
.admin-footer__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-footer__brand {
  color: #1f3558;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-footer__copy,
.admin-footer__meta {
  color: #6e829f;
  font-size: 0.83rem;
  font-weight: 700;
}

.admin-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 55, 89, 0.08);
  color: #284168;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 991px) {
  .admin-topbar,
  .admin-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-topbar__actions,
  .admin-footer__right {
    justify-content: space-between;
  }

  .admin-topbar__user {
    min-width: 0;
    width: 100%;
  }

  .admin-topbar__dropdown {
    width: 100%;
    min-width: 0;
    position: static;
    margin-top: 0.5rem;
  }

  .page-heading .breadcrumb-header {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .admin-topbar-wrap {
    margin-bottom: 0.75rem;
  }

  #main {
    padding: 1rem;
  }

  .admin-topbar {
    padding: 0.8rem 0.85rem;
    border-radius: 16px;
  }

  .admin-topbar__brand {
    gap: 0.55rem;
  }

  .admin-topbar__divider {
    display: none;
  }

  .admin-topbar__chip,
  .admin-topbar__user {
    width: 100%;
  }

  .settings-grid,
  .settings-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-hero__aside {
    width: 100%;
    max-width: none;
  }

  .admin-footer {
    padding: 0.85rem 0.8rem;
    border-radius: 16px;
  }
}
