/* Positive Energy Loop — sleep-friendly, soft palette */
:root {
  --pel-bg: #fafaf7;
  --pel-sage: #8baf9a;
  --pel-teal: #2d6a5a;
  --pel-blush: #f0ebe3;
  --pel-lavender: #c8c0d8;
  --pel-red: #c0392b;
  --pel-muted: #7a8a82;
  --pel-text: #3d4a44;
  --pel-white: #fff;
  --pel-font-body: "Nunito", system-ui, sans-serif;
  --pel-font-head: "Playfair Display", Georgia, serif;
  --pel-radius: clamp(8px, 2vw, 14px);
  --pel-space: clamp(0.75rem, 2vw, 1.5rem);
  --pel-max: 90rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--pel-font-body);
  font-size: clamp(0.9375rem, 0.35vw + 0.85rem, 1.0625rem);
  line-height: 1.55;
  color: var(--pel-text);
  background: var(--pel-bg);
  overflow-x: hidden;
}

.pel-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pel-skip {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--pel-teal);
  color: var(--pel-white);
}

.pel-skip:focus {
  left: clamp(0.5rem, 2vw, 1rem);
  top: clamp(0.5rem, 2vw, 1rem);
}

/* Floating background */
.pel-float-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pel-float {
  position: absolute;
  opacity: 0.05;
  font-size: clamp(0.75rem, 2vw, 1.25rem);
  color: var(--pel-sage);
  animation: pel-drift linear infinite;
  will-change: transform;
}

.pel-float:nth-child(3n) {
  color: var(--pel-teal);
}

.pel-float:nth-child(3n + 1) {
  color: var(--pel-lavender);
}

.pel-float--sparkle::before {
  content: "✦";
}

.pel-float--heart::before {
  content: "♥";
}

@keyframes pel-drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(360deg);
  }
}

.pel-app {
  position: relative;
  z-index: 1;
  max-width: var(--pel-max);
  margin: 0 auto;
  padding: clamp(0.75rem, 3vw, 2rem) clamp(0.75rem, 4vw, 2.5rem) clamp(2rem, 6vw, 4rem);
}

/* Header heart */
.pel-header {
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.pel-header-heart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.5rem, 12vw, 5rem);
  height: clamp(3.5rem, 12vw, 5rem);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.pel-heart-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pel-heart-ring {
  position: absolute;
  border: 1px solid var(--pel-sage);
  border-radius: 50%;
  opacity: 0.35;
  animation: pel-ring-pulse 4s ease-out infinite;
}

.pel-heart-ring:nth-child(1) {
  width: 140%;
  height: 140%;
  animation-delay: 0s;
}

.pel-heart-ring:nth-child(2) {
  width: 180%;
  height: 180%;
  animation-delay: 1.1s;
}

.pel-heart-ring:nth-child(3) {
  width: 220%;
  height: 220%;
  animation-delay: 2.2s;
}

@keyframes pel-ring-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.4;
  }
  70% {
    opacity: 0.08;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.pel-header-heart-icon {
  position: relative;
  z-index: 2;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1;
  color: var(--pel-red);
  animation: pel-heart-soft 3.5s ease-in-out infinite;
}

@keyframes pel-heart-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.pel-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

[dir="rtl"] .pel-header-bar {
  flex-direction: row-reverse;
}

.pel-brand {
  flex: 1 1 12rem;
  min-width: min(100%, 14rem);
}

.pel-site-name {
  font-family: var(--pel-font-head);
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.75rem);
  font-weight: 600;
  color: var(--pel-teal);
  margin: 0 0 clamp(0.25rem, 1vw, 0.5rem);
  letter-spacing: 0.02em;
}

.pel-tagline {
  margin: 0;
  font-size: clamp(0.8125rem, 0.4vw + 0.75rem, 0.9375rem);
  color: var(--pel-muted);
  max-width: 36ch;
  margin-inline: auto;
}

.pel-lang-label {
  flex: 0 0 auto;
}

.pel-lang-select {
  font-family: var(--pel-font-body);
  font-size: clamp(0.75rem, 0.3vw + 0.7rem, 0.875rem);
  padding: clamp(0.35rem, 1vw, 0.5rem) clamp(0.5rem, 1.5vw, 0.75rem);
  border: 1px solid var(--pel-sage);
  border-radius: var(--pel-radius);
  background: var(--pel-blush);
  color: var(--pel-teal);
  cursor: pointer;
}

/* Tabs */
.pel-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.25rem, 1.5vw, 0.75rem);
  border-bottom: 1px solid rgba(139, 175, 154, 0.35);
  padding-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

.pel-tab {
  font-family: var(--pel-font-body);
  font-size: clamp(0.8125rem, 0.35vw + 0.75rem, 0.9375rem);
  font-weight: 600;
  padding: clamp(0.4rem, 1.2vw, 0.65rem) clamp(0.5rem, 2vw, 1rem);
  border: none;
  background: transparent;
  color: var(--pel-sage);
  cursor: pointer;
  border-radius: var(--pel-radius) var(--pel-radius) 0 0;
  transition: color 0.2s, box-shadow 0.2s;
}

.pel-tab:hover {
  color: var(--pel-teal);
}

.pel-tab--active {
  color: var(--pel-teal);
  box-shadow: 0 2px 0 0 var(--pel-teal);
}

.pel-tab:focus-visible {
  outline: 2px solid var(--pel-teal);
  outline-offset: 2px;
}

/* Panels */
.pel-main {
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

.pel-panel {
  display: none;
  animation: pel-fade 0.35s ease;
}

.pel-panel--active {
  display: block;
}

@keyframes pel-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Filters */
.pel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 1.5vw, 0.5rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  justify-content: center;
}

.pel-pill {
  font-family: var(--pel-font-body);
  font-size: clamp(0.75rem, 0.3vw + 0.7rem, 0.8125rem);
  padding: clamp(0.35rem, 1vw, 0.5rem) clamp(0.6rem, 2vw, 1rem);
  border-radius: 999px;
  border: 1px solid var(--pel-sage);
  background: var(--pel-blush);
  color: var(--pel-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pel-pill--active {
  background: rgba(45, 106, 90, 0.12);
  color: var(--pel-teal);
  border-color: var(--pel-teal);
}

.pel-filter-extra {
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  max-width: min(100%, 28rem);
  margin-inline: auto;
}

.pel-hidden {
  display: none !important;
}

.pel-field-label {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 1vw, 0.35rem);
  font-size: clamp(0.8125rem, 0.3vw + 0.75rem, 0.875rem);
  color: var(--pel-muted);
}

.pel-input,
.pel-textarea {
  font-family: var(--pel-font-body);
  font-size: clamp(0.875rem, 0.25vw + 0.8rem, 1rem);
  padding: clamp(0.45rem, 1.2vw, 0.65rem) clamp(0.55rem, 1.5vw, 0.85rem);
  border: 1px solid var(--pel-sage);
  border-radius: var(--pel-radius);
  background: var(--pel-white);
  color: var(--pel-text);
  width: 100%;
}

.pel-textarea {
  resize: vertical;
  min-height: clamp(5rem, 20vw, 8rem);
}

/* Map */
.pel-map {
  width: 100%;
  height: 52vw;
  max-height: 70vh;
  min-height: clamp(200px, 52vw, 320px);
  border-radius: var(--pel-radius);
  overflow: hidden;
  border: 1px solid rgba(139, 175, 154, 0.4);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 1;
}

@media (min-width: 769px) {
  .pel-map {
    height: 420px;
    min-height: 420px;
  }
}

.pel-leaflet-marker {
  background: transparent;
  border: none;
}

.pel-marker-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 8vw, 36px);
  height: clamp(28px, 8vw, 36px);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin: -18px 0 0 -18px;
  box-shadow: 0 2px 8px rgba(45, 106, 90, 0.2);
}

.pel-marker-pin .pel-heart {
  transform: rotate(45deg);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1;
}

.pel-marker--sage .pel-marker-pin {
  background: var(--pel-sage);
  color: var(--pel-white);
}

.pel-marker--active .pel-marker-pin {
  background: var(--pel-red);
  color: var(--pel-white);
  animation: pel-marker-glow 2s ease infinite;
}

.pel-marker--sent .pel-marker-pin {
  animation: pel-marker-send 1.2s ease forwards;
}

@keyframes pel-marker-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(192, 57, 43, 0);
  }
}

@keyframes pel-marker-send {
  0% {
    transform: rotate(-45deg) scale(1);
  }
  40% {
    transform: rotate(-45deg) scale(1.35);
    filter: brightness(1.15);
  }
  100% {
    transform: rotate(-45deg) scale(1);
  }
}

.pel-map-popup .pel-popup-btn {
  margin-top: 0.5rem;
  font-family: var(--pel-font-body);
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--pel-radius);
  border: 1px solid var(--pel-teal);
  background: var(--pel-blush);
  color: var(--pel-teal);
  cursor: pointer;
  width: 100%;
}

/* Focus card */
.pel-focus-card {
  background: var(--pel-white);
  border: 1px solid rgba(139, 175, 154, 0.35);
  border-radius: var(--pel-radius);
  padding: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 4px 24px rgba(45, 106, 90, 0.06);
}

.pel-focus-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.5vw, 0.5rem);
  flex-wrap: wrap;
}

.pel-focus-title {
  font-family: var(--pel-font-head);
  font-size: clamp(1.25rem, 1.5vw + 0.9rem, 1.75rem);
  color: var(--pel-teal);
  margin: 0;
}

.pel-focus-dot {
  width: clamp(0.5rem, 1.5vw, 0.65rem);
  height: clamp(0.5rem, 1.5vw, 0.65rem);
  border-radius: 50%;
  background: var(--pel-red);
  animation: pel-dot-pulse 2s ease infinite;
}

@keyframes pel-dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.15);
  }
}

.pel-type-pill {
  display: inline-block;
  margin: clamp(0.5rem, 2vw, 0.75rem) auto;
  padding: clamp(0.25rem, 1vw, 0.4rem) clamp(0.6rem, 2vw, 1rem);
  font-size: clamp(0.65rem, 0.25vw + 0.6rem, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pel-teal);
  background: var(--pel-blush);
  border-radius: 999px;
  border: 1px solid rgba(139, 175, 154, 0.45);
  text-align: center;
}

.pel-focus-prayer {
  font-family: var(--pel-font-head);
  font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.35rem);
  line-height: 1.5;
  color: var(--pel-text);
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
}

.pel-focus-sub {
  font-size: clamp(0.75rem, 0.3vw + 0.7rem, 0.8125rem);
  font-weight: 700;
  color: var(--pel-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}

.pel-focus-guide {
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
  color: var(--pel-text);
}

.pel-forall {
  margin: 0 0 clamp(1rem, 2vw, 1.25rem);
  padding: clamp(0.75rem, 2vw, 1.1rem);
  font-style: italic;
  font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.05rem);
  background: var(--pel-blush);
  border-radius: var(--pel-radius);
  border-left: 3px solid var(--pel-lavender);
  color: var(--pel-teal);
}

[dir="rtl"] .pel-forall {
  border-left: none;
  border-right: 3px solid var(--pel-lavender);
}

.pel-meditations-wrap {
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(139, 175, 154, 0.35);
  border-radius: var(--pel-radius);
  padding: clamp(0.5rem, 1.5vw, 0.75rem);
  background: rgba(240, 235, 227, 0.5);
}

.pel-meditations-summary {
  font-family: var(--pel-font-body);
  font-size: clamp(0.9rem, 0.3vw + 0.82rem, 1rem);
  cursor: pointer;
  color: var(--pel-teal);
  font-weight: 600;
}

.pel-meditation-item {
  margin-top: clamp(0.65rem, 2vw, 0.85rem);
  padding-top: clamp(0.65rem, 2vw, 0.85rem);
  border-top: 1px solid rgba(139, 175, 154, 0.25);
}

.pel-meditation-item h4 {
  font-family: var(--pel-font-head);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  margin: 0 0 0.25rem;
  color: var(--pel-teal);
}

.pel-meditation-meta {
  font-size: clamp(0.75rem, 0.25vw + 0.7rem, 0.8125rem);
  color: var(--pel-muted);
  margin-bottom: 0.5rem;
}

.pel-meditation-text {
  font-size: clamp(0.875rem, 0.25vw + 0.8rem, 0.95rem);
  margin: 0;
}

.pel-meditation-nested {
  margin-top: clamp(0.45rem, 1.5vw, 0.65rem);
  padding: clamp(0.45rem, 1.5vw, 0.65rem);
  border: 1px solid rgba(139, 175, 154, 0.3);
  border-radius: var(--pel-radius);
  background: rgba(255, 255, 255, 0.5);
}

.pel-meditation-nested summary {
  cursor: pointer;
  font-family: var(--pel-font-head);
  font-size: clamp(0.95rem, 0.3vw + 0.85rem, 1.05rem);
  color: var(--pel-teal);
  list-style: none;
}

.pel-meditation-nested summary::-webkit-details-marker {
  display: none;
}

.pel-meditation-nested[open] summary {
  margin-bottom: 0.35rem;
}

.pel-before-send {
  white-space: pre-line;
  font-size: clamp(0.9rem, 0.3vw + 0.82rem, 1rem);
  color: var(--pel-text);
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
  line-height: 1.6;
}

.pel-btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.5vw, 0.5rem);
  font-family: var(--pel-font-body);
  font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.05rem);
  font-weight: 700;
  padding: clamp(0.55rem, 1.5vw, 0.85rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--pel-radius);
  border: 2px solid var(--pel-sage);
  background: var(--pel-blush);
  color: var(--pel-teal);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.pel-btn-send::before {
  content: "♥";
  color: var(--pel-red);
  font-size: 1.15em;
}

.pel-btn-send:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  border-color: rgba(192, 57, 43, 0.35);
  color: var(--pel-red);
}

.pel-btn-send:disabled::before {
  content: "";
}

.pel-btn-send:not(:disabled):hover {
  transform: translateY(-1px);
}

/* Feed */
.pel-section-title {
  font-family: var(--pel-font-head);
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.45rem);
  color: var(--pel-teal);
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
}

.pel-feed-list {
  list-style: none;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 2vw, 1rem);
}

.pel-feed-list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pel-feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(0.5rem, 2vw, 0.75rem);
  padding: clamp(0.65rem, 2vw, 1rem);
  background: var(--pel-white);
  border: 1px solid rgba(139, 175, 154, 0.3);
  border-radius: var(--pel-radius);
  cursor: pointer;
  text-align: start;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pel-feed-item:hover,
.pel-feed-item:focus-visible {
  border-color: var(--pel-sage);
  box-shadow: 0 4px 16px rgba(45, 106, 90, 0.08);
  outline: none;
}

.pel-feed-item--active {
  border-color: rgba(192, 57, 43, 0.45);
}

.pel-feed-dot {
  width: clamp(0.45rem, 1.2vw, 0.55rem);
  height: clamp(0.45rem, 1.2vw, 0.55rem);
  border-radius: 50%;
  background: var(--pel-sage);
  margin-top: 0.45em;
  flex-shrink: 0;
  animation: pel-dot-pulse 2.5s ease infinite;
}

.pel-feed-item--active .pel-feed-dot {
  background: var(--pel-red);
}

.pel-feed-body strong {
  display: block;
  font-family: var(--pel-font-head);
  color: var(--pel-teal);
  margin-bottom: 0.35rem;
  font-size: clamp(1rem, 0.35vw + 0.9rem, 1.1rem);
}

.pel-feed-body p {
  margin: 0 0 0.35rem;
  font-size: clamp(0.8125rem, 0.25vw + 0.75rem, 0.9rem);
  color: var(--pel-text);
}

.pel-btn-secondary,
.pel-btn-primary {
  font-family: var(--pel-font-body);
  font-size: clamp(0.875rem, 0.3vw + 0.8rem, 0.95rem);
  font-weight: 600;
  padding: clamp(0.5rem, 1.5vw, 0.65rem) clamp(0.85rem, 2.5vw, 1.25rem);
  border-radius: var(--pel-radius);
  cursor: pointer;
  border: 1px solid var(--pel-teal);
  background: var(--pel-teal);
  color: var(--pel-white);
  transition: opacity 0.2s, transform 0.2s;
}

.pel-btn-secondary {
  background: var(--pel-blush);
  color: var(--pel-teal);
}

.pel-btn-primary:hover,
.pel-btn-secondary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pel-btn-open-heart {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* Donation */
.pel-donation-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.pel-donate-card {
  background: var(--pel-blush);
  border: 1px solid rgba(139, 175, 154, 0.4);
  border-radius: var(--pel-radius);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.pel-donate-title {
  font-family: var(--pel-font-head);
  font-size: clamp(1.1rem, 0.8vw + 0.95rem, 1.35rem);
  color: var(--pel-teal);
  margin: 0 0 clamp(0.5rem, 1.5vw, 0.75rem);
}

.pel-donate-title .pel-heart-inline {
  color: var(--pel-red);
}

.pel-donate-body {
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(0.875rem, 0.25vw + 0.8rem, 0.95rem);
  color: var(--pel-text);
}

.pel-goal-line {
  font-size: clamp(0.8125rem, 0.25vw + 0.75rem, 0.875rem);
  color: var(--pel-muted);
  margin: 0 0 0.5rem;
}

.pel-progress {
  height: clamp(0.45rem, 1.2vw, 0.55rem);
  background: rgba(139, 175, 154, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.pel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pel-sage), var(--pel-teal));
  border-radius: 999px;
  transition: width 1.2s ease;
}

.pel-donate-btns {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 0.75rem);
}

.pel-btn-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.45rem, 1.5vw, 0.6rem) clamp(0.85rem, 2vw, 1.1rem);
  font-family: var(--pel-font-body);
  font-size: clamp(0.8125rem, 0.25vw + 0.75rem, 0.875rem);
  font-weight: 600;
  border-radius: var(--pel-radius);
  background: var(--pel-teal);
  color: var(--pel-white);
  text-decoration: none;
  border: 1px solid var(--pel-teal);
}

.pel-btn-donate--outline {
  background: var(--pel-white);
  color: var(--pel-teal);
}

/* Social */
.pel-social {
  margin-top: clamp(0.5rem, 2vw, 1rem);
  padding-top: clamp(0.75rem, 2vw, 1rem);
  border-top: 1px solid rgba(139, 175, 154, 0.25);
}

.pel-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.4rem, 1.5vw, 0.65rem);
}

.pel-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.25rem, 6vw, 2.75rem);
  height: clamp(2.25rem, 6vw, 2.75rem);
  border-radius: 50%;
  background: var(--pel-teal);
  color: var(--pel-white);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0;
}

.pel-social-btn:hover:not(.pel-social-btn--disabled) {
  opacity: 0.88;
  transform: scale(1.05);
}

.pel-social-btn--disabled {
  background: #a8b5ae;
  cursor: default;
  opacity: 0.65;
}

.pel-social-btn svg {
  width: 55%;
  height: 55%;
  fill: currentColor;
}

/* Self love */
.pel-self-wrap {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}

.pel-affirmation {
  min-height: clamp(4rem, 15vw, 6rem);
  font-family: var(--pel-font-head);
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.35rem);
  color: var(--pel-teal);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  transition: opacity 0.6s ease;
}

.pel-affirmation.pel-fade-out {
  opacity: 0;
}

.pel-mirror-wrap {
  position: relative;
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}

.pel-mirror-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: clamp(4px, 1.2vw, 6px) solid var(--pel-sage);
  box-shadow: 0 0 0 clamp(3px, 1vw, 5px) var(--pel-blush), 0 8px 32px rgba(45, 106, 90, 0.12);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.65), var(--pel-blush));
}

.pel-mirror-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scaleX(-1);
  border: clamp(4px, 1.2vw, 6px) solid var(--pel-sage);
}

.pel-mirror-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  overflow: visible;
}

.pel-float-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--pel-red);
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  opacity: 0.85;
  animation: pel-float-up 2s ease-out forwards;
}

@keyframes pel-float-up {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -220%) scale(1.1);
    opacity: 0;
  }
}

.pel-self-actions {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 2vw, 0.65rem);
  align-items: stretch;
}

@media (min-width: 480px) {
  .pel-self-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Community */
.pel-community-form {
  max-width: 36rem;
  margin: 0 auto clamp(1.5rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.pel-community-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.pel-intent-card {
  background: var(--pel-white);
  border: 1px solid rgba(139, 175, 154, 0.35);
  border-radius: var(--pel-radius);
  padding: clamp(0.85rem, 2.5vw, 1.15rem);
}

.pel-intent-card p {
  margin: 0 0 0.65rem;
  font-size: clamp(0.9rem, 0.25vw + 0.82rem, 0.98rem);
}

.pel-intent-meta {
  font-size: clamp(0.75rem, 0.25vw + 0.7rem, 0.8125rem);
  color: var(--pel-muted);
  margin-bottom: 0.65rem !important;
}

.pel-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(61, 74, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.pel-modal.pel-hidden {
  display: none !important;
}

.pel-modal-card {
  background: var(--pel-bg);
  border-radius: var(--pel-radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  max-width: min(100%, 26rem);
  border: 1px solid var(--pel-sage);
  box-shadow: 0 12px 48px rgba(45, 106, 90, 0.15);
}

.pel-modal-text {
  margin: 0 0 0.75rem;
  font-size: clamp(0.9rem, 0.3vw + 0.82rem, 1rem);
}

.pel-reframe-box {
  margin: 0 0 1rem;
  padding: clamp(0.65rem, 2vw, 0.85rem);
  background: var(--pel-blush);
  border-radius: var(--pel-radius);
  font-style: italic;
  font-size: clamp(0.875rem, 0.25vw + 0.8rem, 0.95rem);
}

.pel-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Impact */
.pel-impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.pel-stat {
  background: var(--pel-white);
  border: 1px solid rgba(139, 175, 154, 0.35);
  border-radius: var(--pel-radius);
  padding: clamp(0.85rem, 2vw, 1.1rem);
  text-align: center;
}

.pel-stat-label {
  display: block;
  font-size: clamp(0.7rem, 0.25vw + 0.65rem, 0.78rem);
  color: var(--pel-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.pel-stat-value {
  font-family: var(--pel-font-head);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  color: var(--pel-teal);
}

.pel-bars {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.pel-bar-row {
  display: grid;
  grid-template-columns: clamp(4.5rem, 18vw, 6rem) 1fr auto;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 0.65rem);
  margin-bottom: clamp(0.5rem, 1.5vw, 0.65rem);
  font-size: clamp(0.75rem, 0.25vw + 0.7rem, 0.8125rem);
  color: var(--pel-muted);
}

.pel-bar {
  height: clamp(0.5rem, 1.5vw, 0.65rem);
  background: rgba(139, 175, 154, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.pel-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 1.8s ease;
}

.pel-bar-fill--love {
  background: linear-gradient(90deg, #9bc4a8, var(--pel-teal));
}

.pel-bar-fill--peace {
  background: linear-gradient(90deg, var(--pel-sage), #5a8f7e);
}

.pel-bar-fill--heal {
  background: linear-gradient(90deg, #7aab9a, var(--pel-teal));
}

.pel-bar-fill--joy {
  background: linear-gradient(90deg, var(--pel-lavender), #9a8fb5);
}

.pel-bar-pct {
  font-variant-numeric: tabular-nums;
  color: var(--pel-teal);
  font-weight: 600;
  min-width: 2.5rem;
  text-align: end;
}

.pel-waves {
  width: 100%;
  max-width: 100%;
  height: clamp(100px, 18vw, 160px);
  display: block;
  margin: 0 auto clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--pel-radius);
  background: rgba(240, 235, 227, 0.6);
}

.pel-pulse-log-inner {
  max-height: clamp(10rem, 28vw, 16rem);
  overflow-y: auto;
  padding: clamp(0.5rem, 1.5vw, 0.75rem);
  background: var(--pel-white);
  border: 1px solid rgba(139, 175, 154, 0.3);
  border-radius: var(--pel-radius);
  font-size: clamp(0.8125rem, 0.25vw + 0.75rem, 0.875rem);
}

.pel-pulse-line {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(139, 175, 154, 0.15);
  color: var(--pel-text);
}

.pel-pulse-line:last-child {
  border-bottom: none;
}

/* Leaflet tweaks */
.leaflet-container {
  font-family: var(--pel-font-body);
}

/* ════════════════════════════════════════════════════════════════════════════════════════════════════
   EARTH FIELD SECTION — NOAA Geomagnetic
   Matches cream/green site palette
 ═══════════════════════════════════════════════════ */

.earth-field-section {
  background: #ffffff;
  border: 1px solid #e8e2d8;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.ef-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ef-title {
  font-size: 10px;
  color: #9aaa9a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: inherit;
}

.ef-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #2d5a3d;
  border: 1px solid #a8cca8;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d5a3d;
  flex-shrink: 0;
  animation: live-blink 1.8s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* Explanation block — always visible */
.ef-explanation {
  font-size: 13px;
  color: #5a7a62;
  line-height: 1.75;
  padding: 12px 14px;
  background: #f5f9f5;
  border-radius: 8px;
  border-left: 3px solid #a8cca8;
  margin-bottom: 16px;
}

/* Storm note — hidden by default, shown via JS */
.ef-storm-note {
  font-size: 12.5px;
  color: #7a4a10;
  line-height: 1.7;
  padding: 11px 14px;
  background: #fdf5ec;
  border-radius: 8px;
  border-left: 3px solid #c87830;
  margin-bottom: 16px;
  display: none;
}

.ef-storm-note.visible {
  display: block;
}

/* Indicator row: dot + K number + scale bars */
.ef-indicator {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

/* Pulsing dot */
.ef-pulse-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: #2d7a4a;
  transition: background 0.6s ease;
}

.ef-pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ef-pulse 2.4s ease-out infinite;
  opacity: 0.4;
}

@keyframes ef-pulse {
  0%   { transform: scale(1);   opacity: 0.4; }
  100% { transform: scale(2.6); opacity: 0;   }
}

/* Dot color states */
.ef-pulse-dot.field-quiet     { background: #2d7a4a; }
.ef-pulse-dot.field-unsettled { background: #8a7a20; }
.ef-pulse-dot.field-active    { background: #a05020; }
.ef-pulse-dot.field-storm     { background: #a03030; }

/* K number */
.ef-readings {
  flex: 1;
}

.ef-k-number {
  font-size: 30px;
  font-family: Georgia, serif;
  color: #2d5a3d;
  line-height: 1;
  margin-bottom: 4px;
  transition: color 0.6s ease;
}

.ef-k-number.field-quiet     { color: #2d5a3d; }
.ef-k-number.field-unsettled { color: #7a6a10; }
.ef-k-number.field-active    { color: #8a4010; }
.ef-k-number.field-storm     { color: #8a2020; }

.ef-k-status {
  font-size: 12px;
  color: #7a9a82;
}

/* Scale bars — vertical column, tallest at top */
.ef-k-scale {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}

.k-bar {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: #e8e2d8;
  transition: background 0.5s ease;
}

/* Bar fill colors per state */
.k-bar.filled-quiet     { background: #4a9a62; }
.k-bar.filled-unsettled { background: #c8a820; }
.k-bar.filled-active    { background: #c86820; }
.k-bar.filled-storm     { background: #c83030; }

/* K-index scale — card row */
.ef-k-legend {
  margin-bottom: 18px;
}

.ef-k-legend-title {
  font-size: 11px;
  font-weight: 600;
  color: #9aaa9a;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin: 0 0 14px;
  font-family: inherit;
}

.ef-k-legend-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.ef-k-legend-card {
  background: #f5f9f5;
  border: 1px solid #d0e4d0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ef-k-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.ef-k-legend-dot--quiet    { background: #2d7a4a; }
.ef-k-legend-dot--unsettled { background: #c4a018; }
.ef-k-legend-dot--active   { background: #b85518; }
.ef-k-legend-dot--storm    { background: #b82828; }

.ef-k-legend-text {
  font-size: 12px;
  color: #3d5a44;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 700px) {
  .ef-k-legend-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .ef-k-legend-cards {
    grid-template-columns: 1fr;
  }
}

/* Poetic line */
.ef-poetic {
  font-size: 14px;
  font-style: italic;
  font-family: Georgia, serif;
  color: #3d5a44;
  line-height: 1.65;
  border-left: 2px solid #a8cca8;
  padding-left: 14px;
  margin-bottom: 14px;
  min-height: 18px;
  transition: opacity 0.35s ease;
}

/* Footer */
.ef-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.ef-source,
.ef-updated {
  font-size: 10px;
  color: #b8c0b8;
}
