/* Kozamia mockup modals — profile edit / meditation / interests / fal / pact */

/* —— Profile Edit shell —— */
html.is-mobile-app #modal-profile-edit .profile-edit-modal,
html.kozamia-app-shell #modal-profile-edit .profile-edit-modal {
  background: #fdf8f5 !important;
  border-radius: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 100% !important;
  padding: 0 0 calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
}

html.is-mobile-app .pe-app-top,
html.kozamia-app-shell .pe-app-top {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  padding: calc(0.45rem + env(safe-area-inset-top, 0px)) 0.85rem 0.25rem;
}

html.is-mobile-app .pe-back-btn,
html.kozamia-app-shell .pe-back-btn {
  display: none !important;
}

html.is-mobile-app .pe-close-btn,
html.kozamia-app-shell .pe-close-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: #6a3d8a;
  display: grid;
  place-items: center;
  padding: 0;
}

html.is-mobile-app .pe-brand-logo,
html.kozamia-app-shell .pe-brand-logo {
  text-align: center;
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #6a3d8a;
}

html.is-mobile-app .pe-page-title,
html.kozamia-app-shell .pe-page-title {
  margin: 0.1rem 0.85rem 0.25rem;
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kozamia-shell-purple, #6a3d8a);
  letter-spacing: -0.02em;
}

html.is-mobile-app #modal-profile-edit .profile-edit-nav,
html.kozamia-app-shell #modal-profile-edit .profile-edit-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 0.4rem 0.15rem;
  border-bottom: 1px solid rgba(106, 61, 138, 0.1);
  scrollbar-width: none;
  background: var(--kozamia-shell-cream, #fdf8f5);
}

html.is-mobile-app #modal-profile-edit .profile-edit-nav-btn,
html.kozamia-app-shell #modal-profile-edit .profile-edit-nav-btn {
  flex: 0 0 auto;
  min-width: 3.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  padding: 0.22rem 0.2rem 0.3rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #9a8aa8;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 650;
}

html.is-mobile-app #modal-profile-edit .profile-edit-nav-btn em,
html.kozamia-app-shell #modal-profile-edit .profile-edit-nav-btn em {
  font-style: normal;
  white-space: nowrap;
}

html.is-mobile-app #modal-profile-edit .profile-edit-nav-btn .material-symbols-outlined,
html.kozamia-app-shell #modal-profile-edit .profile-edit-nav-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

html.is-mobile-app #modal-profile-edit .profile-edit-nav-btn.is-active,
html.kozamia-app-shell #modal-profile-edit .profile-edit-nav-btn.is-active {
  color: var(--kozamia-shell-purple, #6a3d8a);
  border-bottom-color: var(--kozamia-shell-purple, #6a3d8a);
}

html.is-mobile-app #modal-profile-edit .profile-edit-preview-cover,
html.kozamia-app-shell #modal-profile-edit .profile-edit-preview-cover {
  background: linear-gradient(135deg, #f3ebe3 0%, #d4b8c8 42%, #8b5a9e 78%, #6a3d8a 100%);
  height: 5.5rem;
  min-height: 5.5rem;
}

html.is-mobile-app #modal-profile-edit .profile-edit-preview-avatar.is-initial,
html.kozamia-app-shell #modal-profile-edit .profile-edit-preview-avatar.is-initial {
  background: linear-gradient(145deg, #6a3d8a, #8b5aad);
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
}

html.is-mobile-app #modal-profile-edit .profile-edit-footer,
html.kozamia-app-shell #modal-profile-edit .profile-edit-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, var(--kozamia-shell-cream, #fdf8f5) 28%);
  z-index: 5;
}

html.is-mobile-app #modal-profile-edit .pe-notif-simple-list,
html.kozamia-app-shell #modal-profile-edit .pe-notif-simple-list,
html.is-mobile-app .ps-edit-body .pe-notif-simple-list,
html.kozamia-app-shell .ps-edit-body .pe-notif-simple-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.35rem 0 0.75rem;
}

html.is-mobile-app #modal-profile-edit .pe-notif-simple-row,
html.kozamia-app-shell #modal-profile-edit .pe-notif-simple-row,
html.is-mobile-app .ps-edit-body .pe-notif-simple-row,
html.kozamia-app-shell .ps-edit-body .pe-notif-simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(106, 61, 138, 0.1);
  background: #fff;
}

html.is-mobile-app #modal-profile-edit .pe-notif-simple-label,
html.kozamia-app-shell #modal-profile-edit .pe-notif-simple-label,
html.is-mobile-app .ps-edit-body .pe-notif-simple-label,
html.kozamia-app-shell .ps-edit-body .pe-notif-simple-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  color: #2d1b3d;
}

html.is-mobile-app #modal-profile-edit .pe-notif-simple-label .material-symbols-outlined,
html.kozamia-app-shell #modal-profile-edit .pe-notif-simple-label .material-symbols-outlined,
html.is-mobile-app .ps-edit-body .pe-notif-simple-label .material-symbols-outlined,
html.kozamia-app-shell .ps-edit-body .pe-notif-simple-label .material-symbols-outlined {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.38rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.92rem;
  line-height: 1;
  color: #fff;
  background: #5c5268;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html.is-mobile-app #modal-profile-edit .pe-notif-hidden-fields,
html.kozamia-app-shell #modal-profile-edit .pe-notif-hidden-fields,
html.is-mobile-app .ps-edit-body .pe-notif-hidden-fields,
html.kozamia-app-shell .ps-edit-body .pe-notif-hidden-fields {
  display: none !important;
}

html.is-mobile-app .pe-sec-card,
html.kozamia-app-shell .pe-sec-card {
  margin: 0.85rem 1rem;
  background: #fff;
  border-radius: 1.15rem;
  border: 1px solid rgba(106, 61, 138, 0.08);
  box-shadow: 0 8px 22px rgba(106, 61, 138, 0.05);
  overflow: hidden;
}

html.is-mobile-app .pe-sec-row,
html.kozamia-app-shell .pe-sec-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0.95rem;
  border: 0;
  border-bottom: 1px solid rgba(106, 61, 138, 0.08);
  background: transparent;
  text-align: left;
  font: inherit;
  color: #2d1b3d;
  cursor: pointer;
}

html.is-mobile-app .pe-sec-row:last-of-type,
html.kozamia-app-shell .pe-sec-row:last-of-type {
  border-bottom: 0;
}

html.is-mobile-app .pe-sec-ico,
html.kozamia-app-shell .pe-sec-ico {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.42rem;
  background: #4a5568;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html.is-mobile-app .pe-sec-ico .material-symbols-outlined,
html.kozamia-app-shell .pe-sec-ico .material-symbols-outlined {
  font-size: 1.05rem;
  line-height: 1;
  color: #fff;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

html.is-mobile-app .pe-sec-ico.is-danger,
html.kozamia-app-shell .pe-sec-ico.is-danger {
  background: #a84858;
  color: #fff;
}

html.is-mobile-app .pe-sec-copy,
html.kozamia-app-shell .pe-sec-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

html.is-mobile-app .pe-sec-copy strong,
html.kozamia-app-shell .pe-sec-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: #2d1b3d;
}

html.is-mobile-app .pe-sec-copy strong.is-danger,
html.kozamia-app-shell .pe-sec-copy strong.is-danger {
  color: #d6455d;
}

html.is-mobile-app .pe-sec-copy em,
html.kozamia-app-shell .pe-sec-copy em {
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #8b7a9a;
}

html.is-mobile-app .pe-sec-chevron,
html.kozamia-app-shell .pe-sec-chevron {
  color: #6a3d8a;
  flex: 0 0 auto;
}

html.is-mobile-app #pe-password-block,
html.is-mobile-app #pe-account-delete,
html.kozamia-app-shell #pe-password-block,
html.kozamia-app-shell #pe-account-delete {
  padding: 0 0.95rem 1rem;
}

html.is-mobile-app .pe-panic-switch,
html.kozamia-app-shell .pe-panic-switch {
  position: relative;
  width: 2.9rem;
  height: 1.6rem;
  flex: 0 0 auto;
}

html.is-mobile-app .pe-panic-switch input,
html.kozamia-app-shell .pe-panic-switch input {
  opacity: 0;
  position: absolute;
  inset: 0;
  margin: 0;
}

html.is-mobile-app .pe-panic-switch-ui,
html.kozamia-app-shell .pe-panic-switch-ui {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #e5d9df;
  position: relative;
  transition: background 0.2s ease;
}

html.is-mobile-app .pe-panic-switch-ui::after,
html.kozamia-app-shell .pe-panic-switch-ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: left 0.2s ease;
}

html.is-mobile-app .pe-panic-switch input:checked + .pe-panic-switch-ui,
html.kozamia-app-shell .pe-panic-switch input:checked + .pe-panic-switch-ui {
  background: #d6455d;
}

html.is-mobile-app .pe-panic-switch input:checked + .pe-panic-switch-ui::after,
html.kozamia-app-shell .pe-panic-switch input:checked + .pe-panic-switch-ui::after {
  left: calc(100% - 1.38rem);
}

html.is-mobile-app .pe-panic-card-wrap .panic-settings-panel-wrap,
html.kozamia-app-shell .pe-panic-card-wrap .panic-settings-panel-wrap {
  margin: 0 1rem 1rem;
}

/* —— Meditation player (compact) —— */
#modal-meditation.modal-meditation-v2 .meditation-player-shell {
  background: linear-gradient(145deg, rgba(79, 214, 216, 0.92) 0%, rgba(123, 108, 240, 0.94) 48%, rgba(155, 120, 255, 0.96) 100%) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  border-radius: 1.35rem !important;
  padding: 0.7rem 0.85rem 0.75rem !important;
  max-width: 22rem;
  max-height: min(92dvh, 36rem);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 18px 48px rgba(20, 30, 80, 0.4);
}

#modal-meditation .meditation-close-x {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}

#modal-meditation .meditation-brand {
  text-align: center;
  margin-top: 0.1rem;
}

#modal-meditation .meditation-lotus {
  display: inline-block;
  margin: 0 auto;
  width: 28px;
  height: 24px;
  filter: drop-shadow(0 2px 8px rgba(100, 200, 255, 0.3));
}

#modal-meditation .meditation-brand-name {
  margin: 0.05rem 0 0;
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.9;
}

#modal-meditation .meditation-hero-title {
  margin: 0.35rem 0 0.1rem;
  text-align: center;
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

#modal-meditation .meditation-hero-sub {
  margin: 0 0 0.45rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.8;
}

#modal-meditation .meditation-ring-wrap {
  position: relative;
  width: 9.25rem;
  height: 9.25rem;
  margin: 0 auto 0.45rem;
}

#modal-meditation .meditation-ring-dots {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dotted rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

#modal-meditation .meditation-ring-svg {
  position: absolute;
  inset: 0.35rem;
  width: calc(100% - 0.7rem);
  height: calc(100% - 0.7rem);
  z-index: 1;
  pointer-events: none;
}

#modal-meditation .meditation-ring-track {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 5;
}

#modal-meditation .meditation-ring-progress {
  stroke: #7ef0ff;
  stroke-width: 5.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(126, 240, 255, 0.75));
  transition: stroke-dashoffset 0.35s ease;
}

#modal-meditation .breathing-circle {
  position: absolute;
  inset: 0.85rem;
  width: auto;
  height: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 28%, rgba(255, 230, 150, 0.55) 0 0.28rem, transparent 0.55rem),
    radial-gradient(circle at 50% 18%, #1e2a4a 0%, #0c1228 55%, #071018 100%),
    linear-gradient(180deg, #1a2748 0%, #0a1020 100%);
  box-shadow:
    0 0 0 2px rgba(150, 120, 255, 0.35),
    inset 0 -1.5rem 1.8rem rgba(20, 40, 90, 0.55);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
}

#modal-meditation .breathing-circle::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  height: 38%;
  background:
    linear-gradient(180deg, transparent, rgba(30, 60, 110, 0.5)),
    radial-gradient(ellipse at 50% 100%, #1a3058 0%, transparent 70%);
  border-radius: 50% 50% 40% 40%;
  opacity: 0.9;
}

#modal-meditation .breathing-circle::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  height: 22%;
  background: linear-gradient(180deg, rgba(80, 140, 200, 0.35), rgba(20, 40, 80, 0.5));
  border-radius: 50%;
  filter: blur(1px);
}

#modal-meditation .meditation-timer-block {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 2;
}

#modal-meditation .meditation-timer-block strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

#modal-meditation .meditation-timer-block span {
  font-size: 0.7rem;
  opacity: 0.75;
}

#modal-meditation .meditation-breath-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  opacity: 0.9;
}

#modal-meditation .meditation-track-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

#modal-meditation .meditation-track-row h3 {
  margin: 0;
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 1.05rem;
  color: #fff;
}

#modal-meditation .meditation-collection {
  margin: 0.05rem 0 0;
  font-size: 0.7rem;
  opacity: 0.75;
}

#modal-meditation .meditation-fav {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}

#modal-meditation .meditation-fav .material-symbols-outlined {
  font-variation-settings: "FILL" 0;
  font-size: 1.1rem;
}

#modal-meditation .meditation-phase-text {
  min-height: 0;
  margin: 0;
}

#modal-meditation .meditation-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.4rem 0 0.5rem;
}

#modal-meditation .meditation-skip {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 30, 70, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
}

#modal-meditation .meditation-play-btn {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #e0d4ff, #c9b6ff);
  color: #2a1d4a;
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(201, 182, 255, 0.55);
}

#modal-meditation .meditation-play-btn .material-symbols-outlined {
  font-size: 1.65rem;
}

#modal-meditation .meditation-progress-wrap { margin-top: 0.25rem; }
#modal-meditation .meditation-progress-bar {
  position: relative;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: visible;
}

#modal-meditation .meditation-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #9b6cff, #6ef0f3);
  position: relative;
}

#modal-meditation .meditation-progress-fill::after {
  content: "";
  position: absolute;
  right: -0.35rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

#modal-meditation .meditation-progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.8;
}

#modal-meditation .meditation-footer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 0.65rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.65rem;
  opacity: 0.95;
  text-align: center;
}

#modal-meditation .meditation-footer-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.3rem 0.15rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 600;
}

#modal-meditation .meditation-footer-tab + .meditation-footer-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

#modal-meditation .meditation-footer-tab.is-active {
  color: #fff;
}

#modal-meditation .meditation-footer-tab .material-symbols-outlined {
  font-size: 1.15rem;
}

#modal-meditation .meditation-fav.is-liked {
  background: rgba(255, 107, 129, 0.25);
  border-color: rgba(255, 107, 129, 0.55);
  color: #ff8fa3;
}

#modal-meditation .meditation-progress-bar {
  display: block;
  width: 100%;
  position: relative;
  height: 0.28rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  overflow: visible;
  cursor: pointer;
}

#modal-meditation .meditation-panel {
  margin-top: 0.45rem;
  padding: 0.5rem 0.5rem;
  border-radius: 0.85rem;
  background: rgba(8, 14, 40, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}

#modal-meditation .meditation-panel[hidden] {
  display: none !important;
}

#modal-meditation .meditation-panel-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

#modal-meditation .meditation-dur-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

#modal-meditation .meditation-dur-chip {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

#modal-meditation .meditation-dur-chip.is-active {
  background: rgba(201, 182, 255, 0.35);
  border-color: rgba(201, 182, 255, 0.7);
}

#modal-meditation .meditation-track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 7.5rem;
  overflow: auto;
  display: grid;
  gap: 0.25rem;
}

#modal-meditation .meditation-track-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.35rem 0.45rem;
  text-align: left;
  cursor: pointer;
}

#modal-meditation .meditation-track-item.is-active {
  border-color: rgba(201, 182, 255, 0.65);
  background: rgba(201, 182, 255, 0.18);
}

#modal-meditation .meditation-track-emoji {
  font-size: 1.15rem;
  width: 1.6rem;
  text-align: center;
}

#modal-meditation .meditation-track-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.1rem;
}

#modal-meditation .meditation-track-meta strong {
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#modal-meditation .meditation-track-meta small {
  font-size: 0.68rem;
  opacity: 0.72;
}

#modal-meditation .meditation-track-heart {
  font-size: 1rem;
  color: #ff8fa3;
  font-variation-settings: "FILL" 1;
}

#modal-meditation .meditation-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.45rem 0;
  font-size: 0.82rem;
}

#modal-meditation .meditation-setting-row input[type="range"] {
  flex: 1;
  max-width: 9rem;
}

/* —— Interests —— */
#modal-interests.modal-interests-v2 .interests-modal-box {
  background: #fdf8f5 !important;
  border-radius: 1.35rem !important;
  padding: 1rem 1rem 1.25rem !important;
  max-width: 26rem;
}

#modal-interests .interests-close-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(106, 61, 138, 0.2);
  background: #fff;
  color: #6a3d8a;
  display: grid;
  place-items: center;
}

#modal-interests .interests-hero {
  text-align: center;
  padding-top: 0.35rem;
}

#modal-interests .interests-brand {
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  color: #6a3d8a;
  font-size: 1.15rem;
}

#modal-interests .interests-illus {
  font-size: 2.4rem;
  margin: 0.55rem 0 0.35rem;
}

#modal-interests .interests-hero h2 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 1.7rem;
  color: #6a3d8a;
}

#modal-interests .interests-lead {
  margin: 0 auto 1rem;
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #8b7a9a;
}

#modal-interests .interest-pick-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 0.55rem !important;
}

#modal-interests .interest-pick {
  display: flex !important;
  align-items: center;
  gap: 0.28rem;
  margin: 0 !important;
  padding: 0.55rem 0.45rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(106, 61, 138, 0.14) !important;
  background: #fff !important;
  color: #4a3a58 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  position: relative;
}

#modal-interests .interest-pick input { display: none !important; }

#modal-interests .interest-pick-icon {
  font-size: 1rem !important;
  flex: 0 0 auto;
}

#modal-interests .interest-pick-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#modal-interests .interest-pick-check {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1.5px solid rgba(106, 61, 138, 0.35);
  flex: 0 0 auto;
}

#modal-interests .interest-pick.active {
  background: #6a3d8a !important;
  border-color: #6a3d8a !important;
  color: #fff !important;
}

#modal-interests .interest-pick.active .interest-pick-check {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 2px #6a3d8a;
  position: relative;
}

#modal-interests .interest-pick.active .interest-pick-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  color: #6a3d8a;
  font-weight: 900;
}

#modal-interests .interests-continue-btn {
  margin-top: 1.1rem;
  border-radius: 999px !important;
  background: #6a3d8a !important;
  min-height: 3rem;
  font-weight: 800;
}

#modal-interests .interests-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #8b7a9a;
}

#modal-interests .interests-privacy .material-symbols-outlined {
  font-size: 0.95rem;
}

/* —— Fal mystic —— */
#modal-daily-fal.modal-fal-v2 .fal-mystic-shell {
  background: #fdf8f5 !important;
  border-radius: 1.25rem !important;
  padding: 0.75rem 0.85rem 0.85rem !important;
  position: relative;
  max-width: 22rem;
  box-shadow: 0 18px 48px rgba(40, 20, 60, 0.32);
}

#modal-daily-fal.modal-fal-v2 {
  background: radial-gradient(circle at 50% 20%, #3a1f5c 0%, #1a0f2e 70%);
}

#modal-daily-fal .fal-close-x {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(106, 61, 138, 0.2);
  background: #fff;
  color: #c44d6a;
  display: grid;
  place-items: center;
  z-index: 20;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

#modal-daily-fal .fal-mystic-badge {
  display: none !important;
}

#modal-daily-fal .fal-mystic-head {
  justify-content: center;
  border: 0;
  margin: 0.15rem 0.15rem 0.35rem;
  padding: 0.55rem 2.6rem;
  border-radius: 0.85rem;
  background: linear-gradient(90deg, #e85a7a 0%, #f08a6a 48%, #f0b45a 100%);
  box-shadow: 0 6px 16px rgba(180, 70, 90, 0.22);
}

#modal-daily-fal .fal-title-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#modal-daily-fal .fal-title-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a3480, #2a1548 70%);
  box-shadow: 0 2px 8px rgba(42, 21, 72, 0.35);
  flex-shrink: 0;
}

#modal-daily-fal .fal-title-mark svg {
  display: block;
}

#modal-daily-fal .fal-mystic-head #fal-app-title {
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 1.35rem;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(80, 20, 40, 0.25);
}

#modal-daily-fal .fal-mystic-head .fal-app-bar-btn,
#modal-daily-fal .fal-mystic-head .fal-app-bar-spacer {
  display: none;
}

#modal-daily-fal .fal-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #6a3d8a;
  margin: 0.25rem 0 0.35rem;
  opacity: 0.8;
  font-size: 0.78rem;
}

#modal-daily-fal .fal-mystic-lead {
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6b5a7a;
  margin: 0 0 0.55rem;
}

#modal-daily-fal .fal-section-label {
  text-align: center;
  color: #6a3d8a;
  font-weight: 700;
  font-size: 0.78rem;
  margin: 0.4rem 0 0.28rem;
}

#modal-daily-fal .fal-question-wrap {
  display: block;
  position: relative;
}

#modal-daily-fal .fal-question-wrap textarea {
  width: 100%;
  min-height: 3.5rem;
  border-radius: 0.85rem;
  border: 1.5px solid rgba(106, 61, 138, 0.22);
  background: #fff;
  padding: 0.55rem 0.75rem 1.2rem;
  font: inherit;
  font-size: 0.86rem;
  color: #3d2a4f;
  resize: vertical;
}

#modal-daily-fal .fal-feather {
  position: absolute;
  right: 0.75rem;
  bottom: 0.55rem;
  opacity: 0.35;
  font-size: 1.1rem;
}

#modal-daily-fal .fal-cat-pills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

#modal-daily-fal .fal-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem 0.35rem;
  border-radius: 999px;
  border: 1.5px solid rgba(106, 61, 138, 0.28);
  background: #fdf8f5;
  color: #6a3d8a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

#modal-daily-fal .fal-cat-pill.is-active {
  background: #6a3d8a;
  border-color: #6a3d8a;
  color: #fff;
}

#modal-daily-fal .fal-cat-pill .material-symbols-outlined {
  font-size: 1.05rem;
}

#modal-daily-fal .fal-fields-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#modal-daily-fal .fal-photo-row-mystic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.05rem auto 0.45rem;
  max-width: 13.5rem;
}

#modal-daily-fal .fal-photo-row-mystic .fal-photo-slot {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  border: 1.5px dashed rgba(106, 61, 138, 0.35);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(106, 61, 138, 0.04);
}

#modal-daily-fal .fal-photo-row-mystic .fal-photo-slot:hover {
  border-color: rgba(106, 61, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(106, 61, 138, 0.08);
}

#modal-daily-fal .fal-photo-row-mystic .fal-photo-slot.has-photo {
  border-style: solid;
  border-color: #6a3d8a;
}

#modal-daily-fal .fal-photo-row-mystic .fal-photo-placeholder {
  color: #6a3d8a;
}

#modal-daily-fal .fal-photo-row-mystic .fal-photo-placeholder em {
  color: #8b7a9a;
}

#modal-daily-fal .fal-cta-mystic {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1rem;
  background: linear-gradient(90deg, #5a2f7a, #8b5a9e 45%, #5a2f7a);
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(200, 160, 80, 0.35);
  cursor: pointer;
}

#modal-daily-fal .fal-foot-guide {
  text-align: center;
  margin: 0.75rem 0 0;
  color: #6a3d8a;
  font-size: 0.85rem;
}

#modal-daily-fal .fal-foot-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  color: #6a3d8a;
  opacity: 0.7;
  font-size: 0.75rem;
}

#modal-daily-fal .fal-foot-ornament .fal-jewel {
  color: #752FEE;
  font-size: 0.7rem;
}

#modal-daily-fal .fal-mystic-shell::before,
#modal-daily-fal .fal-mystic-shell::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 150, 220, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#modal-daily-fal .fal-mystic-shell::before {
  top: 4.5rem;
  left: -1.5rem;
}

#modal-daily-fal .fal-mystic-shell::after {
  top: 5.5rem;
  right: -1.5rem;
}

#modal-daily-fal .fal-mystic-shell > * {
  position: relative;
  z-index: 1;
}

#modal-daily-fal .fal-mystic-shell > .fal-close-x {
  z-index: 20;
}

/* —— Pact —— */
#modal-pact .pact-modal-v2 {
  background: #fdf8f5 !important;
  border-radius: 1.5rem !important;
  padding: 1.2rem 1.15rem 1.35rem !important;
  max-width: 26rem;
  position: relative;
}

#modal-pact .pact-close-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(106, 61, 138, 0.18);
  background: #fff;
  color: #6a3d8a;
  display: grid;
  place-items: center;
}

#modal-pact .pact-brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0.2rem auto 0.35rem;
  border-radius: 50%;
  background: #efe6f5;
  color: #6a3d8a;
  display: grid;
  place-items: center;
}

#modal-pact .pact-brand-name {
  text-align: center;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6a3d8a;
  margin: 0;
}

#modal-pact #pact-modal-title {
  text-align: center;
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 1.7rem;
  color: #6a3d8a;
  margin: 0.55rem 0 0.35rem;
}

#modal-pact .pact-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #6a3d8a;
  margin-bottom: 0.65rem;
}

#modal-pact .pact-ornament .material-symbols-outlined {
  font-size: 1rem;
  font-variation-settings: "FILL" 1;
}

#modal-pact .pact-lead {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5a4a68;
  margin: 0 0 1rem;
}

#modal-pact .pact-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#modal-pact .pact-principle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid #f0e5de;
  border-radius: 1rem;
}

#modal-pact .pact-principle-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #efe6f5;
  color: #6a3d8a;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

#modal-pact .pact-principle strong {
  font-size: 0.95rem;
  color: #2d1b3d;
}

#modal-pact .pact-principle-check {
  margin-left: auto;
  color: #6a3d8a;
}

#modal-pact .pact-principle-check .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
}

#modal-pact .pact-policy-box {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.9rem 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  background: #efe8f0;
  color: #5a4a68;
  font-size: 0.82rem;
  line-height: 1.4;
}

#modal-pact .pact-policy-box .material-symbols-outlined {
  font-size: 1.05rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

#modal-pact .pact-accept-btn {
  border-radius: 999px !important;
  background: #6a3d8a !important;
  min-height: 3rem;
  font-weight: 800;
}

#modal-pact .pact-foot-note {
  text-align: center;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.8rem;
  color: #6b5a7a;
}

#modal-pact .pact-foot-heart {
  display: block;
  text-align: center;
  font-size: 1rem;
}

/* —— Compact Fal + Meditation (app / narrow screens) —— */
@media (max-width: 900px) {
  #modal-daily-fal.modal-fal-v2 .fal-mystic-shell,
  #modal-meditation.modal-meditation-v2 .meditation-player-shell {
    max-width: min(22rem, 92vw) !important;
    max-height: min(88dvh, 40rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #modal-daily-fal.modal-fal-v2 .fal-mystic-shell {
    padding: 0.55rem 0.65rem 0.65rem !important;
    border-radius: 1.05rem !important;
  }

  #modal-daily-fal .fal-mystic-badge {
    display: none !important;
  }

  #modal-daily-fal .fal-close-x {
    top: 0.4rem;
    left: 0.4rem;
    right: auto;
    width: 1.7rem;
    height: 1.7rem;
  }

  #modal-daily-fal .fal-close-x .material-symbols-outlined {
    font-size: 1rem;
  }

  #modal-daily-fal .fal-mystic-head {
    margin: 0.1rem 0.1rem 0.3rem;
    padding: 0.45rem 2.2rem;
    border-radius: 0.75rem;
  }

  #modal-daily-fal .fal-title-chip {
    gap: 0.35rem;
    padding: 0;
  }

  #modal-daily-fal .fal-title-mark {
    width: 1.7rem;
    height: 1.7rem;
  }

  #modal-daily-fal .fal-title-mark svg {
    width: 22px;
    height: 22px;
  }

  #modal-daily-fal .fal-mystic-head #fal-app-title {
    font-size: 1.15rem;
  }

  #modal-daily-fal .fal-ornament {
    margin: 0.1rem 0 0.25rem;
    gap: 0.25rem;
    font-size: 0.68rem;
  }

  #modal-daily-fal .fal-mystic-lead {
    font-size: 0.68rem;
    line-height: 1.3;
    margin: 0 0 0.4rem;
  }

  #modal-daily-fal .fal-section-label {
    font-size: 0.7rem;
    margin: 0.3rem 0 0.2rem;
  }

  #modal-daily-fal .fal-question-wrap textarea {
    min-height: 2.85rem;
    border-radius: 0.7rem;
    padding: 0.45rem 0.6rem 1rem;
    font-size: 0.8rem;
  }

  #modal-daily-fal .fal-feather {
    font-size: 0.8rem;
    bottom: 0.3rem;
    right: 0.45rem;
  }

  #modal-daily-fal .fal-cat-pills {
    gap: 0.3rem;
    margin-bottom: 0.35rem;
  }

  #modal-daily-fal .fal-cat-pill {
    padding: 0.4rem 0.2rem;
    font-size: 0.68rem;
    gap: 0.15rem;
  }

  #modal-daily-fal .fal-cat-pill .material-symbols-outlined {
    font-size: 0.85rem;
  }

  #modal-daily-fal .fal-photo-row-mystic {
    gap: 0.35rem;
    margin: 0.05rem 0 0.5rem;
    max-width: 14.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  #modal-daily-fal .fal-photo-row-mystic .fal-photo-slot {
    border-radius: 0.7rem;
  }

  #modal-daily-fal .fal-photo-row-mystic .fal-photo-placeholder .material-symbols-outlined {
    font-size: 1.1rem;
  }

  #modal-daily-fal .fal-photo-row-mystic .fal-photo-placeholder em {
    font-size: 0.62rem;
  }

  #modal-daily-fal .fal-cta-mystic {
    margin-top: 0.15rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    box-shadow: 0 0 14px rgba(200, 160, 80, 0.28);
  }

  #modal-daily-fal .fal-foot-guide {
    margin: 0.4rem 0 0;
    font-size: 0.72rem;
  }

  #modal-daily-fal .fal-foot-ornament {
    margin-top: 0.3rem;
    font-size: 0.62rem;
  }

  #modal-meditation.modal-meditation-v2 .meditation-player-shell {
    padding: 0.65rem 0.75rem 0.7rem !important;
    border-radius: 1.25rem !important;
  }

  #modal-meditation .meditation-close-x {
    top: 0.45rem;
    right: 0.45rem;
    width: 1.75rem;
    height: 1.75rem;
  }

  #modal-meditation .meditation-brand {
    margin-top: 0.1rem;
  }

  #modal-meditation .meditation-lotus {
    width: 28px;
    height: 24px;
  }

  #modal-meditation .meditation-brand-name {
    font-size: 0.58rem;
    letter-spacing: 0.26em;
    margin-top: 0.1rem;
  }

  #modal-meditation .meditation-hero-title {
    margin: 0.35rem 0 0.1rem;
    font-size: 1.3rem;
  }

  #modal-meditation .meditation-hero-sub {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
  }

  #modal-meditation .meditation-ring-wrap {
    width: 9.5rem;
    height: 9.5rem;
    margin: 0 auto 0.4rem;
  }

  #modal-meditation .breathing-circle {
    inset: 0.85rem;
  }

  #modal-meditation .meditation-timer-block strong {
    font-size: 1.45rem;
  }

  #modal-meditation .meditation-timer-block span {
    font-size: 0.7rem;
  }

  #modal-meditation .meditation-breath-hint {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    gap: 0.2rem;
  }

  #modal-meditation .meditation-breath-hint .material-symbols-outlined {
    font-size: 0.95rem;
  }

  #modal-meditation .meditation-track-row {
    margin-bottom: 0.15rem;
    gap: 0.45rem;
  }

  #modal-meditation .meditation-track-row h3 {
    font-size: 1.05rem;
  }

  #modal-meditation .meditation-collection {
    font-size: 0.68rem;
  }

  #modal-meditation .meditation-fav {
    width: 2rem;
    height: 2rem;
  }

  #modal-meditation .meditation-fav .material-symbols-outlined {
    font-size: 1.05rem;
  }

  #modal-meditation .meditation-controls {
    gap: 0.7rem;
    margin: 0.4rem 0 0.5rem;
  }

  #modal-meditation .meditation-skip {
    width: 2.1rem;
    height: 2.1rem;
  }

  #modal-meditation .meditation-play-btn {
    width: 3.15rem;
    height: 3.15rem;
    box-shadow: 0 0 16px rgba(201, 182, 255, 0.5);
  }

  #modal-meditation .meditation-play-btn .material-symbols-outlined {
    font-size: 1.45rem;
  }

  #modal-meditation .meditation-progress-times {
    font-size: 0.62rem;
    margin-top: 0.25rem;
  }

  #modal-meditation .meditation-footer-tabs {
    margin-top: 0.55rem;
    padding: 0.45rem 0.2rem;
    font-size: 0.58rem;
  }

  #modal-meditation .meditation-footer-tabs .material-symbols-outlined {
    font-size: 0.95rem;
  }
}

html.is-mobile-app #modal-daily-fal.modal-fal-v2 .fal-mystic-shell,
html.kozamia-app-shell #modal-daily-fal.modal-fal-v2 .fal-mystic-shell,
html.is-mobile-app #modal-meditation.modal-meditation-v2 .meditation-player-shell,
html.kozamia-app-shell #modal-meditation.modal-meditation-v2 .meditation-player-shell {
  max-width: min(20.5rem, 90vw) !important;
  width: min(20.5rem, 90vw) !important;
  margin-left: auto;
  margin-right: auto;
}
