:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --brand: #4f8cff;
  --danger: #ff4d4f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";

  --admin-bg: #f5f6f7;
  --admin-topbar: #1f2329;
  --admin-sider: #2b2f36;
  --admin-sider-hover: rgba(255, 255, 255, 0.06);
  --admin-sider-active: rgba(255, 255, 255, 0.12);
  --admin-border: rgba(31, 35, 41, 0.12);
  --admin-text: rgba(31, 35, 41, 0.92);
  --admin-muted: rgba(31, 35, 41, 0.62);
  --admin-card: #ffffff;
  --sidebar-expanded: 144px;
  --sidebar-collapsed: 64px;

  --toolbar-search: #2f6feb;
  --toolbar-reset: rgba(31, 35, 41, 0.10);
  --toolbar-add: #22a06b;
  --toolbar-import: #fa8c16;
  --toolbar-export: #fadb14;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--admin-bg);
  color: var(--admin-text);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-login {
  background: radial-gradient(1200px 800px at 30% 20%, #17264a 0%, var(--bg) 52%, #070b14 100%);
  color: var(--text);
}

.admin-shell {
  height: 100%;
  display: grid;
  grid-template-rows: 48px 1fr;
}

.topbar {
  height: 48px;
  background: var(--admin-topbar);
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.topbar-city {
  display: flex;
  align-items: center;
}

.city-select {
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
}

.city-select:disabled {
  opacity: 0.65;
  cursor: default;
}

.city-select:focus {
  outline: none;
  border-color: rgba(79, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.15);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.top-user-menu {
  position: relative;
}

.top-user-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1;
}

.top-user-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.top-user-caret {
  opacity: 0.9;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 14px;
  vertical-align: middle;
}

.top-user-caret::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 120ms ease;
}

.top-user-menu.open .top-user-caret::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.top-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(31, 35, 41, 0.12);
  padding: 6px;
  display: none;
  z-index: 30;
}

.top-user-menu.open .top-user-dropdown {
  display: block;
}

.dropdown-item {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(31, 35, 41, 0.92);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(31, 35, 41, 0.06);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 24, 0.55);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 18px 40px rgba(31, 35, 41, 0.22);
  padding: 16px;
}

.modal--drawer .modal-panel {
  top: 12px;
  bottom: 12px;
  left: auto;
  right: 12px;
  transform: translateX(110%);
  width: min(600px, calc(100% - 24px));
  padding: 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform 220ms ease;
}

.modal--drawer.open .modal-panel {
  transform: translateX(0);
}

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

.modal--drawer .modal-actions {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.modal--drawer .field--span2 {
  grid-column: 1 / -1;
}

.custom-select {
  position: relative;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(31, 35, 41, 0.18);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(31, 35, 41, 0.18);
  max-height: 280px;
  overflow: auto;
  z-index: 2;
  display: none;
}

.custom-select.open .custom-select-dropdown {
  display: block;
}

#adSlotDateRangeDropdown {
  left: 0;
  right: 0;
  min-width: 0;
  max-width: 100%;
  max-height: min(70vh, 480px);
  overflow: auto;
}

.custom-select-item {
  padding: 10px 12px;
  cursor: pointer;
  color: rgba(31, 35, 41, 0.86);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-select-item:hover {
  background: rgba(47, 111, 235, 0.06);
}

.custom-select-item-muted {
  color: rgba(31, 35, 41, 0.52);
  font-size: 12px;
  white-space: nowrap;
}

.custom-select-empty {
  padding: 10px 12px;
  color: rgba(31, 35, 41, 0.52);
  font-size: 13px;
}

.drp {
  width: 100%;
  max-width: 100%;
  padding: 10px 10px 12px;
}

.drp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.drp-head-center {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.drp-value {
  font-size: 13px;
  color: rgba(31, 35, 41, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drp-nav {
  appearance: none;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: rgba(31, 35, 41, 0.04);
  color: rgba(31, 35, 41, 0.72);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.drp-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

.drp-month {
  flex: 1;
  min-width: 0;
}

.drp-month-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(31, 35, 41, 0.86);
  margin: 6px 0 10px;
}

.drp-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.drp-weekday {
  text-align: center;
  font-size: 12px;
  color: rgba(31, 35, 41, 0.52);
}

.drp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.drp-cell {
  appearance: none;
  border: 1px solid rgba(31, 35, 41, 0.06);
  background: rgba(31, 35, 41, 0.02);
  color: rgba(31, 35, 41, 0.86);
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
}

.drp-cell--empty {
  border: 0;
  background: transparent;
  height: 34px;
}

.drp-cell--blocked {
  background: rgba(46, 204, 113, 0.14);
  border-color: rgba(46, 204, 113, 0.18);
  color: rgba(21, 113, 63, 0.55);
  cursor: not-allowed;
}

.drp-cell--in {
  background: rgba(47, 111, 235, 0.08);
  border-color: rgba(47, 111, 235, 0.14);
}

.drp-cell--start,
.drp-cell--end {
  background: rgba(47, 111, 235, 1);
  border-color: rgba(47, 111, 235, 1);
  color: #fff;
}

.drp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .modal--drawer .form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .drp-body {
    grid-template-columns: 1fr;
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.drawer-head .modal-title {
  margin: 0;
}

.drawer-close {
  appearance: none;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: rgba(31, 35, 41, 0.04);
  color: rgba(31, 35, 41, 0.72);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.drawer-close:hover {
  background: rgba(31, 35, 41, 0.06);
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(31, 35, 41, 0.92);
  margin: 0 0 10px;
}

.modal .field label {
  color: rgba(31, 35, 41, 0.62);
}

.modal .field input {
  background: #ffffff;
  color: rgba(31, 35, 41, 0.92);
  border: 1px solid rgba(31, 35, 41, 0.22);
  caret-color: rgba(31, 35, 41, 0.92);
}

.modal .field input:focus {
  border-color: rgba(79, 140, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal .btn {
  width: auto;
  border-color: rgba(31, 35, 41, 0.12);
  background: rgba(31, 35, 41, 0.04);
  color: rgba(31, 35, 41, 0.92);
  justify-content: center;
}

.modal .btn:hover {
  background: rgba(31, 35, 41, 0.06);
}

.modal .error {
  margin-bottom: 10px;
  border-color: rgba(255, 77, 79, 0.28);
  color: rgba(31, 35, 41, 0.92);
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.toggle-arrow {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-arrow-expand {
  display: none;
}

body.sidebar-collapsed .toggle-arrow-collapse {
  display: none;
}

body.sidebar-collapsed .toggle-arrow-expand {
  display: inline-flex;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.app {
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar-expanded) 1fr;
}

body.sidebar-collapsed .app {
  grid-template-columns: var(--sidebar-collapsed) 1fr;
}

.sidebar {
  background: var(--admin-sider);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  letter-spacing: 0.4px;
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 2px;
}

.nav a,
.nav .nav-parent {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-size: 13px;
  line-height: 1.2;
}

.nav .nav-parent {
  width: 100%;
  background: transparent;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.nav a:hover,
.nav .nav-parent:hover {
  background: var(--admin-sider-hover);
  color: rgba(255, 255, 255, 0.92);
}

.nav a.active {
  background: var(--admin-sider-active);
  color: rgba(255, 255, 255, 0.92);
}

.nav-caret {
  margin-left: auto;
  opacity: 0.75;
  transform: rotate(0deg);
  transition: transform 120ms ease;
}

.nav-group.open .nav-caret {
  transform: rotate(90deg);
}

.nav-children {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
}

.nav-group.open .nav-children {
  display: flex;
}

.nav-children a {
  min-height: 32px;
  padding: 7px 10px;
}

.nav .nav-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sidebar-collapsed .nav .nav-text {
  display: none;
}

body.sidebar-collapsed .nav .nav-caret {
  display: none;
}

body.sidebar-collapsed .nav-children {
  display: none !important;
}

body.sidebar-collapsed .nav a {
  justify-content: center;
}

body.sidebar-collapsed .brand-text {
  display: none;
}

body.sidebar-collapsed .brand {
  justify-content: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.user-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

body.sidebar-collapsed .sidebar-footer .user-meta {
  display: none;
}

body.sidebar-collapsed .sidebar-footer .nav-text {
  display: none;
}

body.sidebar-collapsed .sidebar .btn {
  justify-content: center;
  gap: 0;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
  border-color: rgba(255, 77, 79, 0.35);
  background: rgba(255, 77, 79, 0.08);
}

.main {
  display: grid;
  grid-template-rows: 46px 1fr;
  min-width: 0;
  background: var(--admin-bg);
}

.header {
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 15px;
  background: #ffffff;
}

.header-title {
  font-weight: 700;
  color: var(--admin-text);
}

.content {
  padding: 15px;
  min-width: 0;
}

.card {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-card);
  box-shadow: 0 2px 10px rgba(31, 35, 41, 0.06);
  padding: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

[hidden] {
  display: none !important;
}

.toolbar-btn {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(31, 35, 41, 0.04);
  color: rgba(31, 35, 41, 0.92);
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.toolbar-btn:hover {
  background: rgba(31, 35, 41, 0.06);
}

.toolbar-btn:active {
  transform: translateY(0.5px);
}

.toolbar-btn .icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.toolbar-btn--primary {
  background: var(--toolbar-search);
  border-color: rgba(47, 111, 235, 0.55);
  color: #ffffff;
}

.toolbar-btn--primary:hover {
  background: #1f5fe0;
}

.toolbar-btn--secondary {
  background: var(--toolbar-export);
  border-color: rgba(250, 219, 20, 0.65);
  color: rgba(31, 35, 41, 0.92);
}

.toolbar-btn--secondary:hover {
  background: #f5d90a;
}

.toolbar-btn--gray {
  background: var(--toolbar-reset);
  border-color: rgba(31, 35, 41, 0.12);
  color: rgba(31, 35, 41, 0.92);
}

.toolbar-btn--gray:hover {
  background: rgba(31, 35, 41, 0.14);
}

.toolbar-btn--search {
  background: var(--toolbar-search);
  border-color: rgba(47, 111, 235, 0.55);
  color: #ffffff;
}

.toolbar-btn--search:hover {
  background: #1f5fe0;
}

.toolbar-btn--reset {
  background: var(--toolbar-reset);
  border-color: rgba(31, 35, 41, 0.12);
  color: rgba(31, 35, 41, 0.92);
}

.toolbar-btn--reset:hover {
  background: rgba(31, 35, 41, 0.14);
}

.toolbar-btn--add {
  background: var(--toolbar-add);
  border-color: rgba(34, 160, 107, 0.55);
  color: #ffffff;
}

.toolbar-btn--add:hover {
  background: #1b8a5d;
}

.toolbar-btn--import {
  background: var(--toolbar-import);
  border-color: rgba(250, 140, 22, 0.55);
  color: #ffffff;
}

.toolbar-btn--import:hover {
  background: #e67e10;
}

.toolbar-btn--export {
  background: var(--toolbar-export);
  border-color: rgba(250, 219, 20, 0.65);
  color: rgba(31, 35, 41, 0.92);
}

.toolbar-btn--export:hover {
  background: #f5d90a;
}

.users-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 48px - 46px - 30px);
  min-height: 0;
}

.users-section-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(31, 35, 41, 0.92);
  margin-bottom: 12px;
}

.users-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.users-search .field {
  width: 150px;
  min-width: 150px;
}

.users-search .field label {
  display: none;
}

.users-search .field input,
.users-search .field select {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.92);
  outline: none;
}

.users-search .field input:focus,
.users-search .field select:focus {
  border-color: rgba(79, 140, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.users-search-actions {
  display: flex;
}

.users-content.card {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
  flex: 1 1 auto;
  min-height: 0;
}

.users-table-wrap {
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(31, 35, 41, 0.08);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.users-table-scroll {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(31, 35, 41, 0.06);
  color: rgba(31, 35, 41, 0.62);
  font-size: 13px;
  overflow-x: auto;
  flex: 0 0 auto;
}

.users-pagination-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.users-page-size {
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.92);
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.users-page-size:focus {
  border-color: rgba(79, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

.users-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.users-pager-btn {
  appearance: none;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.86);
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.users-pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.users-page-indicator {
  min-width: 54px;
  text-align: center;
  color: rgba(31, 35, 41, 0.72);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.users-table th,
.users-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(31, 35, 41, 0.06);
  font-size: 13px;
  color: rgba(31, 35, 41, 0.86);
  text-align: center;
  white-space: nowrap;
}

.users-table tbody tr:hover td {
  background: rgba(47, 111, 235, 0.06);
}

.users-col-action {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #ffffff;
}

.users-table tbody tr:hover td.users-col-action {
  background: rgba(47, 111, 235, 0.06);
}

.users-col-check {
  width: 44px;
  text-align: center;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.users-check {
  width: 16px;
  height: 16px;
  accent-color: var(--toolbar-search);
}

.users-table th {
  background: rgba(31, 35, 41, 0.015);
  color: rgba(31, 35, 41, 0.72);
  font-weight: 700;
}

.users-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(47, 111, 235, 0.45);
}

.users-empty {
  text-align: center;
  color: rgba(31, 35, 41, 0.52);
  padding: 18px 0;
}

.users-status {
  font-weight: 700;
}

.users-status-toggle {
  cursor: pointer;
}

.users-status-toggle:hover {
  text-decoration: underline;
}

.users-status-toggle[data-loading="1"] {
  opacity: 0.6;
  cursor: default;
  text-decoration: none;
}

.users-status--on {
  color: var(--toolbar-add);
}

.users-status--off {
  color: var(--danger);
}

.users-action-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--toolbar-search);
  font-size: 13px;
  cursor: pointer;
}

.users-action-link:hover {
  text-decoration: underline;
}

.adslot-view-link {
  color: var(--toolbar-search);
  text-decoration: none;
}

.adslot-view-link:hover {
  text-decoration: underline;
}

.adslot-sort-cell {
  cursor: text;
}

.adslot-sort-input {
  width: 72px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(31, 35, 41, 0.18);
  font-size: 13px;
}

.adslot-status {
  font-weight: 700;
}
.adslot-status--pending {
  color: var(--toolbar-import);
}
.adslot-status--running {
  color: var(--toolbar-add);
}
.adslot-status--terminated {
  color: var(--danger);
}
.adslot-status--abandoned {
  color: rgba(31, 35, 41, 0.52);
}

.users-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.users-modal-panel {
  width: min(560px, calc(100% - 32px));
}

.ad-slots-image-modal-panel {
  width: min(960px, calc(100% - 32px));
  padding: 12px;
}

.ad-slots-image-preview {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: rgba(31, 35, 41, 0.02);
}

.adslot-material-preview {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.adslot-material-preview-img {
  width: 140px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: rgba(31, 35, 41, 0.02);
}

.modal .field select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 35, 41, 0.22);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.92);
  outline: none;
}

.modal .field select:focus {
  border-color: rgba(79, 140, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
}

.users-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.users-checkall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: rgba(31, 35, 41, 0.62);
}

.users-checkall input {
  width: 14px;
  height: 14px;
}

.field .users-checkall {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.field .users-checkall input {
  margin: 0;
  align-self: center;
}

.users-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(31, 35, 41, 0.08);
  border-radius: 12px;
  background: rgba(31, 35, 41, 0.01);
}

.field .users-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31, 35, 41, 0.06);
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  margin: 0;
}

.field .users-option:hover {
  border-color: rgba(47, 111, 235, 0.18);
  background: rgba(47, 111, 235, 0.04);
}

.field .users-option input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  align-self: center;
}

.users-option-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(31, 35, 41, 0.9);
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-modal-hint {
  font-size: 12px;
  color: rgba(31, 35, 41, 0.62);
  margin: -6px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roles-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 48px - 46px - 30px);
  min-height: 0;
}

.roles-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.roles-search .field {
  width: 150px;
  min-width: 150px;
}

.roles-search .field label {
  display: none;
}

.roles-search .field input,
.roles-search .field select {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.92);
  outline: none;
}

.roles-search .field input:focus,
.roles-search .field select:focus {
  border-color: rgba(79, 140, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.roles-search-actions {
  display: flex;
}

.roles-content.card {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
  flex: 1 1 auto;
  min-height: 0;
}

.roles-table-wrap {
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(31, 35, 41, 0.08);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.roles-table-scroll {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.roles-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(31, 35, 41, 0.06);
  color: rgba(31, 35, 41, 0.62);
  font-size: 13px;
  overflow-x: auto;
  flex: 0 0 auto;
}

.roles-pagination-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.roles-page-size {
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.92);
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.roles-page-size:focus {
  border-color: rgba(79, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

.roles-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.roles-pager-btn {
  appearance: none;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.86);
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.roles-pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.roles-page-indicator {
  min-width: 54px;
  text-align: center;
  color: rgba(31, 35, 41, 0.72);
}

.roles-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.roles-table th,
.roles-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(31, 35, 41, 0.06);
  font-size: 13px;
  color: rgba(31, 35, 41, 0.86);
  text-align: center;
  white-space: nowrap;
}

.roles-table th {
  background: rgba(31, 35, 41, 0.015);
  color: rgba(31, 35, 41, 0.72);
  font-weight: 700;
}

.roles-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(47, 111, 235, 0.45);
}

.roles-table tbody tr:hover td {
  background: rgba(47, 111, 235, 0.06);
}

.roles-col-action {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #ffffff;
}

.roles-table tbody tr:hover td.roles-col-action {
  background: rgba(47, 111, 235, 0.06);
}

.roles-empty {
  text-align: center;
  color: rgba(31, 35, 41, 0.52);
  padding: 18px 0;
}

.roles-status {
  font-weight: 700;
}

.roles-status-toggle {
  cursor: pointer;
}

.roles-status-toggle:hover {
  text-decoration: underline;
}

.roles-status-toggle[data-loading="1"] {
  opacity: 0.6;
  cursor: default;
  text-decoration: none;
}

.roles-status--on {
  color: var(--toolbar-add);
}

.roles-status--off {
  color: var(--danger);
}

.roles-action-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--toolbar-search);
  font-size: 13px;
  cursor: pointer;
}

.roles-action-link:hover {
  text-decoration: underline;
}

.roles-split {
  display: flex;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.roles-left {
  width: 360px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.roles-right {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.roles-left-card,
.roles-right-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.roles-right-card {
  flex: 1 1 auto;
}

.roles-left-card:first-child {
  flex: 1 1 auto;
}

.roles-left-card:last-child {
  flex: 0 0 auto;
}

.roles-panel-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(31, 35, 41, 0.72);
  line-height: 1.4;
  margin-bottom: 10px;
}

.roles-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 12px;
}

.roles-panel-header .roles-panel-title {
  margin-bottom: 0;
}

.roles-add-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13px;
}

.roles-add-btn[data-loading="1"] {
  opacity: 0.6;
  cursor: default;
}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  padding: 4px 8px 10px 4px;
}

.roles-item {
  appearance: none;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.roles-item:focus,
.roles-item:focus-visible {
  outline: none;
}

.roles-item:hover {
  border-color: rgba(47, 111, 235, 0.35);
  background: rgba(47, 111, 235, 0.04);
}

.roles-item.active {
  border-color: rgba(47, 111, 235, 0.7);
  background: rgba(47, 111, 235, 0.03);
  box-shadow: 2px 6px 18px rgba(31, 35, 41, 0.1);
}

.roles-item-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(31, 35, 41, 0.92);
  line-height: 1.2;
}

.roles-item-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(31, 35, 41, 0.58);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roles-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roles-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.roles-detail-label {
  font-size: 12px;
  color: rgba(31, 35, 41, 0.58);
}

.roles-detail-val {
  font-size: 13px;
  color: rgba(31, 35, 41, 0.92);
  font-weight: 700;
  white-space: nowrap;
}

.roles-perm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.roles-perm-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(31, 35, 41, 0.58);
  font-size: 12px;
  white-space: nowrap;
}

.roles-perm-checkall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.roles-perm-checkall input {
  width: 14px;
  height: 14px;
}

.roles-msg {
  display: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 10px 0;
}

.roles-msg.show {
  display: block;
}

.roles-msg--ok {
  border: 1px solid rgba(67, 160, 71, 0.28);
  background: rgba(67, 160, 71, 0.08);
  color: rgba(31, 35, 41, 0.86);
}

.roles-msg--error {
  border: 1px solid rgba(255, 77, 79, 0.28);
  background: rgba(255, 77, 79, 0.08);
  color: rgba(31, 35, 41, 0.86);
}

.roles-perm-list {
  border: none;
  border-radius: 0;
  overflow: auto;
  min-height: 0;
  padding: 6px 0;
  column-count: 2;
  column-gap: 16px;
  column-fill: auto;
  flex: 1 1 auto;
}

.roles-perm-block {
  break-inside: avoid;
  padding: 0 0 8px;
}

.roles-perm-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.roles-perm-empty {
  font-size: 12px;
  color: rgba(31, 35, 41, 0.52);
  padding: 6px 8px;
}

.roles-perm-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
}

.roles-perm-item--menu .roles-perm-name {
  font-weight: 900;
}

.roles-perm-item--child {
  padding-left: 22px;
}

.roles-perm-item input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.roles-perm-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(31, 35, 41, 0.9);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roles-perm-code {
  font-size: 12px;
  color: rgba(31, 35, 41, 0.58);
  flex: 0 0 auto;
  white-space: nowrap;
}

.roles-perm-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 12px;
}

.roles-perm-actions .toolbar-btn[data-loading="1"] {
  opacity: 0.6;
  cursor: default;
}

.roles-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 26, 46, 0.55);
}

.roles-modal.show {
  display: flex;
}

.roles-modal-panel {
  width: min(520px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(31, 35, 41, 0.18);
  padding: 14px 14px 12px;
}

.roles-modal-title {
  font-size: 15px;
  font-weight: 900;
  color: rgba(31, 35, 41, 0.92);
}

.roles-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.roles-modal-field label {
  display: block;
  font-size: 12px;
  color: rgba(31, 35, 41, 0.62);
  margin-bottom: 6px;
}

.roles-modal-field input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.92);
  outline: none;
}

.roles-modal-field input:focus {
  border-color: rgba(79, 140, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.roles-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.roles-modal-actions .toolbar-btn[data-loading="1"] {
  opacity: 0.6;
  cursor: default;
}

.perm-routes-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 48px - 46px - 30px);
  min-height: 0;
}

.perm-routes-split {
  display: flex;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.perm-routes-left {
  width: 360px;
  min-width: 320px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.perm-routes-right {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.perm-routes-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.perm-routes-right-card {
  flex: 1 1 auto;
}

.perm-routes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 12px;
}

.perm-routes-header--right {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 35, 41, 0.06);
}

.perm-routes-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(31, 35, 41, 0.72);
  line-height: 1.4;
}

.perm-routes-meta {
  font-size: 12px;
  color: rgba(31, 35, 41, 0.58);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perm-routes-right-head {
  min-width: 0;
}

.perm-routes-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.perm-routes-btn-danger {
  border-color: rgba(255, 77, 79, 0.35);
  color: rgba(255, 77, 79, 0.92);
}

.perm-routes-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  padding: 4px 8px 10px 4px;
}

.perm-routes-item {
  appearance: none;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.perm-routes-item:focus,
.perm-routes-item:focus-visible {
  outline: none;
}

.perm-routes-item:hover {
  border-color: rgba(47, 111, 235, 0.35);
  background: rgba(47, 111, 235, 0.04);
}

.perm-routes-item.active {
  border-color: rgba(47, 111, 235, 0.7);
  background: rgba(47, 111, 235, 0.03);
  box-shadow: 2px 6px 18px rgba(31, 35, 41, 0.1);
}

.perm-routes-item-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(31, 35, 41, 0.92);
  line-height: 1.2;
}

.perm-routes-item-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(31, 35, 41, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perm-routes-btn-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.perm-routes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(31, 35, 41, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
}

.perm-routes-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.perm-routes-row-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(31, 35, 41, 0.92);
}

.perm-routes-row-sub {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.perm-routes-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 111, 235, 0.08);
  color: rgba(47, 111, 235, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.perm-routes-pill--muted {
  background: rgba(31, 35, 41, 0.06);
  color: rgba(31, 35, 41, 0.72);
  font-weight: 600;
}

.perm-routes-row-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.perm-routes-danger {
  color: rgba(255, 77, 79, 0.92);
}

.perm-routes-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 26, 46, 0.55);
}

.perm-routes-modal.show {
  display: flex;
}

.perm-routes-modal-panel {
  width: min(560px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(31, 35, 41, 0.18);
  padding: 14px 14px 12px;
}

.perm-routes-modal-title {
  font-size: 15px;
  font-weight: 900;
  color: rgba(31, 35, 41, 0.92);
}

.perm-routes-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.perm-routes-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.perm-routes-modal-field label {
  display: block;
  font-size: 12px;
  color: rgba(31, 35, 41, 0.62);
  margin-bottom: 6px;
}

.perm-routes-modal-field input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 35, 41, 0.12);
  background: #ffffff;
  color: rgba(31, 35, 41, 0.92);
  outline: none;
}

.perm-routes-modal-field input:focus {
  border-color: rgba(79, 140, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.perm-routes-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.perm-routes-modal-actions .toolbar-btn[data-loading="1"] {
  opacity: 0.6;
  cursor: default;
}

.login-wrap {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 26, 46, 0.75);
  box-shadow: var(--shadow);
  padding: 18px;
}

.login-title {
  font-weight: 800;
  font-size: 18px;
  margin: 2px 0 4px;
  text-align: center;
}

.login-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  text-align: center;
}

.page-login .btn {
  justify-content: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: rgba(79, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.15);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.error {
  display: none;
  border: 1px solid rgba(255, 77, 79, 0.35);
  background: rgba(255, 77, 79, 0.08);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.error.show {
  display: block;
}
