/* =====================================================================
   R&H WildQuest — Admin panel
   Standalone of the public theme; shares only Bootstrap + Font Awesome.
   ===================================================================== */

:root {
  --ad-maroon:      #8A1C2D;
  --ad-maroon-deep: #6B1522;
  --ad-orange:      #E8762C;
  --ad-ink:         #1A1416;
  --ad-ink-2:       #241B1E;
  --ad-body:        #5E5654;
  --ad-muted:       #8B807C;
  --ad-line:        #E9E1DE;
  --ad-line-2:      #F3EDEA;
  --ad-bg:          #F7F4F2;
  --ad-surface:     #FFFFFF;
  --ad-cream:       #FBF3F0;

  --ad-green:  #2E9C6A;
  --ad-amber:  #D98B18;
  --ad-red:    #D0403C;
  --ad-blue:   #2E6DB4;

  --ad-shadow-sm: 0 1px 3px rgba(26,20,22,.06);
  --ad-shadow:    0 4px 16px rgba(26,20,22,.07);
  --ad-shadow-lg: 0 18px 48px rgba(26,20,22,.14);

  --ad-radius:    12px;
  --ad-radius-sm: 8px;
  --ad-sidebar-w: 264px;
  --ad-ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

.ad-body {
  margin: 0;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ad-body);
  background: var(--ad-bg);
  -webkit-font-smoothing: antialiased;
}

.ad-body h1, .ad-body h2, .ad-body h3, .ad-body h4, .ad-body h5, .ad-body h6 {
  font-family: Manrope, Inter, sans-serif;
  color: var(--ad-ink);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}

/* Base link colour. Scoped to content areas so it never leaks into the
   sidebar or buttons, both of which set their own foreground. */
.ad-body a { color: var(--ad-maroon); text-decoration: none; }
.ad-body a:hover { color: var(--ad-orange); }
.ad-body .ad-sidebar a { color: rgba(255, 255, 255, .72); }
.ad-body a.ad-btn,
.ad-body a.ad-btn:hover { color: inherit; }

*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #D8CCC7; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--ad-orange); outline-offset: 2px; border-radius: 4px; }

/* =====================================================================
   Sidebar
   ===================================================================== */

.ad-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--ad-sidebar-w);
  background: linear-gradient(178deg, #1A1416 0%, #241B1E 100%);
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform .35s var(--ad-ease);
}

.ad-sidebar__brand {
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ad-sidebar__brand img { height: 40px; width: auto; }

.ad-nav { flex: 1; overflow-y: auto; padding: 16px 12px 22px; }
.ad-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }

.ad-nav__group {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.32);
  padding: 18px 12px 8px;
}
.ad-nav__group:first-child { padding-top: 4px; }

.ad-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--ad-radius-sm);
  color: rgba(255,255,255,.72);
  font-size: 14.4px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
  margin-bottom: 2px;
}
.ad-body .ad-nav__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.ad-nav__link i { width: 18px; text-align: center; font-size: 14.5px; opacity: .9; }
.ad-body .ad-nav__link.is-active {
  background: var(--ad-maroon);
  color: #fff;
  box-shadow: 0 4px 14px rgba(138,28,45,.4);
}
.ad-nav__link.is-active i { opacity: 1; }

.ad-nav__badge {
  margin-left: auto;
  background: var(--ad-orange);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.ad-sidebar__foot { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.07); }

.ad-nav-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 80;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--ad-ink);
  color: #fff;
  font-size: 16px;
}
.ad-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,20,22,.5);
  z-index: 55;
}
.ad-backdrop.is-open { display: block; }

/* =====================================================================
   Main region
   ===================================================================== */

.ad-main {
  margin-left: var(--ad-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ad-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ad-line);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ad-topbar__title h1 { font-size: 23px; }
.ad-topbar__title p { margin: 3px 0 0; font-size: 13.6px; color: var(--ad-muted); }
.ad-topbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ad-content { flex: 1; padding: 28px 30px; }

.ad-footer {
  padding: 18px 30px;
  border-top: 1px solid var(--ad-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ad-muted);
}

/* User menu */
.ad-user { position: relative; }
.ad-user__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ad-user__btn:hover { border-color: var(--ad-maroon); box-shadow: var(--ad-shadow-sm); }
.ad-user__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ad-maroon);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex: 0 0 34px;
}
.ad-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ad-user__meta { text-align: left; line-height: 1.25; }
.ad-user__meta strong { display: block; font-size: 13.6px; color: var(--ad-ink); font-weight: 700; }
.ad-user__meta small { font-size: 11.5px; color: var(--ad-muted); }
.ad-user__btn i { font-size: 11px; color: var(--ad-muted); }

.ad-user__menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow-lg);
  padding: 7px;
  display: none;
  z-index: 50;
}
.ad-user__menu.is-open { display: block; }
.ad-user__menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--ad-radius-sm);
  color: var(--ad-ink);
  font-size: 14px;
  font-weight: 600;
}
.ad-body .ad-user__menu a:hover { background: var(--ad-cream); color: var(--ad-maroon); }
.ad-user__menu a i { width: 16px; color: var(--ad-muted); }
.ad-body .ad-user__menu a.is-danger { color: var(--ad-red); }
.ad-user__menu a.is-danger:hover { background: #FCEDEC; color: var(--ad-red); }
.ad-user__menu a.is-danger i { color: var(--ad-red); }
.ad-user__menu hr { margin: 6px 8px; border: 0; border-top: 1px solid var(--ad-line); }

/* =====================================================================
   Cards, panels and tables
   ===================================================================== */

.ad-card {
  background: var(--ad-surface);
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow-sm);
  margin-bottom: 22px;
}
.ad-card__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ad-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ad-card__head h2, .ad-card__head h3 { font-size: 16.5px; }
.ad-card__head p { margin: 2px 0 0; font-size: 13px; color: var(--ad-muted); }
.ad-card__body { padding: 22px; }
.ad-card__body--flush { padding: 0; }
.ad-card__foot {
  padding: 16px 22px;
  border-top: 1px solid var(--ad-line);
  background: var(--ad-line-2);
  border-radius: 0 0 var(--ad-radius) var(--ad-radius);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Stat tiles */
.ad-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 24px; }
.ad-stat {
  background: var(--ad-surface);
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  padding: 20px 22px;
  box-shadow: var(--ad-shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .3s var(--ad-ease), box-shadow .3s var(--ad-ease);
}
.ad-stat:hover { transform: translateY(-3px); box-shadow: var(--ad-shadow); }
.ad-stat__icon {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 18px;
  background: var(--ad-cream);
  color: var(--ad-maroon);
}
.ad-stat__icon--green { background: #E9F7F0; color: var(--ad-green); }
.ad-stat__icon--amber { background: #FDF3E4; color: var(--ad-amber); }
.ad-stat__icon--blue  { background: #EAF1FA; color: var(--ad-blue); }
.ad-stat__icon--red   { background: #FCECEB; color: var(--ad-red); }
.ad-stat__value { font-size: 26px; font-weight: 800; color: var(--ad-ink); line-height: 1.15; letter-spacing: -.03em; }
.ad-stat__label { font-size: 13px; color: var(--ad-muted); font-weight: 600; margin-top: 2px; }
.ad-stat__delta { font-size: 12px; font-weight: 700; margin-top: 5px; }
.ad-stat__delta.up { color: var(--ad-green); }
.ad-stat__delta.down { color: var(--ad-red); }

/* Tables */
.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14.2px; }
.ad-table th {
  text-align: left;
  padding: 13px 18px;
  background: var(--ad-line-2);
  color: var(--ad-ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--ad-line);
}
.ad-table td { padding: 14px 18px; border-bottom: 1px solid var(--ad-line-2); vertical-align: middle; }
.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table tbody tr { transition: background .18s ease; }
.ad-table tbody tr:hover { background: var(--ad-cream); }
.ad-table__title { font-weight: 700; color: var(--ad-ink); display: block; }
.ad-table__sub { font-size: 12.5px; color: var(--ad-muted); }
.ad-table__thumb {
  width: 54px; height: 40px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--ad-line-2);
  flex: 0 0 54px;
}
.ad-table__media { display: flex; align-items: center; gap: 12px; }
.ad-table__media > div { min-width: 0; }
.ad-table td.is-actions { white-space: nowrap; text-align: right; }

/* Give the primary column room so titles do not wrap one word per line. */
.ad-table th:nth-child(2), .ad-table td:nth-child(2) { min-width: 250px; }

/* Badges */
.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.8px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: capitalize;
  white-space: nowrap;
}
.ad-badge--success   { background: #E9F7F0; color: #1E6E4C; }
.ad-badge--warning   { background: #FDF3E4; color: #8A5A0C; }
.ad-badge--danger    { background: #FCECEB; color: #A32F2B; }
.ad-badge--info      { background: #EAF1FA; color: #234F82; }
.ad-badge--primary   { background: var(--ad-cream); color: var(--ad-maroon); }
.ad-badge--secondary { background: #F0EDEB; color: #5E5654; }

/* Buttons */
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--ad-radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
  line-height: 1.3;
}
.ad-body .ad-btn--primary { background: var(--ad-maroon); color: #fff; }
.ad-body .ad-btn--primary:hover { background: var(--ad-maroon-deep); color: #fff; box-shadow: 0 4px 14px rgba(138,28,45,.28); }
.ad-body .ad-btn--orange { background: var(--ad-orange); color: #fff; }
.ad-body .ad-btn--orange:hover { background: #D3691F; color: #fff; }
.ad-body .ad-btn--ghost { background: #fff; border-color: var(--ad-line); color: var(--ad-ink); }
.ad-body .ad-btn--ghost:hover { border-color: var(--ad-maroon); color: var(--ad-maroon); background: var(--ad-cream); }
.ad-body .ad-btn--danger { background: #fff; border-color: #F0CFCE; color: var(--ad-red); }
.ad-body .ad-btn--danger:hover { background: var(--ad-red); border-color: var(--ad-red); color: #fff; }
.ad-btn--sm { padding: 6px 12px; font-size: 13px; }
.ad-btn--icon { padding: 7px 10px; }
.ad-btn--block { width: 100%; }
.ad-btn[disabled], .ad-btn.is-loading { opacity: .6; pointer-events: none; }
.ad-btn.is-loading::after {
  content: '';
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ad-spin .7s linear infinite;
}
@keyframes ad-spin { to { transform: rotate(360deg); } }

.ad-actions { display: inline-flex; gap: 6px; }

/* =====================================================================
   Forms
   ===================================================================== */

.ad-field { margin-bottom: 20px; }
.ad-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ad-ink);
  margin-bottom: 7px;
}
.ad-label .req { color: var(--ad-orange); }
.ad-help { display: block; font-size: 12.4px; color: var(--ad-muted); margin-top: 6px; }
.ad-error { display: block; font-size: 12.4px; color: var(--ad-red); margin-top: 6px; font-weight: 600; }

.ad-input, .ad-select, .ad-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ad-line);
  border-radius: var(--ad-radius-sm);
  background: #fff;
  color: var(--ad-ink);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ad-input:focus, .ad-select:focus, .ad-textarea:focus {
  outline: none;
  border-color: var(--ad-maroon);
  box-shadow: 0 0 0 3.5px rgba(138,28,45,.1);
}
.ad-input::placeholder, .ad-textarea::placeholder { color: #ADA19D; }
.ad-input[readonly] { background: var(--ad-line-2); color: var(--ad-muted); }
.ad-textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.ad-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B807C' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.ad-input.is-invalid, .ad-select.is-invalid, .ad-textarea.is-invalid { border-color: var(--ad-red); }

.ad-grid { display: grid; gap: 0 20px; }
.ad-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .ad-grid--2, .ad-grid--3, .ad-grid--4 { grid-template-columns: 1fr; } }

/* Switch */
.ad-switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; }
.ad-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ad-switch__track {
  width: 44px; height: 25px;
  border-radius: 13px;
  background: #D6CCC8;
  position: relative;
  transition: background .25s ease;
  flex: 0 0 44px;
}
.ad-switch__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.22);
  transition: transform .25s var(--ad-ease);
}
.ad-switch input:checked + .ad-switch__track { background: var(--ad-green); }
.ad-switch input:checked + .ad-switch__track::after { transform: translateX(19px); }
.ad-switch__label { font-size: 14.2px; font-weight: 600; color: var(--ad-ink); }

/* Checkbox / radio */
.ad-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.ad-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ad-maroon); flex: 0 0 17px; }
.ad-check span { font-size: 14.2px; }

/* Password field */
.ad-password { position: relative; }
.ad-password .ad-input { padding-right: 46px; }
.ad-password__toggle {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 0;
  background: none;
  color: var(--ad-muted);
  border-radius: 7px;
  display: grid; place-items: center;
  cursor: pointer;
}
.ad-password__toggle:hover { color: var(--ad-maroon); background: var(--ad-cream); }

/* Strength meter */
.ad-strength { margin-top: 9px; }
.ad-strength__bar { height: 5px; border-radius: 4px; background: var(--ad-line); overflow: hidden; }
.ad-strength__fill { height: 100%; width: 0; border-radius: 4px; transition: width .3s ease, background .3s ease; }
.ad-strength__text { font-size: 12px; font-weight: 600; color: var(--ad-muted); margin-top: 5px; display: block; }

/* Image picker */
.ad-image {
  border: 2px dashed var(--ad-line);
  border-radius: var(--ad-radius);
  padding: 18px;
  text-align: center;
  background: var(--ad-line-2);
  transition: border-color .2s ease, background .2s ease;
}
.ad-image.is-dragover { border-color: var(--ad-maroon); background: var(--ad-cream); }
.ad-image__preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--ad-radius-sm);
  margin-bottom: 14px;
  background: #fff;
  display: block;
}
.ad-image__empty { padding: 26px 0; color: var(--ad-muted); }
.ad-image__empty i { font-size: 30px; display: block; margin-bottom: 10px; opacity: .55; }

/* Editor */
.ad-editor { background: #fff; border-radius: 0 0 var(--ad-radius-sm) var(--ad-radius-sm); }
.ad-editor .ql-container {
  border-color: var(--ad-line) !important;
  border-bottom-left-radius: var(--ad-radius-sm);
  border-bottom-right-radius: var(--ad-radius-sm);
  font-family: inherit;
  font-size: 15px;
  min-height: 260px;
}
.ad-editor .ql-toolbar {
  border-color: var(--ad-line) !important;
  border-top-left-radius: var(--ad-radius-sm);
  border-top-right-radius: var(--ad-radius-sm);
  background: var(--ad-line-2);
}
.ad-editor .ql-editor { min-height: 260px; line-height: 1.75; }
.ad-editor .ql-editor.ql-blank::before { color: #ADA19D; font-style: normal; }
.ad-editor .ql-snow .ql-stroke { stroke: var(--ad-body); }
.ad-editor .ql-snow .ql-fill { fill: var(--ad-body); }
.ad-editor .ql-snow .ql-picker { color: var(--ad-body); }
.ad-editor .ql-snow.ql-toolbar button:hover .ql-stroke,
.ad-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--ad-maroon); }
.ad-editor .ql-snow.ql-toolbar button:hover .ql-fill,
.ad-editor .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--ad-maroon); }

/* Repeatable rows (itinerary) */
.ad-repeat__item {
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  padding: 18px;
  margin-bottom: 14px;
  background: #fff;
  position: relative;
}
.ad-repeat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ad-repeat__num {
  background: var(--ad-maroon);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

/* =====================================================================
   Filters, alerts, tabs, misc
   ===================================================================== */

.ad-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ad-line);
}
.ad-filters .ad-field { margin-bottom: 0; min-width: 170px; flex: 1 1 170px; }
.ad-filters .ad-field--grow { flex: 2 1 260px; }

.ad-alert {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 18px;
  border-radius: var(--ad-radius-sm);
  border: 1px solid transparent;
  font-size: 14.3px;
  margin-bottom: 20px;
}
.ad-alert i:first-child { font-size: 16px; margin-top: 2px; }
.ad-alert--success { background: #E9F7F0; border-color: #C7E8D9; color: #1E6E4C; }
.ad-alert--error   { background: #FCECEB; border-color: #F2D2D0; color: #A32F2B; }
.ad-alert--warning { background: #FDF3E4; border-color: #F7DEBE; color: #8A5A0C; }
.ad-alert--info    { background: var(--ad-cream); border-color: #EEDFDA; color: #7A2434; }
.ad-alert__close { margin-left: auto; border: 0; background: none; color: inherit; opacity: .55; cursor: pointer; }
.ad-alert__close:hover { opacity: 1; }

.ad-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ad-line); margin-bottom: 24px; overflow-x: auto; }
.ad-tab {
  padding: 11px 18px;
  border: 0;
  background: none;
  color: var(--ad-muted);
  font-size: 14.3px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.ad-tab:hover { color: var(--ad-ink); }
.ad-tab.is-active { color: var(--ad-maroon); border-bottom-color: var(--ad-maroon); }
.ad-tab-panel { display: none; }
.ad-tab-panel.is-active { display: block; }

.ad-empty { text-align: center; padding: 60px 24px; }
.ad-empty i { font-size: 34px; color: var(--ad-muted); opacity: .45; display: block; margin-bottom: 16px; }
.ad-empty h3 { font-size: 18px; margin-bottom: 8px; }
.ad-empty p { color: var(--ad-muted); max-width: 420px; margin: 0 auto 20px; font-size: 14.4px; }

.ad-pagination { display: flex; gap: 6px; justify-content: center; padding: 20px; flex-wrap: wrap; }
.ad-pagination a, .ad-pagination span {
  min-width: 38px; height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius-sm);
  background: #fff;
  color: var(--ad-ink);
  font-size: 14px;
  font-weight: 700;
}
.ad-pagination a:hover { border-color: var(--ad-maroon); color: var(--ad-maroon); }
.ad-body .ad-pagination .is-active { background: var(--ad-maroon); border-color: var(--ad-maroon); color: #fff; }
.ad-pagination .is-gap { border: 0; background: none; color: var(--ad-muted); }

/* Toasts */
.ad-toasts {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  display: grid;
  gap: 10px;
  max-width: min(370px, calc(100vw - 44px));
}
.ad-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 17px;
  background: #fff;
  border-radius: var(--ad-radius-sm);
  box-shadow: var(--ad-shadow-lg);
  border-left: 4px solid var(--ad-maroon);
  font-size: 14.2px;
  color: var(--ad-ink);
  animation: ad-toast-in .4s var(--ad-ease);
}
.ad-toast--success { border-left-color: var(--ad-green); }
.ad-toast--error   { border-left-color: var(--ad-red); }
.ad-toast--warning { border-left-color: var(--ad-orange); }
@keyframes ad-toast-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }

/* Confirm dialog */
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26,20,22,.55);
}
.ad-modal.is-open { display: flex; }
.ad-modal__box {
  background: #fff;
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow-lg);
  max-width: 430px;
  width: 100%;
  padding: 28px;
  text-align: center;
  animation: ad-pop .3s var(--ad-ease);
}
@keyframes ad-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.ad-modal__icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #FCECEB;
  color: var(--ad-red);
  font-size: 23px;
}
.ad-modal__box h3 { font-size: 19px; margin-bottom: 9px; }
.ad-modal__box p { color: var(--ad-muted); font-size: 14.4px; margin-bottom: 22px; }
.ad-modal__actions { display: flex; gap: 10px; justify-content: center; }

/* =====================================================================
   Login / auth screens
   ===================================================================== */

.ad-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ad-bg);
}
.ad-auth__aside {
  position: relative;
  background: linear-gradient(140deg, rgba(26,20,22,.88) 0%, rgba(138,28,45,.82) 100%), var(--ad-auth-img, none);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ad-auth__aside img.logo { height: 46px; width: auto; }
.ad-auth__aside h2 { color: #fff; font-size: 33px; line-height: 1.25; margin-bottom: 16px; }
.ad-auth__aside p { color: rgba(255,255,255,.8); font-size: 15.5px; max-width: 430px; }
.ad-auth__points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ad-auth__points li { display: flex; gap: 11px; align-items: center; color: rgba(255,255,255,.9); font-size: 14.6px; }
.ad-auth__points i { color: var(--ad-orange); }

.ad-auth__main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.ad-auth__card { width: 100%; max-width: 420px; }
.ad-auth__card h1 { font-size: 27px; margin-bottom: 8px; }
.ad-auth__card > p.lead { color: var(--ad-muted); margin-bottom: 30px; font-size: 14.8px; }
.ad-auth__brand { display: none; margin-bottom: 28px; }
.ad-auth__brand img { height: 44px; }
.ad-auth__foot { margin-top: 26px; text-align: center; font-size: 14px; color: var(--ad-muted); }

@media (max-width: 991px) {
  .ad-auth { grid-template-columns: 1fr; }
  .ad-auth__aside { display: none; }
  .ad-auth__brand { display: block; }
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1100px) {
  .ad-sidebar { transform: translateX(-100%); box-shadow: var(--ad-shadow-lg); }
  .ad-sidebar.is-open { transform: none; }
  .ad-main { margin-left: 0; }
  .ad-nav-toggle { display: grid; place-items: center; }
  .ad-topbar { padding-left: 70px; }
}

@media (max-width: 767px) {
  .ad-content { padding: 20px 16px; }
  .ad-topbar { padding: 14px 16px 14px 66px; }
  .ad-topbar__title h1 { font-size: 19px; }
  .ad-user__meta { display: none; }
  .ad-card__body { padding: 18px; }
  .ad-toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}
