:root {
  color-scheme: light;
  --blue: #4a7bd6;
  --blue-strong: #2f68d8;
  --teal: #5ed7c6;
  --teal-light: #7febe2;
  --sky: #a9d9ff;
  --white: #ffffff;
  --soft: #f4f6f8;
  --ink: #0d1424;
  --muted: #64748b;
  --line: #e4ebf1;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --violet: #8b5cf6;
  --info: #4a7bd6;
  --dark: #0d1424;
  --dark-panel: #111c2b;
  --shadow: 0 20px 54px rgba(13, 20, 36, 0.12);
  --soft-shadow: 0 10px 28px rgba(13, 20, 36, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 8%, rgba(94, 215, 198, 0.2), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(169, 217, 255, 0.34), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f4f6f8 100%);
  color: var(--ink);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  left: -8vw;
  top: 84px;
  z-index: -1;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: rgba(169, 217, 255, 0.18);
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.portal-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.portal {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  width: min(1120px, 100%);
}

.portal-hero,
.portal-preview article {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.portal-hero {
  padding: 44px;
}

.portal-hero > img {
  width: 116px;
  padding: 16px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.portal-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
}

.portal-actions,
.demo-badges,
.filter-row,
.category-row,
.two-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.soft-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(94, 215, 198, 0.55);
  border-radius: 999px;
  background: #fff;
  color: #14948d;
  font-weight: 900;
}

.portal-preview {
  display: grid;
  gap: 16px;
}

.portal-preview article {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.portal-preview svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.portal-preview strong {
  font-size: 1.25rem;
}

.portal-preview span {
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: 292px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px;
  border-right: 1px solid rgba(228, 235, 241, 0.9);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.brand-mark img {
  width: 47px;
  height: 47px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
}

.brand span,
.muted,
.eyebrow,
.install-card span,
.technique-list span {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 11px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  text-align: left;
}

.nav-item svg,
.panel-title svg,
.technique-list svg,
.status-pill svg {
  width: 20px;
  height: 20px;
}

.nav-item.active {
  background: linear-gradient(135deg, var(--blue-strong), var(--teal));
  color: #fff;
  box-shadow: 0 14px 26px rgba(74, 123, 214, 0.28);
}

.install-card {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.install-card img {
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 18px;
  background: #f8fbfd;
}

.content {
  padding: 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2.15rem, 4.8vw, 4.1rem);
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
}

.status-pill,
.tiny-badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(127, 235, 226, 0.22);
  color: #14948d;
  font-weight: 900;
  white-space: nowrap;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.patient-grid,
.tools-grid,
.admin-layout {
  display: grid;
  gap: 18px;
}

.patient-grid {
  grid-template-columns: 1.35fr 0.85fr;
}

.hero-panel,
.panel,
.breathing-card,
.metric-card {
  border: 1px solid rgba(228, 235, 241, 0.95);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 286px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(127, 235, 226, 0.22), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(239, 248, 255, 0.92));
}

.hero-panel::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(169, 217, 255, 0.22);
}

.hero-copy,
.quick-actions,
.hero-logo {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy .eyebrow {
  color: var(--blue-strong);
}

.hero-copy p {
  max-width: 420px;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-logo {
  width: 118px;
  height: 118px;
  padding: 18px;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-actions,
.split-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-actions {
  grid-column: 1 / -1;
}

.primary-action,
.success-btn,
.soft-btn,
.icon-action {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  background: linear-gradient(135deg, var(--blue-strong), var(--teal));
  color: #fff;
  box-shadow: 0 13px 26px rgba(74, 123, 214, 0.24);
}

.primary-action.small {
  min-height: 42px;
}

.icon-action {
  display: grid;
  width: 48px;
  place-items: center;
  border: 1px solid rgba(94, 215, 198, 0.55);
  background: #fff;
  color: var(--teal);
}

.panel,
.breathing-card {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mood-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 10px;
}

.mood-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fbfdff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(29, 36, 48, 0.04);
}

.mood-card span {
  font-size: 1.8rem;
}

.mood-card.selected {
  border-color: rgba(94, 215, 198, 0.9);
  background: rgba(127, 235, 226, 0.22);
  color: #14948d;
}

textarea {
  width: 100%;
  min-height: 86px;
  margin-top: 14px;
  padding: 16px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfdff;
  outline: 0;
}

.streak-number {
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 950;
  background: linear-gradient(135deg, var(--teal), var(--blue-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.success-btn {
  padding: 0 18px;
  border: 0;
  background: var(--success);
  color: #fff;
}

.soft-btn {
  padding: 0 18px;
  border: 1px solid rgba(94, 215, 198, 0.55);
  background: #fff;
  color: #14948d;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-weight: 800;
}

.tools-grid {
  grid-template-columns: 1fr 1fr;
}

.breathing-card {
  display: grid;
  place-items: center;
  min-height: 510px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(127, 235, 226, 0.28), transparent 30%),
    linear-gradient(160deg, #ffffff, #edf7f9);
}

.breath-orb {
  display: grid;
  width: 224px;
  height: 224px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-strong);
  font-weight: 900;
  box-shadow: 0 30px 70px rgba(74, 123, 214, 0.18);
  animation: breathe 4s ease-in-out infinite;
}

.breath-orb img {
  width: 116px;
  margin-bottom: -34px;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.88);
  }
  50% {
    transform: scale(1);
  }
}

.technique-list,
.cards-panel {
  display: grid;
  gap: 14px;
}

.technique-list article {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(127, 235, 226, 0.18), rgba(169, 217, 255, 0.18));
}

.technique-list svg {
  color: var(--teal);
}

.coping-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(127, 235, 226, 0.22);
  color: #123f4a;
  font-weight: 850;
}

.routine-panel {
  min-height: 620px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.week-grid article {
  display: grid;
  gap: 14px;
  min-height: 280px;
  padding: 18px;
  border-radius: 26px;
  background: #fbfdff;
}

.week-grid span {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 8px 16px rgba(29, 36, 48, 0.04);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 20px;
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-weight: 850;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 2.35rem;
  font-weight: 950;
}

.metric-card.alert strong {
  color: var(--blue-strong);
}

.metric-card.warning strong {
  color: var(--warning);
}

.admin-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(94, 215, 198, 0.2), transparent 36%),
    linear-gradient(145deg, #0d1424, #142235);
  color: #fff;
  box-shadow: 0 24px 60px rgba(17, 27, 38, 0.28);
}

.patient-body {
  min-height: 100vh;
  padding: 28px;
}

.patient-body.app-mode {
  display: grid;
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(127, 235, 226, 0.24), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(169, 217, 255, 0.32), transparent 28%),
    #f8fbfd;
}

.phone-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 430px);
  gap: 44px;
  width: min(1080px, 100%);
  margin: 0 auto;
  align-items: center;
  min-height: calc(100vh - 56px);
}

.demo-info {
  display: grid;
  gap: 18px;
}

.demo-info > img {
  width: 110px;
  padding: 15px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.demo-info p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.06rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--blue-strong);
  font-weight: 900;
}

.back-link svg {
  width: 18px;
}

.demo-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  box-shadow: var(--soft-shadow);
}

.demo-badges svg {
  width: 17px;
  color: var(--teal);
}

.phone-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100%);
  height: 860px;
  max-height: calc(100vh - 50px);
  overflow: hidden;
  border: 12px solid #111722;
  border-radius: 46px;
  background: #f8fbfd;
  box-shadow: 0 30px 80px rgba(17, 27, 38, 0.28);
}

.phone-shell.pwa-live {
  width: min(100%, 980px);
  height: 100vh;
  max-height: none;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(127, 235, 226, 0.2), transparent 27%),
    #f8fbfd;
}

.pwa-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(228, 235, 241, 0.86);
  background: rgba(248, 251, 253, 0.9);
  backdrop-filter: blur(16px);
}

.app-header.compact {
  align-items: center;
  justify-content: flex-start;
}

.app-header.compact img {
  width: 48px;
  height: 48px;
  border-radius: 17px;
}

.app-header.compact strong,
.app-header.compact span {
  display: block;
}

.app-header.compact span {
  color: var(--muted);
  font-size: 0.84rem;
}

.profile-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-strong);
  box-shadow: var(--soft-shadow);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 4px;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 900;
}

.phone-status span:last-child {
  display: flex;
  gap: 8px;
}

.phone-status svg {
  width: 16px;
}

.patient-screen {
  display: none;
  overflow: auto;
  padding: 16px 18px 94px;
}

.pwa-live .patient-screen {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 18px 104px;
}

.patient-screen.active {
  display: block;
}

.app-header,
.screen-title,
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.app-header img {
  width: 54px;
  padding: 7px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.app-header h2,
.screen-title h2 {
  margin-bottom: 0;
  font-size: 1.24rem;
}

.mobile-card,
.message-bubble,
.coping-mobile {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(29, 36, 48, 0.08);
}

.pwa-live .mobile-card,
.pwa-live .message-bubble,
.pwa-live .coping-mobile {
  box-shadow: 0 12px 28px rgba(13, 20, 36, 0.08);
}

.card-heading span,
.session-card span,
.mobile-card > span,
.routine-list span,
.clean-list,
.message-bubble p {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(127, 235, 226, 0.22);
  color: #14948d;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.pill.dark {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.mood-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.mood-picker button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
  font-size: 1.25rem;
}

.mood-picker button.selected {
  border-color: var(--teal);
  background: rgba(127, 235, 226, 0.22);
}

.mood-picker small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.mobile-primary,
.mobile-success,
.mobile-soft,
.session-card button {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 900;
}

.mobile-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--blue-strong), var(--teal));
  color: #fff;
}

.mobile-success {
  flex: 1;
  border: 0;
  background: var(--success);
  color: #fff;
}

.mobile-soft {
  flex: 1;
  border: 1px solid rgba(94, 215, 198, 0.55);
  background: #fff;
  color: #14948d;
}

.streak-mobile {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0;
}

.streak-mobile strong {
  color: var(--teal);
  font-size: 3.6rem;
  line-height: 1;
}

.session-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.security-mobile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(90deg, rgba(169, 217, 255, 0.22), rgba(127, 235, 226, 0.16));
}

.appointment-alert,
.session-detail {
  background: linear-gradient(135deg, rgba(74, 123, 214, 0.1), rgba(127, 235, 226, 0.18));
}

.appointment-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.security-mobile svg,
.appointment-alert svg,
.session-detail svg {
  width: 30px;
  height: 30px;
  color: var(--blue-strong);
}

.security-mobile span,
.appointment-alert span,
.crisis-card span,
.session-detail span {
  display: block;
  color: var(--muted);
}

.session-time {
  display: grid;
  gap: 4px;
  margin: 14px 0;
}

.session-time strong {
  font-size: 2.6rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-strong), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.avatar,
.admin-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue-strong));
  color: #fff;
  font-weight: 950;
}

.progress-line {
  height: 9px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef4;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue-strong));
}

.clean-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.clean-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.clean-list svg {
  width: 18px;
  color: var(--teal);
}

.day-tabs,
.category-row {
  margin-top: 14px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.day-tabs button,
.category-row button,
.filter-row button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.day-tabs button.active,
.category-row button.active,
.filter-row button.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-strong), var(--teal));
  color: #fff;
}

.routine-list {
  display: grid;
  gap: 12px;
}

.routine-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fbfd;
}

.breathing-mobile {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.crisis-card {
  display: grid;
  gap: 10px;
}

.mini-orb {
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  border-radius: 50%;
  background: rgba(127, 235, 226, 0.22);
  animation: breathe 4s ease-in-out infinite;
}

.mini-orb img {
  width: 92px;
}

.tool-list-mobile {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tool-list-mobile button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.tool-list-mobile svg {
  color: var(--blue-strong);
}

.coping-mobile {
  color: #123f4a;
  font-weight: 900;
  background: rgba(127, 235, 226, 0.22);
}

.message-bubble {
  width: 86%;
}

.message-bubble.patient {
  margin-left: auto;
  background: linear-gradient(135deg, var(--blue-strong), var(--teal));
  color: #fff;
}

.message-bubble.patient p {
  color: rgba(255, 255, 255, 0.82);
}

.reply-box {
  position: sticky;
  bottom: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  color: var(--muted);
}

.reply-box button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-strong), var(--teal));
  color: #fff;
}

.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.pwa-live .mobile-nav {
  position: fixed;
  left: 50%;
  width: min(100%, 980px);
  transform: translateX(-50%);
}

.mobile-nav button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #72829a;
  font-size: 0.68rem;
  font-weight: 900;
}

.mobile-nav svg {
  width: 20px;
}

.mobile-nav button.active {
  background: rgba(127, 235, 226, 0.22);
  color: #14948d;
}

.admin-body {
  min-height: 100vh;
  background: #f4f6f8;
}

.admin-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(94, 215, 198, 0.24), transparent 32%),
    linear-gradient(180deg, #0d1424, #152236);
  color: #fff;
}

.back-link.light {
  color: rgba(255, 255, 255, 0.76);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand img {
  width: 58px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand span,
.admin-secure span,
.admin-user span {
  color: rgba(255, 255, 255, 0.62);
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 850;
}

.admin-nav button.active {
  background: #fff;
  color: var(--dark);
}

.admin-secure {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
}

.admin-main {
  min-width: 0;
  overflow-x: hidden;
  padding: 30px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.admin-user span:not(.admin-avatar) {
  color: var(--muted);
}

.admin-screen {
  display: none;
}

.admin-screen.active {
  display: block;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-metrics article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.admin-metrics article {
  padding: 18px;
}

.admin-metrics span,
.admin-metrics small {
  color: var(--muted);
}

.admin-metrics strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 2.25rem;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}

.admin-panel {
  min-width: 0;
  padding: 22px;
}

.admin-panel.wide {
  grid-column: span 1;
}

.admin-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-panel-title h2 {
  margin: 0;
  font-size: 1.18rem;
}

.admin-primary,
.admin-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.admin-primary {
  background: linear-gradient(135deg, var(--blue-strong), var(--teal));
}

.admin-danger {
  background: var(--danger);
}

.line-chart-fake {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 260px;
  padding: 20px;
  border-radius: 24px;
  background: #f8fbfd;
}

.line-chart-fake span {
  flex: 1;
  min-width: 28px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--blue-strong), var(--teal));
}

.alert-list,
.timeline {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.alert-list li,
.timeline li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fbfd;
}

.alert-list span,
.timeline span {
  color: var(--muted);
}

.admin-table {
  display: grid;
  gap: 6px;
}

.admin-table .row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.7fr 1fr 0.7fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 16px;
}

.admin-table .row:nth-child(even) {
  background: #f8fbfd;
}

.admin-table .head {
  color: var(--muted);
  font-weight: 900;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.tag.ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15945a;
}

.tag.warn {
  background: rgba(245, 158, 11, 0.14);
  color: #9a690b;
}

.tag.info {
  background: rgba(59, 130, 246, 0.13);
  color: var(--blue-strong);
}

.patient-cards-admin {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.patient-cards-admin article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fbfd;
}

.patient-cards-admin small {
  color: var(--muted);
}

.patient-detail-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}

.profile-panel {
  text-align: center;
}

.admin-avatar.large {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  font-size: 1.5rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.profile-stats span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fbfd;
  color: var(--muted);
}

.profile-stats strong {
  color: var(--ink);
  font-size: 1.4rem;
}

.fake-form {
  display: grid;
  gap: 14px;
}

.fake-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 850;
}

.fake-form input,
.fake-form textarea {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfd;
  color: var(--ink);
}

.messages-admin {
  display: grid;
  gap: 14px;
}

.messages-admin article,
.approval-list article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fbfd;
}

.approval-list {
  display: grid;
  gap: 12px;
}

.approval-list article {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.approval-list span {
  display: block;
  color: var(--muted);
}

.agenda-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.agenda-panel {
  min-height: 430px;
}

.agenda-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.agenda-week article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 280px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fbfd;
}

.agenda-week article.active {
  border-color: rgba(94, 215, 198, 0.72);
  background: linear-gradient(180deg, rgba(127, 235, 226, 0.24), #fff);
}

.agenda-week span {
  display: block;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 8px 16px rgba(13, 20, 36, 0.04);
}

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

.reminder-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fbfd;
}

.reminder-grid span {
  color: var(--muted);
}

.admin-dark .eyebrow,
.admin-dark p,
.admin-dark .table-row.head {
  color: rgba(255, 255, 255, 0.66);
}

.admin-dark .primary-action {
  background: linear-gradient(135deg, var(--teal), var(--blue-strong));
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 0.7fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 14px;
  border-radius: 20px;
}

.table-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.065);
}

.table-row.head {
  font-weight: 900;
}

.chip {
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.chip.ok {
  background: rgba(34, 197, 94, 0.14);
  color: #65e49a;
}

.chip.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #f7c35b;
}

.insight-panel {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  align-items: center;
  gap: 22px;
}



.chart-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 180px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
}

.chart-bars span {
  flex: 1;
  min-width: 18px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--blue-strong), var(--teal));
}

@media (max-width: 1060px) {
  .portal,
  .phone-stage,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    justify-items: center;
  }

  .demo-info {
    width: min(720px, 100%);
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px 16px !important;
    padding: 16px 20px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(228, 235, 241, 0.9) !important;
  }

  .admin-sidebar > .back-link {
    grid-column: span 2;
  }

  .admin-brand {
    grid-column: 1;
  }

  #a-logout-btn {
    grid-column: 2;
    margin-top: 0 !important;
    align-self: center !important;
  }

  .admin-nav {
    grid-column: span 2;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  .admin-nav button {
    justify-content: center;
  }

  .admin-secure {
    display: none;
  }

  .admin-metrics,
  .patient-cards-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid,
  .patient-detail-grid,
  .agenda-layout {
    grid-template-columns: 1fr;
  }

  .agenda-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
    top: 0;
    z-index: 10;
    padding: 16px;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .install-card {
    display: none;
  }

  .patient-grid,
  .tools-grid,
  .week-grid,
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .insight-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-body,
  .patient-body {
    padding: 14px;
  }

  .portal-hero {
    padding: 26px;
  }

  .portal-actions {
    flex-direction: column;
  }

  .phone-stage {
    gap: 22px;
  }

  .demo-info h1 {
    font-size: 2rem;
  }

  .phone-shell {
    height: 820px;
    max-height: none;
    border-width: 8px;
    border-radius: 38px;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-nav button {
    font-size: 0.82rem;
  }

  .admin-metrics,
  .patient-cards-admin,
  .profile-stats,
  .reminder-grid,
  .agenda-week {
    grid-template-columns: 1fr;
  }

  .admin-table {
    overflow-x: auto;
  }

  .admin-table .row {
    min-width: 780px;
  }

  .approval-list article {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand span,
  .nav-item {
    font-size: 0;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 19px;
  }

  .nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-item svg {
    width: 22px;
    height: 22px;
  }

  .patient-grid,
  .tools-grid,
  .week-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 360px;
  }

  .hero-logo {
    width: 94px;
    height: 94px;
    grid-row: 1;
  }

  .mood-row {
    grid-template-columns: repeat(5, minmax(50px, 1fr));
  }

  .mood-card {
    min-height: 78px;
    border-radius: 18px;
  }

  .mood-card span {
    font-size: 1.35rem;
  }

  .table-row {
    grid-template-columns: 1fr 0.6fr;
    padding: 12px;
  }


  .admin-table {
    overflow-x: auto;
  }

  .admin-table .row {
    min-width: 780px;
  }

  .approval-list article {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand span,
  .nav-item {
    font-size: 0;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 19px;
  }

  .nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-item svg {
    width: 22px;
    height: 22px;
  }

  .patient-grid,
  .tools-grid,
  .week-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 360px;
  }

  .hero-logo {
    width: 94px;
    height: 94px;
    grid-row: 1;
  }

  .mood-row {
    grid-template-columns: repeat(5, minmax(50px, 1fr));
  }

  .mood-card {
    min-height: 78px;
    border-radius: 18px;
  }

  .mood-card span {
    font-size: 1.35rem;
  }

  .table-row {
    grid-template-columns: 1fr 0.6fr;
    padding: 12px;
  }

  .table-row span:nth-child(3),
  .table-row span:nth-child(4) {
    justify-self: start;
  }

  .breathing-card {
    min-height: 440px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 20, 36, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-content {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-align: center;
  animation: modal-fade 0.3s ease;
}

.modal-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}

}

/* Hover, Active & Transition States for Better Usability (UX/UI) */
.admin-primary,
.admin-danger,
.mobile-primary,
.mobile-success,
.mobile-soft,
.profile-button,
.login-submit,
.row button,
.admin-nav button,
.mobile-nav button,
.mood-picker button,
.day-tabs button,
.category-row button,
.filter-row button,
.patient-cards-admin article,
.agenda-session-item,
#p-install-card {
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  outline: none;
}

/* Hover effects */
.admin-primary:hover,
.mobile-primary:hover,
.mobile-success:hover,
.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(45, 108, 223, 0.25);
  filter: brightness(1.05);
}

.admin-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.25);
  filter: brightness(1.05);
}

.mobile-soft:hover,
.profile-button:hover,
.mood-picker button:hover,
.day-tabs button:hover,
.category-row button:hover,
.filter-row button:hover,
.patient-cards-admin article:hover,
.agenda-session-item:hover,
#p-install-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 20, 36, 0.08);
  filter: brightness(1.03);
}

/* TACTILE ACTIVE FEEDBACK (Sensação física de clique) */
.admin-primary:active,
.mobile-primary:active,
.mobile-success:active,
.login-submit:active,
.admin-danger:active,
.mobile-soft:active,
.profile-button:active,
.admin-nav button:active,
.mobile-nav button:active,
.mood-picker button:active,
.day-tabs button:active,
.category-row button:active,
.filter-row button:active,
.patient-cards-admin article:active,
.agenda-session-item:active,
#p-install-card:active,
.row button:active {
  transform: scale(0.96) !important;
  box-shadow: 0 2px 4px rgba(13, 20, 36, 0.05) !important;
  filter: brightness(0.92) !important;
}

/* Sidebar navigation hover states */
.admin-nav button {
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
}

.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding-left: 18px; /* micro-interaction for active feedback */
}

.admin-nav button.active:hover {
  background: #fff;
  color: var(--dark);
  padding-left: 14px;
}

/* Custom Login Styles & Dynamic Bindings */
body.not-logged-in .pwa-topbar,
body.not-logged-in .mobile-nav,
body.not-logged-in .patient-screen {
  display: none !important;
}

body.not-logged-in #p-login {
  display: flex !important;
}

body.not-logged-in .admin-sidebar,
body.not-logged-in .admin-topbar,
body.not-logged-in .admin-screen {
  display: none !important;
}

body.not-logged-in #a-login {
  display: flex !important;
}

/* Glassmorphic Login Layout */
.login-screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#p-login {
  background: radial-gradient(circle at 14% 0%, rgba(127, 235, 226, 0.24), transparent 28%),
              radial-gradient(circle at 88% 8%, rgba(169, 217, 255, 0.32), transparent 28%),
              #f8fbfd;
}

#a-login {
  background: radial-gradient(circle at 0% 0%, #111c2b, transparent 50%), #0d1424;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(228, 235, 241, 0.7);
  box-shadow: var(--shadow);
  text-align: center;
}

#a-login .login-card {
  background: rgba(17, 28, 43, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.login-card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

#a-login .login-card p {
  color: #a0aec0;
}

.form-group {
  text-align: left;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.fake-form label input,
.fake-form label textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfdff;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.fake-form label textarea {
  height: 100px;
  border-radius: 20px;
  padding: 12px 16px;
  resize: vertical;
}

#a-login .form-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
}

.form-group input:focus,
.fake-form label input:focus,
.fake-form label textarea:focus {
  border-color: var(--blue-strong);
  box-shadow: 0 0 0 3px rgba(74, 123, 214, 0.15);
}

#a-login .form-group input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(94, 215, 198, 0.2);
}

.login-submit {
  width: 100%;
  margin-top: 10px;
}

.login-switch {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.login-switch a {
  color: var(--blue-strong);
  font-weight: 800;
  cursor: pointer;
}

#a-login .login-switch a {
  color: var(--teal);
}

.form-alert {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: left;
  display: none;
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Chat styles enhancements */
.messages-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100% - 70px);
  overflow-y: auto;
  padding: 10px 4px;
}

.reply-box input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  padding-right: 12px;
}

/* Admin specific inputs & styles */
.fake-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 0.88rem;
}

.fake-form label input,
.fake-form label select {
  margin-top: 6px;
}

.fake-form label select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfdff;
  outline: none;
  font-size: 0.95rem;
}

/* Back link placement */
.login-back {
  display: block;
  margin-bottom: 24px;
  text-align: left;
}

/* Admin Access tab list */
.approval-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.approval-list article strong {
  display: block;
}

.approval-list article span {
  font-size: 0.84rem;
  color: var(--muted);
}

.approval-list .admin-danger {
  background: var(--danger);
  color: #fff;
  border: 0;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  margin-left: 8px;
}

.approval-list .admin-primary {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
}

/* Admin Chat list */
.messages-admin article {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

.messages-admin article:hover {
  background: #f8fbfd;
  border-color: var(--teal);
}

.messages-admin article.active-chat {
  background: rgba(127, 235, 226, 0.12);
  border-color: var(--teal);
}

.messages-admin article strong {
  display: block;
}

.messages-admin article p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Admin message area inside chat tab */
.admin-chat-area {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 480px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.admin-chat-history {
  overflow-y: auto;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Simple Breathing animation */
@keyframes breathing-circle {
  0% { transform: scale(1); background: rgba(94, 215, 198, 0.2); }
  40% { transform: scale(1.5); background: rgba(74, 123, 214, 0.4); }
  60% { transform: scale(1.5); background: rgba(74, 123, 214, 0.4); }
  100% { transform: scale(1); background: rgba(94, 215, 198, 0.2); }
}

.breathing-active-orb {
  animation: breathing-circle 12s ease-in-out infinite;
}
