/* Plantapont – vásárlói profil dashboard */
.pp-profil {
  --pp-deep: #0f2a20;
  --pp-green: #5caf90;
  --pp-green-dark: #2f7d60;
  --pp-lime: #7cbc3d;
  --pp-teal: #1a9a8a;
  --pp-orange: #f27d0c;
  --pp-slate: #4b5966;
  --pp-cream: #f3f7f4;
  --pp-ink: #1a2e24;
  --pp-muted: #5a6f66;
  --pp-radius: 18px;
  --pp-shadow: 0 12px 32px rgba(15, 42, 32, 0.12);
  padding: 28px 0 56px;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(92, 175, 144, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(124, 188, 61, 0.18), transparent 50%),
    linear-gradient(180deg, #e8f2ec 0%, var(--pp-cream) 35%, #fff 100%);
  color: var(--pp-ink);
  overflow: hidden;
}

.pp-profil * {
  box-sizing: border-box;
}

@keyframes pp-profil-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pp-profil-qr-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(92, 175, 144, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(92, 175, 144, 0);
  }
}

.pp-profil-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  animation: pp-profil-fade-up 0.45s ease both;
}

.pp-profil-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pp-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 42, 32, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pp-profil-nav a:hover,
.pp-profil-nav a.is-active {
  background: var(--pp-deep);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero */
.pp-profil-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: stretch;
  padding: 28px 32px;
  border-radius: calc(var(--pp-radius) + 4px);
  background:
    linear-gradient(135deg, rgba(15, 42, 32, 0.94) 0%, rgba(47, 125, 96, 0.92) 55%, rgba(26, 154, 138, 0.88) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 11px
    );
  color: #eef7f2;
  box-shadow: var(--pp-shadow);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  animation: pp-profil-fade-up 0.5s ease both;
}

.pp-profil-hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 188, 61, 0.35), transparent 70%);
  pointer-events: none;
}

.pp-profil-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.pp-profil-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.pp-profil-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.pp-profil-hero h1 span {
  color: #b8e8c8;
}

.pp-profil-hero-lead {
  margin: 0;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.pp-profil-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pp-profil-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.pp-profil-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.pp-profil-chip i {
  color: #c5f0a8;
}

.pp-profil-chip--muted {
  opacity: 0.85;
  font-weight: 500;
}

.pp-profil-hero-qr {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--pp-radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--pp-ink);
  min-width: 168px;
  animation: pp-profil-qr-pulse 2.8s ease-in-out infinite;
}

.pp-profil-hero-qr #qr-code,
.pp-profil-hero-qr #qr-code img,
.pp-profil-hero-qr #qr-code canvas {
  display: block;
  margin: 0 auto;
}

.pp-profil-qr-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  color: var(--pp-deep);
  max-width: 140px;
  line-height: 1.25;
}

.pp-profil-qr-hint {
  font-size: 0.72rem;
  color: var(--pp-muted);
  text-align: center;
  line-height: 1.3;
}

.pp-profil-qr-btn {
  border: 0;
  border-radius: 10px;
  background: var(--pp-green-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pp-profil-qr-btn:hover {
  background: var(--pp-deep);
  transform: translateY(-1px);
}

/* Sections */
.pp-profil-section {
  margin-bottom: 28px;
  animation: pp-profil-fade-up 0.55s ease both;
}

.pp-profil-section:nth-of-type(2) {
  animation-delay: 0.06s;
}

.pp-profil-section:nth-of-type(3) {
  animation-delay: 0.12s;
}

.pp-profil-section:nth-of-type(4) {
  animation-delay: 0.18s;
}

.pp-profil-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.pp-profil-section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pp-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-profil-section-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--pp-muted);
}

.pp-profil-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pp-profil-badge--omni {
  background: rgba(92, 175, 144, 0.2);
  color: var(--pp-green-dark);
}

.pp-profil-badge--life {
  background: rgba(124, 188, 61, 0.22);
  color: #3d6b1a;
}

.pp-profil-badge--soon {
  background: rgba(75, 89, 102, 0.12);
  color: var(--pp-slate);
}

.pp-profil-badge--priv {
  background: rgba(75, 89, 102, 0.14);
  color: #334155;
}

.pp-profil-tile--priv {
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: rgba(75, 89, 102, 0.2);
}

.pp-profil-tile--priv::after {
  background: #64748b;
}

.pp-priv-block {
  padding: 18px 0;
  border-top: 1px solid rgba(15, 42, 32, 0.08);
}

.pp-priv-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pp-priv-block h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--pp-deep);
}

.pp-priv-block--danger {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 14px;
  background: #fff8f7;
}

.pp-priv-toggle {
  margin-bottom: 12px;
}

/* Grid tiles */
.pp-profil-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pp-profil-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 18px 18px 16px;
  border-radius: var(--pp-radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(15, 42, 32, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.pp-profil-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 42, 32, 0.14);
  text-decoration: none;
  color: inherit;
}

.pp-profil-tile::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  right: -36px;
  bottom: -40px;
  opacity: 0.35;
  pointer-events: none;
}

.pp-profil-tile--omni-orders {
  background: linear-gradient(160deg, #e8f7f1 0%, #c8ebe0 100%);
  border-color: rgba(47, 125, 96, 0.18);
}

.pp-profil-tile--omni-orders::after {
  background: #5caf90;
}

.pp-profil-tile--omni-store {
  background: linear-gradient(160deg, #eef6ff 0%, #d4e8fb 100%);
  border-color: rgba(47, 108, 168, 0.18);
}

.pp-profil-tile--omni-store::after {
  background: #4a90c8;
}

.pp-profil-tile--omni-qr {
  background: linear-gradient(160deg, #fff6e9 0%, #ffe2b8 100%);
  border-color: rgba(242, 125, 12, 0.22);
}

.pp-profil-tile--omni-qr::after {
  background: #f27d0c;
}

.pp-profil-tile--omni-bolt {
  background: linear-gradient(160deg, #e9faf6 0%, #bfeee6 100%);
  border-color: rgba(26, 154, 138, 0.2);
}

.pp-profil-tile--omni-bolt::after {
  background: #1a9a8a;
}

.pp-profil-tile--life-wish {
  background: linear-gradient(160deg, #fff0f3 0%, #ffd4de 100%);
  border-color: rgba(196, 74, 104, 0.18);
}

.pp-profil-tile--life-wish::after {
  background: #d45a7a;
}

.pp-profil-tile--life-recept {
  background: linear-gradient(160deg, #f3fce8 0%, #d8f2b0 100%);
  border-color: rgba(124, 188, 61, 0.25);
}

.pp-profil-tile--life-recept::after {
  background: #7cbc3d;
}

.pp-profil-tile--life-blog {
  background: linear-gradient(160deg, #f0f4ff 0%, #d5e0ff 100%);
  border-color: rgba(90, 110, 200, 0.2);
}

.pp-profil-tile--life-blog::after {
  background: #6b7fd7;
}

.pp-profil-tile--life-impact {
  background: linear-gradient(160deg, #f7fff2 0%, #d9f5c4 100%);
  border-color: rgba(92, 175, 144, 0.22);
  cursor: default;
}

.pp-profil-tile--life-impact::after {
  background: #5caf90;
}

.pp-profil-tile--life-impact:hover {
  transform: none;
}

.pp-profil-tile--loy {
  background: linear-gradient(160deg, #fff8f0 0%, #ffe4c4 100%);
  border-color: rgba(242, 125, 12, 0.28);
}

.pp-profil-tile--loy::after {
  background: var(--pp-orange);
}

.pp-profil-tile--vendor {
  background: linear-gradient(160deg, #f0fdf4 0%, #bbf7d0 100%);
  border-color: rgba(22, 163, 74, 0.28);
}

.pp-profil-tile--vendor::after {
  background: #22c55e;
}

.pp-profil-tile--soon {
  background: #f4f6f7;
  border-color: rgba(75, 89, 102, 0.12);
  opacity: 0.92;
  cursor: default;
  box-shadow: none;
}

.pp-profil-tile--soon:hover {
  transform: none;
  box-shadow: none;
}

.pp-profil-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--pp-deep);
  position: relative;
  z-index: 1;
}

.pp-profil-tile-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pp-deep);
  position: relative;
  z-index: 1;
}

.pp-profil-tile-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--pp-muted);
  position: relative;
  z-index: 1;
  flex: 1;
}

.pp-profil-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.pp-profil-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 42, 32, 0.08);
  color: var(--pp-deep);
}

.pp-profil-pill--accent {
  background: var(--pp-orange);
  color: #fff;
}

.pp-profil-pill--count {
  background: var(--pp-deep);
  color: #fff;
}

.pp-profil-pill--soon {
  background: rgba(75, 89, 102, 0.15);
  color: var(--pp-slate);
}

.pp-profil-tile-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pp-green-dark);
  position: relative;
  z-index: 1;
}

.pp-profil-tile--soon .pp-profil-tile-cta {
  color: var(--pp-slate);
}

/* Impact ring */
.pp-profil-impact {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.pp-profil-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--pp-lime) 0 62%, rgba(15, 42, 32, 0.12) 62% 100%);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pp-deep);
}

/* Activity */
.pp-profil-activity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pp-profil-activity-card {
  padding: 18px 20px;
  border-radius: var(--pp-radius);
  background: #fff;
  border: 1px solid rgba(15, 42, 32, 0.08);
  box-shadow: 0 6px 18px rgba(15, 42, 32, 0.06);
}

.pp-profil-activity-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pp-deep);
}

.pp-profil-activity-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pp-muted);
  line-height: 1.45;
}

.pp-profil-activity-card a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pp-green-dark);
}

/* Coming soon denser grid */
.pp-profil-grid--soon {
  grid-template-columns: repeat(5, 1fr);
}

.pp-profil-grid--soon .pp-profil-tile {
  min-height: 120px;
}

/* QR panel (full) */
.pp-profil-qr-panel {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: var(--pp-radius);
  background: #fff;
  border: 1px solid rgba(15, 42, 32, 0.08);
  box-shadow: 0 8px 24px rgba(15, 42, 32, 0.07);
  scroll-margin-top: 90px;
}

.pp-profil-qr-panel-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.pp-profil-qr-panel #qr-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
}

.pp-profil-qr-panel .qr-label-name {
  font-weight: 800;
  color: var(--pp-deep);
}

@media (max-width: 1199px) {
  .pp-profil-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pp-profil-grid--soon {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Settings / forms */
.pp-profil-hero--compact {
  grid-template-columns: 1fr;
  padding: 22px 26px;
  margin-bottom: 22px;
}

.pp-profil-card {
  background: #fff;
  border-radius: var(--pp-radius);
  border: 1px solid rgba(15, 42, 32, 0.08);
  box-shadow: 0 8px 24px rgba(15, 42, 32, 0.06);
  padding: 22px 24px 26px;
  scroll-margin-top: 90px;
}

.pp-profil-flash {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}

.pp-profil-flash.is-ok {
  background: #e8f7ef;
  color: #1b6b3a;
  border: 1px solid #86efac;
}

.pp-profil-flash.is-err {
  background: #fff1f0;
  color: #9b1c1c;
  border: 1px solid #fecaca;
}

.pp-profil-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  margin-bottom: 16px;
}

.pp-profil-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pp-deep);
}

.pp-profil-field input,
.pp-profil-field select {
  border: 1px solid rgba(15, 42, 32, 0.16);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--pp-ink);
  background: #fff;
}

.pp-profil-field input:focus,
.pp-profil-field select:focus {
  outline: 2px solid rgba(92, 175, 144, 0.45);
  border-color: var(--pp-green);
}

.pp-profil-btn {
  border: 0;
  border-radius: 10px;
  background: var(--pp-green-dark);
  color: #fff;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pp-profil-btn:hover {
  background: var(--pp-deep);
  transform: translateY(-1px);
}

.pp-profil-btn--ghost {
  background: transparent;
  color: var(--pp-deep);
  border: 1px solid rgba(15, 42, 32, 0.18);
}

.pp-profil-btn--ghost:hover {
  background: var(--pp-cream);
}

.pp-profil-btn--danger {
  background: #b91c1c;
}

.pp-profil-btn--danger:hover {
  background: #7f1d1d;
}

.pp-profil-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pp-profil-form-title {
  margin: 18px 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pp-deep);
}

.pp-profil-hint {
  font-size: 0.86rem;
  color: var(--pp-muted);
  margin: 8px 0 14px;
}

.pp-profil-hint a {
  color: var(--pp-green-dark);
  font-weight: 700;
}

.pp-profil-empty {
  color: var(--pp-muted);
  margin: 0 0 16px;
}

.pp-profil-address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.pp-profil-address {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--pp-cream);
  border: 1px solid rgba(15, 42, 32, 0.08);
}

.pp-profil-address strong {
  display: block;
  margin-top: 6px;
  color: var(--pp-deep);
}

.pp-profil-address p {
  margin: 4px 0 0;
  color: var(--pp-muted);
  font-size: 0.9rem;
}

.pp-profil-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.pp-profil-address .pp-address-json {
  display: none;
}

/* Address modal */
body.pp-profil-modal-open {
  overflow: hidden;
}

.pp-profil-modal[hidden] {
  display: none !important;
}

.pp-profil-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pp-profil-fade-up 0.25s ease both;
}

.pp-profil-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 32, 0.55);
  backdrop-filter: blur(3px);
}

.pp-profil-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 42, 32, 0.28);
  padding: 22px 24px 24px;
}

.pp-profil-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pp-profil-modal-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pp-deep);
}

.pp-profil-modal-x {
  border: 0;
  background: var(--pp-cream);
  color: var(--pp-deep);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pp-profil-modal-x:hover {
  background: #dce8e1;
}

.pp-profil-section-head .pp-profil-btn {
  flex-shrink: 0;
}

/* Dynamic impact ring */
.pp-profil-ring {
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--pp-lime) 0 calc(var(--pp-ring, 0) * 1%), rgba(15, 42, 32, 0.12) 0);
  font-size: 0.65rem;
  text-align: center;
  padding: 0 4px;
  line-height: 1.1;
}

/* Lifestyle recommendations */
.pp-life-recs-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pp-deep);
}

.pp-life-recs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pp-life-rec-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(15, 42, 32, 0.08);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(15, 42, 32, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pp-life-rec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 42, 32, 0.12);
  text-decoration: none;
  color: inherit;
}

.pp-life-rec-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: var(--pp-cream);
}

.pp-life-rec-ph {
  display: grid;
  place-items: center;
  height: 88px;
  background: linear-gradient(160deg, #f3fce8, #d8f2b0);
  color: var(--pp-deep);
  font-size: 1.6rem;
}

.pp-life-rec-body {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pp-life-rec-body strong {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--pp-deep);
}

.pp-life-rec-body small {
  font-size: 0.75rem;
  color: var(--pp-muted);
}

.pp-life-fieldset {
  border: 1px solid rgba(15, 42, 32, 0.1);
  border-radius: 14px;
  padding: 14px 16px 10px;
  margin: 0 0 14px;
}

.pp-life-fieldset legend {
  font-weight: 800;
  color: var(--pp-deep);
  padding: 0 6px;
  font-size: 0.92rem;
}

.pp-life-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.pp-life-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pp-cream);
  border: 1px solid rgba(15, 42, 32, 0.08);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--pp-deep);
}

.pp-life-check input {
  accent-color: var(--pp-green-dark);
}

.pp-life-check--solo {
  margin-bottom: 12px;
  border-radius: 12px;
}

/* Loyalty (P5) */
.pp-loy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.pp-loy-balance,
.pp-loy-referral {
  padding: 22px 20px;
  border-radius: var(--pp-radius);
  border: 1px solid rgba(15, 42, 32, 0.08);
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 42, 32, 0.05);
}

.pp-loy-balance {
  background: linear-gradient(165deg, #fffaf4 0%, #fff 55%);
  text-align: center;
}

.pp-loy-balance-num {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--pp-deep);
  letter-spacing: -0.03em;
}

.pp-loy-balance-label {
  font-size: 0.9rem;
  color: var(--pp-muted);
  margin-top: 4px;
}

.pp-loy-tier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.pp-loy-tier-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(242, 125, 12, 0.15);
  color: #a35200;
}

.pp-loy-tier-badge--mag {
  background: rgba(92, 175, 144, 0.18);
  color: var(--pp-green-dark);
}

.pp-loy-tier-badge--level {
  background: rgba(124, 188, 61, 0.22);
  color: #3d6b1a;
}

.pp-loy-tier-badge--fa {
  background: rgba(242, 125, 12, 0.2);
  color: #8a4500;
}

.pp-loy-tier-meta {
  font-size: 0.8rem;
  color: var(--pp-muted);
}

.pp-loy-progress {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(15, 42, 32, 0.08);
  overflow: hidden;
}

.pp-loy-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pp-green) 0%, var(--pp-orange) 100%);
  transition: width 0.4s ease;
}

.pp-loy-progress-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--pp-muted);
}

.pp-loy-referral h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--pp-deep);
}

.pp-loy-referral > p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--pp-muted);
  line-height: 1.45;
}

.pp-loy-ref-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.pp-loy-ref-code,
.pp-loy-ref-url {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 42, 32, 0.12);
  background: var(--pp-cream);
  font-size: 0.85rem;
  color: var(--pp-ink);
}

.pp-loy-ref-code {
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pp-loy-copy {
  flex-shrink: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: var(--pp-deep);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.pp-loy-copy:hover {
  background: var(--pp-green-dark);
}

.pp-loy-ref-stats {
  margin: 4px 0 0 !important;
  font-size: 0.8rem !important;
}

.pp-loy-copy-status {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-green-dark);
}

.pp-loy-ledger {
  margin-top: 4px;
}

.pp-loy-ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--pp-radius);
  border: 1px solid rgba(15, 42, 32, 0.08);
  background: #fff;
  overflow: hidden;
}

.pp-loy-ledger-list li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 42, 32, 0.06);
  font-size: 0.88rem;
}

.pp-loy-ledger-list li:last-child {
  border-bottom: none;
}

.pp-loy-led-delta {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pp-loy-led-delta.is-plus {
  color: var(--pp-green-dark);
}

.pp-loy-led-delta.is-minus {
  color: #b42318;
}

.pp-loy-led-reason {
  color: var(--pp-ink);
}

.pp-loy-led-date {
  color: var(--pp-muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .pp-loy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pp-loy-ref-row {
    flex-direction: column;
  }

  .pp-loy-ledger-list li {
    grid-template-columns: 56px 1fr;
  }

  .pp-loy-led-date {
    grid-column: 2;
  }
}

@media (max-width: 991px) {
  .pp-life-recs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .pp-profil-form-grid {
    grid-template-columns: 1fr;
  }

  .pp-life-recs-grid,
  .pp-life-recs-grid--prod {
    grid-template-columns: 1fr;
  }

  .pp-profil {
    padding: 16px 0 40px;
  }

  .pp-profil-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .pp-profil-modal-dialog {
    border-radius: 18px 18px 12px 12px;
    max-height: 92vh;
  }

  .pp-profil-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 18px;
  }

  .pp-profil-hero-qr {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .pp-profil-grid,
  .pp-profil-grid--soon,
  .pp-profil-activity {
    grid-template-columns: 1fr;
  }

  .pp-profil-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .pp-profil-nav a {
    white-space: nowrap;
  }
}
