.card {
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 100%),
    rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s ease,
    filter 0.22s ease;
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.45),
    0 0 32px rgba(59, 130, 246, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-outline::after {
  display: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow:
    0 0 24px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .btn::after {
    display: none;
  }

  .btn:hover {
    filter: none;
  }
}

.btn-sm {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 7, 18, 0.55);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

.form-input:focus {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  background: rgba(8, 12, 24, 0.65);
}

.form-input::placeholder {
  color: #7f93ab;
}

.admin-textarea {
  min-height: 180px;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.admin-table thead th {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #9fb4cb;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #dbe6f3;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.admin-checkbox-row {
  margin-top: 4px;
}

.admin-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe6f3;
  font-size: 14px;
}

.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.alert-info {
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.pagination .is-active {
  background: rgba(37, 99, 235, 0.16);
  color: #ffffff;
}

.btn[disabled],
button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================
   TOASTS
   ========================= */

.toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  display: grid;
  gap: 14px;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;
}

.toast {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 18px 18px 16px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(8, 13, 25, 0.98), rgba(11, 17, 30, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 22px 0 0 22px;
  background: rgba(255,255,255,0.18);
}

.toast__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  user-select: none;
}

.toast__content {
  min-width: 0;
}

.toast__title {
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.toast__text {
  margin-top: 8px;
  color: #d4dfef;
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
}

.toast__actions {
  margin-top: 14px;
}

.toast__action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.toast__action:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.toast__close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  color: #cfe0f8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.toast__close:hover {
  transform: rotate(90deg);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.toast__progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  transform-origin: left center;
  pointer-events: none;
}

/* success */

.toast--success {
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.34),
    0 0 0 1px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.toast--success .toast__accent {
  background: linear-gradient(180deg, #34d399, #10b981);
}

.toast--success .toast__icon {
  background: linear-gradient(135deg, rgba(16,185,129,0.24), rgba(37,99,235,0.18));
  box-shadow: 0 14px 24px rgba(16,185,129,0.12);
}

.toast--success .toast__progress {
  background: linear-gradient(90deg, #34d399, #10b981);
}

/* error */

.toast--error {
  border-color: rgba(248, 113, 113, 0.22);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.34),
    0 0 0 1px rgba(239, 68, 68, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.toast--error .toast__accent {
  background: linear-gradient(180deg, #f87171, #ef4444);
}

.toast--error .toast__icon {
  background: linear-gradient(135deg, rgba(239,68,68,0.22), rgba(244,63,94,0.18));
  box-shadow: 0 14px 24px rgba(239,68,68,0.12);
}

.toast--error .toast__progress {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

/* info */

.toast--info {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.34),
    0 0 0 1px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.toast--info .toast__accent {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

.toast--info .toast__icon {
  background: linear-gradient(135deg, rgba(59,130,246,0.24), rgba(168,85,247,0.18));
  box-shadow: 0 14px 24px rgba(59,130,246,0.12);
}

.toast--info .toast__progress {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

/* warning */

.toast--warning {
  border-color: rgba(251, 191, 36, 0.22);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.34),
    0 0 0 1px rgba(245, 158, 11, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.toast--warning .toast__accent {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.toast--warning .toast__icon {
  background: linear-gradient(135deg, rgba(245,158,11,0.24), rgba(234,179,8,0.18));
  box-shadow: 0 14px 24px rgba(245,158,11,0.12);
}

.toast--warning .toast__progress {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

@media (max-width: 768px) {
  .card {
    padding: 18px;
    border-radius: 20px;
  }

  .btn {
    width: 100%;
  }

  .admin-page-head {
    align-items: stretch;
  }

  .toast-container {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

  .toast {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 16px;
    border-radius: 18px;
  }

  .toast__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 20px;
  }

  .toast__title {
    font-size: 18px;
  }

  .toast__text {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* ============================================================
   Header dropdown
   ============================================================ */

.site-header__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header__dropdown-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.86);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-header__dropdown-toggle span {
  color: rgba(147, 197, 253, 0.78);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.site-header__dropdown:hover .site-header__dropdown-toggle,
.site-header__dropdown:focus-within .site-header__dropdown-toggle {
  color: #ffffff;
}

.site-header__dropdown:hover .site-header__dropdown-toggle span,
.site-header__dropdown:focus-within .site-header__dropdown-toggle span {
  transform: rotate(180deg);
}

.site-header__dropdown-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 250px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.18), transparent 42%),
    rgba(8, 13, 29, 0.96);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.site-header__dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.site-header__dropdown:hover .site-header__dropdown-menu,
.site-header__dropdown:focus-within .site-header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-header__dropdown-menu a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(147, 197, 253, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.site-header__dropdown-menu a:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.055);
}

.site-header__dropdown-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(59, 130, 246, 0.10)),
    rgba(255, 255, 255, 0.05);
  font-size: 17px;
}

.site-header__dropdown-menu strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

.site-header__dropdown-menu small {
  display: block;
  margin-top: 4px;
  color: rgba(191, 219, 254, 0.70);
  font-size: 11px;
  font-weight: 800;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .site-header__dropdown {
    width: 100%;
    display: grid;
  }

  .site-header__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .site-header__dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .site-header__dropdown:hover .site-header__dropdown-menu,
  .site-header__dropdown:focus-within .site-header__dropdown-menu {
    display: grid;
  }
}

/* ============================================================
   Header More Dropdown — fixed
   ============================================================ */

.site-header,
.site-header__inner,
.site-nav {
  overflow: visible;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.site-nav-more__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(226, 232, 240, 0.86);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.site-nav-more__button:hover,
.site-nav-more:focus-within .site-nav-more__button,
.site-nav-more--active .site-nav-more__button {
  background: rgba(37, 99, 235, 0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.08);
}

.site-nav-more__arrow {
  color: rgba(147, 197, 253, 0.82);
  transition: transform 0.18s ease;
}

.site-nav-more:hover .site-nav-more__arrow,
.site-nav-more:focus-within .site-nav-more__arrow {
  transform: rotate(180deg);
}

.site-nav-more__menu {
  position: absolute;
  z-index: 500;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  gap: 8px;
  width: 280px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.20), transparent 44%),
    radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.10), transparent 42%),
    rgba(8, 13, 29, 0.97);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.site-nav-more__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.site-nav-more:hover .site-nav-more__menu,
.site-nav-more:focus-within .site-nav-more__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-nav-more__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.site-nav-more__item:hover,
.site-nav-more__item--active {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.055);
}

.site-nav-more__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(59, 130, 246, 0.12)),
    rgba(255, 255, 255, 0.05);
  color: rgba(226, 242, 255, 0.95);
}

.site-nav-more__icon .site-nav__svg {
  width: 19px;
  height: 19px;
}

.site-nav-more__body {
  min-width: 0;
}

.site-nav-more__body strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

.site-nav-more__body small {
  display: block;
  margin-top: 5px;
  color: rgba(191, 219, 254, 0.72);
  font-size: 11px;
  font-weight: 800;
}

/* Safety override against old dropdown styles */
.site-nav__dropdown,
.site-nav__dropdown-menu,
.site-nav__dropdown-toggle,
.site-nav__dropdown-item {
  all: unset;
}

/* Mobile */
@media (max-width: 900px) {
  .site-nav {
    align-items: stretch;
  }

  .site-nav-more {
    display: grid;
    width: 100%;
  }

  .site-nav-more__button {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav-more__menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .site-nav-more:hover .site-nav-more__menu,
  .site-nav-more:focus-within .site-nav-more__menu {
    display: grid;
    transform: none;
  }
}

/* ============================================================
   Header width fix — menu in one row
   ============================================================ */

.site-header {
  position: relative;
  z-index: 200;
}

.site-header .container {
  max-width: 1680px;
  width: min(1680px, calc(100% - 32px));
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 0 22px;
  overflow: visible;
}

.site-logo {
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.site-nav__link,
.site-nav-more__button {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-header__actions .btn {
  white-space: nowrap;
}

.site-header__cabinet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dropdown should float over content, not push header height */
.site-nav-more {
  position: relative;
  flex-shrink: 0;
}

.site-nav-more__menu {
  top: calc(100% + 12px);
}

/* Medium screens: slightly compact header */
@media (max-width: 1450px) {
  .site-header .container {
    max-width: 1500px;
    width: min(1500px, calc(100% - 24px));
  }

  .site-header__inner {
    gap: 16px;
    padding: 0 18px;
  }

  .site-logo {
    min-width: 0;
  }

  .site-nav__link,
  .site-nav-more__button {
    padding: 0 11px;
    font-size: 13px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .site-header__actions .btn {
    padding-left: 13px;
    padding-right: 13px;
  }
}

/* If screen is too narrow, allow layout to wrap only on mobile/tablet */
@media (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .site-logo {
    min-width: 0;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-header__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ============================================================
   Site footer modern
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 34px 0 28px;
}

.site-footer__shell {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(147, 197, 253, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.18), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(8, 13, 29, 0.88);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.site-footer__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(90px);
}

.site-footer__glow--one {
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: rgba(59, 130, 246, 0.28);
}

.site-footer__glow--two {
  left: -120px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  background: rgba(34, 197, 94, 0.14);
}

.site-footer__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) repeat(4, minmax(160px, 0.65fr));
  gap: 28px;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__brand-logo {
  display: block;
  max-width: 320px;
  text-decoration: none;
}

.site-footer__brand-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  filter: drop-shadow(0 14px 32px rgba(37, 99, 235, 0.28));
}

.site-footer__text {
  max-width: 460px;
  margin: 18px 0 0;
  color: rgba(219, 234, 254, 0.70);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 700;
}

.site-footer__server {
  max-width: 360px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

.site-footer__server span {
  display: block;
  color: rgba(203, 213, 225, 0.62);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.site-footer__copy {
  appearance: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.site-footer__copy:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.18);
}

.site-footer__column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.site-footer__title {
  margin-bottom: 4px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.site-footer__column a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.site-footer__column a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.48);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.28);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.site-footer__column a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.site-footer__column a:hover::before {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.58);
}

.site-footer__column--project {
  gap: 12px;
}

.site-footer__info {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.10);
  background: rgba(255, 255, 255, 0.032);
}

.site-footer__info span {
  display: block;
  color: rgba(203, 213, 225, 0.62);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__info strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(147, 197, 253, 0.10);
}

.site-footer__bottom strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.site-footer__bottom span {
  display: block;
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.58);
  font-size: 12px;
  font-weight: 750;
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-footer__bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.10);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(219, 234, 254, 0.72);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.site-footer__bottom-links a:hover {
  border-color: rgba(147, 197, 253, 0.24);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

@media (max-width: 1300px) {
  .site-footer__grid {
    grid-template-columns: minmax(280px, 1fr) repeat(2, minmax(180px, 0.7fr));
  }
}

@media (max-width: 900px) {
  .site-footer {
    padding: 24px 0;
  }

  .site-footer__shell {
    padding: 22px;
    border-radius: 26px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__bottom-links {
    justify-content: flex-start;
  }
}

/* =========================
   MODAL NOTIFICATIONS
   ========================= */

.modal-notification-root {
  position: fixed;
  inset: 0;
  z-index: 11000;
  pointer-events: none;
}

.modal-notification {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.modal-notification.show {
  opacity: 1;
}

.modal-notification__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.68);
  backdrop-filter: blur(5px);
}

.modal-notification__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 28px));
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: #e2e8f0;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.22), transparent 52%),
    linear-gradient(160deg, rgba(7, 12, 26, 0.97), rgba(9, 16, 34, 0.95));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(10px) scale(0.97);
  transition: transform 0.2s ease;
}

.modal-notification.show .modal-notification__dialog {
  transform: translateY(0) scale(1);
}

.modal-notification__icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.modal-notification__title {
  font-size: 25px;
  line-height: 1.08;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.modal-notification__text {
  margin-top: -1px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.9);
}

.modal-notification__button {
  margin-top: 4px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.modal-notification__button:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(148, 163, 184, 0.55);
  transform: translateY(-1px);
}

.modal-notification--success .modal-notification__icon {
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.82), rgba(21, 128, 61, 0.72));
}

.modal-notification--success .modal-notification__dialog {
  border-color: rgba(34, 197, 94, 0.42);
}

.modal-notification--error .modal-notification__icon {
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.78));
}

.modal-notification--error .modal-notification__dialog {
  border-color: rgba(239, 68, 68, 0.44);
}

.modal-notification--info .modal-notification__icon,
.modal-notification--warning .modal-notification__icon {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.86), rgba(29, 78, 216, 0.74));
}

.modal-notification--info .modal-notification__dialog,
.modal-notification--warning .modal-notification__dialog {
  border-color: rgba(59, 130, 246, 0.42);
}
