:root {
  --bg: #0b1220;
  --bg-card: #141c2e;
  --bg-sidebar: #0f1628;
  --border: #243049;
  --text: #e8edf5;
  --muted: #8b9cb3;
  --primary: #7c3aed;
  --accent: #06b6d4;
  --danger: #dc2626;
  --sidebar-w: 260px;
  --header-h: 60px;
  --content-pad: clamp(0.75rem, 2.5vw, 1.5rem);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body.admin-body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Shell ─── */
.admin-shell {
  display: flex;
  min-height: 100%;
  height: 100%;
  width: 100%;
}

.admin-shell.sidebar-open {
  overflow: hidden;
}

/* ─── Sidebar ─── */
.admin-sidebar {
  width: var(--sidebar-w);
  max-width: min(var(--sidebar-w), 88vw);
  background: var(--bg-sidebar);
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 200;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  transition: transform 0.28s ease;
}

.admin-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
  flex-shrink: 0;
}

.admin-brand-text strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
}

.admin-brand-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

.sidebar-close {
  display: none;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.admin-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.5) rgba(255, 255, 255, 0.04);
}

.admin-nav::-webkit-scrollbar {
  width: 7px;
}

.admin-nav::-webkit-scrollbar-track {
  margin: 0.35rem 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.admin-nav::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.admin-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.65);
  background-clip: padding-box;
}

/* ─── Sidebar rail (إدارة — مميّز عن أزرار الموقع العام) ─── */
.admin-sidebar--rail {
  --sidebar-w: 278px;
  background: linear-gradient(180deg, #0c1222 0%, #0a101c 100%);
  border-inline-end: 1px solid rgba(124, 58, 237, 0.18);
}

.admin-brand--logo {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
}

.admin-brand-logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.admin-brand-logo-img {
  height: 34px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(6, 182, 212, 0.25));
}

.admin-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.admin-brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  width: fit-content;
}

.admin-brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-nav--rail {
  padding: 0.5rem 0.65rem 1.25rem;
}

.nav-rail-group--disclosure {
  padding: 0;
  background: transparent;
  border: none;
}

.nav-rail-disclosure {
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.55);
  border: 1px solid rgba(36, 48, 73, 0.85);
  overflow: hidden;
}

.nav-rail-disclosure--nested {
  margin-top: 0.35rem;
  background: rgba(6, 10, 20, 0.45);
  border: 1px solid rgba(36, 48, 73, 0.65);
}

.nav-rail-disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  user-select: none;
}

.nav-rail-disclosure > summary::-webkit-details-marker {
  display: none;
}

.nav-rail-disclosure-summary--sub {
  font-size: 0.68rem !important;
  color: #94a3b8 !important;
  padding: 0.45rem 0.55rem !important;
}

.nav-rail-disclosure-title {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.nav-rail-disclosure-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.nav-rail-disclosure:not([open]) .nav-rail-disclosure-chevron {
  transform: rotate(-90deg);
}

.nav-rail-disclosure-panel {
  padding: 0 0.35rem 0.55rem;
}

.nav-rail-disclosure--nested .nav-rail-disclosure-panel {
  padding: 0 0.25rem 0.45rem;
}

.nav-rail-group {
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.4rem 0.55rem;
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.55);
  border: 1px solid rgba(36, 48, 73, 0.85);
}

.nav-rail-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.5rem 0.55rem;
  text-transform: none;
}

.nav-rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  flex-shrink: 0;
}

.nav-rail-dot--emerald {
  background: linear-gradient(135deg, #34d399, #059669);
}

.nav-rail-dot--amber {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.nav-rail-dot--violet {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.nav-rail-dot--cyan {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
}

.nav-rail-dot--rose {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.nav-rail-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 3px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.88rem;
  text-decoration: none;
  border-inline-start: 3px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  min-height: 42px;
}

.nav-rail-link:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #e2e8f0;
  text-decoration: none;
}

.nav-rail-link.is-active {
  background: rgba(124, 58, 237, 0.16);
  color: #f8fafc;
  border-inline-start-color: var(--accent);
}

.nav-rail-link--media-solo {
  margin-bottom: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.42);
  background: linear-gradient(125deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.1));
  border-inline-start-width: 3px;
  border-inline-start-color: rgba(167, 139, 250, 0.9);
}

.nav-rail-link--media-solo:hover {
  background: linear-gradient(125deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.16));
  color: #fff;
}

.nav-rail-link--media-solo.is-active {
  border-inline-start-color: var(--accent);
  background: linear-gradient(125deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.22));
}

.nav-rail-divider {
  height: 1px;
  margin: 0.35rem 0.5rem 0.65rem;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.nav-rail-divider--muted {
  margin-top: 0.75rem;
  opacity: 0.85;
}

.nav-rail-heading--sub {
  padding-top: 0.15rem;
  font-size: 0.68rem;
  color: #94a3b8;
}

.nav-rail-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-end: 0;
  margin-top: 0.15rem;
}

.nav-rail-settings-stack--flat {
  max-height: none;
  overflow: visible;
}

.nav-rail-link--settings {
  font-size: 0.82rem;
  padding: 0.45rem 0.55rem;
  min-height: 38px;
}

.nav-rail-ico {
  width: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

.nav-group { margin-bottom: 1rem; }

.nav-group-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 0.5rem 0.4rem;
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.nav-link:hover {
  background: rgba(124, 58, 237, 0.12);
  color: var(--text);
  text-decoration: none;
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.15));
  color: #fff;
  font-weight: 600;
}

.nav-badge {
  margin-inline-start: auto;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  min-width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
  backdrop-filter: blur(2px);
}

/* ─── Main ─── */
.admin-main {
  flex: 1;
  min-width: 0;
  margin-inline-start: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-header {
  min-height: var(--header-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem var(--content-pad);
  background: rgba(15, 22, 40, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header-start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.admin-header-brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: linear-gradient(145deg, rgba(20, 28, 46, 0.95), rgba(15, 22, 40, 0.75));
}

.admin-header-logo {
  display: block;
  height: 26px;
  width: auto;
  max-width: 104px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.admin-header h1 {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-user-name {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-content {
  flex: 1;
  padding: var(--content-pad);
  padding-bottom: calc(var(--content-pad) + 2rem);
  width: 100%;
  max-width: 1400px;
}

.admin-footer {
  padding: 0.85rem var(--content-pad);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── Components ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(0.85rem, 2vw, 1.25rem);
}

.page-intro {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 52rem;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-card {
  max-width: 720px;
  width: 100%;
}

/* Admin dashboard — cards use full content width */
body.admin-panel .admin-shell .admin-content .card,
body.admin-panel .admin-shell .admin-content .form-card,
body.admin-panel .admin-shell .admin-content .admin-form-card,
body.admin-panel .admin-shell .admin-content .admin-form-card--wide,
body.admin-panel .admin-shell .admin-content .admin-form-card--full,
body.admin-panel .admin-shell .admin-content .activity-form-card,
body.admin-panel .admin-shell .admin-content .activity-wizard-root,
body.admin-panel .admin-shell .admin-content .home-hero-media-root {
  max-width: 100%;
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  text-decoration: none;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #a78bfa;
  line-height: 1.2;
}

.stat-card span { color: var(--muted); font-size: 0.88rem; }
.stat-card small { display: block; color: #86efac; font-size: 0.75rem; margin-top: 0.25rem; }

/* Tables */
.admin-data-card {
  padding: 0;
  overflow: hidden;
}

.admin-data-card > .table-scroll {
  margin: 0;
  padding: 0;
}

.admin-data-card .data-table thead th {
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--border);
}

.admin-data-card .data-table th:first-child,
.admin-data-card .data-table td:first-child {
  padding-inline-start: 1.15rem;
}

.admin-data-card .data-table th:last-child,
.admin-data-card .data-table td:last-child {
  padding-inline-end: 1.15rem;
}

.admin-data-card .data-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.06);
}

.admin-data-card .data-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.admin-table-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-table-summary-sep {
  margin-inline: 0.25rem;
  opacity: 0.6;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.table-scroll .data-table {
  min-width: 640px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.6rem;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.88rem;
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.data-table .cell-actions {
  white-space: nowrap;
}

.data-table .cell-actions form {
  display: inline;
}

.pagination-wrap {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  margin-inline-start: auto;
}

.admin-pagination {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.admin-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem;
  border: none;
  border-inline-start: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-card);
  color: #60a5fa;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.admin-pagination-btn:first-child {
  border-inline-start: none;
}

a.admin-pagination-btn:hover {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  text-decoration: none;
}

.admin-pagination-btn.is-active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.admin-pagination-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--muted);
}

.admin-pagination-btn.admin-pagination-nav {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  padding-inline: 0.75rem;
}

.admin-pagination-btn.admin-pagination-ellipsis {
  min-width: 2.25rem;
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-new { background: #14532d; color: #86efac; }
.badge-read { background: #1e3a5f; color: #93c5fd; }
.badge-booking { background: #4c1d95; color: #ddd6fe; }
.badge-contact { background: #164e63; color: #a5f3fc; }
.badge-service { background: #713f12; color: #fde68a; }
.badge-success { background: #14532d; color: #86efac; }
.badge-danger { background: #7f1d1d; color: #fca5a5; }
.badge-muted { background: #1e293b; color: #94a3b8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  min-height: 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.92; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #334155; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; min-height: 34px; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #14532d;
  color: #bbf7d0;
  font-size: 0.9rem;
}

.alert-error { background: #450a0a; color: #fecaca; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.filters .field { margin: 0; flex: 1 1 140px; min-width: 0; }

.field { margin-bottom: 1rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="file"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
.input-date,
.input-time,
.input-datetime {
  color-scheme: dark;
  cursor: pointer;
  min-height: 2.75rem;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  filter: invert(0.85);
}

.activity-datetime-field {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.activity-datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.activity-datetime-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.activity-datetime-icon {
  position: absolute;
  inset-inline-start: 0.65rem;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.activity-datetime-part {
  padding-inline-start: 2.25rem !important;
}

.activity-datetime-preview {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.activity-datetime-preview strong {
  color: #93c5fd;
  font-weight: 600;
}

.activity-countdown-preview {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
}

.activity-countdown-preview__title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.activity-countdown-preview__message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.activity-countdown-preview--live {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(6, 78, 59, 0.25);
}

.activity-countdown-preview--live .activity-countdown-preview__message {
  color: #a7f3d0;
}

.activity-countdown-preview--scheduled {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(120, 53, 15, 0.22);
}

.activity-countdown-preview--scheduled .activity-countdown-preview__message {
  color: #fde68a;
}

.activity-countdown-preview--expired,
.activity-countdown-preview--missing_end {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.2);
}

.activity-countdown-preview--expired .activity-countdown-preview__message,
.activity-countdown-preview--missing_end .activity-countdown-preview__message {
  color: #fecaca;
}

@media (max-width: 560px) {
  .activity-datetime-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="url"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  select,
  textarea {
    font-size: inherit;
  }
}

textarea { min-height: 100px; resize: vertical; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.locale-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.locale-tabs .btn.active {
  background: var(--primary);
  color: #fff;
}

.image-upload-box {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.image-preview {
  margin-top: 0.75rem;
  max-width: min(280px, 100%);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.image-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.thumb-img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.detail-grid { display: grid; gap: 0.5rem; }

.detail-row {
  display: grid;
  grid-template-columns: minmax(100px, 130px) 1fr;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-row dt { color: var(--muted); margin: 0; font-size: 0.88rem; }
.detail-row dd { margin: 0; word-break: break-word; }

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-form-card {
  max-width: min(720px, 100%);
}

.admin-form-section {
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.admin-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
}

.admin-form-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.field--inline-check {
  margin-bottom: 0;
  padding-top: 0.25rem;
}

.field--inline-check label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  cursor: pointer;
  color: var(--text);
}

.field--inline-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* ─── Livewire + motion ─── */
@keyframes lw-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lw-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lw-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes login-orbit {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12%, -8%) scale(1.05); }
  66% { transform: translate(-8%, 10%) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes login-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.lw-fade-up {
  animation: lw-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lw-rise {
  animation: lw-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.06s * (var(--stagger, 0)));
}

.lw-shake {
  animation: lw-shake 0.45s ease;
}

.admin-guest-root {
  min-height: 100vh;
}

.login-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 80% at 10% 20%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(90% 70% at 90% 80%, rgba(6, 182, 212, 0.28), transparent 50%),
    var(--bg);
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: login-orbit 22s ease-in-out infinite;
}

.login-orb--a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -12%;
  left: -8%;
  background: rgba(124, 58, 237, 0.55);
}

.login-orb--b {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  bottom: -10%;
  right: -6%;
  background: rgba(6, 182, 212, 0.45);
  animation-duration: 28s;
  animation-delay: -4s;
}

.login-orb--c {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  top: 40%;
  left: 35%;
  background: rgba(236, 72, 153, 0.25);
  animation-duration: 19s;
  animation-delay: -9s;
}

.login-page--premium {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 899px) {
  .login-page--premium {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    align-items: stretch;
    padding: max(0.75rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }

  .login-panel {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.25rem;
  }

  .login-page--premium .login-card {
    max-width: none;
  }

  .login-brand-img-wrap {
    max-width: 100%;
  }

  .login-title {
    font-size: 1.3rem;
  }
}

.login-page--premium .login-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(1.15rem, 4vw, 1.75rem);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.login-form .field {
  margin-bottom: 0.9rem;
  width: 100%;
  min-width: 0;
}

.login-form .field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="tel"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form input::placeholder {
  color: #64748b;
  opacity: 1;
}

.login-form input:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.96) inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc;
  border: 1px solid rgba(124, 58, 237, 0.45) !important;
}

.login-form .field--phone input {
  direction: ltr;
  text-align: start;
}

[dir="rtl"] .login-form .field--phone label {
  text-align: right;
}

.login-referral-badge {
  margin-top: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font-size: 0.85rem;
  line-height: 1.5;
}

.login-flash {
  margin-bottom: 1rem;
}

.login-social {
  margin-bottom: 1.25rem;
}

.login-social-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.login-social-divider::before,
.login-social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.login-social-divider span {
  flex-shrink: 0;
}

.login-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.login-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.login-social-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(30, 41, 59, 0.75);
  transform: translateY(-1px);
}

.login-social-btn--google:hover {
  border-color: rgba(66, 133, 244, 0.45);
}

.login-social-btn--facebook {
  color: #e8f0fe;
}

.login-social-btn--facebook:hover {
  border-color: rgba(24, 119, 242, 0.5);
  background: rgba(24, 119, 242, 0.15);
}

.login-social-icon {
  flex-shrink: 0;
}

.login-form-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.login-form-footer a {
  color: var(--accent);
  font-weight: 600;
}

.login-showcase {
  display: none;
  color: var(--text);
}

@media (min-width: 900px) {
  .login-showcase {
    display: block;
  }
}

.login-showcase-inner {
  padding: 1rem 0.5rem;
}

.login-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.login-showcase-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  background: linear-gradient(120deg, #fff 0%, #c4b5fd 45%, #67e8f9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: login-gradient 8s ease infinite;
}

.login-showcase-text {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.75;
  max-width: 36ch;
}

.login-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.login-pills li {
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 28, 46, 0.65);
  backdrop-filter: blur(8px);
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.login-card--glass {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20, 28, 46, 0.92), rgba(15, 22, 40, 0.88)) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

.login-card--glass::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 120deg, rgba(124, 58, 237, 0.12), transparent, rgba(6, 182, 212, 0.15), transparent);
  animation: login-gradient 14s linear infinite;
  opacity: 0.9;
  pointer-events: none;
}

.login-card--glass > * {
  position: relative;
  z-index: 1;
}

.login-card-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-brand-img-wrap {
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(8, 12, 22, 0.55);
  max-width: 220px;
}

.login-brand-img {
  width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.login-logo-ring {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.45);
  animation: lw-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-logo-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.login-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.login-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-login-glow {
  width: 100%;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-login-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.45);
}

.login-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.login-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #fca5a5;
}

/* ─── لوحة التحكم (تصميم واضح — بطاقات وصول سريع) ─── */
.dashboard-page-root {
  max-width: 1100px;
}

.dash-header {
  padding: 0 0 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.dash-header-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.dash-header-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.dash-header-lead {
  margin: 0;
  max-width: 48ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.dash-section {
  margin-bottom: 2rem;
}

.dash-section--charts {
  padding-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.dash-section-head {
  margin-bottom: 0.85rem;
}

.dash-section-title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dash-section-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.dash-live-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(52, 211, 153, 0.28);
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.12);
}

.dash-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
}

.dash-live-map-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.28), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.12);
  min-height: 100%;
}

.dash-live-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-live-map {
  height: 280px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0b1220;
}

.dash-live-map .leaflet-container {
  height: 100%;
  width: 100%;
  background: #0b1220;
  font-family: inherit;
}

.dash-live-map .leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.dash-live-visitor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 160px;
  overflow-y: auto;
}

.dash-live-visitor-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.85rem;
}

.dash-live-visitor-item--sa {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(120, 53, 15, 0.22);
}

.dash-live-visitor-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #10b981;
  flex-shrink: 0;
}

.dash-live-visitor-item--sa .dash-live-visitor-dot {
  background: #f59e0b;
}

.dash-live-visitor-place {
  color: #e2e8f0;
  font-weight: 600;
}

.dash-live-visitor-path {
  color: #94a3b8;
  font-size: 0.78rem;
  direction: ltr;
  unicode-bidi: plaintext;
}

@media (max-width: 960px) {
  .dash-live-grid {
    grid-template-columns: 1fr;
  }

  .dash-live-map {
    height: 240px;
  }
}

.dash-live-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  flex-shrink: 0;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.dash-live-main {
  min-width: 0;
}

.dash-live-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a7f3d0;
}

.dash-live-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.dash-live-value {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1;
  color: #ecfdf5;
}

.dash-live-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: dash-live-pulse 1.8s ease-out infinite;
}

.dash-live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.dash-live-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: rgba(167, 243, 208, 0.75);
  line-height: 1.45;
}

@keyframes dash-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.65rem;
}

.dash-quick-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #111a2c;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dash-quick-card:hover {
  border-color: rgba(148, 163, 184, 0.28);
  background: #131d32;
  text-decoration: none;
}

.dash-quick-card:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.55);
  outline-offset: 2px;
}

.dash-quick-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.dash-quick-card:hover .dash-quick-icon {
  color: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.2);
}

.dash-quick-main {
  flex: 1;
  min-width: 0;
}

.dash-quick-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.dash-quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.6rem;
}

.dash-quick-value {
  font-size: 1.375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  line-height: 1.15;
}

.dash-quick-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.dash-quick-chevron {
  flex-shrink: 0;
  display: flex;
  color: rgba(148, 163, 184, 0.45);
  transition: color 0.15s ease, transform 0.15s ease;
}

.dash-quick-card:hover .dash-quick-chevron {
  color: rgba(226, 232, 240, 0.85);
}

[dir="rtl"] .dash-quick-chevron svg {
  transform: scaleX(-1);
}

.dash-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.75rem;
}

.dash-panel {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 10px;
  background: #111a2c;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dash-panel-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e2e8f0;
}

.dash-panel-title--solo {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dash-panel-link {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7dd3fc;
  text-decoration: none;
  white-space: nowrap;
}

.dash-panel-link:hover {
  text-decoration: underline;
  color: #bae6fd;
}

.dash-panel-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.dash-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
  min-height: 132px;
  padding: 0.15rem 0 0;
}

.dash-bar-chart--dense .dash-bar-axis {
  font-size: 0.62rem;
}

.dash-bar-chart--dense .dash-bar-track {
  max-width: 14px;
}

.dash-bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.dash-bar-track {
  width: 100%;
  max-width: 22px;
  height: 108px;
  margin-inline: auto;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.dash-bar-fill {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 4px 4px 0 0;
  transition: height 0.25s ease;
}

.dash-bar-fill--bookings {
  background: #6366f1;
}

.dash-bar-fill--requests {
  background: #0ea5e9;
}

.dash-bar-axis {
  font-size: 0.625rem;
  color: #64748b;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.dash-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-status-row {
  display: grid;
  grid-template-columns: minmax(4.25rem, auto) 1fr minmax(1.75rem, auto);
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.dash-status-row:last-child {
  border-bottom: none;
}

.dash-status-name {
  font-size: 0.8125rem;
  color: var(--muted);
}

.dash-status-track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.08);
  overflow: hidden;
}

.dash-status-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}

.dash-status-fill--bookings {
  background: #6366f1;
}

.dash-status-fill--requests {
  background: #0ea5e9;
}

.dash-status-count {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
  color: #e2e8f0;
}

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

  .dash-charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── شاشة وسائط الرئيسية (لوحة تحكم — ليست تنقّل الموقع) ─── */
.admin-console-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.06);
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.admin-console-banner strong {
  color: #5eead4;
  font-weight: 800;
  white-space: nowrap;
}

.admin-code-inline {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82em;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(94, 234, 212, 0.25);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.admin-toolbar-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-toolbar-select {
  min-width: 140px;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
}

/* وسائط الهيرو — تنبيهات + معاينة واسعة */
.home-hero-media-root {
  max-width: min(1120px, 100%);
}

.hero-media-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.hero-media-alert {
  margin: 0;
}

.hero-media-error-list {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.hero-media-alert--warn {
  background: #422006;
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.hero-media-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.hero-media-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-media-sync-all {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
  cursor: pointer;
  margin: 0;
}

.hero-media-sync-all input {
  width: auto;
  margin: 0;
}

.hero-media-toolbar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
}

.hero-media-select {
  min-width: 8.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: #0f172a;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
}

.hero-media-block {
  margin-bottom: 0.65rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 10px;
  background: #111a2c;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-media-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-media-block-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hero-media-chip {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  text-decoration: none;
}

.hero-media-chip:hover {
  color: #bae6fd;
  text-decoration: none;
  border-color: rgba(56, 189, 248, 0.35);
}

.hero-media-count {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.hero-media-split {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .hero-media-split {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  }

  .hero-media-split--gallery {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  }
}

.hero-media-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.65rem 0.85rem;
}

.home-hero-form .field--compact {
  margin-bottom: 0;
}

.home-hero-form .field--gallery-input {
  margin-bottom: 0;
}

.hero-media-fields .field label,
.home-hero-form .field--gallery-input label {
  font-size: 0.8125rem;
  margin-bottom: 0.28rem;
}

.hero-media-file {
  padding: 0.45rem 0.5rem;
  font-size: 0.875rem;
}

.hero-media-loading {
  display: inline-block;
  margin-inline-start: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  vertical-align: middle;
}

.hero-media-url-input {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.hero-media-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero-media-preview {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 14, 0.75);
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media-preview--video {
  min-height: 12rem;
}

@media (min-width: 900px) {
  .hero-media-preview--video {
    min-height: min(42vh, 20rem);
  }

  .hero-media-preview--poster {
    min-height: min(38vh, 18rem);
  }
}

.hero-media-preview--poster {
  min-height: 11rem;
}

.hero-media-preview--gallery {
  min-height: 9rem;
  align-items: stretch;
}

.hero-media-preview-media {
  width: 100%;
  height: auto;
  max-height: min(48vh, 24rem);
  object-fit: contain;
  display: block;
}

video.hero-media-preview-media {
  width: 100%;
  max-height: min(48vh, 24rem);
  background: #000;
}

.hero-media-preview-empty {
  font-size: 0.8125rem;
  color: #64748b;
  padding: 1.25rem 1rem;
  text-align: center;
}

.hero-gallery-preview-grid {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  gap: 0.45rem;
  align-content: start;
  max-height: min(52vh, 26rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

@media (min-width: 900px) {
  .hero-gallery-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
    max-height: min(58vh, 30rem);
  }
}

.hero-gallery-preview-cell {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 12, 22, 0.5);
}

.hero-gallery-preview-cell--pending {
  outline: 2px dashed rgba(56, 189, 248, 0.4);
  outline-offset: -2px;
}

.hero-gallery-preview-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gallery-remove {
  position: absolute;
  top: 0.25rem;
  inset-inline-start: 0.25rem;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
  border-radius: 6px;
  opacity: 0.92;
}

.hero-gallery-preview-cell:hover .hero-gallery-remove {
  opacity: 1;
}

.hero-media-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding: 0.25rem 0 0.5rem;
}

/* Settings */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.settings-section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: #fff;
}

.settings-section-hint { margin: 0 0 0.85rem; }

.settings-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem 1rem;
}

.settings-field textarea { min-height: 88px; }

.settings-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0 1.5rem;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  z-index: 10;
}

.page-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.page-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
}

.page-gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

.nav-rail-dot--sky { background: #38bdf8; }

.toolbar-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.table-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form { display: inline; }

.nav-rail-empty {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.nav-rail-page-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-rail-link--sub {
  padding-inline-start: 2.1rem !important;
  font-size: 0.82rem;
  opacity: 0.88;
}

.nav-rail-link--sub.is-active,
.nav-rail-page-group.is-open > .nav-rail-link--page.is-active {
  opacity: 1;
}

.nav-rail-link--manage {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ─── Breakpoints ─── */

/* Tablet & mobile: off-canvas sidebar */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-shell.sidebar-open .sidebar-overlay {
    display: block;
  }

  .admin-main {
    margin-inline-start: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .admin-header-actions .btn-danger {
    padding-inline: 0.65rem;
    font-size: 0.8rem;
  }

  .settings-fields {
    grid-template-columns: 1fr;
  }

  .data-table .btn + .btn,
  .data-table form {
    margin-top: 0.35rem;
  }
}

@media (max-width: 560px) {
  .admin-user-name {
    display: none;
  }

  .admin-footer {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-toolbar .btn {
    width: 100%;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Wide screens */
@media (min-width: 1600px) {
  .admin-content {
    max-width: 1320px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Activity form */
.activity-wizard-root {
  max-width: 960px;
}

.activity-wizard-stepper {
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.activity-wizard-panels {
  min-height: 12rem;
}

.activity-form-section--wizard {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.activity-wizard-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.activity-wizard-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.activity-form-card {
  max-width: 920px;
}

.activity-form-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.activity-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.activity-form-section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.activity-form-section-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-gallery-grid {
  margin-top: 0.5rem;
}

.activity-map-city-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.activity-map-city-chip {
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.activity-map-city-chip:hover {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.16);
}

.activity-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.activity-map-preview {
  margin-top: 0.75rem;
  height: 180px;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.activity-map-preview .leaflet-container {
  height: 100% !important;
  width: 100% !important;
}

.activity-map-preview.is-empty {
  display: none;
}

.activity-map-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.activity-map-modal[hidden] {
  display: none;
}

body.activity-map-modal-open {
  overflow: hidden;
}

.activity-map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
}

.activity-map-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 1.25rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.activity-map-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.activity-map-modal-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.activity-map-modal-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.activity-map-modal-hint {
  margin: 0.5rem 0 0.75rem;
}

.activity-map-canvas {
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.activity-map-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.admin-header-actions .btn.is-active-locale {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.admin-profile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-profile-split {
    grid-template-columns: 1fr;
  }
}

.admin-profile-card-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-profile-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .admin-profile-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ─── Portal profile wizard ─── */
.profile-wizard-root {
  max-width: 920px;
  margin: 0 auto;
}

.profile-wizard-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.profile-wizard-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a78bfa;
}

.profile-wizard-heading {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
}

.profile-wizard-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36rem;
}

.profile-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 10rem;
  flex: 1;
  max-width: 220px;
}

.profile-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
  border: 1px solid var(--border);
}

.profile-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  transition: width 0.35s ease;
}

.profile-progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c4b5fd;
  min-width: 2.5rem;
}

.profile-inline-alert {
  margin-bottom: 1rem;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.profile-wizard-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(165deg, rgba(30, 27, 75, 0.35) 0%, rgba(15, 23, 42, 0.9) 48%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.profile-step-panel {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.profile-step-panel-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-step-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.profile-step-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.profile-step-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.profile-wizard-body.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.field-required {
  color: #f87171;
}

.field-optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8em;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.profile-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.profile-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 4.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.profile-stepper-item:disabled {
  cursor: default;
  opacity: 0.55;
}

.profile-stepper-item.is-active,
.profile-stepper-item.is-done {
  color: var(--text);
}

.profile-stepper-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border: 2px solid var(--border);
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.profile-stepper-item.is-active .profile-stepper-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.profile-stepper-item.is-done .profile-stepper-icon {
  border-color: rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
}

.profile-stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 1.35rem;
  min-width: 1rem;
  max-width: 4rem;
}

.profile-stepper-line.is-done {
  background: rgba(124, 58, 237, 0.55);
}

.profile-stepper-label {
  text-align: center;
  line-height: 1.3;
  max-width: 6.5rem;
}

.profile-wizard-body {
  min-height: 220px;
}

.profile-wizard-grid {
  display: grid;
  gap: 1rem;
}

.profile-wizard-grid--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .profile-wizard-grid--2 {
    grid-template-columns: 1fr;
  }
  .profile-stepper-line {
    display: none;
  }
}

.input-readonly {
  background: #0f172a !important;
  color: var(--muted) !important;
  cursor: not-allowed;
}

.profile-wizard-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.profile-pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-pref-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.profile-pref-chip:hover {
  border-color: rgba(124, 58, 237, 0.45);
  color: var(--text);
}

.profile-pref-chip.is-selected {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.55);
  color: #e9d5ff;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-summary-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
}

.profile-summary-card--wide {
  grid-column: 1 / -1;
}

.profile-summary-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-summary-card p {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
}

.profile-summary-tag {
  display: inline-block;
  margin: 0.15rem 0 0.15rem 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.2);
  color: #ddd6fe;
}

@media (max-width: 560px) {
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }
  .profile-progress-wrap {
    max-width: 100%;
    width: 100%;
  }
}

.profile-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.profile-complete-box {
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.profile-complete-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.profile-complete-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.profile-complete-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-summary {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.profile-summary > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-summary dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-summary dd {
  margin: 0;
  font-weight: 600;
}

/* ─── Portal pages (shared) ─── */
.portal-page {
  max-width: 920px;
  margin: 0 auto;
}

.portal-page-intro {
  margin-bottom: 1.25rem;
}

.portal-page-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a78bfa;
}

.portal-page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
}

.portal-page-lead,
.portal-page .page-intro {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.portal-form-card {
  max-width: 32rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(165deg, rgba(30, 27, 75, 0.3) 0%, rgba(15, 23, 42, 0.92) 50%);
}

.portal-form .field + .field {
  margin-top: 0;
}

.portal-form-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.portal-table-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.portal-table-card .table-scroll {
  border-radius: inherit;
}

.portal-table-card .data-table thead th {
  background: rgba(15, 23, 42, 0.85);
}

.portal-empty-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.portal-empty-card .empty-state {
  margin-bottom: 1rem;
}

.portal-notify-card {
  padding: 1rem 1.15rem;
  transition: border-color 0.2s ease;
}

.portal-notify-card.is-unread {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.06);
}

.portal-notify-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.portal-notify-card__body {
  margin: 0.5rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.portal-notify-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portal-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.portal-section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.portal-table-card-title {
  margin: 0;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.input-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ——— Portal bookings ——— */
.portal-bookings-page {
  max-width: 100%;
}

.portal-stat-card {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.portal-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e9d5ff;
}

.portal-bookings-filters-card {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(165deg, rgba(30, 27, 75, 0.25) 0%, rgba(15, 23, 42, 0.92) 55%);
}

.portal-bookings-filters-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.portal-bookings-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
}

.portal-bookings-filters .field {
  margin: 0;
}

.portal-bookings-filters-actions {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.1rem;
}

.portal-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.portal-filter-chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.portal-results-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.portal-booking-code {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
}

.portal-booking-status--paid {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #86efac !important;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.portal-booking-status--pending {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.portal-booking-type {
  font-weight: 600;
  color: var(--text);
}

.portal-booking-type--gift {
  color: #c4b5fd;
}

.portal-booking-gift-to {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.portal-booking-amount {
  font-weight: 700;
  white-space: nowrap;
}

.portal-booking-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.portal-bookings-cards {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.portal-booking-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
}

.portal-booking-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.portal-booking-card__label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.portal-booking-card__code {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e9d5ff;
}

.portal-booking-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}

.portal-booking-card__meta dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.portal-booking-card__meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.portal-booking-card__actions {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.portal-bookings-table-wrap {
  display: none;
  padding: 0;
  overflow: hidden;
}

.portal-bookings-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
}

.portal-bookings-table-head .portal-table-card-title {
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
}

.portal-bookings-table-count {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.portal-bookings-table-scroll .data-table {
  min-width: 1100px;
}

.portal-bookings-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(6px);
  padding: 0.85rem 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(124, 58, 237, 0.25);
}

.portal-bookings-data-table tbody td {
  padding: 0.9rem 0.75rem;
  vertical-align: top;
  font-size: 0.84rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.portal-bookings-data-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.07);
}

.portal-bookings-data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.portal-bookings-data-table tbody tr:hover:nth-child(even) {
  background: rgba(124, 58, 237, 0.07);
}

.portal-bookings-th-actions,
.portal-bookings-td-actions {
  min-width: 7.5rem;
}

.portal-bookings-td-code {
  min-width: 9.5rem;
}

.portal-booking-id {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #c4b5fd;
  margin-bottom: 0.45rem;
}

.portal-booking-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.28);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-booking-pdf-link:hover {
  background: rgba(251, 146, 60, 0.22);
  color: #fed7aa;
}

.portal-booking-pdf-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.portal-booking-activity-title {
  display: block;
  font-size: 0.9rem;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.portal-booking-activity-link {
  font-size: 0.75rem;
  color: #67e8f9;
  text-decoration: none;
}

.portal-booking-activity-link:hover {
  text-decoration: underline;
}

.portal-bookings-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-bookings-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
}

.portal-bookings-kv__k {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.portal-bookings-kv__v {
  font-size: 0.8rem;
  color: #e2e8f0;
  word-break: break-word;
}

.portal-bookings-link {
  color: #93c5fd;
  text-decoration: none;
}

.portal-bookings-link:hover {
  text-decoration: underline;
}

.portal-bookings-guests {
  display: block;
  font-weight: 600;
  color: #e2e8f0;
}

.portal-bookings-guests--child {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

.portal-booking-amount-lg {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}

.portal-bookings-pay-badge {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.portal-bookings-gift-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.portal-bookings-gift-muted {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.portal-bookings-muted {
  color: var(--muted);
}

.portal-bookings-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}

.portal-bookings-btn {
  justify-content: center;
  width: 100%;
  min-width: 5.5rem;
}

.portal-bookings-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.06);
}

.portal-pagination {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .portal-bookings-cards {
    display: none;
  }

  .portal-bookings-table-wrap {
    display: block;
  }
}

@media (max-width: 767px) {
  .portal-bookings-filters-actions {
    grid-column: 1 / -1;
  }

  .portal-bookings-table-wrap {
    display: none;
  }
}

.activity-badge-preview {
  position: relative;
  margin-top: 0.75rem;
  height: 5.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border);
}

.activity-badge-preview__ribbon {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  min-width: 200%;
  padding: 0.35rem 2rem;
  transform: translate(-30%, 28%) rotate(-45deg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.activity-badge-preview__ribbon--exclusive {
  background: linear-gradient(90deg, #7c3aed, #5b21b6);
}

.activity-badge-preview__ribbon--bestseller {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.activity-badge-preview__ribbon--special-offer {
  background: linear-gradient(90deg, #f43f5e, #be185d);
}

.activity-badge-preview__ribbon--new {
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.activity-badge-preview__ribbon--limited {
  background: linear-gradient(90deg, #64748b, #334155);
}

/* ——— Referrals page ——— */
.referrals-page {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.referrals-hero {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.referrals-hero-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary, #7c3aed);
  letter-spacing: 0.04em;
}

.referrals-hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.referrals-hero-title span {
  color: var(--primary, #7c3aed);
}

.referrals-hero-text,
.referrals-stat {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.referrals-stat {
  margin-top: 0.75rem;
}

.referrals-code-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: var(--surface-2, rgba(15, 23, 42, 0.5));
  border: 1px dashed var(--border);
}

.referrals-code-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.referrals-code-value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: ui-monospace, monospace;
}

.referrals-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.referrals-copy-row .referrals-copy-input {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
}

.referrals-preview {
  margin: 1rem 0;
  padding: 0.85rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border);
}

.referrals-preview-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.referrals-preview-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  border: none;
  padding: 0;
}

.referrals-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.referrals-wa-btn {
  flex: 1;
  min-width: 10rem;
}

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

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.activity-form-section--social {
  border-color: rgba(124, 58, 237, 0.35);
}

.activity-form-section-lead {
  margin: -0.25rem 0 1rem;
}

.activity-social-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.activity-social-toggle {
  flex: 1;
  min-width: 14rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
}

.activity-highlight-block {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
}

.activity-highlight-block-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fbbf24;
}

.portal-activities-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-activities-grid {
  display: grid;
  gap: 1rem;
}

.portal-activity-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.portal-activity-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.portal-activity-status--pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.portal-activity-status--approved {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.portal-activity-status--rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.portal-activity-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.portal-activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.5);
}

.portal-activity-stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary, #a78bfa);
}

.portal-activity-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
}

.portal-activity-actions {
  display: flex;
  gap: 0.5rem;
}

.portal-activity-form-note {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.portal-activity-form-stats {
  margin-bottom: 1rem;
}

.portal-activity-form-stats-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

@media (max-width: 480px) {
  .referrals-copy-row {
    flex-direction: column;
  }

  .referrals-actions .btn {
    width: 100%;
  }
}

/* CMS page editor — grouped sections */
.cms-page-group {
  overflow: visible;
}

.cms-page-group-head {
  margin-bottom: 0.85rem;
}

.cms-page-group-head .settings-section-title {
  margin-bottom: 0.25rem;
}

.settings-fields--stack {
  grid-template-columns: 1fr;
}

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

.cms-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.85rem;
}

.cms-mini-card,
.cms-value-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.cms-mini-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c4d4ef;
}

.cms-mini-card-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cms-mini-card-fields .settings-field {
  margin: 0;
}

.cms-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 100%;
}

.cms-team-member-card--compact {
  border-radius: 12px;
}

.cms-team-member-card--compact .cms-team-member-head {
  padding: 0.45rem 0.75rem;
}

.cms-team-member-body--compact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
  align-items: start;
}

.cms-team-member-photo--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.image-preview--team-thumb {
  width: 88px;
  height: 108px;
  margin: 0;
  max-width: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview--team-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.image-preview--team-thumb.image-preview--empty {
  padding: 0.35rem;
  font-size: 0.65rem;
  text-align: center;
  color: var(--muted);
}

.image-preview--team-thumb .image-preview-placeholder {
  font-size: 0.65rem;
  line-height: 1.3;
}

.cms-team-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}

.cms-team-upload-btn:hover {
  border-color: rgba(124, 58, 237, 0.45);
  color: var(--text);
}

.cms-team-upload-btn input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cms-team-member-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.cms-team-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.cms-team-member-fields .field label {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.cms-team-member-fields input,
.cms-team-member-fields textarea {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}

.cms-team-member-fields textarea {
  min-height: 56px;
  resize: vertical;
}

.field-required {
  color: #f87171;
  font-weight: 700;
}

.cms-page-group--team_repeater {
  border-color: rgba(124, 58, 237, 0.35);
}

.cms-page-group--team_repeater .settings-section-title {
  color: #ddd6fe;
}

.cms-team-head-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(36, 48, 73, 0.85);
}

@media (min-width: 640px) {
  .cms-team-head-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cms-team-member-card {
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: linear-gradient(165deg, rgba(20, 28, 46, 0.95) 0%, rgba(12, 18, 32, 0.98) 100%);
  overflow: hidden;
}

.cms-team-member-head {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(36, 48, 73, 0.75);
  background: rgba(124, 58, 237, 0.08);
}

.cms-team-member-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ddd6fe;
}

.cms-team-member-body {
  display: grid;
  grid-template-columns: minmax(118px, 138px) 1fr;
  gap: 0.75rem 0.9rem;
  padding: 0.9rem;
  align-items: start;
}

.cms-team-member-photo {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.cms-team-member-body .settings-field:not(.cms-team-member-photo) {
  grid-column: 2;
}

.image-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.image-upload-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.image-upload-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.image-upload-field--team .image-upload-box {
  padding: 0.65rem;
}

.image-upload-field--team .image-preview {
  margin-top: 0;
  max-width: 100%;
}

.image-upload-field--team .image-preview img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.image-preview-caption,
.image-preview-placeholder {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.image-preview--empty {
  padding: 0.75rem 0.5rem;
  border: 1px dashed rgba(36, 48, 73, 0.9);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
  .cms-pair-grid {
    grid-template-columns: 1fr;
  }
}

.cms-team-repeater-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.06);
}

.cms-team-repeater-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cms-team-repeater-count span {
  font-weight: 800;
  color: #ddd6fe;
}

.cms-team-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.cms-team-member-head--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cms-team-member-remove {
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .cms-team-member-body {
    grid-template-columns: 1fr;
  }

  .cms-team-member-body--compact {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .image-preview--team-thumb {
    width: 68px;
    height: 84px;
  }

  .cms-team-fields-row {
    grid-template-columns: 1fr;
  }

  .cms-team-member-photo {
    grid-column: 1;
    grid-row: auto;
  }

  .cms-team-member-body .settings-field:not(.cms-team-member-photo) {
    grid-column: 1;
  }

  .cms-team-repeater-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cms-team-repeater-toolbar .btn {
    width: 100%;
  }
}

.admin-form-card--wide {
  max-width: min(960px, 100%);
}

.admin-form-card--full {
  max-width: 100%;
  width: 100%;
}

.admin-form-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-form-section-header .admin-form-section-title {
  margin: 0;
  flex: 1;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.permissions-group {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.35);
}

.permissions-group-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}

.permission-item input[type="checkbox"] {
  flex-shrink: 0;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* ─── Portal partner theme (admin dark — unused when portal-theme.css loaded) ─── */
body.admin-body.portal-theme-partner:not(.portal-app) {
  --primary: #059669;
  --primary-hover: #047857;
  --accent: #f59e0b;
  --sidebar-accent: rgba(5, 150, 105, 0.18);
}

.portal-theme-partner .admin-brand-badge {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.35), rgba(245, 158, 11, 0.2));
  color: #6ee7b7;
}

.portal-theme-partner .admin-sidebar {
  border-color: rgba(5, 150, 105, 0.2);
}

.portal-theme-partner .nav-rail-link.is-active {
  background: rgba(5, 150, 105, 0.15);
  color: #6ee7b7;
}

.portal-theme-partner .btn-primary {
  background: linear-gradient(135deg, #059669, #047857);
}

.portal-theme-partner .btn-primary:hover {
  background: linear-gradient(135deg, #10b981, #059669);
}

.portal-partner-chip {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
  vertical-align: middle;
}

.portal-partner-banner {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.portal-partner-banner-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.portal-partner-banner--info {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
}

.portal-partner-banner--pending {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.portal-partner-banner--rejected {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.portal-partner-banner p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-partner-welcome,
.portal-partner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(5, 150, 105, 0.28);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(245, 158, 11, 0.06));
}

.portal-partner-welcome-icon {
  font-size: 1.5rem;
  color: #6ee7b7;
}

.portal-partner-welcome p,
.portal-partner-cta p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-partner-benefits {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.portal-partner-benefits-list {
  margin: 0.5rem 0 0;
  padding-inline-start: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-partner-benefits-list li + li {
  margin-top: 0.35rem;
}

.dash-quick-card--partner {
  border-color: rgba(5, 150, 105, 0.28);
  background: rgba(5, 150, 105, 0.06);
}

.promo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.promo-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.promo-tab:hover {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
  text-decoration: none;
}

.promo-tab.is-active {
  color: #ecfdf5;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.35);
}

.promo-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.promo-drag-handle {
  display: inline-flex;
  cursor: grab;
  color: #64748b;
  font-weight: 700;
  letter-spacing: -0.15em;
  user-select: none;
}

.promo-sort-table [data-sortable-row].is-dragging {
  opacity: 0.55;
  background: rgba(59, 130, 246, 0.08);
}

.promo-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Visitor reports */
.visitor-report-filters {
  margin-bottom: 1.25rem;
}

.visitor-report-period-banner {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.visitor-report-period-banner strong {
  color: #c4b5fd;
  font-weight: 600;
}

.visitor-report-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.visitor-report-period-chip,
.visitor-report-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.3;
}

.visitor-report-period-chip {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #c4b5fd;
}

.visitor-report-filter-chip {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: #a5f3fc;
}

.visitor-report-filter-chip strong {
  font-weight: 700;
}

.visitor-report-filter-chip-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
}

.visitor-report-filter-chip-clear:hover {
  background: rgba(127, 29, 29, 0.45);
  color: #fecaca;
}

.visitor-report-stats .visitor-stat-card strong {
  color: #a78bfa;
}

.visitor-stat-card--visitors strong { color: #67e8f9; }
.visitor-stat-card--cities strong { color: #86efac; }
.visitor-stat-card--customers strong { color: #f9a8d4; }

.visitor-report-stats .visitor-stat-card small {
  color: #64748b;
}

.visitor-report-geo-grid {
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
}

.visitor-report-log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.visitor-report-log-count {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #ddd6fe;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.visitor-report-city-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.visitor-report-city-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.visitor-report-geo-table tbody tr.is-filtered {
  background: rgba(6, 182, 212, 0.08);
}

.visitor-report-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 7rem;
}

.visitor-report-share-bar {
  display: block;
  height: 0.35rem;
  min-width: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

.visitor-report-share-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visitor-report-log-table-scroll .data-table {
  min-width: 860px;
}

.visitor-report-log-table .cell-datetime-date {
  font-weight: 600;
  white-space: nowrap;
}

.visitor-report-log-table .cell-datetime-time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.visitor-report-log-table .cell-path {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: start;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #93c5fd;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
}

.visitor-report-log-table .cell-visitor-id code {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  color: #cbd5e1;
  direction: ltr;
  display: inline-block;
}

.visitor-report-location-badge {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.visitor-report-customer-email {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .visitor-report-geo-grid {
    grid-template-columns: 1fr;
  }
}

/* Customer segments */
.segment-filter-card {
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
}

.segment-filter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.segment-filter-desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.segment-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.segment-filter-block {
  min-width: 0;
}

.segment-filter-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
}

.segment-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.segment-chip-grid--compact {
  gap: 0.35rem;
}

.segment-chip {
  display: inline-flex;
  cursor: pointer;
}

.segment-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.segment-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.segment-chip--sm span {
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
}

.segment-chip:hover span {
  border-color: rgba(124, 58, 237, 0.45);
  color: #e2e8f0;
}

.segment-chip input:checked + span {
  border-color: rgba(124, 58, 237, 0.65);
  background: rgba(124, 58, 237, 0.22);
  color: #ede9fe;
  font-weight: 600;
}

.segment-chip--channel input:checked + span {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.14);
  color: #a5f3fc;
}

.segment-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.segment-filter-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.segment-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(15, 23, 42, 0.6));
}

.segment-summary-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.segment-summary-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.25);
  color: #ddd6fe;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.segment-summary-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a78bfa;
}

.segment-summary-label {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  color: #e2e8f0;
  font-weight: 600;
}

.segment-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.segment-active-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #c4b5fd;
  font-size: 0.76rem;
}

.segment-active-chip--channel {
  border-color: rgba(6, 182, 212, 0.35);
  color: #a5f3fc;
}

.segment-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  align-items: start;
}

.segment-table-card .segment-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.segment-table-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.segment-customers-table .segment-col-actions {
  width: 9.5rem;
  text-align: end;
}

.segment-cell-customer strong {
  display: block;
}

.segment-customer-email {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

.segment-type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.segment-type-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.35);
  border: 1px solid rgba(134, 239, 172, 0.25);
  color: #86efac;
  font-size: 0.74rem;
  line-height: 1.35;
}

.segment-cell-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.segment-edit-details {
  position: relative;
}

.segment-edit-details summary {
  list-style: none;
}

.segment-edit-details summary::-webkit-details-marker {
  display: none;
}

.segment-edit-panel {
  position: absolute;
  z-index: 20;
  inset-inline-end: 0;
  top: calc(100% + 0.35rem);
  width: min(320px, 85vw);
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.segment-edit-title {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.segment-send-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-margin-top: 5rem;
}

.segment-send-card {
  padding: 1.1rem 1.15rem;
}

.segment-send-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.segment-send-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.segment-send-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.segment-send-section-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.segment-send-target-hint {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  font-size: 0.82rem;
  color: #c4b5fd;
  line-height: 1.45;
}

.segment-send-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.segment-top-types-card {
  padding: 0.9rem 1rem;
}

.segment-top-types-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.segment-top-types-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.segment-top-types-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.84rem;
  transition: background 0.15s, color 0.15s;
}

.segment-top-types-link:hover {
  background: rgba(124, 58, 237, 0.12);
  color: #ede9fe;
  text-decoration: none;
}

.segment-top-types-count {
  display: inline-flex;
  min-width: 1.5rem;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1024px) {
  .segment-send-panel {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 1100px) {
  .segment-page-layout {
    grid-template-columns: 1fr;
  }

  .segment-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Platform feature settings */
.feature-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-settings-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.feature-settings-group-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.feature-settings-group-count {
  font-size: 0.76rem;
  color: var(--muted);
}

.feature-settings-list {
  display: grid;
  gap: 0.75rem;
}

.feature-settings-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  transition: border-color 0.15s, background 0.15s;
}

.feature-settings-card.is-enabled {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.12), rgba(15, 23, 42, 0.7));
}

.feature-settings-card.is-disabled {
  opacity: 0.92;
}

.feature-settings-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.feature-settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  margin: 0;
}

.feature-settings-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.feature-settings-toggle-ui {
  width: 2.5rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s;
}

.feature-settings-toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #e2e8f0;
  transition: transform 0.15s, background 0.15s;
}

.feature-settings-toggle input:checked + .feature-settings-toggle-ui {
  background: #059669;
}

.feature-settings-toggle input:checked + .feature-settings-toggle-ui::after {
  inset-inline-start: auto;
  inset-inline-end: 2px;
  background: #fff;
}

.feature-settings-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}

.feature-settings-status {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.feature-settings-status.is-on {
  background: rgba(20, 83, 45, 0.45);
  color: #86efac;
}

.feature-settings-status.is-off {
  background: rgba(51, 65, 85, 0.55);
  color: #94a3b8;
}

.feature-settings-impact-summary {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.feature-settings-planned-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #fbbf24;
}

.feature-settings-impact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.feature-settings-impact-links-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  margin-inline-end: 0.15rem;
}

.feature-impact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  text-decoration: none;
  font-size: 0.76rem;
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.feature-impact-link:hover {
  text-decoration: none;
}

.feature-impact-link-kind {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.feature-impact-link-label {
  color: #e2e8f0;
}

.feature-impact-link-arrow {
  font-size: 0.72rem;
  opacity: 0.7;
}

.feature-impact-link--frontend {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
}

.feature-impact-link--frontend .feature-impact-link-kind {
  color: #a5b4fc;
}

.feature-impact-link--frontend:hover {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.18);
}

.feature-impact-link--portal {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.08);
}

.feature-impact-link--portal .feature-impact-link-kind {
  color: #67e8f9;
}

.feature-impact-link--portal:hover {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.14);
}

.feature-impact-link--admin {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.1);
}

.feature-impact-link--admin .feature-impact-link-kind {
  color: #c4b5fd;
}

.feature-impact-link--admin:hover {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(124, 58, 237, 0.16);
}

.feature-settings-config {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.feature-settings-config-field {
  margin: 0;
  min-width: 160px;
}

.feature-settings-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
}

.feature-settings-footer-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.feature-settings-footer-hint a {
  color: #93c5fd;
  word-break: break-all;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Send notification */
.notify-send-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(6, 182, 212, 0.28);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(15, 23, 42, 0.6));
}

.notify-send-summary-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.notify-send-summary-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.22);
  color: #a5f3fc;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.notify-send-summary-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #67e8f9;
}

.notify-send-summary-label {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  color: #e2e8f0;
  font-weight: 600;
}

.notify-send-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  align-items: start;
}

.notify-send-form {
  padding: 1.15rem 1.25rem;
}

.notify-send-section {
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.notify-send-section--last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.notify-send-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.notify-target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.notify-target-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.notify-target-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
}

.notify-target-card.is-active {
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.14);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.notify-target-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.notify-target-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
}

.notify-target-meta {
  font-size: 0.74rem;
  color: var(--muted);
}

.notify-send-subblock {
  margin-top: 0.9rem;
}

.notify-send-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #a5f3fc;
}

.notify-send-respect {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
}

.notify-send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.notify-send-submit {
  min-width: min(100%, 220px);
}

.notify-send-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.notify-preview-card {
  padding: 1rem 1.05rem;
}

.notify-preview-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
}

.notify-preview-note {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.notify-preview-bubble {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(160deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.9));
}

.notify-preview-bubble-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e0e7ff;
  line-height: 1.4;
}

.notify-preview-bubble-body {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.notify-preview-link {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.74rem;
  color: #67e8f9;
  direction: ltr;
  text-align: start;
  word-break: break-all;
}

.notify-preview-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  color: #94a3b8;
}

@media (min-width: 1024px) {
  .notify-send-aside {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 960px) {
  .notify-send-layout {
    grid-template-columns: 1fr;
  }

  .notify-target-grid {
    grid-template-columns: 1fr;
  }
}

/* Notification log */
.notify-log-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.notify-log-stat strong {
  color: #a78bfa;
}

.notify-log-stat--unread strong {
  color: #86efac;
}

.notify-log-stat--customer strong {
  color: #67e8f9;
}

.notify-log-stat--admin strong {
  color: #f9a8d4;
}

.notify-log-filters {
  margin-bottom: 1rem;
  padding: 1.1rem 1.2rem;
}

.notify-log-table-card .notify-log-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.notify-log-table-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.notify-log-table-scroll .data-table {
  min-width: 920px;
}

.notify-log-row--unread {
  background: rgba(20, 83, 45, 0.06);
}

.notify-log-date-day {
  display: block;
  font-weight: 600;
  white-space: nowrap;
}

.notify-log-date-time {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.notify-log-recipient strong {
  display: block;
}

.notify-log-recipient-email {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
}

.notify-log-title {
  display: block;
  color: #f1f5f9;
}

.notify-log-body {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
}

.notify-log-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
}

.notify-log-sent-by {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

.notify-log-col-actions {
  width: 5.5rem;
  text-align: end;
}

.notify-log-actions {
  justify-content: flex-end;
}
