.profile-select {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 80% 10%, #b8eef2, #edfafd 55%, #f4f9fb);
}

.profile-select-card {
  width: min(720px, 100%);
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #eff9fb);
  box-shadow: 0 24px 70px #0b334526;
  text-align: center;
}

.profile-select-card .brand {
  justify-content: center;
}

.profile-select-card h1 {
  margin: 25px 0 6px;
  font-size: 28px;
}

.profile-select-card > p {
  margin: 0;
  color: var(--muted);
}

.profile-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 27px 0 20px;
}

.profile-option {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 18px;
  background: #fff;
  color: var(--ink);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.profile-option:hover,
.profile-option:focus-visible {
  transform: translateY(-3px);
  border-color: #70c8d4;
  box-shadow: 0 15px 34px #0b33451c;
  outline: none;
}

.profile-photo-large {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #d8f3f5, #b9e6eb);
  color: #09536b;
  font-size: 34px;
  font-weight: 900;
  border: 5px solid #fff;
  box-shadow: 0 8px 24px #0b33451c;
}

.profile-photo-large img,
.settings-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-option strong {
  display: block;
  font-size: 18px;
}

.profile-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.side-actions {
  margin-top: auto;
  display: grid;
  gap: 7px;
}

.side-actions button {
  margin-top: 0;
}

.bell-button {
  position: relative;
}

.bell-badge {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  border: 2px solid #eef7f9;
  font-size: 10px;
  font-weight: 900;
}

.notification-list {
  display: grid;
  gap: 11px;
}

.notification-item {
  border: 1px solid #f0cbd0;
  border-left: 4px solid var(--red);
  border-radius: 13px;
  padding: 14px;
  background: #fff9fa;
}

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

.notification-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn-whatsapp {
  background: #e8f8ef;
  color: #16794b;
  border: 1px solid #bde8d0;
}

.settings-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: start;
}

.settings-photo {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #d8f3f5;
  color: #09536b;
  font-size: 32px;
  font-weight: 900;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px #0b33451c;
}

.message-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.message-variables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.message-variables code {
  padding: 5px 7px;
  border-radius: 7px;
  background: #edf6f8;
  color: #0b6782;
  font-size: 10px;
}

.save-status {
  min-height: 20px;
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
  margin-top: 10px;
}

.frequency-help {
  margin-top: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.empty-notifications {
  padding: 35px 16px;
  text-align: center;
  color: var(--muted);
}

.empty-notifications strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 16px;
}

@media (max-width: 700px) {
  .profile-select {
    padding: 14px;
  }

  .profile-select-card {
    padding: 24px 16px;
  }

  .profile-options {
    gap: 10px;
  }

  .profile-option {
    padding: 18px 10px;
  }

  .profile-photo-large {
    width: 92px;
    height: 92px;
    font-size: 27px;
  }

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

  .settings-photo {
    margin: auto;
  }

  .notification-head {
    display: block;
  }

  .notification-head .pill {
    margin-top: 7px;
  }

  .bell-button span:not(.bell-badge) {
    display: none;
  }
}

.loading-screen,
.config-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at 80% 10%, #b8eef2, #edfafd 55%, #f4f9fb);
}

.loading-card,
.config-card {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-card .brand,
.config-card .brand {
  justify-content: center;
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 24px auto 12px;
  border: 4px solid #d9ebef;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: pool-spin .8s linear infinite;
}

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

.sync-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 99px;
  background: #e8f8ef;
  color: #16794b;
  font-size: 10px;
  font-weight: 900;
}

.error-box {
  min-height: 20px;
  margin: 8px 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.auth-link {
  width: 100%;
  margin-top: 12px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.auth-message {
  min-height: 20px;
  margin: 8px 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-message.success {
  color: var(--green);
}

.auth-message.error {
  color: var(--red);
}

.cloud-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}

.cloud-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #071d2966;
  backdrop-filter: blur(2px);
}

.busy-overlay div {
  padding: 18px 22px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow);
}
