.hidden{display:none!important}.app-shell{width:min(680px,100%);margin:auto;padding:18px 16px 60px}.app-header{display:flex;align-items:center;justify-content:center;gap:14px;margin:0}.app-header img{width:90px;height:90px;object-fit:contain}.app-header h1,.app-header p{margin:0}.card{background:#fff;border:1px solid #d8e1ee;border-radius:16px;padding:22px;margin:14px 0;box-shadow:0 12px 32px rgba(22,103,217,.12)}.card h2{margin:0 0 14px;color:#0f4ea8}.card label{display:block;margin:12px 0;font-weight:650}.card input,.card select,.card textarea{width:100%;margin-top:6px;padding:12px 15px;border:1px solid #d8e1ee;border-radius:12px;background:#fff;color:#172033;font:inherit}.card textarea{resize:vertical;min-height:104px}.card textarea:focus{outline:none;border-color:#1667d9;box-shadow:0 0 0 4px rgba(22,103,217,.13)}.muted{color:#667085}.message{margin:12px 0 0}.message.error{color:#b42318}.message.success{color:#217a38}.row-between{display:flex;justify-content:space-between;align-items:center}.compact{width:auto}.secondary{background:#fff;color:#0f4ea8;border:1px solid #0f4ea8;box-shadow:none}.appointment-list{display:grid;gap:10px}.appointment{padding:14px;border-radius:12px;background:#f5f8fc;border-right:4px solid #1667d9}.appointment.pending{border-color:#d69200}.appointment.cancelled{border-color:#c62828;opacity:.75}.appointment p{margin:3px 0}.gate{position:fixed;inset:0;z-index:9999;background:linear-gradient(145deg,#eaf3ff,#fff);display:grid;place-items:center;padding:20px}.gate-card{width:min(440px,100%);padding:28px;background:#fff;border-radius:22px;text-align:center;box-shadow:0 24px 70px rgba(15,78,168,.25)}.gate-card img{width:150px;height:150px;object-fit:contain}.gate-card h1{color:#0f4ea8}.gate-card button{margin:16px 0}.danger{background:#b42318}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:550px){.grid-two{grid-template-columns:1fr}.card{padding:18px}}

/* Customer app: a calmer, unified visual system without changing structure. */
.owner-page {
  --app-navy: #102a4c;
  --app-blue: #1768d1;
  --app-blue-bright: #2d88ed;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7faff 0%, #eef5fd 100%);
}

.customer-page {
  --app-navy: #102a4c;
  --app-blue: #1768d1;
  --app-blue-bright: #2d88ed;
  --app-surface: rgba(255, 255, 255, 0.94);
  --app-line: #dbe6f3;
  --app-soft: #f2f7fd;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(45, 136, 237, 0.11), transparent 28rem),
    linear-gradient(180deg, #f7faff 0%, #eef5fd 48%, #f8fbff 100%);
}

.customer-page .app-shell {
  width: min(620px, 100%);
  padding: 24px 20px 72px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.customer-page .app-shell::before {
  display: none;
}

:is(.customer-page, .owner-page) .welcome-screen {
  min-height: calc(100dvh - 48px);
  display: grid;
  place-items: center;
  padding: 28px 0;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

:is(.customer-page, .owner-page) .welcome-screen::before {
  content: '';
  position: fixed;
  inset: 18% 10% auto;
  height: 48%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(45, 136, 237, 0.16), transparent 68%);
  filter: blur(18px);
}

:is(.customer-page, .owner-page) .welcome-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 38px;
}

:is(.customer-page, .owner-page) .welcome-title {
  max-width: 560px;
  margin: 0;
  color: var(--app-navy);
  font-size: clamp(36px, 8.5vw, 64px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  animation: welcome-title-in 0.9s cubic-bezier(.2,.8,.2,1) 0.15s forwards;
}

:is(.customer-page, .owner-page) .glass-entry {
  width: auto;
  min-width: 190px;
  min-height: 58px;
  padding: 13px 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(223,238,255,.42));
  color: var(--app-navy);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(23, 104, 209, 0.16), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  opacity: 0;
  transform: translateY(14px);
  animation: welcome-button-in 0.7s cubic-bezier(.2,.8,.2,1) 1.05s forwards;
}

:is(.customer-page, .owner-page) .glass-entry:hover,
:is(.customer-page, .owner-page) .glass-entry:active {
  border-color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(210,232,255,.58));
  color: #0d3d7a;
  box-shadow: 0 19px 48px rgba(23, 104, 209, 0.22), inset 0 1px 0 #fff;
}

:is(.customer-page, .owner-page) .welcome-leaving {
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
}

@keyframes welcome-title-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes welcome-button-in {
  to { opacity: 1; transform: translateY(0); }
}

.owner-page .owner-welcome {
  position: fixed;
  inset: 0;
  z-index: 9000;
  min-height: 100dvh;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 4%, rgba(45, 136, 237, 0.14), transparent 28rem),
    linear-gradient(180deg, #f7faff 0%, #eef5fd 55%, #f8fbff 100%);
}

.owner-page .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.owner-page .section-heading h2 {
  margin-bottom: 0;
}

.owner-page .collapse-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #bfd3eb;
  border-radius: 12px;
  background: #f8fbff;
  color: #164f97;
  font-size: 25px;
  line-height: 1;
  box-shadow: none;
}

.owner-page .section-content {
  max-height: 5000px;
  margin-top: 16px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .35s ease, margin .35s ease, opacity .25s ease;
}

.owner-page .collapsible-card.is-collapsed {
  padding-top: 17px;
  padding-bottom: 17px;
}

.owner-page .collapsible-card.is-collapsed .section-content {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.owner-page .appointment-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.owner-page .appointment-actions .danger {
  min-width: 128px;
}

.owner-page .appointment-list {
  gap: 8px;
}

.owner-page .compact-appointment {
  padding: 10px 12px;
  border-radius: 12px;
}

.owner-page .appointment-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.owner-page .appointment-summary time {
  color: #102a4c;
  font-size: 18px;
  font-weight: 850;
  direction: ltr;
}

.owner-page .appointment-summary-text {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.owner-page .appointment-summary-text strong,
.owner-page .appointment-summary-text span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-page .appointment-summary-text span {
  color: #667085;
  font-size: 13px;
}

.owner-page .appointment-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf2fc;
  color: #164f97;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.owner-page .appointment-edit-toggle {
  width: auto;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 13px;
}

.owner-page .appointment-editor {
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid #dce8f4;
}

.owner-page .appointment-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}

.owner-page .appointment-filter-row button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.owner-page .appointment-filter-row label {
  margin-bottom: 0;
}

.owner-page .appointment-filter-row button {
  width: auto;
  margin-bottom: 1px;
}

.timeline-open {
  overflow: hidden;
}

.owner-page .timeline-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(9, 27, 51, .68);
  backdrop-filter: blur(6px);
}

.owner-page .timeline-modal-card {
  width: min(700px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(9, 27, 51, .32);
}

.owner-page .timeline-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.owner-page .timeline-modal-header h2,
.owner-page .timeline-modal-header p {
  margin: 0;
}

.owner-page .timeline-help {
  margin: 10px 0;
  color: #667085;
  font-size: 13px;
}

.owner-page .timeline-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce8f4;
  border-radius: 14px;
  background: #fbfdff;
}

.owner-page .timeline-grid {
  position: relative;
  margin-right: 64px;
  direction: rtl;
}

.owner-page .timeline-tick {
  position: absolute;
  right: -64px;
  left: 0;
  height: 1px;
  border-top: 1px solid rgba(220, 232, 244, .48);
}

.owner-page .timeline-tick.quarter {
  border-top-color: #d5e3f2;
}

.owner-page .timeline-tick.hour {
  border-top-color: #afc8e3;
}

.owner-page .timeline-tick span {
  position: absolute;
  right: 7px;
  top: -10px;
  width: 48px;
  color: #667085;
  font-size: 12px;
  direction: ltr;
}

.owner-page .timeline-appointment {
  position: absolute;
  right: 8px;
  left: 8px;
  z-index: 2;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid #96bde9;
  border-right: 5px solid #1768d1;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf6ff, #dcecff);
  box-shadow: 0 5px 14px rgba(23, 104, 209, .14);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.owner-page .timeline-appointment.dragging {
  z-index: 5;
  cursor: grabbing;
  opacity: .88;
  box-shadow: 0 12px 30px rgba(23, 104, 209, .28);
}

.owner-page .timeline-appointment-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.owner-page .timeline-appointment-text strong,
.owner-page .timeline-appointment-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-page .timeline-appointment-text span {
  color: #53657b;
  font-size: 12px;
}

.owner-page .timeline-appointment button {
  width: auto;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff;
  color: #164f97;
  font-size: 12px;
  box-shadow: none;
}

@media (max-width: 550px) {
  .owner-page .appointment-actions {
    grid-template-columns: 1fr;
  }

  .owner-page .appointment-summary {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .owner-page .appointment-status {
    display: none;
  }

  .owner-page .appointment-summary-text {
    display: block;
  }

  .owner-page .appointment-summary-text strong,
  .owner-page .appointment-summary-text span {
    display: block;
  }

  .owner-page .appointment-filter-row {
    grid-template-columns: 1fr;
  }

  .owner-page .appointment-filter-row button {
    width: 100%;
  }

  .owner-page .timeline-modal {
    padding: 0;
  }

  .owner-page .timeline-modal-card {
    max-height: 100dvh;
    height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .owner-page .timeline-grid {
    margin-right: 56px;
  }

  .owner-page .timeline-tick {
    right: -56px;
  }
}

.customer-page .app-header {
  position: relative;
  min-height: auto;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 4px 20px 24px;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(23, 104, 209, 0.14);
  text-align: center;
}

.customer-page .app-header::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: -2px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #df2638 0 25%, #fff 25% 50%, #1769d2 50% 75%, #fff 75%);
  box-shadow: 0 0 0 1px rgba(16, 42, 76, 0.06);
  transform: translateX(50%);
}

.customer-page .messages-button {
  position: absolute;
  top: 12px;
  right: 0;
  z-index: 2;
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #bfd3eb;
  border-radius: 13px;
  background: rgba(255,255,255,.84);
  color: #164f97;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(23,104,209,.12);
  backdrop-filter: blur(12px);
}

.data-refresh-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 900;
  width: auto;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 0;
  border-radius: 999px;
  background: #1768d1;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(23,104,209,.34);
  animation: data-refresh-float 2.8s ease-in-out infinite;
}

.data-refresh-button span:first-child { display: inline-block; font-size: 20px; line-height: 1; }
.data-refresh-button.is-refreshing { animation: none; }
.data-refresh-button.is-refreshing span:first-child { animation: data-refresh-spin .75s linear infinite; }

@keyframes data-refresh-spin { to { transform: rotate(360deg); } }
@keyframes data-refresh-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.customer-page .messages-badge {
  min-width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.messages-open {
  overflow: hidden;
}

.customer-page .messages-panel {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: grid;
  justify-items: end;
  padding: 0;
  background: rgba(9,27,51,.56);
  backdrop-filter: blur(5px);
}

.customer-page .messages-panel-card {
  width: min(440px, 100%);
  height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #f7faff;
  box-shadow: -20px 0 60px rgba(9,27,51,.24);
  animation: messages-panel-in .3s cubic-bezier(.2,.8,.2,1);
}

.customer-page .messages-panel-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  background: #f7faff;
}

.customer-page .messages-panel-header h2 {
  margin: 0;
  color: #102a4c;
}

.customer-page .messages-list {
  display: grid;
  gap: 10px;
}

.customer-page .message-item {
  padding: 15px;
  border: 1px solid #dce8f4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(25,73,126,.06);
}

.customer-page .message-item.unread {
  border-right: 4px solid #1768d1;
  background: #edf6ff;
}

.customer-page .message-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.customer-page .message-item h3,
.customer-page .message-item p {
  margin: 0;
}

.customer-page .message-item h3 {
  color: #102a4c;
  font-size: 16px;
}

.customer-page .message-item time {
  color: #718096;
  font-size: 11px;
  white-space: nowrap;
}

.customer-page .message-item p {
  margin-top: 7px;
  color: #42566f;
  line-height: 1.55;
}

.customer-page .empty-messages {
  padding: 34px 12px;
  text-align: center;
}

.customer-page .change-request-toggle {
  margin-top: 12px;
}

.customer-page .change-request-form {
  display: grid;
  gap: 9px;
  padding-top: 12px;
}

.customer-page .change-request-form textarea {
  width: 100%;
  min-height: 82px;
  padding: 11px 13px;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}

.customer-page .customer-change-request,
.owner-page .owner-change-request {
  padding: 11px 13px;
  margin-top: 10px;
  border: 1px solid #f0cf88;
  border-right: 4px solid #d69200;
  border-radius: 12px;
  background: #fff9e9;
  color: #594514;
}

.customer-page .customer-change-request p,
.owner-page .owner-change-request p {
  margin: 5px 0 0;
}

.owner-page .change-request-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.owner-page .change-request-actions button {
  min-height: 38px;
  padding: 7px 9px;
  font-size: 13px;
}

.owner-page .app-header {
  position: relative;
}

.owner-page .owner-messages-button {
  position: absolute;
  top: 8px;
  right: 0;
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #bfd3eb;
  border-radius: 13px;
  background: #fff;
  color: #164f97;
  box-shadow: 0 8px 20px rgba(23,104,209,.12);
}

.owner-page .messages-badge {
  min-width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 11px;
}

.owner-page .owner-messages-panel {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: grid;
  justify-items: end;
  background: rgba(9,27,51,.56);
  backdrop-filter: blur(5px);
}

.owner-page .owner-messages-card {
  width: min(440px, 100%);
  height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #f7faff;
  box-shadow: -20px 0 60px rgba(9,27,51,.24);
}

.owner-page .owner-messages-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  background: #f7faff;
}

.owner-page .owner-messages-header h2 {
  margin: 0;
  color: #102a4c;
}

.owner-page .owner-messages-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.owner-page .messages-list {
  display: grid;
  gap: 10px;
}

.owner-page .message-item {
  position: relative;
  padding: 15px;
  border: 1px solid #dce8f4;
  border-radius: 15px;
  background: #fff;
}

.owner-page .message-select {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  margin: 0;
}

.owner-page .message-select input { width: 20px; height: 20px; margin: 0; }
.owner-page .message-item:has(.message-select) { padding-right: 45px; }

.owner-page .message-bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #dce8f4;
}

.owner-page .message-bulk-bar label { display: flex; align-items: center; gap: 7px; margin: 0; font-weight: 700; }
.owner-page .message-bulk-bar input { width: 19px; height: 19px; margin: 0; }
.owner-page .message-bulk-bar button { width: auto; margin-inline-start: auto; }
.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; }

.owner-page .customer-management-list { display: grid; gap: 12px; }
.owner-page .customer-management-item { padding: 16px; border: 1px solid #dce8f4; border-radius: 14px; background: #fff; }
.owner-page .customer-management-item.is-blocked { background: #f5f6f8; opacity: .82; }
.owner-page .customer-management-summary strong,
.owner-page .customer-management-summary span { display: block; }
.owner-page .customer-management-summary span { margin-top: 4px; color: #718096; font-size: 13px; }
.owner-page .customer-management-item label { margin: 12px 0; }
.owner-page .customer-management-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }

.owner-page .working-hours-list { margin-bottom: 16px; border-top: 1px solid #dce8f4; }
.owner-page .working-hours-row { display: grid; grid-template-columns: minmax(75px,.7fr) 1fr 1fr auto; align-items: end; gap: 14px; padding: 13px 4px; border-bottom: 1px solid #dce8f4; }
.owner-page .working-hours-row strong { align-self: center; color: #183b66; }
.owner-page .working-hours-row label { margin: 0; }
.owner-page .inline-check { display: flex; align-items: center; gap: 7px; min-height: 48px; margin: 0; white-space: nowrap; }
.owner-page .inline-check input { width: 19px; min-height: 19px; margin: 0; }
.owner-page .date-hours-panel { margin-top: 26px; padding-top: 22px; border-top: 2px solid #cbdced; }
.owner-page .date-hours-panel h3 { margin: 0 0 6px; color: #183b66; }
.owner-page .date-hours-controls { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; gap: 12px; }
.owner-page .date-hours-actions { display: flex; gap: 10px; margin-top: 12px; }
.owner-page .date-hours-actions button { width: auto; }
.owner-page .date-overrides-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.owner-page .date-override-item { display: flex; flex-direction: column; width: auto; min-width: 135px; padding: 10px 14px; border: 1px solid #bfd3eb; background: #f8fbff; color: #164f97; box-shadow: none; }
.owner-page .date-override-item span { margin-top: 3px; font-size: 12px; }

.owner-page .timeline-appointment-buttons { display: flex; gap: 5px; margin-inline-start: auto; }
.owner-page .timeline-appointment-buttons button { min-width: 0; padding: 5px 7px; font-size: 10px; }

.owner-page .timeline-move-date-panel {
  display: grid;
  grid-template-columns: 1fr minmax(180px, .8fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #bfd3eb;
  border-radius: 14px;
  background: #f4f9ff;
}

.owner-page .timeline-move-date-panel > div:first-child strong,
.owner-page .timeline-move-date-panel > div:first-child span { display: block; }
.owner-page .timeline-move-date-panel > div:first-child span { margin-top: 4px; color: #718096; font-size: 13px; }
.owner-page .timeline-move-date-panel label { margin: 0; }
.owner-page .timeline-move-date-actions { display: flex; gap: 8px; }
.owner-page .timeline-move-date-actions button { width: auto; white-space: nowrap; }

.owner-page .message-item.unread {
  border-right: 4px solid #1768d1;
  background: #edf6ff;
}

.owner-page .message-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.owner-page .message-item h3,
.owner-page .message-item p {
  margin: 0;
}

.owner-page .message-item time {
  color: #718096;
  font-size: 11px;
  white-space: nowrap;
}

.owner-page .message-item p {
  margin-top: 7px;
  color: #42566f;
}

.owner-page .message-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.owner-page .message-actions button {
  width: auto;
  min-width: 120px;
  padding: 9px 14px;
  font-size: 13px;
}

.owner-page .message-actions .message-delete-button {
  margin-inline-start: auto;
}

@keyframes messages-panel-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.install-guide {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  background: #f7faff;
  text-align: right;
}

.install-guide strong { display: block; margin-bottom: 6px; color: #0f4ea8; }
.install-guide ol { margin: 0; padding-right: 22px; }
.install-guide li { margin: 4px 0; color: #42566f; }

.whatsapp-float {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(22, 92, 54, .32);
  animation: whatsapp-float 2.8s ease-in-out infinite;
}

.whatsapp-float svg { width: 25px; height: 25px; flex: 0 0 auto; }
.whatsapp-float:active { transform: scale(.96); }

.message-whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #20b95a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.message-whatsapp-button:hover { background: #179447; }

@keyframes whatsapp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Numeric time controls must stay left-to-right inside the Arabic RTL UI. */
.card input[type="time"],
.card select#manualTime {
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.customer-page .app-header img {
  width: 190px;
  height: 190px;
  flex: 0 0 auto;
  margin-bottom: -8px;
  filter: drop-shadow(0 8px 14px rgba(16, 42, 76, 0.08));
}

.customer-page .app-header h1 {
  color: var(--app-navy);
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.05;
}

.customer-page .app-header p {
  margin-top: 5px;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.customer-page .card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  margin: 16px 0;
  border: 1px solid rgba(184, 204, 228, 0.78);
  border-radius: 22px;
  background: var(--app-surface);
  box-shadow:
    0 18px 45px rgba(25, 73, 126, 0.09),
    0 2px 7px rgba(25, 73, 126, 0.04);
  backdrop-filter: blur(14px);
}

.customer-page .card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  height: 3px;
  background: linear-gradient(90deg, var(--app-blue), var(--app-blue-bright));
}

.customer-page .card h2 {
  margin: 0 0 8px;
  color: var(--app-navy);
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.customer-page .card > .muted,
.customer-page .card div > .muted {
  margin: 0 0 20px;
  color: #718096;
  font-size: 14px;
}

.customer-page .card label {
  margin: 18px 0;
  color: #233a59;
  font-size: 14px;
  font-weight: 700;
}

.customer-page .card input,
.customer-page .card select {
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 16px;
  border-color: var(--app-line);
  border-radius: 14px;
  background: #fbfdff;
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(16, 42, 76, 0.025);
}

.customer-page .card input:focus,
.customer-page .card select:focus {
  border-color: var(--app-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 104, 209, 0.11);
}

.customer-page button {
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1556b3, #2d88ed);
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(23, 104, 209, 0.19);
}

.customer-page .secondary {
  border: 1px solid #bfd3eb;
  background: #f8fbff;
  color: #164f97;
  box-shadow: none;
}

.customer-page .secondary:hover {
  border-color: #8db6e4;
  background: #edf5ff;
  box-shadow: none;
}

.customer-page .row-between {
  gap: 20px;
}

.customer-page .row-between .muted {
  margin-bottom: 0;
}

.customer-page .appointment-list {
  gap: 12px;
  margin-top: 18px;
}

.customer-page .appointment {
  padding: 17px 18px;
  border: 1px solid #dce8f4;
  border-right: 4px solid var(--app-blue);
  border-radius: 14px;
  background: var(--app-soft);
}

.customer-page .message:not(:empty) {
  padding: 11px 13px;
  border-radius: 12px;
  text-align: center;
  font-weight: 650;
}

.customer-page .message.error:not(:empty) {
  border: 1px solid #f2c3bf;
  background: #fff5f4;
}

.customer-page .message.success:not(:empty) {
  border: 1px solid #b8dfc2;
  background: #f1fbf4;
}

.customer-page .gate {
  background:
    radial-gradient(circle at 12% 6%, rgba(45, 136, 237, 0.16), transparent 26rem),
    linear-gradient(160deg, #edf5ff, #fff);
}

.customer-page .gate-card {
  border: 1px solid rgba(184, 204, 228, 0.8);
  box-shadow: 0 26px 70px rgba(25, 73, 126, 0.18);
}

@media (max-width: 550px) {
  .customer-page .app-shell {
    padding: 10px 14px 52px;
  }

  .customer-page .app-header {
    min-height: auto;
    gap: 0;
    padding: 0 8px 20px;
    margin-bottom: 10px;
  }

  .customer-page .messages-button {
    top: 6px;
    right: 0;
    padding: 7px 10px;
  }

  .data-refresh-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 10px 14px;
    font-size: 13px;
  }

  .owner-page .change-request-actions {
    grid-template-columns: 1fr;
  }

  .owner-page .customer-management-actions,
  .owner-page .working-hours-row,
  .owner-page .date-hours-controls { grid-template-columns: 1fr; }

  .owner-page .working-hours-row { align-items: stretch; gap: 8px; padding: 16px 2px; }
  .owner-page .timeline-move-date-panel { grid-template-columns: 1fr; align-items: stretch; }
  .owner-page .date-hours-actions,
  .owner-page .message-bulk-bar { flex-wrap: wrap; }
  .owner-page .message-bulk-bar button { margin-inline-start: 0; }

  .owner-page .owner-messages-button {
    top: 4px;
    right: 0;
    padding: 7px 9px;
    font-size: 12px;
  }

  .customer-page .app-header::after {
    right: 50%;
  }

  .customer-page .app-header img {
    width: 164px;
    height: 164px;
    margin-bottom: -10px;
  }

  .customer-page .app-header h1 {
    font-size: 34px;
  }

  .customer-page .card {
    padding: 22px 18px;
    margin: 13px 0;
    border-radius: 19px;
  }

  .customer-page .card h2 {
    font-size: 22px;
  }

  .customer-page .grid-two {
    gap: 10px;
  }

  .customer-page .row-between {
    align-items: flex-start;
  }

  .customer-page .compact {
    min-height: 44px;
    padding: 10px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.customer-page, .owner-page) .welcome-title,
  :is(.customer-page, .owner-page) .glass-entry {
    animation-delay: 0s;
    animation-duration: 0.01ms;
  }

  :is(.customer-page, .owner-page) .welcome-screen {
    transition-duration: 0.01ms;
  }
}
