/**
 * MyTherapy App v3 — mobile-first health-tech shell & plan journey
 */

:root {
  --mtv3-primary: #2d6a4f;
  --mtv3-primary-lt: #d8f3dc;
  --mtv3-accent: #40916c;
  --mtv3-surface: #ffffff;
  --mtv3-bg: #f0f4f2;
  --mtv3-text: #1b4332;
  --mtv3-muted: #52796f;
  --mtv3-border: #e2ece6;
  --mtv3-radius: 16px;
  --mtv3-shadow: 0 8px 28px rgba(27, 67, 50, 0.1);
  --mtv3-header-h: 56px;
  --mtv3-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.woocommerce-MyAccount-content .mytherapy-dashboard,
.woocommerce-MyAccount-content .mytherapy-module {
  color: var(--mtv3-text);
  background: var(--mtv3-bg);
  border-radius: var(--mtv3-radius);
  overflow: hidden;
  margin-bottom: 24px;
  padding-bottom: calc(16px + var(--mtv3-safe-bottom));
}

/* ── App header ── */
.mt-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--mtv3-header-h);
  padding: 8px 12px;
  background: var(--mtv3-surface);
  border-bottom: 1px solid var(--mtv3-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mt-app-header__menu {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--mtv3-primary-lt);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.mt-app-header__menu-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mtv3-primary);
  border-radius: 2px;
  box-shadow: 0 -6px 0 var(--mtv3-primary), 0 6px 0 var(--mtv3-primary);
  transition: opacity 0.2s;
}
.mt-app-header__menu-close {
  display: none;
  font-size: 28px;
  line-height: 1;
  color: var(--mtv3-primary);
  font-weight: 300;
}
.mt-app-header__menu[aria-expanded="true"] .mt-app-header__menu-icon {
  display: none;
}
.mt-app-header__menu[aria-expanded="true"] .mt-app-header__menu-close {
  display: block;
}
.mt-app-drawer__close-outside {
  position: absolute;
  top: 12px;
  left: min(300px, 85vw);
  margin-left: 10px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--mtv3-surface, #fff);
  color: var(--mtv3-primary, #2d6a4f);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.18);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
body.mt-app-drawer-open .mt-app-drawer__close-outside {
  display: inline-flex;
}
body.mt-is-rtl .mt-app-drawer__close-outside,
[dir="rtl"] .mt-app-drawer__close-outside {
  left: auto;
  right: min(300px, 85vw);
  margin-left: 0;
  margin-right: 10px;
}
.mt-app-drawer__quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mtv3-border, #e2ece6);
}
.mt-app-drawer__quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--mtv3-bg, #f0f4f2);
  color: var(--mtv3-text, #1b4332);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.mt-app-drawer__quick-btn:hover {
  background: var(--mtv3-primary-lt, #d8f3dc);
  color: var(--mtv3-primary, #2d6a4f);
}
.mt-app-drawer__quick-btn svg {
  color: var(--mtv3-primary, #2d6a4f);
}
.mt-app-header__brand {
  flex: 1;
  text-align: center;
}
.mt-app-header__title {
  font-size: 15px;
  font-weight: 700;
}
.mt-app-header__notif {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.mt-app-header__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e76f51;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Drawer */
.mt-app-drawer[hidden],
.mt-app-notif-panel[hidden] {
  display: none !important;
}
.mt-app-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.mt-app-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.mt-app-drawer__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--mtv3-surface);
  padding: 20px 16px;
  box-shadow: var(--mtv3-shadow);
  overflow-y: auto;
}
.mt-app-drawer__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mtv3-muted);
  margin: 0 0 12px;
}
.mt-app-drawer__tabs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mt-app-drawer__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--mtv3-text);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.mt-app-drawer__tab.is-active,
.mt-app-drawer__tab:hover {
  background: var(--mtv3-primary-lt);
}
.mt-app-drawer__tab-icon {
  font-size: 20px;
}

/* Notifications panel */
.mt-app-notif-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(340px, 92vw);
  z-index: 201;
  background: var(--mtv3-surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}
.mt-app-notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--mtv3-border);
}
.mt-app-notif-panel__head h3 {
  margin: 0;
  font-size: 17px;
}
.mt-app-notif-panel__close {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.mt-app-notif-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}
.mt-app-notif-item {
  display: block;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--mtv3-border);
  margin-bottom: 8px;
}
.mt-app-notif-item__title {
  font-size: 14px;
  font-weight: 600;
}
.mt-app-notif-item__time {
  font-size: 11px;
  color: var(--mtv3-muted);
}
.mt-app-notif-empty {
  padding: 24px;
  text-align: center;
  color: var(--mtv3-muted);
}

/* Journey hero */
.mt-journey-hero {
  padding: 20px 18px 8px;
  background: linear-gradient(160deg, var(--mtv3-primary) 0%, #1b4332 100%);
  color: #fff;
}
.mt-journey-hero__hi {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}
.mt-journey-hero__name {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 800;
}
.mt-journey-hero__tag {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* CTA states */
.mt-journey-cta {
  margin: 16px;
  padding: 24px 20px;
  background: var(--mtv3-surface);
  border-radius: var(--mtv3-radius);
  box-shadow: var(--mtv3-shadow);
  text-align: center;
}
.mt-journey-cta__icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.mt-journey-cta h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.mt-journey-cta p {
  margin: 0 0 16px;
  color: var(--mtv3-muted);
  line-height: 1.5;
  font-size: 15px;
}
.mt-journey-cta__btn {
  display: inline-block;
  width: 100%;
  max-width: 280px;
}
.mt-journey-cta--wait .mt-journey-cta__pulse {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--mtv3-primary-lt);
  animation: mt-pulse 1.6s ease infinite;
}
@keyframes mt-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}
.mt-journey-status-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mtv3-primary-lt);
  color: var(--mtv3-primary);
  font-size: 12px;
  font-weight: 700;
}

/* Progress */
.mt-journey-active {
  padding: 0 16px 16px;
}
.mt-journey-progress {
  background: var(--mtv3-surface);
  border-radius: var(--mtv3-radius);
  padding: 16px;
  margin-top: 12px;
  box-shadow: var(--mtv3-shadow);
}
.mt-journey-progress__top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}
.mt-journey-progress__bar {
  height: 8px;
  background: var(--mtv3-border);
  border-radius: 999px;
  overflow: hidden;
}
.mt-journey-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mtv3-accent), var(--mtv3-primary));
  border-radius: 999px;
  transition: width 0.5s ease;
}
.mt-journey-progress__sub {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--mtv3-muted);
}
.mt-journey-analysis {
  margin-top: 12px;
  background: var(--mtv3-surface);
  border-radius: var(--mtv3-radius);
  padding: 12px 16px;
  border: 1px solid var(--mtv3-border);
}
.mt-journey-analysis summary {
  cursor: pointer;
  font-weight: 700;
}
.mt-journey-swipe-hint {
  text-align: center;
  font-size: 12px;
  color: var(--mtv3-muted);
  margin: 14px 0 8px;
}

/* Vertical step accordion */
.mt-journey-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 16px;
}
.mt-step-acc {
  background: var(--mtv3-surface);
  border: 1px solid var(--mtv3-border);
  border-radius: var(--mtv3-radius);
  overflow: hidden;
}
.mt-step-acc.is-current {
  border-color: var(--mtv3-accent);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.15);
}
.mt-step-acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.mt-step-acc__body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--mtv3-border);
}
.mt-step-acc__body[hidden] {
  display: none !important;
}
.mt-step-acc__chev::after {
  content: "▼";
  font-size: 10px;
  color: var(--mtv3-muted);
}
.mt-step-acc__head[aria-expanded="true"] .mt-step-acc__chev::after {
  content: "▲";
}
.mt-app-notif-item.is-unread {
  border-color: var(--mtv3-accent);
  background: var(--mtv3-primary-lt);
}

/* Booking vs product card differentiation */
.mt-card--booking,
.mt-card--product {
  position: relative;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.mt-card--booking {
  border: 2px solid #1d4ed8;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 60%);
}
.mt-card--product {
  border: 2px solid var(--mtv3-accent);
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
}
.mt-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.mt-card--booking .mt-card-badge {
  background: #1d4ed8;
  color: #fff;
}
.mt-card--product .mt-card-badge {
  background: var(--mtv3-primary);
  color: #fff;
}

/* Dashboard: health modules on top + insight cards */
.mt-journey-quick--top {
  padding: 16px 16px 8px;
  order: -2;
}
.mt-dash-insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 16px 12px;
}
@media (min-width: 560px) {
  .mt-dash-insights {
    grid-template-columns: 1fr 1fr;
  }
}
.mt-insight-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--mtv3-radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--mtv3-border);
  background: var(--mtv3-surface);
  box-shadow: var(--mtv3-shadow);
}
.mt-insight-card--analysis {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #f5f3ff, #fff);
}
.mt-insight-card--mood {
  border-color: #ea580c;
  background: linear-gradient(135deg, #fff7ed, #fff);
}
.mt-insight-card__emoji {
  font-size: 28px;
}
.mt-insight-card strong {
  display: block;
  font-size: 14px;
}
.mt-insight-card p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--mtv3-muted);
}
.mt-module-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mt-module-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--mtv3-surface);
  border: 1px solid var(--mtv3-border);
  text-decoration: none;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
}
.mt-module-nav__icon {
  font-size: 22px;
}
.mt-journey-hero--compact {
  padding: 12px 18px 8px;
}

/* Medical profile charts */
.mt-profile-hero {
  margin: 16px;
  padding: 16px;
  background: var(--mtv3-surface);
  border-radius: var(--mtv3-radius);
  border: 1px solid var(--mtv3-border);
}
.mt-profile-hero__streak {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mt-profile-hero__fire {
  font-size: 32px;
}
.mt-profile-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}
@media (min-width: 640px) {
  .mt-profile-charts {
    grid-template-columns: 1fr 1fr;
  }
}
.mt-profile-card {
  background: var(--mtv3-surface);
  border: 1px solid var(--mtv3-border);
  border-radius: var(--mtv3-radius);
  padding: 16px;
}
.mt-profile-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.mt-profile-card canvas {
  max-height: 200px;
  margin-bottom: 8px;
}
.mt-profile-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--mtv3-primary);
}
.mt-profile-analysis-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mt-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mtv3-primary-lt);
  font-size: 13px;
  font-weight: 700;
}
.mt-assess-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mt-assess-item {
  padding: 10px;
  border-radius: 10px;
  background: var(--mtv3-bg);
  text-align: center;
}
.mt-assess-item__score {
  font-size: 22px;
  display: block;
}
.mt-profile-stats {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.mt-profile-stats li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--mtv3-border);
  font-size: 13px;
}
.mt-page-header {
  padding: 16px;
}
.mt-back-btn {
  font-size: 13px;
  color: var(--mtv3-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Carousel (legacy — hidden when accordion used) */
.mt-journey-carousel {
  overflow: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.mt-journey-carousel__track {
  display: flex;
  gap: 12px;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
}
.mt-journey-carousel__track::-webkit-scrollbar {
  display: none;
}
.mt-step-card {
  flex: 0 0 min(88vw, 340px);
  scroll-snap-align: center;
  background: var(--mtv3-surface);
  border-radius: var(--mtv3-radius);
  border: 1px solid var(--mtv3-border);
  box-shadow: var(--mtv3-shadow);
  padding: 16px;
  transition: opacity 0.3s, transform 0.3s;
}
.mt-step-card.is-dim {
  opacity: 0.55;
  transform: scale(0.97);
}
.mt-step-card.is-current {
  border-color: var(--mtv3-accent);
  box-shadow: 0 12px 32px rgba(45, 106, 79, 0.18);
}
.mt-step-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mt-step-card__num {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mtv3-muted);
}
.mt-step-card__status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.mt-step-card__status--pending { background: #fef3c7; color: #92400e; }
.mt-step-card__status--in_progress { background: #dbeafe; color: #1e40af; }
.mt-step-card__status--completed { background: var(--mtv3-primary-lt); color: var(--mtv3-primary); }

.mt-product-card,
.mt-lab-card,
.mt-booking-card {
  border: 1px solid var(--mtv3-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.mt-product-card__row {
  display: flex;
  gap: 12px;
}
.mt-product-card__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--mtv3-bg);
}
.mt-product-card__name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.mt-product-card__price {
  font-size: 14px;
  color: var(--mtv3-accent);
  font-weight: 600;
}
.mt-product-card__reviews {
  font-size: 12px;
  color: var(--mtv3-muted);
}
.mt-step-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mt-step-card__actions .mytherapy-button {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 13px;
  padding: 10px 14px;
}
.mt-step-card__explain {
  border: none;
  background: transparent;
  color: var(--mtv3-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}
.mt-booking-card__meta {
  font-size: 13px;
  color: var(--mtv3-muted);
  margin: 4px 0;
}
.mt-lab-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.mt-journey-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--mtv3-safe-bottom));
  transform: translateX(-50%);
  background: var(--mtv3-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: var(--mtv3-shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 300;
  font-weight: 700;
  font-size: 14px;
  animation: mt-toast-in 0.4s ease;
}
.mt-journey-toast.hidden {
  display: none !important;
}
@keyframes mt-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mt-journey-quick {
  padding: 0 16px 8px;
}
.mt-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mtv3-muted);
  margin: 0 0 10px;
}

/* Modal */
.mt-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.mt-modal[hidden] {
  display: none !important;
}
.mt-modal__sheet {
  background: var(--mtv3-surface);
  border-radius: var(--mtv3-radius) var(--mtv3-radius) 0 0;
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
  width: 100%;
  max-width: 480px;
}
.mt-modal__close {
  float: right;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

/* Medical profile */
.mt-medical-profile__sub {
  color: var(--mtv3-muted);
  margin: 0;
  font-size: 14px;
}
.mt-medical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.mt-medical-card {
  background: var(--mtv3-surface);
  border: 1px solid var(--mtv3-border);
  border-radius: var(--mtv3-radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--mtv3-shadow);
}
.mt-medical-card__icon {
  font-size: 28px;
}
.mt-medical-card h3 {
  margin: 8px 0 4px;
  font-size: 15px;
}
.mt-medical-card p {
  margin: 0;
  font-size: 12px;
  color: var(--mtv3-muted);
}
.mt-medical-profile__hint {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--mtv3-muted);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .mt-journey-carousel__track {
    justify-content: center;
  }
  .mt-step-card {
    flex: 0 0 360px;
  }
  .mt-medical-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── RTL / Arabic (body.mt-is-rtl or dir=rtl) ── */
body.mt-is-rtl .woocommerce-MyAccount-content .mytherapy-dashboard,
body.mt-is-rtl .woocommerce-MyAccount-content .mytherapy-module,
.mt-is-rtl[dir="rtl"],
[dir="rtl"].mt-is-rtl {
  direction: rtl;
  text-align: right;
}

body.mt-is-rtl .mt-app-header,
.mt-is-rtl .mt-app-header {
  flex-direction: row-reverse;
}
body.mt-is-rtl .mt-app-header__brand,
.mt-is-rtl .mt-app-header__brand {
  text-align: center;
}
body.mt-is-rtl .mt-app-drawer__panel,
.mt-is-rtl .mt-app-drawer__panel,
[dir="rtl"] .mt-app-drawer__panel {
  left: auto;
  right: 0;
}
body.mt-is-rtl .mt-app-notif-panel,
.mt-is-rtl .mt-app-notif-panel,
[dir="rtl"] .mt-app-notif-panel {
  right: auto;
  left: 0;
}
body.mt-is-rtl .mt-app-drawer__tab,
.mt-is-rtl .mt-app-drawer__tab {
  flex-direction: row-reverse;
}
body.mt-is-rtl .mt-journey-progress__top,
.mt-is-rtl .mt-journey-progress__top {
  flex-direction: row-reverse;
}
body.mt-is-rtl .mt-product-card__row,
.mt-is-rtl .mt-product-card__row {
  flex-direction: row-reverse;
}
body.mt-is-rtl .mt-step-card__head,
.mt-is-rtl .mt-step-card__head {
  flex-direction: row-reverse;
}
body.mt-is-rtl .mt-step-card__actions,
.mt-is-rtl .mt-step-card__actions {
  justify-content: flex-start;
}
body.mt-is-rtl .mt-journey-carousel__track,
.mt-is-rtl .mt-journey-carousel__track {
  direction: rtl;
}
body.mt-is-rtl .mt-step-acc__toggle,
.mt-is-rtl .mt-step-acc__toggle {
  text-align: right;
  flex-direction: row-reverse;
}
body.mt-is-rtl .mt-dash-insights,
.mt-is-rtl .mt-insight-card {
  direction: rtl;
}
body.mt-is-rtl .mt-medical-grid,
.mt-is-rtl .mt-medical-grid {
  direction: rtl;
}
body.mt-is-rtl .mt-back-btn,
.mt-is-rtl .mt-back-btn {
  display: inline-block;
}
body.mt-is-rtl .mt-journey-analysis summary,
.mt-is-rtl .mt-journey-analysis summary {
  text-align: right;
}
body.mt-is-rtl .mt-lab-card ul,
.mt-is-rtl .mt-lab-card ul {
  padding-right: 18px;
  padding-left: 0;
}

/* Arabic-friendly typography */
body.mytherapy-locale-ar .mytherapy-dashboard,
body.mytherapy-locale-ar .mytherapy-module {
  line-height: 1.65;
}


/* ════════════════════════════════════════════════════════════════════
   V3 REDESIGN — Step accordion, product cards, booking cards
   Design system: forest green primary (#2d6a4f), minimal surfaces,
   clean typography, tactile hover states
   ════════════════════════════════════════════════════════════════════ */

/* ── Step accordion header ───────────────────────────────────────── */
.mt-step-acc {
    background: var(--mtv3-surface);
    border: 1px solid var(--mtv3-border);
    border-radius: var(--mtv3-radius);
    overflow: hidden;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.mt-step-acc.is-current {
    border-color: var(--mtv3-accent);
    box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.14), var(--mtv3-shadow);
}
.mt-step-acc.is-past { opacity: 0.7; }

.mt-step-acc__head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background 0.15s ease;
}
.mt-step-acc__head:hover { background: var(--mtv3-bg); }
.mt-step-acc.is-current .mt-step-acc__head { background: rgba(216,243,220,0.45); }

.mt-step-acc__num {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mtv3-muted);
    white-space: nowrap;
    min-width: 52px;
}
.mt-step-acc__status {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Animated chevron using pure CSS — no text content */
.mt-step-acc__chev {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mtv3-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.25s ease;
}
.mt-step-acc__chev::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--mtv3-muted);
    border-bottom: 2px solid var(--mtv3-muted);
    transform: rotate(45deg) translate(-1px, -2px);
    transition: transform 0.25s ease;
}
.mt-step-acc__head[aria-expanded="true"] .mt-step-acc__chev {
    background: var(--mtv3-primary-lt);
}
.mt-step-acc__head[aria-expanded="true"] .mt-step-acc__chev::after {
    transform: rotate(-135deg) translate(-2px, 1px);
}

.mt-step-acc__body {
    padding: 14px 14px 16px;
    border-top: 1px solid var(--mtv3-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mt-step-acc__body[hidden] { display: none !important; }


/* ── Product card (order / wellness) ─────────────────────────────── */
.mt-card--product,
.mt-card--booking {
    position: relative;
    border-radius: 14px;
    padding: 0;
    margin-bottom: 0;            /* gap handled by parent flex */
    background: var(--mtv3-surface);
    box-shadow: 0 2px 12px rgba(27, 67, 50, 0.07);
    border: 1px solid var(--mtv3-border);
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.15s ease;
}
.mt-card--product:hover,
.mt-card--booking:hover {
    box-shadow: var(--mtv3-shadow);
    transform: translateY(-2px);
}

/* Coloured left accent stripe — replaces old heavy borders */
.mt-card--product::before,
.mt-card--booking::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--mtv3-primary);
    border-radius: 0;
}
.mt-card--booking::before { background: #2563eb; }

/* Badge row at top */
.mt-card-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border-radius: 999px;
    line-height: 1;
    margin: 12px 0 10px 14px;
}
.mt-card--product .mt-card-badge {
    background: var(--mtv3-primary-lt);
    color: var(--mtv3-primary);
}
.mt-card--booking .mt-card-badge {
    background: #dbeafe;
    color: #1e40af;
}

/* Product layout: image + content */
.mt-product-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 14px;
}
.mt-product-card__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 14px 0 14px;
}
.mt-product-card__img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--mtv3-bg);
    flex-shrink: 0;
}
.mt-product-card__img--ph {
    background: var(--mtv3-bg);
    border: 1.5px dashed var(--mtv3-border);
}
.mt-product-card__name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mtv3-text);
    line-height: 1.35;
}
.mt-product-card__price {
    font-size: 17px;
    font-weight: 800;
    color: var(--mtv3-primary);
    margin-bottom: 3px;
    display: block;
}
.mt-product-card__reviews {
    font-size: 12px;
    color: var(--mtv3-muted);
    margin: 0;
}

/* Booking card body */
.mt-booking-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 14px;
}
.mt-booking-card strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--mtv3-text);
    padding: 0 14px;
    margin-bottom: 4px;
}
.mt-booking-card__meta {
    font-size: 12px;
    color: var(--mtv3-muted);
    margin: 2px 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Lab card */
.mt-lab-card {
    border-radius: 14px;
    background: var(--mtv3-bg);
    border: 1px solid var(--mtv3-border);
    padding: 14px;
    margin-bottom: 0;
}
.mt-lab-card .mt-card-badge {
    background: #f3f4f6;
    color: #374151;
    margin: 0 0 8px;
    display: inline-flex;
}
.mt-lab-card ul {
    margin: 0;
    padding-left: 16px;
}
.mt-lab-card li {
    font-size: 13px;
    color: var(--mtv3-text);
    padding: 3px 0;
}

/* Shared action row (inside cards) */
.mt-step-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0 14px;
}
.mt-step-card__actions .mytherapy-button {
    flex: 1;
    min-width: 130px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 10px;
}

/* Why this step */
.mt-step-card__explain {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    color: var(--mtv3-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 14px;
    margin-top: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--mtv3-border);
}
.mt-step-card__explain:hover { color: var(--mtv3-primary); }

/* Step completed review block */
.mt-step-review {
    margin: 4px 14px 0;
    padding: 12px;
    background: var(--mtv3-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mt-step-review p {
    font-size: 13px;
    color: var(--mtv3-muted);
    margin: 0;
}

/* ── Recommended checklist (plan detail page) ────────────────────── */
.mytherapy-recommended-checklist {
    margin-top: 16px;
    background: transparent;
    border: none;
    padding: 0;
}
.mytherapy-recommended-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mytherapy-recommended-item { display: block; cursor: pointer; }
.mytherapy-recommended-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mytherapy-recommended-card {
    background: var(--mtv3-surface);
    border-radius: 14px;
    border: 1.5px solid var(--mtv3-border);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
    box-shadow: 0 2px 10px rgba(27,67,50,0.06);
}
.mytherapy-recommended-card:hover {
    box-shadow: var(--mtv3-shadow);
    transform: translateY(-1px);
}
.mytherapy-recommended-card-main {
    display: flex;
    align-items: stretch;
}
.mytherapy-recommended-image-wrapper {
    flex: 0 0 88px;
    background: var(--mtv3-bg);
    overflow: hidden;
}
.mytherapy-recommended-image {
    width: 88px;
    height: 88px;
    object-fit: cover;
    display: block;
}
.mytherapy-recommended-content {
    flex: 1;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mytherapy-recommended-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.mytherapy-recommended-check-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--mtv3-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    margin-top: 1px;
}
.mytherapy-recommended-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--mtv3-text);
    line-height: 1.3;
}
.mytherapy-recommended-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--mtv3-primary);
}
.mytherapy-recommended-button {
    display: block;
    margin: 0 12px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
}
/* Selected state */
.mytherapy-recommended-item input[type="checkbox"]:checked
    + .mytherapy-recommended-card {
    border-color: var(--mtv3-primary);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
    background: linear-gradient(180deg, #f2fbf6 0%, var(--mtv3-surface) 80%);
}
.mytherapy-recommended-item input[type="checkbox"]:checked
    + .mytherapy-recommended-card .mytherapy-recommended-check-icon {
    background: var(--mtv3-primary);
    border-color: var(--mtv3-primary);
    color: #fff;
}
/* Total row */
.mytherapy-recommended-total-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--mtv3-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}
.mytherapy-recommended-total-label { color: var(--mtv3-muted); }
.mytherapy-recommended-total-amount { font-weight: 800; color: var(--mtv3-text); }

/* ── Medical profile — complete visual refresh ───────────────────── */

/* Profile hero: gradient strip with streak */
.mt-profile-hero {
    margin: 12px 14px 0;
    padding: 0;
    background: transparent;
    border: none;
}
.mt-profile-hero-inner {
    background: linear-gradient(135deg, var(--mtv3-primary) 0%, #1b4332 100%);
    border-radius: var(--mtv3-radius);
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}
.mt-profile-hero__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}
.mt-profile-hero__body { flex: 1; }
.mt-profile-hero__body strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}
.mt-profile-hero__body p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}
.mt-profile-hero__streak-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 10px 14px;
    flex-shrink: 0;
}
.mt-profile-hero__streak-num {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}
.mt-profile-hero__streak-lbl {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.mt-profile-hero__streak-action {
    margin-top: 12px;
    display: block;
}
.mt-profile-hero__streak-action a.mytherapy-button {
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 9px;
    border-radius: 10px;
    background: rgba(255,255,255,0.22);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    text-decoration: none;
    display: block;
    font-weight: 700;
    transition: background 0.15s ease;
}
.mt-profile-hero__streak-action a.mytherapy-button:hover {
    background: rgba(255,255,255,0.32);
}

/* Analysis card */
.mt-profile-card {
    margin: 12px 14px 0;
    background: var(--mtv3-surface);
    border: 1px solid var(--mtv3-border);
    border-radius: var(--mtv3-radius);
    padding: 16px;
    box-shadow: 0 2px 10px rgba(27,67,50,0.05);
}
.mt-profile-card h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mtv3-text);
}
.mt-profile-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.mt-profile-card__head h3 { margin: 0; }
.mt-profile-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--mtv3-primary);
    text-decoration: none;
    white-space: nowrap;
}
.mt-profile-link:hover { text-decoration: underline; }

/* MBTI pill: make it pop */
.mt-profile-analysis-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--mtv3-primary-lt);
    color: var(--mtv3-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.mt-profile-meta {
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--mtv3-muted);
}

/* CTA card when no analysis */
.mt-profile-card--cta {
    border-style: dashed;
    text-align: center;
    padding: 24px 16px;
}
.mt-profile-card--cta h3 { margin: 0 0 8px; font-size: 16px; }
.mt-profile-card--cta p {
    color: var(--mtv3-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Assessment grid: 3-col on tablet, 2 on mobile */
.mt-assess-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
@media (min-width: 520px) {
    .mt-assess-grid { grid-template-columns: repeat(4, 1fr); }
}
.mt-assess-item {
    padding: 10px 8px;
    border-radius: 10px;
    background: var(--mtv3-bg);
    border: 1px solid var(--mtv3-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.mt-assess-item__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mtv3-muted);
}
.mt-assess-item__score {
    font-size: 24px;
    font-weight: 900;
    color: var(--mtv3-text);
    line-height: 1;
    display: block;
}
.mt-assess-item__res {
    font-size: 10px;
    color: var(--mtv3-muted);
    font-weight: 600;
}

/* Charts: 2-column grid */
.mt-profile-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px 0;
}
@media (min-width: 560px) {
    .mt-profile-charts { grid-template-columns: 1fr 1fr; }
}
.mt-profile-charts .mt-profile-card { margin: 0; }

/* Stats list inside chart card */
.mt-profile-stats {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.mt-profile-stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--mtv3-border);
    font-size: 13px;
    color: var(--mtv3-text);
}
.mt-profile-stats li:last-child { border-bottom: none; }
.mt-profile-stats strong { font-weight: 800; }

/* Quick links section */
.mt-profile-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 14px 14px;
}
.mt-medical-card {
    background: var(--mtv3-surface);
    border: 1px solid var(--mtv3-border);
    border-radius: var(--mtv3-radius);
    padding: 16px;
    text-decoration: none;
    color: var(--mtv3-text);
    box-shadow: 0 2px 8px rgba(27,67,50,0.05);
    transition: box-shadow 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mt-medical-card:hover {
    box-shadow: var(--mtv3-shadow);
    transform: translateY(-2px);
    border-color: var(--mtv3-accent);
}
.mt-medical-card__icon { font-size: 26px; }
.mt-medical-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--mtv3-text);
}
.mt-medical-card p {
    margin: 0;
    font-size: 12px;
    color: var(--mtv3-muted);
}


/* ═══════════════════════════════════════════════════════════════════
   AWARDS-WINNING REDESIGN — Dashboard, Journey, Profile
   All tokens from v3 root: --mtv3-primary #2d6a4f etc.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hide duplicate module title block (now in app header) ── */
.mt-page-header__title-wrap { display: none !important; }
.mt-page-header { padding: 0 16px 12px; }
.mt-page-header__top { gap: 8px; }

/* ── Dashboard hero ─────────────────────────────────────────────── */
.mt-dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px 8px;
    background: linear-gradient(155deg, var(--mtv3-primary) 0%, #1b4332 100%);
    color: #fff;
}
.mt-dash-hero__greeting {
    margin: 0;
    font-size: 13px;
    opacity: .8;
    font-weight: 500;
}
.mt-dash-hero__name {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.1;
}
.mt-dash-hero__date {
    margin: 6px 0 0;
    font-size: 12px;
    opacity: .65;
}
.mt-dash-hero__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    border: 2px solid rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.5px;
    flex-shrink: 0;
}

/* ── Quick stats ─────────────────────────────────────────────────── */
.mt-dash-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(155deg, var(--mtv3-primary) 0%, #1b4332 100%);
}
.mt-dash-stat {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 14px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(8px);
}
.mt-dash-stat--accent { background: rgba(255,255,255,.18); }
.mt-dash-stat__value {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1;
}
.mt-dash-stat__label {
    font-size: 11px;
    opacity: .75;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.mt-dash-stat__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,.5);
    border-radius: 0 2px 2px 0;
    transition: width .6s ease;
}

/* ── Plan card ───────────────────────────────────────────────────── */
.mt-dash-plan-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 14px 0;
    padding: 18px;
    border-radius: var(--mtv3-radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, transform .15s ease;
}
.mt-dash-plan-card--start {
    background: linear-gradient(135deg, var(--mtv3-primary-lt) 0%, #fff 70%);
    border: 1.5px dashed var(--mtv3-accent);
    color: var(--mtv3-text);
}
.mt-dash-plan-card--start:hover {
    box-shadow: var(--mtv3-shadow);
    transform: translateY(-2px);
}
.mt-dash-plan-card--start strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--mtv3-primary);
    margin-bottom: 4px;
}
.mt-dash-plan-card--start p {
    margin: 0;
    font-size: 12px;
    color: var(--mtv3-muted);
    line-height: 1.5;
}
.mt-dash-plan-card--start svg {
    color: var(--mtv3-primary);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.mt-dash-plan-card--wait {
    background: var(--mtv3-bg);
    border: 1px solid var(--mtv3-border);
    color: var(--mtv3-text);
}
.mt-dash-plan-card--wait strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.mt-dash-plan-card--wait p { margin: 0; font-size: 12px; color: var(--mtv3-muted); }
.mt-dash-plan-card__pulse {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mtv3-primary-lt);
    flex-shrink: 0;
    animation: mt-pulse 1.6s ease infinite;
}
.mt-dash-plan-card--active {
    background: linear-gradient(135deg, var(--mtv3-primary) 0%, #1b4332 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(45,106,79,.35);
}
.mt-dash-plan-card--active:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(45,106,79,.45);
}
.mt-dash-plan-card__body { flex: 1; }
.mt-dash-plan-card__body strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.mt-dash-plan-card__body p { margin: 0; font-size: 12px; opacity: .8; }
.mt-dash-plan-card__arrow {
    font-size: 28px;
    font-weight: 200;
    opacity: .7;
    flex-shrink: 0;
}
.mt-dash-plan-ring { flex-shrink: 0; }

/* Dashboard: active plan card 75% + book now 25%; steps are full width below */
.mt-dash-plan-row--active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.mt-dash-plan-row--active + .mt-journey-steps {
  width: 100%;
  margin-bottom: 16px;
}
.mt-dash-plan-row__main {
  flex: 1 1 auto;
  min-width: 0;
}
.mt-dash-book-now__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #40916c 0%, #2d6a4f 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.25);
  min-height: 100%;
}
.mt-dash-book-now__card strong {
  font-size: 16px;
  font-weight: 800;
}
.mt-dash-book-now__card p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
  flex: 1;
}
.mt-dash-book-now__card .mt-dash-plan-card__arrow {
  color: #fff;
  align-self: flex-end;
}
.mt-dash-book-now__icon {
  opacity: 0.95;
}
@media (min-width: 900px) {
  .mt-dash-plan-row--active {
    flex-direction: row;
    align-items: stretch;
  }
  .mt-dash-plan-row--active .mt-dash-plan-row__main {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .mt-dash-plan-row--active .mt-dash-book-now {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
  }
}

/* My Plan checklist (v3) */
.mt-plan-checklist__step {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mtv3-border, #e2ece6);
}
.mt-plan-checklist__step-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--mtv3-primary, #2d6a4f);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mt-plan-checklist__pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mtv3-text, #1b4332);
  cursor: pointer;
}
.mt-plan-checklist__radio {
  width: 18px;
  height: 18px;
  accent-color: var(--mtv3-primary, #2d6a4f);
}

/* ── Section label ───────────────────────────────────────────────── */
.mt-dash-section-label {
    padding: 16px 18px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mtv3-muted);
}

/* ── Module nav grid ─────────────────────────────────────────────── */
.mt-dash-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 14px;
}
.mt-dash-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 16px 6px;
    border-radius: 14px;
    background: var(--mtv3-surface);
    border: 1px solid var(--mtv3-border);
    text-decoration: none;
    color: var(--mtv3-text);
    font-size: 11px;
    font-weight: 700;
    transition: box-shadow .18s ease, transform .15s ease, border-color .18s ease;
    box-shadow: 0 2px 8px rgba(27,67,50,.05);
}
.mt-dash-nav__item:hover {
    box-shadow: var(--mtv3-shadow);
    transform: translateY(-2px);
    border-color: var(--item-color, var(--mtv3-accent));
}
.mt-dash-nav__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--item-color, var(--mtv3-primary)) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--item-color, var(--mtv3-primary));
    transition: background .18s ease;
}
.mt-dash-nav__item:hover .mt-dash-nav__icon {
    background: color-mix(in srgb, var(--item-color, var(--mtv3-primary)) 20%, transparent);
}
.mt-dash-nav__label { color: var(--mtv3-text); }
@supports not (color: color-mix(in srgb, red 10%, transparent)) {
    .mt-dash-nav__icon { background: var(--mtv3-primary-lt); color: var(--mtv3-primary); }
}

/* ── Analysis card ───────────────────────────────────────────────── */
.mt-dash-analysis-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 14px 0;
    padding: 16px;
    border-radius: var(--mtv3-radius);
    background: linear-gradient(135deg, #f5f3ff 0%, #fff 80%);
    border: 1.5px solid rgba(124,58,237,.18);
    text-decoration: none;
    color: var(--mtv3-text);
    box-shadow: 0 2px 12px rgba(124,58,237,.08);
    transition: box-shadow .18s ease, transform .15s ease;
}
.mt-dash-analysis-card:hover { box-shadow: 0 8px 28px rgba(124,58,237,.15); transform: translateY(-1px); }
.mt-dash-analysis-card__icon { color: #7c3aed; flex-shrink: 0; }
.mt-dash-analysis-card strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 3px; color: #5b21b6; }
.mt-dash-analysis-card p { margin: 0; font-size: 12px; color: var(--mtv3-muted); }

/* ── Journey path + step accordion ──────────────────────────────── */
.mt-journey-path {
    padding: 14px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mtj-step {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}
/* Track: vertical line + bubble */
.mtj-step__track {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
    flex-shrink: 0;
    padding-top: 18px;
    position: relative;
    z-index: 1;
}
.mtj-step__line {
    position: absolute;
    top: 50px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--mtv3-border);
    border-radius: 1px;
    transition: background .3s ease;
}
.mtj-step__line.is-filled { background: var(--mtv3-primary); }
.mtj-step__bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--mtv3-border);
    background: var(--mtv3-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--mtv3-muted);
    flex-shrink: 0;
    transition: border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
    position: relative;
    z-index: 2;
}
.mtj-step__bubble.is-done {
    background: var(--mtv3-primary);
    border-color: var(--mtv3-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45,106,79,.35);
}
.mtj-step__bubble.is-pulse {
    background: var(--mtv3-primary);
    border-color: var(--mtv3-primary);
    color: #fff;
    box-shadow: 0 0 0 0 rgba(45,106,79,.5);
    animation: mtj-pulse 2s ease infinite;
}
@keyframes mtj-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(45,106,79,.5); }
    60%  { box-shadow: 0 0 0 10px rgba(45,106,79,0); }
    100% { box-shadow: 0 0 0 0 rgba(45,106,79,0); }
}

/* Step card */
.mtj-step__card {
    flex: 1;
    min-width: 0;
    margin: 10px 0 16px 8px;
    background: var(--mtv3-surface);
    border: 1px solid var(--mtv3-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .22s ease, box-shadow .22s ease;
}
.mtj-step.is-current > .mtj-step__card {
    border-color: var(--mtv3-accent);
    box-shadow: 0 4px 24px rgba(45,106,79,.18);
}
.mtj-step.is-done > .mtj-step__card { opacity: .75; }

.mtj-step__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: background .15s ease;
}
.mtj-step__trigger:hover { background: var(--mtv3-bg); }
.mtj-step.is-current > .mtj-step__card > .mtj-step__trigger {
    background: rgba(216,243,220,.35);
}
.mtj-step__meta { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mtj-step__num {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mtv3-muted);
}
.mtj-step__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
}
.mtj-step__chev {
    color: var(--mtv3-muted);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.mtj-step__trigger[aria-expanded="true"] .mtj-step__chev { transform: rotate(180deg); }

.mtj-step__body {
    padding: 14px 14px 16px;
    border-top: 1px solid var(--mtv3-border);
}
.mtj-step__body[hidden] { display: none !important; }

/* ── Product / booking cards (mtc-*) ─────────────────────────────── */
.mtc-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }

.mtc-card {
    border-radius: 14px;
    border: 1px solid var(--mtv3-border);
    background: var(--mtv3-surface);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(27,67,50,.07);
    transition: box-shadow .18s ease, transform .15s ease;
}
.mtc-card:hover { box-shadow: var(--mtv3-shadow); transform: translateY(-1px); }

.mtc-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 14px 6px;
    color: var(--mtv3-muted);
}
.mtc-card--booking .mtc-card__badge { color: #1e40af; }
.mtc-card--product .mtc-card__badge { color: var(--mtv3-primary); }
.mtc-card--lab     .mtc-card__badge { color: #374151; padding: 12px 14px; }

.mtc-card__body { padding: 0 14px 12px; }
.mtc-card__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--mtv3-text);
    line-height: 1.3;
}
.mtc-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--mtv3-muted);
    margin: 3px 0;
}
.mtc-card__meta svg { flex-shrink: 0; color: var(--mtv3-muted); }

/* Product layout */
.mtc-product {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--mtv3-border);
    border-bottom: 1px solid var(--mtv3-border);
}
.mtc-product__img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    background: var(--mtv3-bg);
    flex-shrink: 0;
}
.mtc-product__img--ph { border-right: 1px dashed var(--mtv3-border); }
.mtc-product__info {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mtc-product__price {
    font-size: 19px;
    font-weight: 900;
    color: var(--mtv3-primary);
    line-height: 1;
}
.mtc-product__stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    font-size: 11px;
    color: var(--mtv3-muted);
}
.mtc-product__stars svg { color: #f59e0b; }
.mtc-product__stars span { margin-left: 4px; }

/* Buttons */
.mtc-card__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; }
.mtc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.mtc-btn--primary {
    background: var(--mtv3-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(45,106,79,.3);
}
.mtc-btn--primary:hover {
    background: #1b4332;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(45,106,79,.4);
}
.mtc-btn--secondary {
    background: var(--mtv3-bg);
    color: var(--mtv3-text) !important;
    border: 1px solid var(--mtv3-border);
}
.mtc-btn--secondary:hover { background: var(--mtv3-border); }
.mtc-btn--full {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    background: var(--mtv3-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(45,106,79,.25);
}
.mtc-btn--full:hover { background: #1b4332; transform: translateY(-1px); }

/* Lab card */
.mtc-lab__list {
    margin: 0;
    padding: 0 14px 12px 28px;
    list-style: disc;
}
.mtc-lab__list li { font-size: 13px; color: var(--mtv3-text); padding: 3px 0; }

/* Why this step / review */
.mtc-why {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    color: var(--mtv3-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--mtv3-border);
}
.mtc-why:hover { color: var(--mtv3-primary); }
.mtc-review {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--mtv3-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mtc-review p { flex: 1; margin: 0; font-size: 12px; color: var(--mtv3-muted); }

/* ── Toast override ──────────────────────────────────────────────── */
.mt-journey-toast {
    background: var(--mtv3-primary);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

/* ── Medical profile — priority reorder helpers ──────────────────── */
.mt-profile-plan-cta {
    margin: 12px 14px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(135deg, var(--mtv3-primary) 0%, #1b4332 100%);
    border-radius: var(--mtv3-radius);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(45,106,79,.3);
    transition: box-shadow .18s ease, transform .15s ease;
}
.mt-profile-plan-cta:hover { box-shadow: 0 10px 32px rgba(45,106,79,.45); transform: translateY(-2px); }
.mt-profile-plan-cta__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.mt-profile-plan-cta__body { flex: 1; }
.mt-profile-plan-cta strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.mt-profile-plan-cta p { margin: 0; font-size: 12px; opacity: .8; }
.mt-profile-plan-cta__arrow { font-size: 26px; opacity: .7; font-weight: 200; }

/* Mood CTA card */
.mt-profile-mood-cta {
    margin: 12px 14px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 80%);
    border: 1.5px solid rgba(245,158,11,.25);
    border-radius: var(--mtv3-radius);
    color: var(--mtv3-text);
    text-decoration: none;
    transition: box-shadow .18s ease, transform .15s ease;
}
.mt-profile-mood-cta:hover { box-shadow: var(--mtv3-shadow); transform: translateY(-1px); }
.mt-profile-mood-cta__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245,158,11,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d97706;
}
.mt-profile-mood-cta strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 2px; color: #92400e; }
.mt-profile-mood-cta p { margin: 0; font-size: 12px; color: var(--mtv3-muted); }

@media (max-width: 380px) {
    .mt-dash-stats { grid-template-columns: 1fr; }
    .mt-dash-nav   { grid-template-columns: repeat(3, 1fr); }
}
