.client-pwa-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 18px 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(232, 184, 92, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 0%, rgba(232, 184, 92, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(12, 29, 40, 0.98), rgba(8, 21, 31, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.client-topbar {
  position: relative;
}

.client-notification-bell {
  position: relative;
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  place-items: center;
  color: #8594a1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.client-notification-bell > span::before {
  content: "\1F514";
  display: block;
  font-size: 1.25rem;
  filter: grayscale(1);
}

.client-notification-bell.is-active {
  color: #65ddc3;
  border-color: rgba(88, 214, 188, 0.42);
  background: rgba(88, 214, 188, 0.1);
  box-shadow: 0 0 0 5px rgba(88, 214, 188, 0.05);
}

.client-notification-bell.is-active > span::before {
  filter: none;
}

.client-notification-bell em {
  position: absolute;
  top: -10px;
  right: -7px;
  width: max-content;
  max-width: 132px;
  padding: 5px 8px;
  color: #18212a;
  border-radius: 999px;
  background: #efc568;
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.client-notification-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 11, 17, 0.76);
  backdrop-filter: blur(10px);
}

.client-notification-dialog {
  width: min(100%, 590px);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 26px;
  color: #f8fbff;
  border: 1px solid rgba(232, 184, 92, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0%, rgba(232, 184, 92, 0.15), transparent 38%),
    #0b1b27;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.client-notification-dialog > header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.client-notification-dialog h2 {
  margin: 6px 0 0;
  color: #f8fbff;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.12;
}

.client-notification-dialog > header > button {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  color: #c7d1da;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.45rem;
  cursor: pointer;
}

.client-notification-intro {
  margin: 16px 0 20px;
  color: #aebcca;
  line-height: 1.55;
}

#client-notification-preferences-form {
  display: grid;
  gap: 12px;
}

.client-notification-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.client-notification-choice-copy {
  display: grid;
  gap: 5px;
}

.client-notification-choice-copy strong {
  color: #f8fbff;
}

.client-notification-choice-copy small,
.client-notification-frequency small {
  color: #9cabb8;
  line-height: 1.45;
}

.client-notification-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.client-notification-choice i {
  position: relative;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: #3d4b56;
  transition: background 160ms ease;
}

.client-notification-choice i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #f6f8fa;
  transition: transform 160ms ease;
}

.client-notification-choice input:checked + i {
  background: #2eb99d;
}

.client-notification-choice input:checked + i::after {
  transform: translateX(19px);
}

.client-notification-choice:focus-within {
  border-color: rgba(232, 184, 92, 0.52);
}

.client-notification-frequency {
  display: grid;
  gap: 7px;
  padding: 4px 2px 10px;
}

.client-notification-frequency > span {
  color: #dfe7ed;
  font-size: 0.8rem;
  font-weight: 800;
}

.client-notification-frequency select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: #132838;
}

.client-directory-status-wrap {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}

.client-directory-notification-bell {
  display: inline-grid;
  width: 31px;
  min-width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 50%;
  color: #73818e;
  background: rgba(148, 163, 184, 0.07);
}

.client-directory-notification-bell svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-directory-notification-bell.is-active {
  color: #69dfc5;
  border-color: rgba(88, 214, 188, 0.42);
  background: rgba(88, 214, 188, 0.12);
  box-shadow: 0 0 0 4px rgba(88, 214, 188, 0.05);
}

:root[data-theme="light"] .client-directory-notification-bell.is-inactive {
  color: #8c98a3;
  border-color: rgba(45, 58, 70, 0.16);
  background: rgba(45, 58, 70, 0.05);
}

:root[data-theme="light"] .client-directory-notification-bell.is-active {
  color: #087c68;
  border-color: rgba(8, 124, 104, 0.28);
  background: rgba(8, 124, 104, 0.09);
}

.client-access-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.client-access-options button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.client-access-options button:hover,
.client-access-options button:focus-visible {
  border-color: rgba(232, 184, 92, 0.48);
  background: rgba(232, 184, 92, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.client-access-options span,
.client-access-assurance {
  color: #94a6b6;
  font-size: 0.76rem;
}

.client-access-form {
  gap: 13px;
}

.client-access-warning,
.client-access-success {
  margin: 0;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.client-access-warning {
  color: #f4cf80;
  border: 1px solid rgba(232, 184, 92, 0.24);
  background: rgba(232, 184, 92, 0.08);
}

.client-access-success {
  color: #83ead3;
  border: 1px solid rgba(88, 214, 188, 0.26);
  background: rgba(88, 214, 188, 0.08);
}

.client-access-support {
  color: #efc568;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.45;
}

.client-access-options strong {
  font-size: 0.98rem;
}

.client-access-options small {
  color: #aebcca;
  line-height: 1.45;
}

.client-access-flow {
  display: grid;
  gap: 18px;
}

.client-access-flow > p {
  margin: 0;
  color: #aebcca;
  line-height: 1.58;
}

.client-access-back {
  justify-self: start;
  padding: 0;
  color: #efc568;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.client-access-channel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(88, 214, 188, 0.24);
  border-radius: 17px;
  background: rgba(88, 214, 188, 0.07);
}

.client-access-channel-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #07141d;
  border-radius: 50%;
  background: #65ddc3;
  font-weight: 900;
}

.client-access-channel strong {
  color: #f8fbff;
}

.client-access-channel p {
  margin: 4px 0 0;
  color: #aebcca;
  font-size: 0.8rem;
  line-height: 1.45;
}

.client-access-whatsapp {
  display: grid;
  min-height: 50px;
  place-items: center;
  text-decoration: none;
}

.client-access-assurance {
  margin: -4px 0 0 !important;
  text-align: center;
}

.client-pwa-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(#f3c86f, #58d6bc);
}

.client-pwa-copy {
  min-width: 0;
}

.client-pwa-copy h2 {
  margin: 7px 0 8px;
  max-width: 700px;
  color: #f8fbff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.13;
}

.client-pwa-copy > p,
.client-pwa-privacy {
  margin: 0;
  color: #aebcca;
  line-height: 1.55;
}

.client-pwa-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.client-pwa-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #bcc8d3;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 700;
}

.client-pwa-status.is-active {
  border-color: rgba(88, 214, 188, 0.34);
  color: #83ead3;
  background: rgba(88, 214, 188, 0.1);
}

.client-pwa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.client-pwa-actions button {
  width: 100%;
  min-height: 48px;
}

.client-pwa-actions button:disabled {
  cursor: default;
  opacity: 0.66;
}

.client-pwa-privacy {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .client-top-actions {
    padding-top: 54px;
  }

  .client-notification-bell {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .client-notification-bell em {
    top: 4px;
    right: 54px;
  }

  .client-notification-overlay {
    align-items: start;
    padding: max(14px, env(safe-area-inset-top)) 0 0;
    overflow-y: auto;
  }

  .client-notification-dialog {
    width: 100%;
    max-height: calc(100dvh - max(14px, env(safe-area-inset-top)));
    padding: 23px 19px calc(23px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .client-pwa-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .client-pwa-actions {
    min-width: 0;
  }

  .client-pwa-privacy {
    grid-column: auto;
  }
}
