/* الخطة الأسبوعية — mytayibat */
.wp-page { --wp-green: #1b4332; --wp-gold: #d4a373; }

.wp-hero__badge {
  display: inline-block;
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.wp-hero__lead { max-width: 720px; line-height: 1.85; }
.wp-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.wp-hero__pills li {
  background: rgba(27, 67, 50, 0.08);
  border: 1px solid rgba(27, 67, 50, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* ── صفحة المحتوى (مؤشر التكرار + الخطة) ── */
.wp-page__section {
  background: linear-gradient(180deg, var(--clr-bg-alt, #f8fafc) 0%, var(--clr-bg, #fff) 120px);
}

.wp-page__body {
  padding-bottom: 2.5rem;
}

.wp-freq-collapse {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 16px;
  padding: 0;
  background: var(--clr-surface, #fff);
  box-shadow: 0 4px 24px rgba(27, 67, 50, 0.06);
  overflow: hidden;
}

.wp-freq-collapse__summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.06) 0%, rgba(212, 163, 115, 0.1) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.2s;
}

.wp-freq-collapse[open] .wp-freq-collapse__summary {
  border-bottom-color: rgba(27, 67, 50, 0.1);
}

.wp-freq-collapse__summary::-webkit-details-marker { display: none; }

.wp-freq-collapse__chev {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--wp-green, #1b4332);
  border-bottom: 2px solid var(--wp-green, #1b4332);
  transform: rotate(-45deg);
  transition: transform 0.2s;
  margin-top: 2px;
}

.wp-freq-collapse[open] .wp-freq-collapse__chev {
  transform: rotate(135deg);
  margin-top: 6px;
}

.wp-freq-collapse__inner {
  padding: 0.25rem 1.15rem 1.15rem;
}

.wp-freq-guide {
  margin-top: 0.5rem;
}

.wp-freq-guide__head {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
}

.wp-freq-guide__head h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.45rem;
  color: var(--wp-green, #1b4332);
}

.wp-freq-guide__kicker {
  color: var(--clr-text-light, #64748b);
  font-size: 0.88rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.wp-freq-guide__lead {
  line-height: 1.75;
  color: var(--clr-text-md, #475569);
  max-width: 640px;
  margin: 0 auto;
}

.wp-freq-pyramid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 1.25rem auto 1rem;
  max-width: 560px;
}

.wp-freq-pyramid__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  line-height: 1.35;
}

.wp-freq-pyramid__label { flex: 1; }

.wp-freq-pyramid__row--forbidden {
  background: linear-gradient(90deg, #fee2e2 0%, #fff5f5 100%);
  border-color: rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.wp-freq-pyramid__row--sometimes {
  background: linear-gradient(90deg, #f3e8ff 0%, #faf5ff 100%);
  border-color: rgba(147, 51, 234, 0.2);
  color: #6b21a8;
}

.wp-freq-pyramid__row--weekly {
  background: linear-gradient(90deg, #fef9c3 0%, #fffbeb 100%);
  border-color: rgba(202, 138, 4, 0.25);
  color: #854d0e;
}

.wp-freq-pyramid__row--daily {
  background: linear-gradient(90deg, #dcfce7 0%, #f0fdf4 100%);
  border-color: rgba(22, 163, 74, 0.2);
  color: #166534;
}

.wp-freq-pyramid__row--essentials {
  background: linear-gradient(90deg, #d1fae5 0%, #ecfdf5 100%);
  border-color: rgba(27, 67, 50, 0.25);
  font-weight: 600;
  color: #1b4332;
}

.wp-freq-pillars {
  margin: 0 0 1.25rem;
  line-height: 1.7;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid rgba(212, 163, 115, 0.35);
  text-align: center;
  font-size: 0.92rem;
  color: var(--clr-text-md, #475569);
}

.wp-freq-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-freq-tier {
  border: 1px solid rgba(27, 67, 50, 0.1);
  border-radius: 14px;
  padding: 0;
  background: var(--clr-surface, #fff);
  overflow: hidden;
  border-inline-start: 4px solid rgba(27, 67, 50, 0.2);
}

.wp-freq-tier--essentials { border-inline-start-color: #2d6a4f; }
.wp-freq-tier--daily { border-inline-start-color: #22c55e; }
.wp-freq-tier--weekly { border-inline-start-color: #eab308; }
.wp-freq-tier--sometimes { border-inline-start-color: #a855f7; }
.wp-freq-tier--forbidden { border-inline-start-color: #ef4444; }

.wp-freq-tier[open] {
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.08);
}

.wp-freq-tier__summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1rem;
  list-style: none;
  background: var(--clr-bg-alt, #f8fafc);
}

.wp-freq-tier__summary::-webkit-details-marker { display: none; }

.wp-freq-tier__title {
  font-weight: 600;
  font-size: 0.92rem;
  flex: 1;
  min-width: 140px;
  text-align: right;
}

.wp-freq-tier__count {
  font-size: 0.78rem;
  color: var(--clr-text-light, #64748b);
  background: var(--clr-surface, #fff);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(27, 67, 50, 0.08);
}

.wp-freq-tier__chev {
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--clr-text-light, #64748b);
  border-bottom: 2px solid var(--clr-text-light, #64748b);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.wp-freq-tier[open] .wp-freq-tier__chev {
  transform: rotate(135deg);
}

.wp-freq-tier__rule {
  font-size: 0.88rem;
  color: var(--clr-text-md, #475569);
  margin: 0;
  padding: 0.65rem 1rem 0;
  line-height: 1.65;
}

.wp-freq-tier__chips,
.wp-freq-tier__all {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0.65rem 1rem 0.85rem;
}

.wp-freq-chip {
  font-size: 0.76rem;
  padding: 5px 11px;
  background: var(--clr-bg-alt, #f1f5f9);
  border: 1px solid rgba(27, 67, 50, 0.08);
  border-radius: 999px;
  color: var(--clr-text-md, #475569);
}

.wp-freq-tier--essentials .wp-freq-chip { background: rgba(45, 106, 79, 0.1); }
.wp-freq-tier--daily .wp-freq-chip { background: rgba(34, 197, 94, 0.1); }
.wp-freq-tier--weekly .wp-freq-chip { background: rgba(234, 179, 8, 0.12); }
.wp-freq-tier--sometimes .wp-freq-chip { background: rgba(168, 85, 247, 0.1); }
.wp-freq-tier--forbidden .wp-freq-chip { background: rgba(239, 68, 68, 0.08); }

.wp-freq-chip--more {
  font-weight: 600;
  background: transparent !important;
  border-style: dashed;
}

.wp-freq-show-all {
  margin: 0 1rem 1rem;
}

.wp-freq-cta {
  margin-top: 1.25rem;
  text-align: center;
  border-radius: 14px !important;
}

.wp-freq-cta h3 {
  margin-top: 0;
  color: var(--wp-green, #1b4332);
}

.wp-freq-more {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.wp-freq-more a {
  font-weight: 600;
}

.wp-mode-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.wp-mode-tab {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.wp-mode-tab.is-active {
  border-color: var(--wp-green);
  background: rgba(27, 67, 50, 0.06);
  color: var(--wp-green);
}

.wp-prefs { max-width: 640px; }
.wp-field { margin-bottom: 18px; border: none; padding: 0; }
.wp-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-choices label {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}
.wp-choices input { margin-inline-end: 6px; }
#wp-notes {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  resize: vertical;
}
.wp-char-count { font-size: 0.8rem; color: #64748b; text-align: left; }

.wp-loading {
  text-align: center;
  padding: 32px;
  background: #f8fafc;
  border-radius: 16px;
  margin-top: 20px;
}
.wp-loading-steps { list-style: none; padding: 0; }
.wp-loading-steps li { opacity: 0.4; margin: 8px 0; }
.wp-loading-steps li.is-active { opacity: 1; font-weight: 600; }

.wp-manual-hint { margin-bottom: 16px; color: #64748b; }
.wp-builder-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .wp-builder-layout { grid-template-columns: 280px 1fr; }
}
.wp-library {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  max-height: 420px;
  overflow: auto;
}
.wp-lib-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wp-lib-filters button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
}
.wp-lib-filters button.is-active {
  background: var(--wp-green);
  color: #fff;
  border-color: var(--wp-green);
}
.wp-library-list { display: flex; flex-direction: column; gap: 8px; }
.wp-lib-card {
  padding: 10px 12px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  cursor: grab;
  background: #fafafa;
  font-size: 0.88rem;
}
.wp-lib-card:active { cursor: grabbing; }
.wp-lib-card__meta { font-size: 0.75rem; color: #64748b; }

.wp-grid-wrap { overflow-x: auto; }
.wp-grid-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.wp-grid-table th,
.wp-grid-table td {
  border: 1px solid #e2e8f0;
  padding: 8px;
  vertical-align: top;
}
.wp-grid-table th { background: #f1f5f9; font-weight: 600; }
.wp-grid-cell {
  min-height: 72px;
  border-radius: 8px;
  background: #fafafa;
}
.wp-grid-cell-empty {
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 8px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
}
.wp-grid-cell.is-over { background: rgba(27, 67, 50, 0.08); border-color: var(--wp-green); }
.wp-grid-meal {
  padding: 8px;
  background: #fff;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 0.82rem;
}
.wp-grid-meal button {
  float: left;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #b91c1c;
  font-size: 1rem;
}
.wp-day-hint { font-size: 0.75rem; color: #64748b; display: block; }

.wp-result {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #e2e8f0;
}
.wp-result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.wp-result__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-warnings {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.wp-plan-day {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.wp-plan-day__head {
  background: linear-gradient(90deg, #1b4332, #2d6a4f);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wp-plan-slots { padding: 12px 16px; display: grid; gap: 12px; }
@media (min-width: 700px) {
  .wp-plan-slots { grid-template-columns: repeat(2, 1fr); }
}
.wp-plan-slot h4 { margin: 0 0 6px; font-size: 0.95rem; }
.wp-plan-slot ul { margin: 0; padding-inline-start: 18px; font-size: 0.85rem; }
.wp-plan-quote { font-size: 0.8rem; color: #64748b; font-style: italic; margin-top: 6px; }
.wp-motivation {
  text-align: center;
  font-size: 1.05rem;
  color: var(--wp-green);
  margin-top: 20px;
  padding: 16px;
  background: rgba(212, 163, 115, 0.15);
  border-radius: 12px;
}

/* ── Gate modal (حد يومي + واتساب) ── */
.wp-gate-modal {
  --wp-gate-border: rgba(27, 67, 50, 0.14);
  --wp-gate-muted: #64748b;
  --wp-gate-accent: #1b4332;
  --wp-gate-gold: #d4a373;
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.wp-gate-modal[hidden] {
  display: none !important;
}

body.wp-gate-open {
  overflow: hidden;
}

.wp-gate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 20, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wp-gate-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 560px);
  overflow-y: auto;
  background: var(--clr-surface, #fff);
  border-radius: 20px;
  padding: 1.65rem 1.4rem 1.35rem;
  text-align: center;
  border: 1px solid var(--wp-gate-border);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background-image: linear-gradient(
    168deg,
    rgba(212, 163, 115, 0.12) 0%,
    var(--clr-surface, #fff) 42%,
    var(--clr-bg-alt, #f8fafc) 100%
  );
  animation: wp-gate-in 0.28s ease-out;
}

@keyframes wp-gate-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wp-gate-modal__card::before {
  content: '';
  display: block;
  height: 4px;
  margin: -1.65rem -1.4rem 1rem;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--wp-gate-accent), var(--wp-gate-gold), var(--wp-gate-accent));
}

.wp-gate-modal__emoji {
  font-size: 2.6rem;
  margin: 0 0 0.35rem;
  line-height: 1;
}

.wp-gate-modal__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
  color: var(--wp-gate-accent);
  line-height: 1.35;
}

.wp-gate-modal__lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--clr-text-md, #475569);
}

.wp-gate-perks {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0.65rem 0.85rem;
  text-align: right;
  background: rgba(27, 67, 50, 0.05);
  border-radius: 12px;
  border: 1px dashed var(--wp-gate-border);
}

.wp-gate-modal--en .wp-gate-perks,
.wp-page--en .wp-gate-perks {
  text-align: left;
}

.wp-gate-perks li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--clr-text-md, #475569);
  border-bottom: 1px dashed rgba(27, 67, 50, 0.1);
}

.wp-gate-perks li:last-child {
  border-bottom: none;
}

.wp-gate-modal__btns {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.wp-gate-modal__btns .btn {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.wp-gate-wa-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.wp-gate-wa-btn:hover,
.wp-gate-wa-btn:focus-visible {
  filter: brightness(1.06);
  color: #fff !important;
}

.wp-gate-modal__note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--wp-gate-muted);
  line-height: 1.5;
}

html[data-theme="dark"] .wp-gate-modal {
  --wp-gate-border: rgba(82, 183, 136, 0.28);
  --wp-gate-muted: #94a3b8;
  --wp-gate-accent: #95d5b2;
  --wp-gate-gold: #e9c46a;
}

html[data-theme="dark"] .wp-gate-modal__backdrop {
  background: rgba(4, 12, 9, 0.78);
}

html[data-theme="dark"] .wp-gate-modal__card {
  background: var(--clr-surface-elevated, #1a2e26);
  background-image: linear-gradient(
    168deg,
    rgba(201, 162, 39, 0.1) 0%,
    var(--clr-surface-elevated, #1a2e26) 38%,
    var(--clr-surface, #152820) 100%
  );
  border-color: var(--wp-gate-border);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(82, 183, 136, 0.08) inset;
}

html[data-theme="dark"] .wp-gate-modal__lead,
html[data-theme="dark"] .wp-gate-perks li {
  color: #cbd5e1;
}

html[data-theme="dark"] .wp-gate-perks {
  background: rgba(82, 183, 136, 0.08);
  border-color: rgba(82, 183, 136, 0.2);
}

html[data-theme="dark"] .wp-gate-perks li {
  border-bottom-color: rgba(82, 183, 136, 0.12);
}

html[data-theme="dark"] .wp-gate-modal__btns .btn-secondary {
  background: var(--clr-surface, #152820);
  border-color: rgba(82, 183, 136, 0.25);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-gate-modal__btns .btn-primary {
  box-shadow: 0 6px 18px rgba(27, 67, 50, 0.45);
}

html[data-theme="dark"] .wp-gate-wa-btn {
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.28);
}

.wp-share-landing { margin-bottom: 20px; }
.wp-score-badge {
  display: inline-block;
  background: rgba(212, 163, 115, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-inline-end: 8px;
}
.wp-plan-day__head { flex-wrap: wrap; gap: 8px; }
.wp-plan-day__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wp-day-hint-inline { font-size: 0.8rem; opacity: 0.9; }
.wp-check-day { white-space: nowrap; }

.wp-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 8900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 26, 20, 0.55);
  backdrop-filter: blur(4px);
}

.wp-shop-modal[hidden] {
  display: none !important;
}

.wp-shop-modal__card {
  background: var(--clr-surface, #fff);
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 16px;
  padding: 22px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  position: relative;
  box-shadow: var(--shadow-xl, 0 20px 50px rgba(0, 0, 0, 0.2));
}

html[data-theme="dark"] .wp-shop-modal {
  background: rgba(4, 12, 9, 0.75);
}

html[data-theme="dark"] .wp-shop-modal__card {
  background: var(--clr-surface-elevated, #1a2e26);
  border-color: rgba(82, 183, 136, 0.22);
  color: #e2e8f0;
}

.wp-shop-modal__close {
  position: absolute;
  top: 12px;
  left: 12px;
  border: none;
  background: var(--clr-bg-alt, #f1f5f9);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--clr-text-md, #475569);
}

html[data-theme="dark"] .wp-shop-modal__close {
  background: var(--clr-surface, #152820);
  color: #cbd5e1;
}
.wp-shop-modal__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wp-shop-sec { margin-bottom: 14px; }
.wp-shop-sec h4 { margin: 0 0 8px; font-size: 0.95rem; }
.wp-shop-sec ul { margin: 0; padding-inline-start: 18px; }

/* ── الوضع الداكن: المحتوى + مؤشر التكرار ── */
html[data-theme="dark"] .wp-page__section {
  background: linear-gradient(
    180deg,
    var(--clr-bg-alt, #0d1a14) 0%,
    var(--clr-bg, #040c09) 140px
  );
}

html[data-theme="dark"] .wp-freq-collapse {
  background: var(--clr-surface, #152820);
  border-color: rgba(82, 183, 136, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .wp-freq-collapse__summary {
  background: linear-gradient(
    135deg,
    rgba(82, 183, 136, 0.1) 0%,
    rgba(201, 162, 39, 0.08) 100%
  );
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-freq-collapse[open] .wp-freq-collapse__summary {
  border-bottom-color: rgba(82, 183, 136, 0.15);
}

html[data-theme="dark"] .wp-freq-collapse__chev,
html[data-theme="dark"] .wp-freq-tier__chev {
  border-color: #95d5b2;
}

html[data-theme="dark"] .wp-freq-guide__head h2,
html[data-theme="dark"] .wp-freq-cta h3 {
  color: #95d5b2;
}

html[data-theme="dark"] .wp-freq-guide__kicker {
  color: #94a3b8;
}

html[data-theme="dark"] .wp-freq-guide__lead,
html[data-theme="dark"] .wp-freq-tier__rule {
  color: #cbd5e1;
}

html[data-theme="dark"] .wp-freq-pyramid__row--forbidden {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

html[data-theme="dark"] .wp-freq-pyramid__row--sometimes {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(192, 132, 252, 0.35);
  color: #e9d5ff;
}

html[data-theme="dark"] .wp-freq-pyramid__row--weekly {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(250, 204, 21, 0.3);
  color: #fef08a;
}

html[data-theme="dark"] .wp-freq-pyramid__row--daily {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
  color: #bbf7d0;
}

html[data-theme="dark"] .wp-freq-pyramid__row--essentials {
  background: rgba(45, 106, 79, 0.2);
  border-color: rgba(82, 183, 136, 0.35);
  color: #d8f3dc;
}

html[data-theme="dark"] .wp-freq-pillars {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.28);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-freq-tier {
  background: var(--clr-surface, #152820);
  border-color: rgba(82, 183, 136, 0.12);
}

html[data-theme="dark"] .wp-freq-tier[open] {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .wp-freq-tier__summary {
  background: var(--clr-surface-elevated, #1a2e26);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-freq-tier__title {
  color: #f1f5f9;
}

html[data-theme="dark"] .wp-freq-tier__count {
  background: var(--clr-surface, #152820);
  border-color: rgba(82, 183, 136, 0.2);
  color: #94a3b8;
}

html[data-theme="dark"] .wp-freq-chip {
  background: rgba(82, 183, 136, 0.08);
  border-color: rgba(82, 183, 136, 0.15);
  color: #cbd5e1;
}

html[data-theme="dark"] .wp-freq-tier--essentials .wp-freq-chip {
  background: rgba(45, 106, 79, 0.25);
}

html[data-theme="dark"] .wp-freq-tier--daily .wp-freq-chip {
  background: rgba(34, 197, 94, 0.18);
}

html[data-theme="dark"] .wp-freq-tier--weekly .wp-freq-chip {
  background: rgba(234, 179, 8, 0.15);
}

html[data-theme="dark"] .wp-freq-tier--sometimes .wp-freq-chip {
  background: rgba(168, 85, 247, 0.18);
}

html[data-theme="dark"] .wp-freq-tier--forbidden .wp-freq-chip {
  background: rgba(239, 68, 68, 0.15);
}

html[data-theme="dark"] .wp-freq-chip--more {
  color: #95d5b2;
  border-color: rgba(82, 183, 136, 0.35);
}

html[data-theme="dark"] .wp-freq-cta.info-box.gold {
  background: linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.12) 0%,
    var(--clr-surface-elevated, #1a2e26) 100%
  );
  border-color: rgba(201, 162, 39, 0.35);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-freq-more a {
  color: #95d5b2;
}

html[data-theme="dark"] .wp-mode-tab {
  background: var(--clr-surface, #152820);
  border-color: rgba(82, 183, 136, 0.2);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-mode-tab.is-active {
  background: rgba(82, 183, 136, 0.12);
  border-color: #52b788;
  color: #95d5b2;
}

html[data-theme="dark"] .wp-choices label {
  background: var(--clr-surface, #152820);
  border-color: rgba(82, 183, 136, 0.2);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-choices input:checked + span,
html[data-theme="dark"] .wp-choices label:has(input:checked) {
  border-color: #52b788;
  background: rgba(82, 183, 136, 0.12);
}

html[data-theme="dark"] #wp-notes {
  background: var(--clr-surface, #152820);
  border-color: rgba(82, 183, 136, 0.22);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-char-count {
  color: #94a3b8;
}

html[data-theme="dark"] .wp-loading {
  background: var(--clr-surface-elevated, #1a2e26);
  border: 1px solid rgba(82, 183, 136, 0.15);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-manual-hint {
  color: #94a3b8;
}

html[data-theme="dark"] .wp-library {
  background: var(--clr-surface, #152820);
  border-color: rgba(82, 183, 136, 0.18);
}

html[data-theme="dark"] .wp-lib-filters button {
  background: var(--clr-surface-elevated, #1a2e26);
  border-color: rgba(82, 183, 136, 0.2);
  color: #cbd5e1;
}

html[data-theme="dark"] .wp-lib-card {
  background: var(--clr-surface-elevated, #1a2e26);
  border-color: rgba(82, 183, 136, 0.12);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-score-badge {
  background: rgba(201, 162, 39, 0.2);
  color: #fef3c7;
}

html[data-theme="dark"] .wp-result {
  border-top-color: rgba(82, 183, 136, 0.2);
}

html[data-theme="dark"] .wp-warnings {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.35);
  color: #fed7aa;
}

html[data-theme="dark"] .wp-plan-day {
  border-color: rgba(82, 183, 136, 0.18);
  background: var(--clr-surface, #152820);
}

html[data-theme="dark"] .wp-grid-table th,
html[data-theme="dark"] .wp-grid-table td {
  border-color: rgba(82, 183, 136, 0.15);
}

html[data-theme="dark"] .wp-grid-table th {
  background: var(--clr-surface-elevated, #1a2e26);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-grid-cell,
html[data-theme="dark"] .wp-grid-meal {
  background: var(--clr-surface-elevated, #1a2e26);
  color: #e2e8f0;
}

html[data-theme="dark"] .wp-grid-cell-empty {
  border-color: rgba(82, 183, 136, 0.25);
  color: #94a3b8;
}

@media print {
  .wp-mode-tabs, .wp-prefs, .wp-library, .wp-freq-collapse, .page-hero, header, footer, .wp-result__actions { display: none !important; }
  .wp-result { border: none; }
}
