/* ============================================================================
   pt-uplift.css — app-wide clinical UX/визуал uplift
   Loaded LAST (after pt-custom.css) so same-specificity rules win.
   Scope: pt-* clinical screens only. Does NOT touch gj-* (game/quiz) or
   the questionnaire pages (which scope their own .pt-card via wrappers).
   ========================================================================== */

/* ── Route content fade-in + keyboard focus + reduced motion ─────────────── */
.pt-route-fade { animation: pt-fade-in 0.26s ease both; }
@keyframes pt-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.btn-main:focus-visible,
.pt-chip:focus-visible,
a.btn-main:focus-visible,
.qn-opt:focus-visible,
.pt-iconbtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 158, 124, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --pt-up-primary: #5a9e7c;
  --pt-up-primary-d: #4d8e6c;
  --pt-up-grad: linear-gradient(135deg, #62ab88, #4d8e6c);
  --pt-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.05);
  --pt-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 18px 40px rgba(16, 24, 40, 0.07);
  --pt-radius-card: 20px;
}

/* ── Cards ─────────────────────────────────────────────────────────────────
   Softer, deeper, more rounded — matches the polished questionnaire look.
   Skeleton/ghost variants keep their own treatment below. */
.pt-card:not(.pt-card--skeleton):not(.pt-card--ghost) {
  border-radius: var(--pt-radius-card);
  border: 1px solid #eef1f4;
  box-shadow: var(--pt-shadow-sm);
}
/* clickable/list cards get a gentle hover lift */
.pt-list .pt-card:not(.pt-card--skeleton):not(.pt-card--ghost),
.pt-invoice-card, .pt-news-card, .pt-report-card, .pt-history-card,
.pt-reward-card, .pt-explore-hcard, .pt-explore-blog-card {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.pt-list .pt-card:not(.pt-card--skeleton):not(.pt-card--ghost):hover,
.pt-invoice-card:hover, .pt-news-card:hover, .pt-report-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pt-shadow-md);
}

/* ── Empty / ghost cards ────────────────────────────────────────────────── */
.pt-card--ghost {
  border-radius: var(--pt-radius-card);
  padding: 30px 22px;
  text-align: center;
}

/* ── Buttons — unify on brand green, add depth + hover (size kept as-is) ──── */
.btn-main {
  background: var(--pt-up-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(90, 158, 124, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn-main:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 7px 20px rgba(90, 158, 124, 0.36);
  color: #fff;
}
.btn-main:active { transform: translateY(0); }

/* ghost / light-transparent secondary button → clean neutral */
.btn-main.btn-light-trans {
  background: #fff;
  color: #334155;
  border: 1.5px solid #eef1f4;
  box-shadow: none;
}
.btn-main.btn-light-trans:hover {
  background: #f7faf8;
  color: var(--pt-up-primary-d);
  filter: none;
  box-shadow: none;
}

/* home/appointments hero buttons were teal — recolor to brand green */
.pt-home-btn-main,
.pt-home-next-action__btn-primary,
.pt-appt-hero__cta,
.pt-detail-action--primary {
  background: var(--pt-up-grad) !important;
  box-shadow: 0 10px 22px rgba(90, 158, 124, 0.22) !important;
}

/* ── Badges — leading dot for clearer status ─────────────────────────────── */
.pt-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.pt-badge { gap: 6px; }

/* ── Section headers — match accent treatment ────────────────────────────── */
.pt-page-title { letter-spacing: -0.02em; }

/* ── Inputs — soft focus ring ────────────────────────────────────────────── */
.pt-search input:focus,
.pt-input:focus,
.form-control:focus {
  outline: none;
  border-color: var(--pt-up-primary);
  box-shadow: 0 0 0 3px rgba(90, 158, 124, 0.14);
}

/* ── Shared component helpers (StateCard / Skeleton / Spinner) ───────────── */
.pt-state { text-align: center; padding: 30px 22px; }
.pt-state__icon { font-size: 2.2rem; display: block; margin-bottom: 10px; line-height: 1; }
.pt-state__title { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.pt-state__text { font-size: 0.86rem; color: #64748b; line-height: 1.5; margin: 0 0 6px; }

.pt-sk { background: linear-gradient(90deg, #eef1f4 25%, #e4e9ee 37%, #eef1f4 63%); background-size: 400% 100%; animation: pt-sk-shimmer 1.4s ease-in-out infinite; }
@keyframes pt-sk-shimmer { 0% { background-position: 100% 0 } 100% { background-position: -100% 0 } }

.pt-spinner { width: 36px; height: 36px; border: 3px solid rgba(90, 158, 124, 0.22); border-top-color: var(--pt-up-primary); border-radius: 50%; animation: pt-spin 0.8s linear infinite; }
.pt-spinner--sm { width: 22px; height: 22px; border-width: 2px; }
@keyframes pt-spin { to { transform: rotate(360deg) } }

/* ── Profile: de-emphasize "coming soon" / disabled controls ─────────────── */
.pt-profile-soon-tag, .pt-profile-coming-soon__badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
  background: rgba(245,158,11,0.14); color: #b45309;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.pt-toggle.is-disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Range slider value pill + accent ────────────────────────────────────── */
.pt-range-val { display: inline-block; min-width: 34px; padding: 1px 8px; border-radius: 999px; background: rgba(90,158,124,0.14); color: var(--pt-up-primary-d); font-size: 0.74rem; font-weight: 700; margin-left: 6px; }
.pt-range { accent-color: var(--pt-up-primary); }

/* ── Alert polish (replaces Bootstrap legacy look) ───────────────────────── */
.pt-uplift-alert { border-radius: 14px; padding: 12px 15px; font-size: 0.86rem; line-height: 1.5; border: 1px solid; }
.pt-uplift-alert--info { background: rgba(90,158,124,0.07); border-color: rgba(90,158,124,0.22); color: #3d8161; }
.pt-uplift-alert--danger { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.22); color: #b91c1c; }
.pt-uplift-alert--success { background: rgba(90,158,124,0.1); border-color: rgba(90,158,124,0.3); color: #3d8161; }
