:root {
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee8;
  --canvas: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef7f6;
  --brand: #0f766e;
  --brand-2: #155e75;
  --accent: #b7791f;
  --rose: #be4565;
  --danger: #b42318;
  --success: #087443;
  --warning: #b54708;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  direction: rtl;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Heebo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--brand);
}

.app-navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 222, 232, 0.9);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: #f7fafa;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark > .icon-sm {
  color: var(--brand);
}

.brand-title {
  font-weight: 800;
  color: var(--ink);
}

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: #0b5f59;
  --bs-btn-hover-border-color: #0b5f59;
  --bs-btn-active-bg: #0a514c;
  --bs-btn-active-border-color: #0a514c;
  color: #fff;
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
}

.btn-icon {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.icon-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.section-band {
  padding: 64px 0;
}

.section-band.alt {
  background: #fff;
}

.section-title {
  max-width: 740px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 82vh;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(5, 22, 27, 0.72), rgba(5, 22, 27, 0.36)), url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 1.02;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}

.hero-kpi {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.hero-kpi strong {
  display: block;
  font-size: 1.4rem;
}

.feature-card,
.metric-card,
.panel,
.table-card,
.auth-panel,
.template-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.feature-card,
.metric-card,
.panel,
.template-card,
.review-card {
  padding: 18px;
}

.feature-card .feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--surface-2);
}

.metric-card {
  direction: rtl;
  min-height: 112px;
  text-align: right;
}

.metric-card .label {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-card .value {
  margin-top: 4px;
  font-size: 1.65rem;
  font-weight: 800;
  unicode-bidi: isolate;
}

.metric-card .hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.guest-summary-card {
  position: relative;
  display: block;
  min-height: 108px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.guest-summary-card:hover,
.guest-summary-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, #fff 0%, rgba(20, 184, 166, 0.07) 100%);
  box-shadow: 0 18px 42px rgba(16, 42, 92, 0.11);
}

.guest-summary-card:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.24);
  outline-offset: 3px;
}

.guest-summary-card .label,
.guest-summary-card .value {
  display: block;
  padding-inline-start: 48px;
}

.guest-summary-card-icon {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--brand);
  background: rgba(20, 184, 166, 0.12);
}

.guest-summary-modal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guest-summary-modal-stats > div {
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(20, 184, 166, 0.07);
}

.guest-summary-modal-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.guest-summary-modal-stats strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.45rem;
  line-height: 1.2;
}

.guest-summary-table td:first-child strong {
  display: block;
}

@media (max-width: 576px) {
  .guest-summary-card {
    min-height: 118px;
    padding: 14px;
  }

  .guest-summary-card .label,
  .guest-summary-card .value {
    padding-inline-start: 0;
  }

  .guest-summary-card-icon {
    position: static;
    margin-bottom: 10px;
  }

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

.product-preview {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.preview-row:last-child {
  border-bottom: 0;
}

.app-shell {
  min-height: calc(100vh - 62px);
}

.sidebar {
  width: 292px;
  min-height: calc(100vh - 62px);
  border-left: 1px solid var(--line);
  background: #fff;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  color: var(--brand);
  background: var(--surface-2);
}

.admin-leads-badge {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 6px;
  color: #fff;
  background: #e11d48;
  box-shadow:
    0 8px 18px rgba(225, 29, 72, 0.24),
    0 0 0 4px rgba(225, 29, 72, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  animation: admin-leads-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes admin-leads-badge-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 8px 18px rgba(225, 29, 72, 0.22),
      0 0 0 4px rgba(225, 29, 72, 0.08);
  }

  50% {
    transform: translateY(-1px);
    box-shadow:
      0 10px 24px rgba(225, 29, 72, 0.3),
      0 0 0 6px rgba(225, 29, 72, 0.06);
  }
}

.content-area {
  width: 100%;
  padding: 18px;
}

.section-view {
  display: none;
}

.section-view.active {
  display: block;
}

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

.client-dashboard {
  display: grid;
  gap: 22px;
  color: #06142f;
}

.dashboard-hero,
.dashboard-panel,
.dashboard-stat-card,
.dashboard-benefit-card,
.dashboard-activity-accordion .accordion-item {
  border: 1px solid #e5ecec;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(6, 20, 47, 0.07);
}

.dashboard-hero,
.dashboard-panel,
.dashboard-stat-card,
.dashboard-benefit-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-hero:hover,
.dashboard-panel:hover,
.dashboard-stat-card:hover,
.dashboard-benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 24px 62px rgba(6, 20, 47, 0.1);
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  background:
    radial-gradient(circle at left top, rgba(32, 207, 192, 0.18), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f7fafa 100%);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -72px;
  inset-block-start: -92px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  pointer-events: none;
}

.dashboard-hero-content,
.dashboard-hero-side {
  position: relative;
  z-index: 1;
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-hero-logo {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.16);
}

.dashboard-hero-logo img,
.dashboard-panel-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.dashboard-hero-title {
  margin: 0;
  color: #06142f;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-hero-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 1.02rem;
}

.dashboard-event-line {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 999px;
  padding: 8px 12px;
  color: #102a5c;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.dashboard-event-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-hero-side {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.dashboard-hero-actions,
.dashboard-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-hero-actions {
  max-width: 520px;
  justify-content: flex-end;
}

.dashboard-hero-actions .btn,
.dashboard-action-grid .btn,
.dashboard-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-stat-card {
  position: relative;
  direction: rtl;
  min-height: 166px;
  padding: 18px;
  text-align: right;
  overflow: hidden;
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  inset-inline-start: -34px;
  inset-block-end: -42px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
}

.dashboard-stat-icon,
.dashboard-panel-icon,
.dashboard-benefit-card span,
.dashboard-alert span,
.dashboard-mini-metric span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #e8faf8;
}

.dashboard-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  margin-bottom: 16px;
}

.dashboard-stat-label,
.dashboard-eyebrow,
.dashboard-stat-hint,
.dashboard-mini-metric small {
  color: #64748b;
}

.dashboard-stat-label {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
}

.dashboard-stat-value {
  display: block;
  margin-top: 5px;
  color: #06142f;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
  font-weight: 900;
  unicode-bidi: isolate;
}

.dashboard-stat-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
}

.dashboard-tone-navy .dashboard-stat-icon,
.dashboard-tone-navy .dashboard-panel-icon,
.dashboard-tone-navy .dashboard-mini-metric span {
  color: #102a5c;
  background: #eef4ff;
}

.dashboard-tone-rose .dashboard-stat-icon,
.dashboard-tone-rose .dashboard-panel-icon,
.dashboard-tone-rose .dashboard-mini-metric span {
  color: #be4565;
  background: #fff0f4;
}

.dashboard-tone-amber .dashboard-stat-icon,
.dashboard-tone-amber .dashboard-panel-icon,
.dashboard-tone-amber .dashboard-mini-metric span {
  color: #b7791f;
  background: #fff7e8;
}

.dashboard-tone-slate .dashboard-stat-icon,
.dashboard-tone-slate .dashboard-panel-icon,
.dashboard-tone-slate .dashboard-mini-metric span {
  color: #475569;
  background: #f1f5f9;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(230px, 0.85fr) minmax(230px, 0.9fr);
  gap: 16px;
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.dashboard-panel {
  padding: clamp(18px, 3vw, 24px);
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-panel h2 {
  margin: 3px 0 0;
  color: #06142f;
  font-size: 1.25rem;
  font-weight: 900;
}

.dashboard-eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
}

.dashboard-panel-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 15px;
  overflow: hidden;
}

.dashboard-rsvp-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.dashboard-donut {
  position: relative;
  display: grid;
  width: min(240px, 70vw);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(
    #0f766e 0 var(--confirmed-end),
    #f59e0b var(--confirmed-end) var(--maybe-end),
    #ef6b6b var(--maybe-end) var(--declined-end),
    #cbd5e1 var(--declined-end) 360deg
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 18px 36px rgba(15, 118, 110, 0.16);
}

.dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5ecec;
}

.dashboard-donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.dashboard-donut-center strong {
  color: #06142f;
  font-size: 2.55rem;
  line-height: 1;
  font-weight: 900;
}

.dashboard-donut-center span {
  margin-top: 5px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-legend {
  display: grid;
  gap: 10px;
}

.dashboard-legend div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #edf2f2;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fbfefe;
}

.dashboard-legend strong {
  color: #102a5c;
  font-size: 0.92rem;
}

.dashboard-legend em {
  color: #06142f;
  font-style: normal;
  font-weight: 900;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-confirmed {
  background: #0f766e;
}

.legend-pending {
  background: #cbd5e1;
}

.legend-declined {
  background: #ef6b6b;
}

.legend-maybe {
  background: #f59e0b;
}

.dashboard-status-list {
  display: grid;
  gap: 10px;
}

.dashboard-mini-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #edf2f2;
  border-radius: 16px;
  padding: 10px;
  background: #fbfefe;
}

.dashboard-mini-metric span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.dashboard-mini-metric strong,
.dashboard-mini-metric small {
  display: block;
}

.dashboard-mini-metric strong {
  color: #06142f;
  font-size: 1.05rem;
  font-weight: 900;
}

.dashboard-progress-row {
  margin-top: 14px;
  color: #102a5c;
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-progress {
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f2;
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #20cfc0, #0f766e);
}

.dashboard-seating-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, #f7fafa, #eefcf9);
}

.dashboard-seating-visual span {
  min-height: 46px;
  border: 2px solid rgba(15, 118, 110, 0.42);
  border-radius: 999px;
  background: #fff;
}

.dashboard-alert-list {
  display: grid;
  gap: 10px;
}

.dashboard-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e5ecec;
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.dashboard-alert span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.dashboard-alert p {
  margin: 0;
  color: #102a5c;
  font-weight: 700;
}

.dashboard-alert-warning {
  border-color: #fde6bb;
  background: #fff9ec;
}

.dashboard-alert-warning span {
  color: #b7791f;
  background: #fff1d7;
}

.dashboard-alert-danger {
  border-color: #f8c9ce;
  background: #fff4f5;
}

.dashboard-alert-danger span {
  color: #be4565;
  background: #ffe7ec;
}

.dashboard-alert-success {
  border-color: #bfebdf;
  background: #f1fcf8;
}

.dashboard-alert-success span {
  color: #0f766e;
  background: #dcfbf4;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-action-grid .btn:first-child {
  grid-column: 1 / -1;
}

.dashboard-footer-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-benefit-card {
  padding: 18px;
}

.dashboard-benefit-card span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.dashboard-benefit-card strong {
  display: block;
  color: #06142f;
  font-weight: 900;
}

.dashboard-benefit-card p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.dashboard-activity-accordion .accordion-item {
  overflow: hidden;
}

.dashboard-activity-accordion .accordion-button {
  border-radius: 24px;
  color: #102a5c;
  background: #fff;
  font-weight: 900;
}

.dashboard-activity-list {
  display: grid;
  gap: 10px;
}

.dashboard-activity-list > div:not(.empty-state) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2f2;
  padding-bottom: 9px;
}

.dashboard-activity-list small {
  color: #64748b;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eef2f7;
  color: #344054;
  white-space: nowrap;
}

.status-success {
  color: var(--success);
  background: #e7f8ef;
}

.status-warning {
  color: var(--warning);
  background: #fff4e5;
}

.status-danger {
  color: var(--danger);
  background: #fde8e6;
}

.status-info {
  color: var(--brand-2);
  background: #e5f6fb;
}

.empty-state,
.error-state,
.loading-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.table {
  vertical-align: middle;
}

.table th {
  color: #344054;
  font-size: 0.86rem;
  white-space: nowrap;
}

.table td {
  font-size: 0.92rem;
}

.form-control,
.form-select {
  border-radius: 8px;
}

.modal-content {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.guest-rsvp-status-button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.guest-rsvp-status-button .status-pill {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    outline-color 0.18s ease;
}

.guest-rsvp-status-button:hover .status-pill,
.guest-rsvp-status-button:focus-visible .status-pill {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 42, 92, 0.12);
}

.guest-rsvp-status-button:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.28);
  outline-offset: 3px;
  border-radius: 999px;
}

.guest-rsvp-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guest-rsvp-summary > div {
  min-height: 72px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  padding: 12px;
  background: rgba(20, 184, 166, 0.07);
}

.guest-rsvp-options {
  display: grid;
  gap: 10px;
}

.guest-rsvp-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.guest-rsvp-option:hover,
.guest-rsvp-option.active {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(20, 184, 166, 0.07);
  box-shadow: 0 12px 28px rgba(16, 42, 92, 0.08);
}

.guest-rsvp-option input {
  display: none;
}

.guest-rsvp-option-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--brand);
  background: rgba(20, 184, 166, 0.12);
}

.guest-rsvp-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.guest-rsvp-count {
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: #f8fafa;
}

.toast-container {
  z-index: 1100;
}

.auth-page {
  min-height: 100vh;
  background-image: linear-gradient(120deg, rgba(15, 118, 110, 0.11), rgba(190, 69, 101, 0.08)), url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
}

.auth-panel {
  max-width: 460px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.sms-preview {
  border-radius: 8px;
  padding: 18px;
  background: #eef2f7;
}

.sms-bubble {
  max-width: 92%;
  border-radius: 8px 8px 8px 2px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  white-space: pre-wrap;
}

.template-card {
  height: 100%;
}

.template-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.event-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.invitation-preview-panel {
  position: sticky;
  top: 88px;
}

.form-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-2);
  font-weight: 800;
  letter-spacing: 0;
}

.form-section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.1);
}

.event-file-control {
  display: grid;
  gap: 6px;
}

.event-file-remove {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(190, 69, 101, 0.28);
  border-radius: 999px;
  background: #fff5f7;
  color: #be4565;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transition: var(--transition);
}

.event-file-remove:hover,
.event-file-remove:focus-visible {
  border-color: rgba(190, 69, 101, 0.52);
  background: #ffe4e9;
  box-shadow: 0 8px 16px rgba(190, 69, 101, 0.15);
}

.event-file-status {
  color: #64748b;
  font-size: 0.82rem;
}

.invitation-phone {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
}

.invitation-phone-hero {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.invitation-phone-hero h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.invitation-phone-hero p {
  margin: 4px 0 0;
}

.invitation-preview-logo {
  position: absolute;
  inset-inline-start: 16px;
  top: 16px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}

.invitation-phone-body {
  padding: 16px;
}

.invitation-preview-text {
  margin: 14px 0;
  color: #475467;
  white-space: pre-wrap;
}

.invitation-guest-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.invitation-guest-card small {
  display: block;
  color: #667085;
}

.seating-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hall-map-shell {
  position: relative;
  min-width: 0;
}

.hall-map-controls {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
}

.hall-map-zoom-value {
  min-width: 48px;
  text-align: center;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 800;
}

.hall-map-viewport {
  position: relative;
  min-height: 540px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.hall-map-stage {
  position: relative;
  min-height: 540px;
}

.hall-map {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 540px;
  transform-origin: top right;
  background:
    linear-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    #fbfcfe;
  background-size: 28px 28px;
}

.hall-object {
  position: absolute;
  display: flex;
  width: 128px;
  height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
  cursor: grab;
  user-select: none;
}

.hall-object.rectangle,
.hall-object.long {
  border-radius: 8px;
}

.hall-object.square {
  border-radius: 8px;
}

.hall-object.dragging {
  cursor: grabbing;
  opacity: 0.82;
}

.hall-object.over {
  color: var(--danger);
}

.hall-object.full {
  color: var(--warning);
}

.hall-object.empty {
  color: #98a2b3;
}

.hall-fixture {
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
}

.guest-list {
  max-height: 540px;
  overflow: auto;
}

.guest-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
  cursor: grab;
}

.table-guest-manager {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.table-guest-manager.empty {
  min-height: 100%;
}

.table-seated-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.table-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.table-guest-row small {
  display: block;
  color: #667085;
}

.rsvp-page {
  min-height: 100vh;
  background: #f3f5f8;
}

.rsvp-hero {
  position: relative;
  min-height: 340px;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(6, 20, 24, 0.56), rgba(6, 20, 24, 0.78)), url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1600&q=82");
  background-position: center;
  background-size: cover;
}

.rsvp-card {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rsvp-choice {
  min-height: 66px;
  font-size: 1.05rem;
  font-weight: 800;
}

.rsvp-thanks-table {
  max-width: 420px;
}

.credit-gift-button,
.invitation-gift-preview {
  border: 0;
  color: #fff;
  background:
    linear-gradient(135deg, #0f766e 0%, #20cfc0 48%, #102a5c 100%);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
  font-weight: 900;
}

.credit-gift-button:hover,
.credit-gift-button:focus-visible,
.invitation-gift-preview:hover,
.invitation-gift-preview:focus-visible {
  color: #fff;
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.credit-gift-modal {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(6, 20, 47, 0.2);
}

.credit-gift-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(16, 42, 92, 0.06));
}

.credit-gift-header span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #20cfc0);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.credit-gift-header strong,
.credit-gift-header small {
  display: block;
}

.credit-gift-header small {
  color: var(--muted);
}

.credit-gift-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.credit-gift-amounts .btn {
  border-radius: 14px;
  font-weight: 900;
}

.credit-payment-placeholder {
  border: 1px dashed rgba(15, 118, 110, 0.3);
  border-radius: 18px;
  padding: 16px;
  background: #f7fafa;
  color: #102a5c;
  text-align: center;
}

.credit-payment-placeholder strong,
.credit-payment-placeholder span {
  display: block;
}

.credit-payment-placeholder span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.credit-gift-details-summary .preview-row {
  padding-block: 10px;
}

.credit-gift-summary-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #20cfc0);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.white-space-pre-line {
  white-space: pre-line;
}

.counter {
  display: inline-grid;
  grid-template-columns: 42px 64px 42px;
  gap: 8px;
  align-items: center;
}

.counter .count-value {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

@media (min-width: 992px) {
  .content-area {
    padding: 26px;
  }

  .seating-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .event-editor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  }

  #eventForm {
    grid-column: 1;
  }

  .invitation-preview-panel {
    grid-column: 2;
  }
}

@media (max-width: 1199px) {
  .dashboard-hero,
  .dashboard-main-grid,
  .dashboard-secondary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-side,
  .dashboard-hero-actions {
    justify-items: start;
    justify-content: flex-start;
  }

  .dashboard-stat-grid,
  .dashboard-footer-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 86vh;
    align-items: end;
    padding-bottom: 72px;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .section-band {
    padding: 44px 0;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .content-area {
    padding: 14px;
  }

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

  .hall-map-viewport,
  .hall-map-stage,
  .hall-map {
    min-height: 460px;
  }

  .dashboard-hero,
  .dashboard-panel,
  .dashboard-stat-card,
  .dashboard-benefit-card {
    border-radius: 20px;
  }

  .dashboard-title-row,
  .dashboard-rsvp-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-title-row {
    align-items: flex-start;
  }

  .dashboard-stat-grid,
  .dashboard-footer-benefits,
  .dashboard-action-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-actions .btn,
  .dashboard-action-grid .btn {
    width: 100%;
  }

  .dashboard-event-line {
    width: 100%;
    border-radius: 16px;
  }

  .dashboard-rsvp-layout {
    justify-items: center;
  }

  .dashboard-donut {
    width: min(220px, 78vw);
  }

  .dashboard-activity-list > div:not(.empty-state) {
    display: grid;
  }
}

/* Legal, Cookies & Accessibility Additions */
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  right: 10px;
  transform: translateY(-140%);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.45);
  outline-offset: 3px;
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.96);
}

.legal-footer__top,
.legal-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-footer__bottom {
  margin-top: 10px;
  font-size: 0.88rem;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.legal-footer__links button,
.legal-form-disclosure button,
.form-check-label button[data-legal-open] {
  border: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  font: inherit;
  text-decoration: none;
}

.legal-footer__links button:hover,
.legal-form-disclosure button:hover,
.form-check-label button[data-legal-open]:hover {
  color: #0b5f59;
  text-decoration: underline;
}

.legal-footer__note,
.legal-form-disclosure {
  color: #7a8494;
  font-size: 0.84rem;
}

.legal-modal .modal-content {
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.legal-modal__body {
  color: #344054;
  line-height: 1.75;
}

.legal-modal__body h3 {
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
}

.legal-modal__body ul {
  display: grid;
  gap: 0.45rem;
  padding-right: 1.1rem;
}

.legal-muted,
.legal-disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-disclaimer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.legal-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.legal-pref-row + .legal-pref-row {
  margin-top: 10px;
}

.legal-pref-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  z-index: 1085;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  max-width: 980px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  border: 1px solid rgba(216, 222, 232, 0.95);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.accessibility-widget {
  position: fixed;
  z-index: 1075;
  left: 16px;
  bottom: 92px;
}

.accessibility-widget__toggle {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow);
}

.accessibility-widget__menu {
  position: absolute;
  left: 0;
  bottom: 54px;
  display: grid;
  width: min(260px, calc(100vw - 32px));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.accessibility-widget__menu button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fbfcfe;
  text-align: right;
}

.accessibility-widget__menu button[aria-pressed="true"] {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface-2);
}

body.accessibility-large-text {
  font-size: 112%;
}

body.accessibility-small-text {
  font-size: 94%;
}

body.accessibility-high-contrast {
  --ink: #000;
  --muted: #1f2937;
  --line: #111827;
  --canvas: #fff;
  --surface: #fff;
  --brand: #004f47;
  color: #000;
}

body.accessibility-readable-font {
  font-family: Arial, "Heebo", sans-serif;
}

body.accessibility-underline-links a,
body.accessibility-underline-links button[data-legal-open] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.accessibility-reduce-motion *,
body.accessibility-reduce-motion *::before,
body.accessibility-reduce-motion *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 767px) {
  .legal-footer__top,
  .legal-footer__bottom,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-footer__links,
  .cookie-banner__actions {
    flex-direction: column;
  }

  .legal-pref-row {
    align-items: flex-start;
  }

  .accessibility-widget {
    bottom: 118px;
  }
}

/* Employee Workspace */
.employee-hero {
  background:
    linear-gradient(135deg, rgba(32, 207, 192, 0.14), rgba(255, 255, 255, 0.88)),
    #fff;
}

.employee-avatar {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #20cfc0, #0f766e);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.18);
  font-size: 1.5rem;
  font-weight: 900;
}

.employee-task-row,
.employee-event-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  text-align: right;
  box-shadow: 0 12px 28px rgba(16, 42, 92, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.employee-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.employee-task-row:hover,
.employee-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(16, 42, 92, 0.13);
}

.employee-task-row small,
.employee-event-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.employee-task-row em {
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.employee-event-card {
  display: grid;
  gap: 16px;
}

.employee-event-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.employee-event-stats em {
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
  background: #f7fafa;
  font-style: normal;
  text-align: center;
}

.employee-event-stats b {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
}

.employee-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.employee-details-grid div,
.call-modal-summary {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fbfcfe;
}

.employee-details-grid span,
.call-modal-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.employee-details-grid strong,
.call-modal-summary strong {
  color: var(--ink);
}

.call-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.employee-call-options {
  display: grid;
  gap: 10px;
}

.employee-call-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
}

.employee-call-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(32, 207, 192, 0.12);
}

.employee-call-option input {
  width: 18px;
  height: 18px;
}

.employee-call-option small {
  display: block;
  color: var(--muted);
}

.employee-break-popup {
  position: fixed;
  z-index: 1090;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(16, 42, 92, 0.18);
}

.employee-break-popup strong,
.employee-break-popup span {
  display: block;
}

.employee-break-popup span {
  color: var(--brand);
  font-weight: 900;
}

.seating-checkin-table .seating-arrived-count {
  width: 96px;
  min-width: 80px;
  text-align: center;
  font-weight: 800;
}

.seating-checkin-table td {
  vertical-align: middle;
}

.arrival-stat-card {
  position: relative;
  direction: rtl;
  border: 1px solid rgba(15, 118, 110, 0.14);
  padding-inline-end: 66px;
  text-align: right;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.arrival-stat-card:hover,
.arrival-stat-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 36px rgba(16, 42, 92, 0.12);
}

.arrival-stat-card .label,
.arrival-stat-card .value,
.arrival-stat-card .hint {
  display: block;
}

.arrival-stat-icon {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--brand);
  background: rgba(20, 184, 166, 0.12);
}

.arrival-gift-control {
  display: grid;
  grid-template-columns: minmax(92px, 130px) auto;
  gap: 8px;
  align-items: center;
}

.arrival-gift-control input {
  font-weight: 800;
}

.arrival-modal-summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.08);
  color: var(--brand-dark);
}

.arrival-modal-summary strong {
  font-size: 1.35rem;
}

.package-feature-card {
  direction: rtl;
  background: #fff;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.package-feature-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.35) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* Admin Message Style Manager */
.message-style-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0) 34%),
    #fff;
  box-shadow: 0 14px 34px rgba(16, 42, 92, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.message-style-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 20px 44px rgba(16, 42, 92, 0.12);
}

.message-style-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--brand);
  background: rgba(20, 184, 166, 0.12);
}

.message-style-preview {
  direction: rtl;
  min-height: 128px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 16px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.message-style-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.message-style-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.message-variable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.message-variable-chip {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  padding: 9px 11px;
  color: var(--brand-2);
  background: #fff;
  text-align: right;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.message-variable-chip:hover,
.message-variable-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(20, 184, 166, 0.08);
}

.message-variable-chip span {
  font-weight: 800;
}

.message-variable-chip code {
  direction: ltr;
  color: var(--brand);
  font-size: 0.78rem;
}

.client-message-type-card {
  height: 100%;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 20px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 42, 92, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.client-message-type-card:hover,
.client-message-type-card.active {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: 0 20px 44px rgba(16, 42, 92, 0.12);
}

.client-message-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.client-message-modal-main,
.client-message-modal-side {
  display: grid;
  gap: 16px;
}

.client-message-modal-side {
  position: sticky;
  top: 12px;
}

.client-template-option {
  min-height: 100%;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.client-template-option:hover,
.client-template-option.active {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 12px 28px rgba(16, 42, 92, 0.09);
}

.client-template-option p {
  min-height: 68px;
  line-height: 1.55;
}

#templateEditor {
  min-height: 220px;
  line-height: 1.7;
}

#messageStyleText {
  min-height: 280px;
  line-height: 1.7;
}

#messageStyleLivePreview,
#messageStylePreviewBody {
  direction: rtl;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .employee-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .employee-task-row,
  .employee-break-popup {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-event-stats,
  .employee-details-grid,
  .call-modal-summary {
    grid-template-columns: 1fr;
  }

  .employee-break-popup {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .arrival-gift-control {
    grid-template-columns: 1fr;
  }

  .credit-gift-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-variable-grid {
    grid-template-columns: 1fr;
  }

  .client-message-modal-grid {
    grid-template-columns: 1fr;
  }

  .client-message-modal-side {
    position: static;
  }
}
