:root {
  --bg-color: #f4f4f4;
  --text-color: #333333;
  --bg: var(--bg-color);
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.12);
  --gold: #d4af37;
  --text: var(--text-color);
  --muted: rgba(51, 51, 51, 0.72);
  --toast-bg: rgba(244, 244, 244, 0.92);
  --toast-border: rgba(15, 23, 42, 0.14);
  --scroll-track: rgba(15, 23, 42, 0.08);
}

html.dark {
  --bg: #0b111e;
  --card: #121a2e;
  --border: rgba(226, 232, 240, 0.12);
  --text: #ffffff;
  --muted: rgba(226, 232, 240, 0.82);
  --toast-bg: rgba(18, 26, 46, 0.92);
  --toast-border: rgba(226, 232, 240, 0.14);
  --scroll-track: rgba(0, 0, 0, 0.15);
}

html,
body {
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body[data-page]:not([data-page="login"]):not([data-page="register"]) {
  overflow: hidden;
}

.agms-sidebar {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  max-height: calc(100vh - 9rem);
  overflow: hidden;
}

.agms-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.agms-dashboard-charts {
  padding-bottom: 12px;
}

.agms-chart-container {
  min-height: 18rem;
}

.agms-chart-container-legend {
  padding-bottom: 24px;
}

body[data-page="dashboard"] #statCards .card-3d-inner p {
  white-space: normal;
  line-height: 1.6;
}

body[data-page="dashboard"] #pageRoot button[id^="tab"] {
  white-space: normal;
  text-align: center;
}

body[data-page="bookings"] #bookingsTable td {
  vertical-align: middle;
}

body[data-page="bookings"] #bookingsTable td:last-child {
  min-width: 360px;
}

body[data-page="bookings"] .dataTables_wrapper .dataTables_filter,
body[data-page="bookings"] .dataTables_wrapper .dataTables_length,
body[data-page="bookings"] .dataTables_wrapper .dataTables_info,
body[data-page="bookings"] .dataTables_wrapper .dataTables_paginate {
  direction: rtl;
  text-align: right;
}

.agms-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.agms-rec-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(11, 17, 30, 0.46);
  border: 1px solid rgba(212, 175, 55, 0.14);
}

html:not(.dark) .agms-rec-toolbar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

.agms-rec-toolbar__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.agms-rec-toolbar__title {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.agms-rec-toolbar__subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agms-rec-toolbar__summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.18);
  color: #d4af37;
  font-size: 12px;
  font-weight: 800;
}

.agms-rec-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.agms-rec-filter {
  display: grid;
  gap: 6px;
}

.agms-rec-filter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.agms-rec-filter__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.34);
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html:not(.dark) .agms-rec-filter__input {
  background: rgba(244, 244, 244, 0.88);
  border-color: rgba(15, 23, 42, 0.1);
}

.agms-rec-filter__input:focus {
  outline: 0;
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.agms-rec-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 38%),
    rgba(11, 17, 30, 0.64);
  border: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

html:not(.dark) .agms-rec-card {
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

.agms-rec-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.26);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.agms-rec-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agms-rec-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.agms-rec-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.16);
  color: #d4af37;
  flex: 0 0 auto;
}

.agms-rec-card__meta {
  min-width: 0;
}

.agms-rec-card__name {
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.agms-rec-card__type {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agms-rec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.agms-rec-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agms-rec-card__rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.agms-rec-badge--gov,
.agms-rec-badge--verified {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.agms-rec-badge--top-rated {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

.agms-rec-badge--best-value {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.22);
  color: #f5d36b;
}

.agms-rec-badge--expert {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
}

.agms-rec-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agms-rec-stat {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

html:not(.dark) .agms-rec-stat {
  background: rgba(244, 244, 244, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
}

.agms-rec-stat__label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.agms-rec-stat__value {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.agms-rec-stat__value--price {
  color: #d4af37;
  font-size: 16px;
}

.agms-rec-stat__rating {
  margin-top: 6px;
}

.agms-rec-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agms-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #f5d36b;
  font-size: 14px;
}

.agms-stars--compact {
  font-size: 12px;
}

.agms-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agms-rating-summary--compact {
  gap: 6px;
}

.agms-rating-summary__value {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.agms-rating-summary__count,
.agms-rating-summary__empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.agms-rec-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

html:not(.dark) .agms-rec-signal {
  background: rgba(244, 244, 244, 0.74);
  border-color: rgba(15, 23, 42, 0.08);
}

.agms-rec-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.agms-rec-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4af37, #34d399);
}

.agms-rec-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.agms-rec-card__hint {
  color: #d4af37;
  font-size: 11px;
  font-weight: 900;
}

.agms-rec-card__score {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.agms-rec-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agms-rec-btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.agms-rec-btn:hover {
  transform: translateY(-1px);
}

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

.agms-rec-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.agms-rec-btn-primary {
  background: linear-gradient(135deg, #d4af37, #f5d36b);
  color: #0b111e;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.2);
  flex: 1 1 180px;
  min-height: 48px;
  font-size: 13px;
}

.agms-rec-btn-primary:hover {
  filter: brightness(1.04);
}

.agms-rec-btn-secondary {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--text);
}

html:not(.dark) .agms-rec-btn-secondary {
  background: rgba(244, 244, 244, 0.82);
  border-color: rgba(15, 23, 42, 0.12);
}

.agms-rec-btn-secondary:hover {
  border-color: rgba(212, 175, 55, 0.26);
  color: #d4af37;
}

.agms-rec-btn-ghost {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.18);
  color: #d4af37;
}

.agms-rec-btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.28);
}

.agms-rec-state {
  min-height: 164px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.32);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

html:not(.dark) .agms-rec-state {
  background: rgba(244, 244, 244, 0.78);
  border-color: rgba(15, 23, 42, 0.12);
}

.agms-rec-state i {
  font-size: 20px;
  color: #d4af37;
}

.agms-rec-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.18);
  border-top-color: #d4af37;
  animation: agms-rec-spin 0.8s linear infinite;
}

.agms-review-panel {
  display: grid;
  gap: 14px;
}

.agms-review-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.agms-review-panel__body {
  display: grid;
  gap: 12px;
}

.agms-review-loading,
.agms-review-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 140px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.agms-review-list {
  display: grid;
  gap: 10px;
}

.agms-review-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.agms-review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agms-review-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.agms-review-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(245, 211, 107, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.18);
  color: #f5d36b;
  font-size: 13px;
  font-weight: 900;
}

.agms-review-card__meta {
  display: grid;
  gap: 4px;
}

.agms-review-card__name {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.agms-review-card__score {
  color: #f5d36b;
  font-size: 14px;
  font-weight: 900;
}

.agms-review-card__comment {
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}

.agms-review-modal {
  animation: agms-review-modal-enter 180ms ease;
}

.agms-review-form__intro {
  padding: 14px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.agms-review-form__stars {
  display: grid;
  gap: 10px;
}

.agms-review-form__star-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.agms-review-form__star-option:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.2);
}

.agms-review-form__star-option input {
  accent-color: #d4af37;
}

.agms-review-form__star-option em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.agms-booking-rate-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(245, 211, 107, 0.12));
  color: #f5d36b;
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.08);
}

.agms-booking-rate-btn:hover {
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.12);
}

.agms-trip-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.34);
}

.agms-trip-alert--normal {
  border-color: rgba(16, 185, 129, 0.18);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.32));
}

.agms-trip-alert--medium {
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.32));
}

.agms-trip-alert--high,
.agms-trip-alert--critical {
  border-color: rgba(244, 63, 94, 0.24);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(15, 23, 42, 0.32));
}

.agms-trip-alert__content {
  display: grid;
  gap: 4px;
}

.agms-trip-alert__title {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.agms-trip-alert__text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agms-trip-alert__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agms-trip-smart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
}

.agms-trip-smart-badge--gold {
  background: rgba(212, 175, 55, 0.12);
  color: #f5d36b;
  border-color: rgba(212, 175, 55, 0.18);
}

.agms-trip-smart-badge--rose {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.18);
}

.agms-trip-smart-badge--sky {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.18);
}

.agms-trip-smart-badge--emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.18);
}

.agms-trip-smart-badge--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.18);
}

.agms-trip-conversion-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agms-trip-conversion-meta__item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 6px;
}

.agms-trip-conversion-meta__item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.agms-trip-conversion-meta__item strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.agms-trip-price-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.agms-trip-price-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agms-trip-price-summary__row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.agms-trip-price-summary__row--total {
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.agms-trip-price-summary__row--total span,
.agms-trip-price-summary__row--total strong {
  color: #f5d36b;
  font-size: 14px;
}

.agms-trip-price-summary__hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
}

.agms-trip-booking-form {
  transition: opacity 180ms ease, transform 180ms ease;
}

.agms-trip-booking-form.is-loading {
  opacity: 0.82;
}

.agms-trip-coupon-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agms-trip-coupon-input-wrap input {
  flex: 1 1 auto;
}

.agms-trip-coupon-indicator {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.3);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.agms-trip-coupon-input-wrap[data-state="loading"] .agms-trip-coupon-indicator {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.24);
}

.agms-trip-coupon-input-wrap[data-state="valid"] .agms-trip-coupon-indicator {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.24);
}

.agms-trip-coupon-input-wrap[data-state="invalid"] .agms-trip-coupon-indicator {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.24);
}

.agms-trip-coupon-status {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--muted);
}

.agms-trip-coupon-status[data-state="loading"] {
  color: #fcd34d;
}

.agms-trip-coupon-status[data-state="valid"] {
  color: #6ee7b7;
}

.agms-trip-coupon-status[data-state="invalid"] {
  color: #fda4af;
}

.agms-trip-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.agms-trip-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.18);
}

.agms-trip-cta:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.agms-trip-cta__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(11, 17, 30, 0.18);
  border-top-color: rgba(11, 17, 30, 0.9);
  display: none;
}

.agms-trip-cta[data-state="loading"] .agms-trip-cta__spinner {
  display: inline-block;
  animation: agms-rec-spin 0.8s linear infinite;
}

.agms-trip-cta[data-state="success"] {
  filter: saturate(0.92);
}

.agms-trip-booking-confirmation {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 14px 0 2px;
  animation: agms-review-modal-enter 220ms ease;
}

.agms-trip-booking-confirmation__pulse {
  position: absolute;
  top: 18px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 68%);
  animation: agms-trip-success-pulse 1.8s ease-out infinite;
}

.agms-trip-booking-confirmation__icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(110, 231, 183, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
  font-size: 28px;
  z-index: 1;
}

.agms-trip-booking-confirmation__title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.agms-trip-booking-confirmation__text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.agms-trip-booking-confirmation__summary {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.agms-trip-booking-confirmation__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agms-trip-booking-confirmation__line strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.agms-trip-booking-confirmation__actions {
  width: 100%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.agms-trip-booking-confirmation__actions .agms-rec-btn {
  flex: 1 1 180px;
}

@keyframes agms-trip-success-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.2;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes agms-rec-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes agms-review-modal-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .agms-rec-toolbar__header {
    flex-direction: column;
    align-items: stretch;
  }

  .agms-rec-filters {
    grid-template-columns: 1fr;
  }

  .agms-rec-card {
    padding: 16px;
  }

  .agms-rec-card__stats {
    grid-template-columns: 1fr;
  }

  .agms-rec-card__actions {
    flex-direction: column;
  }

  .agms-rec-btn {
    width: 100%;
  }

  .agms-rec-btn-primary {
    order: -1;
  }

  .agms-review-panel__head,
  .agms-review-card__head,
  .agms-review-card__identity,
  .agms-review-form__star-option {
    align-items: flex-start;
  }

  .agms-trip-alert,
  .agms-trip-price-summary__row,
  .agms-trip-booking-confirmation__line {
    align-items: flex-start;
  }

  .agms-trip-conversion-meta {
    grid-template-columns: 1fr;
  }

  .agms-trip-coupon-input-wrap,
  .agms-trip-booking-confirmation__actions {
    flex-direction: column;
  }

  .agms-trip-coupon-indicator {
    width: 100%;
  }
}

.agms-admin-tracking {
  min-height: 520px;
}

.agms-admin-tracking-map {
  width: 100%;
  min-height: 520px;
  height: calc(100vh - 220px);
  border-radius: 24px;
}

html.dark .leaflet-container {
  background: #0b111e;
}

html.dark .leaflet-control-attribution {
  background: rgba(11, 17, 30, 0.7);
  color: rgba(226, 232, 240, 0.72);
}

.agms-admin-alert-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  z-index: 3000;
  pointer-events: none;
}

.agms-admin-alert-card {
  pointer-events: auto;
  width: min(560px, calc(100vw - 32px));
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid rgba(239, 68, 68, 0.95);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  animation: agms-alert-blink 1.05s infinite;
}

.agms-admin-alert-title {
  font-size: 12px;
  font-weight: 900;
  color: rgba(239, 68, 68, 0.98);
  letter-spacing: 0.08em;
}

.agms-admin-alert-text {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.5;
}

.agms-admin-alert-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: rgba(248, 250, 252, 0.92);
}

.agms-admin-alert-action {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.92);
  color: #0b111e;
  font-weight: 900;
  font-size: 12px;
}

.agms-alert-blink {
  animation: agms-alert-blink 1.05s infinite;
}

.leaflet-interactive.agms-map-alert-pulse {
  animation: agms-map-pulse 1.1s infinite;
}

@keyframes agms-alert-blink {
  0% {
    box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    border-color: rgba(239, 68, 68, 0.35);
  }
  50% {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.95);
  }
  100% {
    box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    border-color: rgba(239, 68, 68, 0.35);
  }
}

@keyframes agms-map-pulse {
  0% {
    filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.85));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0));
  }
}

body[data-page="create-trip"] #pageRoot {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.8);
  border-radius: 12px;
}

.perspective-3d {
  perspective: 1000px;
}

.card-3d {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  transform-style: preserve-3d;
  border-radius: 24px;
}

.card-3d:hover {
  transform: rotateX(6deg) rotateY(-6deg) translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.card-3d-inner {
  transform: translateZ(30px);
}

.gold-glow {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.toast-host,
.tr-toast-host {
  position: fixed;
  inset-inline-start: 16px;
  top: 16px;
  display: grid;
  gap: 10px;
  justify-items: end;
  z-index: 4200;
  pointer-events: none;
  direction: rtl;
}

.toast,
.tr-toast {
  width: min(420px, calc(100vw - 32px));
  background: var(--toast-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--toast-border);
  border-radius: 18px;
  padding: 13px 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  pointer-events: auto;
}

.tr-toast {
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.tr-toast::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 8px 8px 0;
  background: rgba(148, 163, 184, 0.4);
}

.tr-toast--enter {
  opacity: 0;
  transform: translateY(-8px) translateX(-10px);
}

.tr-toast--closing {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.tr-toast--success {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(18, 26, 46, 0.92));
}

.tr-toast--error {
  border-color: rgba(220, 38, 38, 0.32);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(18, 26, 46, 0.92));
}

.tr-toast--warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(18, 26, 46, 0.92));
}

.tr-toast--info {
  border-color: rgba(37, 99, 235, 0.32);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(18, 26, 46, 0.92));
}

html:not(.dark) .tr-toast--success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.94));
}

html:not(.dark) .tr-toast--error {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(255, 255, 255, 0.94));
}

html:not(.dark) .tr-toast--warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.94));
}

html:not(.dark) .tr-toast--info {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.94));
}

.tr-toast--success::before {
  background: #10b981;
}

.tr-toast--error::before {
  background: #ef4444;
}

.tr-toast--warning::before {
  background: #f59e0b;
}

.tr-toast--info::before {
  background: #3b82f6;
}

.tr-toast:hover {
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.38);
}

.tr-toast__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.toast-title,
.tr-toast__title {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.toast-body,
.tr-toast__body {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tr-toast__close {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.32);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  flex: 0 0 auto;
}

.tr-toast__close:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.22);
  transform: scale(1.03);
}

.tr-toast__close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

@media (max-width: 640px) {
  .toast-host,
  .tr-toast-host {
    inset-inline: 12px;
    top: 12px;
  }

  .toast,
  .tr-toast {
    width: auto;
  }
}

.link {
  color: rgba(212, 175, 55, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.glass-panel {
  background: rgba(10, 15, 30, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

html:not(.dark) .glass-panel {
  background: rgba(244, 244, 244, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

html:not(.dark) .text-white {
  color: var(--text) !important;
}

html:not(.dark) .text-slate-200 {
  color: rgba(15, 23, 42, 0.86) !important;
}

html:not(.dark) .text-slate-300 {
  color: rgba(15, 23, 42, 0.78) !important;
}

html:not(.dark) .text-slate-400 {
  color: rgba(15, 23, 42, 0.66) !important;
}

html.dark .text-gold-500,
html.dark .text-gold-600,
html.dark .text-amber-400,
html.dark .text-amber-500,
html.dark .text-amber-600,
html.dark .text-yellow-400,
html.dark .text-yellow-500,
html.dark .text-yellow-600 {
  color: #ffffff !important;
}

html:not(.dark) .text-gold-500,
html:not(.dark) .text-gold-600,
html:not(.dark) .text-amber-400,
html:not(.dark) .text-amber-500,
html:not(.dark) .text-amber-600,
html:not(.dark) .text-yellow-400,
html:not(.dark) .text-yellow-500,
html:not(.dark) .text-yellow-600 {
  color: var(--text) !important;
}

.bg-darkBg {
  background-color: var(--bg) !important;
}

.bg-darkCard {
  background-color: var(--card) !important;
}

.border-darkBorder {
  border-color: var(--border) !important;
}

.text-darkBg {
  color: var(--bg) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.cosmic-panel {
  background: rgba(11, 17, 30, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.14);
}

html:not(.dark) .cosmic-panel {
  background: rgba(244, 244, 244, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.cosmic-panel-hidden {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.cosmic-panel-mini {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.agms-smart-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 35%),
    rgba(11, 17, 30, 0.58);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

html:not(.dark) .agms-smart-banner {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 35%),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}

.agms-smart-banner__copy {
  min-width: 0;
}

.agms-smart-banner__title {
  color: #d4af37;
  font-size: 12px;
  font-weight: 900;
}

.agms-smart-banner__text {
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.agms-smart-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.agms-smart-banner__count {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agms-smart-banner__btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.agms-smart-banner__btn:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.28);
  transform: translateY(-1px);
}

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

.agms-package-detail {
  padding: 14px;
  border-radius: 20px;
  background: rgba(11, 17, 30, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

html:not(.dark) .agms-package-detail {
  background: rgba(244, 244, 244, 0.84);
  border-color: rgba(15, 23, 42, 0.08);
}

.agms-package-detail__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.agms-package-detail__value {
  margin-top: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.agms-package-mini-detail {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(11, 17, 30, 0.32);
  border: 1px solid rgba(148, 163, 184, 0.1);
  line-height: 1.6;
}

html:not(.dark) .agms-package-mini-detail {
  background: rgba(244, 244, 244, 0.76);
  border-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .agms-smart-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .agms-smart-banner__actions {
    width: 100%;
    justify-content: space-between;
  }

  .agms-package-grid {
    grid-template-columns: 1fr;
  }
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(44, 62, 80, 0.12), transparent 28%),
    var(--bg);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  padding: 28px;
  display: grid;
  gap: 22px;
}

html.dark .auth-card {
  background: rgba(18, 26, 46, 0.94);
  border-color: rgba(226, 232, 240, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.auth-card-wide {
  width: min(100%, 680px);
}

.auth-card-register {
  width: min(100%, 840px);
}

.auth-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.auth-brand-badge {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d4af37, #f5d36b);
  color: #1f2937;
  font-size: 22px;
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.22);
  flex: 0 0 auto;
}

.auth-brand-copy {
  min-width: 0;
}

.auth-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

html.dark .auth-step {
  border-color: rgba(226, 232, 240, 0.08);
  background: rgba(11, 17, 30, 0.42);
}

.auth-step strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.auth-step small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.auth-step__number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

html.dark .auth-step__number {
  background: rgba(255, 255, 255, 0.08);
}

.auth-step-active {
  border-color: rgba(212, 175, 55, 0.26);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.12);
}

.auth-step-active .auth-step__number,
.auth-step-done .auth-step__number {
  background: linear-gradient(135deg, #d4af37, #f5d36b);
  color: #1f2937;
}

.auth-step-panel {
  display: grid;
  gap: 18px;
}

.auth-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.auth-panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.auth-role-card {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 10px;
  text-align: right;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

html.dark .auth-role-card {
  border-color: rgba(226, 232, 240, 0.08);
  background: rgba(11, 17, 30, 0.48);
}

.auth-role-card i {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.12);
  color: #d4af37;
  font-size: 20px;
}

.auth-role-card strong {
  font-size: 16px;
}

.auth-role-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.08);
}

.auth-role-card.is-active {
  border-color: rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12);
}

.auth-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #8a6a14;
}

html.dark .auth-kicker {
  color: #f0d06c;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  color: var(--text);
}

.auth-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field-full {
  grid-column: 1 / -1;
}

.auth-field label,
.auth-role-group legend {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

html.dark .auth-input-wrap {
  border-color: rgba(226, 232, 240, 0.12);
  background: rgba(11, 17, 30, 0.75);
}

.auth-input-wrap:focus-within {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.auth-input-wrap i {
  color: var(--muted);
  flex: 0 0 auto;
}

.auth-input-wrap input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.auth-input-wrap-textarea {
  align-items: flex-start;
  padding-block: 12px;
}

.auth-input-wrap textarea {
  width: 100%;
  min-height: 120px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: 1.7;
}

.auth-input-wrap input::placeholder {
  color: rgba(100, 116, 139, 0.78);
}

.auth-role-group {
  grid-column: 1 / -1;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.58);
}

html.dark .auth-role-group {
  border-color: rgba(226, 232, 240, 0.1);
  background: rgba(11, 17, 30, 0.42);
}

.auth-role-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease;
}

.auth-role-option:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
}

.auth-role-option input {
  margin-top: 4px;
}

.auth-role-option strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.auth-role-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.auth-feedback {
  min-height: 22px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #b42318;
}

.auth-feedback:not(:empty) {
  min-height: auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.16);
}

.auth-feedback-full,
.auth-submit-full {
  grid-column: 1 / -1;
}

.auth-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2c3e50, #3c556d);
  color: #fff;
  font: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(44, 62, 80, 0.2);
}

.auth-submit:hover {
  filter: brightness(1.03);
}

.auth-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-btn-secondary {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

html.dark .auth-btn-secondary {
  border-color: rgba(226, 232, 240, 0.12);
  background: rgba(11, 17, 30, 0.75);
}

.auth-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .auth-card,
  .auth-card-wide {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .auth-brand {
    gap: 12px;
  }

  .auth-brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 20px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-stepper,
  .auth-role-cards {
    grid-template-columns: 1fr;
  }

  .auth-wizard-actions {
    flex-direction: column-reverse;
  }

  .auth-btn-secondary,
  .auth-submit {
    width: 100%;
  }

  .auth-footer {
    justify-content: center;
  }
}

.ui-hud-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.ui-hud-layer .interactive {
  pointer-events: auto;
}

.tactical-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(51, 51, 51, 0.25);
  background: rgba(16, 185, 129, 0.95);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  transform: translate(-50%, -50%);
}

.tactical-dot-alert {
  background: rgba(239, 68, 68, 0.95);
  animation: agmsPulse 1s infinite;
}

@keyframes agmsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.sponsor-logo {
  filter: grayscale(1) brightness(0.85);
  opacity: 0.75;
  transform: translateY(0) scale(1);
  transition: filter 180ms ease, opacity 180ms ease, transform 220ms ease;
}

.sponsor-logo:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-2px) scale(1.03);
}

.vip-card {
  background: rgba(10, 15, 30, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.vip-metal-gold {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.12);
}

.vip-metal-silver {
  border-color: rgba(226, 232, 240, 0.28);
  box-shadow: 0 10px 28px rgba(226, 232, 240, 0.08);
}

.vip-metal-bronze {
  border-color: rgba(205, 127, 50, 0.35);
  box-shadow: 0 10px 28px rgba(205, 127, 50, 0.10);
}

.vip-metal-copper {
  border-color: rgba(184, 115, 51, 0.35);
  box-shadow: 0 10px 28px rgba(184, 115, 51, 0.10);
}

.agms-modal-backdrop {
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html:not(.dark) .agms-modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.agms-dropzone {
  border: 1px dashed rgba(212, 175, 55, 0.22);
  background: rgba(11, 17, 30, 0.35);
}

html:not(.dark) .agms-dropzone {
  background: rgba(244, 244, 244, 0.75);
  border-color: rgba(15, 23, 42, 0.18);
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  body[data-page]:not([data-page="login"]):not([data-page="register"]) {
    overflow: auto;
  }

  .agms-sidebar {
    max-height: none;
  }
}

.agms-dropzone-active {
  border-style: solid;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.agms-avatar-fallback {
  background: radial-gradient(circle at 40% 30%, rgba(212, 175, 55, 0.24), rgba(18, 26, 46, 0.55));
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.agms-suspended-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.agms-suspended-card {
  width: min(560px, calc(100vw - 36px));
  border-radius: 28px;
  padding: 22px;
  background: rgba(18, 26, 46, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.agms-suspended-badge {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212, 175, 55, 0.95);
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.18);
}
