/* ============================================================
   PITCHSTREAK - Lead Magnet Styles (Sprint 1)
   Mobile-first, dark theme aligned with Pitchbase landings.
   Color tokens kept consistent with outils.html / landing.html.
   ============================================================ */

:root {
    --ps-bg: #050A0E;
    --ps-bg-elev: #0C1219;
    --ps-bg-elev-2: #111A23;
    --ps-border: rgba(255, 255, 255, 0.08);
    --ps-border-strong: rgba(255, 255, 255, 0.16);
    --ps-text: #f1f5f9;
    --ps-text-muted: rgba(255, 255, 255, 0.65);
    --ps-text-faint: rgba(255, 255, 255, 0.45);
    --ps-emerald: #10B981;
    --ps-emerald-dim: #059669;
    --ps-emerald-glow: rgba(16, 185, 129, 0.35);
    --ps-flame: #FB923C;
    --ps-flame-glow: rgba(251, 146, 60, 0.45);
    --ps-danger: #EF4444;
    --ps-warning: #F59E0B;
    --ps-radius: 14px;
    --ps-radius-lg: 20px;
}

* { box-sizing: border-box; }

body.pitchstreak-body {
    margin: 0;
    background: var(--ps-bg);
    color: var(--ps-text);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===============================
   TOP BAR
   =============================== */
.ps-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 10, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ps-border);
    padding: 12px 16px;
}
.ps-topbar-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ps-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 17px;
    color: var(--ps-text);
    text-decoration: none;
}
.ps-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ps-emerald) 0%, #047857 100%);
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--ps-bg);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.ps-lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ps-border);
    border-radius: 999px;
    padding: 4px;
    font-size: 12px;
    font-weight: 600;
}
.ps-lang-btn {
    background: transparent;
    border: 0;
    color: var(--ps-text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    transition: all 0.15s ease;
}
.ps-lang-btn.active {
    background: var(--ps-emerald);
    color: var(--ps-bg);
}

/* ===============================
   APP CONTAINER
   =============================== */
.ps-app {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 140px;
}

/* ===============================
   HEADER (streak + level)
   =============================== */
.ps-header {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 100%);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-lg);
    padding: 20px 18px;
    margin-bottom: 16px;
}
.ps-streak-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ps-streak {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ps-flame {
    font-size: 38px;
    line-height: 1;
    filter: drop-shadow(0 0 12px var(--ps-flame-glow));
    animation: ps-flame-pulse 2.4s ease-in-out infinite;
}
.ps-flame.dim {
    filter: grayscale(0.6) opacity(0.5);
    animation: none;
}
@keyframes ps-flame-pulse {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.06) rotate(2deg); }
}
.ps-streak-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--ps-text);
}
.ps-streak-label {
    font-size: 12px;
    color: var(--ps-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.ps-level-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--ps-emerald);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}
.ps-xp-bar {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}
.ps-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ps-emerald) 0%, #34D399 100%);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ps-xp-meta {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ps-text-faint);
}

/* ===============================
   MISSION OF THE DAY
   =============================== */
.ps-mission {
    background: var(--ps-bg-elev);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ps-mission.completed {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.06);
}
.ps-mission-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--ps-emerald);
    display: grid;
    place-items: center;
    font-size: 18px;
}
.ps-mission-body { flex: 1 1 auto; min-width: 0; }
.ps-mission-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ps-emerald);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}
.ps-mission-text {
    font-size: 14px;
    color: var(--ps-text);
    line-height: 1.4;
}
.ps-mission-bonus {
    font-size: 11px;
    color: var(--ps-text-faint);
    margin-top: 4px;
}

/* ===============================
   WARMUP CARD (bridge to Pitchbase)
   =============================== */
.ps-warmup {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(20, 184, 166, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--ps-radius);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.ps-warmup::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.ps-warmup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.ps-warmup-text { flex: 1 1 auto; }
.ps-warmup-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ps-text);
    margin-bottom: 2px;
}
.ps-warmup-sub {
    font-size: 12px;
    color: var(--ps-text-muted);
    line-height: 1.4;
}
.ps-warmup-btn {
    flex: 0 0 auto;
    background: var(--ps-emerald);
    color: var(--ps-bg);
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.ps-warmup-btn:hover {
    background: var(--ps-emerald-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--ps-emerald-glow);
}
.ps-warmup-btn.done {
    background: rgba(16, 185, 129, 0.15);
    color: var(--ps-emerald);
    cursor: default;
}
.ps-warmup-btn.done:hover { transform: none; box-shadow: none; }

/* ===============================
   DAY STATS BAND
   =============================== */
.ps-daystats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.ps-daystat {
    background: var(--ps-bg-elev);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    padding: 14px 12px;
    text-align: center;
}
.ps-daystat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--ps-text);
    line-height: 1;
    margin-bottom: 4px;
}
.ps-daystat-label {
    font-size: 11px;
    color: var(--ps-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.ps-daystat-progress {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.ps-daystat-progress-fill {
    height: 100%;
    background: var(--ps-emerald);
    transition: width 0.4s ease;
}

/* ===============================
   TRACKER (6 big tap buttons)
   =============================== */
.ps-tracker-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--ps-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 4px 10px;
}
.ps-tracker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.ps-track-btn {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    background: var(--ps-bg-elev);
    border: 1px solid var(--ps-border);
    color: var(--ps-text);
    border-radius: var(--ps-radius);
    padding: 18px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    font: inherit;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.ps-track-btn:hover, .ps-track-btn:focus-visible {
    border-color: var(--ps-border-strong);
    background: var(--ps-bg-elev-2);
    outline: none;
}
.ps-track-btn:active {
    transform: scale(0.97);
}
.ps-track-btn.flash {
    animation: ps-flash 0.5s ease;
}
@keyframes ps-flash {
    0%   { background: var(--ps-bg-elev); }
    30%  { background: rgba(16, 185, 129, 0.18); border-color: var(--ps-emerald); }
    100% { background: var(--ps-bg-elev); }
}
.ps-track-icon {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    color: var(--ps-emerald);
}
.ps-track-body { flex: 1 1 auto; min-width: 0; }
.ps-track-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ps-text);
    margin-bottom: 2px;
}
.ps-track-xp {
    font-size: 11px;
    color: var(--ps-text-faint);
    font-weight: 600;
}
.ps-track-btn[data-call-type="meeting_booked"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(20, 184, 166, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}
.ps-track-btn[data-call-type="meeting_booked"]:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

/* XP burst floating animation */
.ps-xp-burst {
    position: absolute;
    pointer-events: none;
    font-weight: 800;
    font-size: 14px;
    color: var(--ps-emerald);
    text-shadow: 0 0 10px var(--ps-emerald-glow);
    animation: ps-xp-burst 1s ease-out forwards;
}
@keyframes ps-xp-burst {
    0%   { opacity: 0; transform: translateY(0) scale(0.8); }
    20%  { opacity: 1; transform: translateY(-6px) scale(1.05); }
    100% { opacity: 0; transform: translateY(-44px) scale(0.95); }
}

/* ===============================
   UNDO TOAST
   =============================== */
.ps-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: var(--ps-bg-elev-2);
    border: 1px solid var(--ps-border-strong);
    color: var(--ps-text);
    border-radius: var(--ps-radius);
    padding: 12px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    max-width: calc(100vw - 32px);
}
.ps-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.ps-toast-undo {
    background: transparent;
    color: var(--ps-emerald);
    border: 0;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
    padding: 4px 8px;
    border-radius: 8px;
}
.ps-toast-undo:hover { background: rgba(16, 185, 129, 0.1); }

/* ===============================
   FOOTER ACTIONS
   =============================== */
.ps-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.ps-action-btn {
    flex: 1 1 auto;
    background: var(--ps-bg-elev);
    border: 1px solid var(--ps-border);
    color: var(--ps-text);
    border-radius: var(--ps-radius);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}
.ps-action-btn:hover {
    border-color: var(--ps-border-strong);
    background: var(--ps-bg-elev-2);
}

/* ===============================
   GOAL EDITOR
   =============================== */
.ps-goal-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ps-border);
    border-radius: 10px;
    font-size: 12px;
    color: var(--ps-text-muted);
}
.ps-goal-editor input {
    width: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    color: var(--ps-text);
    padding: 4px 8px;
    text-align: center;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
}
.ps-goal-editor input:focus {
    outline: none;
    border-color: var(--ps-emerald);
}

/* ===============================
   LEVEL UP / STREAK CELEBRATION
   =============================== */
.ps-celebrate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 14, 0.88);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}
.ps-celebrate-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.ps-celebrate-card {
    background: var(--ps-bg-elev);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--ps-radius-lg);
    padding: 32px 24px;
    text-align: center;
    max-width: 360px;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ps-celebrate-overlay.show .ps-celebrate-card { transform: scale(1); }
.ps-celebrate-emoji {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
    animation: ps-bounce 0.8s ease-out;
}
@keyframes ps-bounce {
    0%   { transform: scale(0) rotate(-30deg); }
    60%  { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
}
.ps-celebrate-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ps-text);
    margin-bottom: 6px;
}
.ps-celebrate-sub {
    font-size: 14px;
    color: var(--ps-text-muted);
    margin-bottom: 20px;
}
.ps-celebrate-close {
    background: var(--ps-emerald);
    color: var(--ps-bg);
    border: 0;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

/* ===============================
   HERO (above-the-fold marketing)
   =============================== */
.ps-hero {
    text-align: center;
    padding: 16px 4px 24px;
}
.ps-hero-eyebrow {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--ps-emerald);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.ps-hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ps-text);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.ps-hero-sub {
    font-size: 15px;
    color: var(--ps-text-muted);
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (min-width: 640px) {
    .ps-hero-title { font-size: 34px; }
    .ps-streak-num { font-size: 44px; }
    .ps-flame { font-size: 46px; }
}

/* ===============================
   ACCESSIBILITY
   =============================== */
@media (prefers-reduced-motion: reduce) {
    .ps-flame, .ps-track-btn.flash, .ps-celebrate-emoji,
    .ps-xp-burst, .ps-xp-fill, .ps-celebrate-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ===============================
   PWA: hide topbar in standalone mode if installed
   =============================== */
@media (display-mode: standalone) {
    .ps-install-cta { display: none !important; }
}

/* ============================================================
   SPRINT 2 - Badges grid + capture modal
   ============================================================ */

/* Section heading (re-use from tracker) for badges */
.ps-badges-section { margin-top: 24px; }

.ps-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 480px) {
    .ps-badges-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
    .ps-badges-grid { grid-template-columns: repeat(4, 1fr); }
}

.ps-badge-card {
    -webkit-tap-highlight-color: transparent;
    background: var(--ps-bg-elev);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    padding: 14px 12px;
    color: var(--ps-text);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.ps-badge-card:hover {
    border-color: var(--ps-border-strong);
    transform: translateY(-2px);
}
.ps-badge-card.locked .ps-badge-icon {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ps-text-faint);
}
.ps-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--ps-emerald);
    display: grid;
    place-items: center;
    font-size: 18px;
    margin-bottom: 6px;
}
.ps-badge-card.tier-bronze .ps-badge-icon  { background: rgba(180, 83, 9, 0.18);  color: #d97706; }
.ps-badge-card.tier-silver .ps-badge-icon  { background: rgba(148, 163, 184, 0.2);  color: #cbd5e1; }
.ps-badge-card.tier-gold .ps-badge-icon    { background: rgba(234, 179, 8, 0.18);  color: #facc15; }
.ps-badge-card.tier-diamond .ps-badge-icon { background: rgba(56, 189, 248, 0.18); color: #38bdf8; }

.ps-badge-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ps-text);
    line-height: 1.25;
}
.ps-badge-tier {
    font-size: 10px;
    font-weight: 700;
    color: var(--ps-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ps-badge-card.earned .ps-badge-tier { color: var(--ps-emerald); }
.ps-badge-progress {
    width: 100%;
    height: 4px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.ps-badge-progress-fill {
    height: 100%;
    background: var(--ps-emerald);
    transition: width 0.4s ease;
}
.ps-badge-progress-meta {
    margin-top: 4px;
    font-size: 10px;
    color: var(--ps-text-faint);
    font-variant-numeric: tabular-nums;
}

/* Badge detail modal */
.ps-badge-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 14, 0.85);
    backdrop-filter: blur(8px);
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ps-badge-detail-overlay.show { opacity: 1; pointer-events: auto; }
.ps-badge-detail-card {
    position: relative;
    background: var(--ps-bg-elev);
    border: 1px solid var(--ps-border-strong);
    border-radius: var(--ps-radius-lg);
    padding: 28px 22px 22px;
    max-width: 360px;
    width: 100%;
    transform: scale(0.92);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ps-badge-detail-overlay.show .ps-badge-detail-card { transform: scale(1); }
.ps-badge-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ps-text-faint);
    display: grid;
    place-items: center;
    font-size: 32px;
    margin: 0 auto 14px;
}
.ps-badge-detail-icon.tier-bronze  { background: rgba(180, 83, 9, 0.18);  color: #d97706; }
.ps-badge-detail-icon.tier-silver  { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.ps-badge-detail-icon.tier-gold    { background: rgba(234, 179, 8, 0.18); color: #facc15; }
.ps-badge-detail-icon.tier-diamond { background: rgba(56, 189, 248, 0.18); color: #38bdf8; }
.ps-badge-detail-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ps-text);
    text-align: center;
    margin: 0 0 6px;
}
.ps-badge-detail-desc {
    font-size: 13px;
    color: var(--ps-text-muted);
    text-align: center;
    line-height: 1.45;
    margin: 0 0 16px;
}
.ps-badge-detail-tiers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.ps-badge-tier-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ps-border);
    border-radius: 10px;
    font-size: 12px;
    color: var(--ps-text-muted);
}
.ps-badge-tier-row.reached {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--ps-text);
}
.ps-badge-tier-medal {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ps-text-faint);
}
.ps-badge-tier-medal.tier-bronze  { background: rgba(180, 83, 9, 0.2);  color: #d97706; }
.ps-badge-tier-medal.tier-silver  { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.ps-badge-tier-medal.tier-gold    { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.ps-badge-tier-medal.tier-diamond { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.ps-badge-tier-label { font-weight: 600; text-transform: capitalize; }
.ps-badge-tier-target { font-variant-numeric: tabular-nums; font-weight: 700; }
.ps-badge-detail-progress {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 10px;
    font-size: 12px;
    color: var(--ps-text-muted);
}
.ps-badge-detail-progress strong { color: var(--ps-emerald); font-variant-numeric: tabular-nums; }

/* Capture modal */
.ps-capture-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 14, 0.92);
    backdrop-filter: blur(10px);
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ps-capture-overlay.show { opacity: 1; pointer-events: auto; }
.ps-capture-card {
    position: relative;
    background: var(--ps-bg-elev);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--ps-radius-lg);
    padding: 32px 22px 24px;
    max-width: 420px;
    width: 100%;
    transform: scale(0.94);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ps-capture-overlay.show .ps-capture-card { transform: scale(1); }
.ps-capture-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    color: var(--ps-text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 16px;
}
.ps-capture-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--ps-text); }
.ps-capture-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ps-text);
    line-height: 1.2;
    margin: 0 0 8px;
}
.ps-capture-sub {
    font-size: 14px;
    color: var(--ps-text-muted);
    line-height: 1.5;
    margin: 0 0 18px;
}
.ps-capture-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ps-capture-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ps-text);
    line-height: 1.45;
}
.ps-capture-bullets i {
    color: var(--ps-emerald);
    font-size: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
}
.ps-capture-form { display: flex; flex-direction: column; gap: 10px; }
.ps-capture-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ps-text-muted);
    margin-bottom: -4px;
}
.ps-capture-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ps-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--ps-text);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ps-capture-input:focus {
    border-color: var(--ps-emerald);
    background: rgba(255, 255, 255, 0.06);
}
.ps-capture-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--ps-text-muted);
    line-height: 1.4;
    cursor: pointer;
}
.ps-capture-consent input {
    margin-top: 3px;
    accent-color: var(--ps-emerald);
}
.ps-capture-submit {
    margin-top: 4px;
    background: var(--ps-emerald);
    color: var(--ps-bg);
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ps-capture-submit:hover:not(:disabled) {
    background: var(--ps-emerald-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--ps-emerald-glow);
}
.ps-capture-submit:disabled { opacity: 0.6; cursor: wait; }
.ps-capture-error {
    color: var(--ps-danger);
    font-size: 12px;
    margin: 0;
    min-height: 16px;
}
.ps-capture-fineprint {
    font-size: 11px;
    color: var(--ps-text-faint);
    line-height: 1.5;
    margin: 4px 0 0;
}
.ps-capture-success { text-align: center; padding: 8px 4px; }
.ps-capture-success-emoji { font-size: 48px; margin-bottom: 8px; }
.ps-capture-success-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ps-text);
    margin: 0 0 6px;
}
.ps-capture-success-sub {
    font-size: 13px;
    color: var(--ps-text-muted);
    line-height: 1.5;
    margin: 0 0 18px;
}
.ps-capture-success-close { width: 100%; }

/* Save streak CTA in dashboard */
.ps-save-cta {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--ps-radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ps-save-cta:hover { transform: translateY(-1px); border-color: rgba(16, 185, 129, 0.55); }
.ps-save-cta-text { flex: 1; min-width: 0; }
.ps-save-cta-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ps-text);
    margin-bottom: 2px;
}
.ps-save-cta-sub {
    font-size: 12px;
    color: var(--ps-text-muted);
}
.ps-save-cta-arrow {
    flex: 0 0 auto;
    color: var(--ps-emerald);
    font-size: 22px;
}
.ps-save-cta.hidden { display: none; }

/* ============================================================
   SPRINT 3 - Heatmap + share + danger modal + mission claim
   ============================================================ */

/* Mission claim button (in the mission card) */
.ps-mission { position: relative; }
.ps-mission-claim {
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(135deg, var(--ps-emerald) 0%, #14b8a6 100%);
    color: var(--ps-bg);
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    align-self: flex-start;
    box-shadow: 0 4px 12px var(--ps-emerald-glow);
    animation: ps-pulse-glow 2s ease-in-out infinite;
}
.ps-mission-claim:hover { transform: translateY(-1px); }
.ps-mission-claim.hidden { display: none; }
@keyframes ps-pulse-glow {
    0%, 100% { box-shadow: 0 4px 12px var(--ps-emerald-glow); }
    50%      { box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55); }
}

/* Heatmap card */
.ps-heatmap-card {
    background: var(--ps-bg-elev);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    padding: 14px 12px 12px;
}
.ps-heatmap-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--ps-text-muted);
}
.ps-heatmap-meta strong { color: var(--ps-emerald); font-variant-numeric: tabular-nums; }
.ps-heatmap-svg-wrap { width: 100%; overflow: visible; }
.ps-heatmap-svg-wrap svg { display: block; max-width: 100%; height: auto; }
.ps-heatmap-axis {
    fill: var(--ps-text-faint);
    font-size: 9px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ps-heatmap-rect {
    transition: opacity 0.15s ease;
    cursor: default;
}
.ps-heatmap-rect:hover { opacity: 0.85; }
.ps-heatmap-rect.is-today {
    stroke: rgba(16, 185, 129, 0.6);
    stroke-width: 1.5;
}
.ps-heatmap-rect.intensity-0 { fill: rgba(255, 255, 255, 0.04); }
.ps-heatmap-rect.intensity-1 { fill: #064e3b; }
.ps-heatmap-rect.intensity-2 { fill: #047857; }
.ps-heatmap-rect.intensity-3 { fill: #10b981; }
.ps-heatmap-rect.intensity-4 { fill: #6ee7b7; }

.ps-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 10px;
    color: var(--ps-text-faint);
    justify-content: flex-end;
}
.ps-heatmap-cell {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.ps-heatmap-cell.intensity-0 { background: rgba(255, 255, 255, 0.04); }
.ps-heatmap-cell.intensity-1 { background: #064e3b; }
.ps-heatmap-cell.intensity-2 { background: #047857; }
.ps-heatmap-cell.intensity-3 { background: #10b981; }
.ps-heatmap-cell.intensity-4 { background: #6ee7b7; }

/* Share CTA (button on dashboard) */
.ps-share-cta {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(14, 165, 233, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--ps-radius);
    padding: 14px 16px;
    margin: 16px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.15s ease;
    color: inherit;
    font: inherit;
    text-align: left;
}
.ps-share-cta:hover { transform: translateY(-1px); border-color: rgba(16, 185, 129, 0.5); }
.ps-share-cta.hidden { display: none; }
.ps-share-cta-icon { font-size: 28px; flex: 0 0 auto; }
.ps-share-cta-text { flex: 1; min-width: 0; }
.ps-share-cta-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ps-text);
    margin-bottom: 2px;
}
.ps-share-cta-sub { font-size: 12px; color: var(--ps-text-muted); }

/* Share modal */
.ps-share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 14, 0.92);
    backdrop-filter: blur(10px);
    z-index: 280;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ps-share-overlay.show { opacity: 1; pointer-events: auto; }
.ps-share-card {
    position: relative;
    background: var(--ps-bg-elev);
    border: 1px solid var(--ps-border-strong);
    border-radius: var(--ps-radius-lg);
    padding: 28px 22px 22px;
    max-width: 460px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    transform: scale(0.94);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ps-share-overlay.show .ps-share-card { transform: scale(1); }
.ps-share-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ps-text);
    margin: 0 0 6px;
}
.ps-share-sub {
    font-size: 13px;
    color: var(--ps-text-muted);
    margin: 0 0 18px;
}
.ps-share-preview {
    width: 100%;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #050A0E;
    aspect-ratio: 1 / 1;
}
.ps-share-preview canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.ps-share-text {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ps-border);
    border-radius: 10px;
    color: var(--ps-text);
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 14px;
}
.ps-share-text:focus { border-color: var(--ps-emerald); outline: none; }
.ps-share-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.ps-share-btn {
    -webkit-tap-highlight-color: transparent;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ps-border);
    border-radius: 10px;
    color: var(--ps-text);
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.ps-share-btn:hover {
    border-color: var(--ps-border-strong);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.ps-share-btn i { font-size: 16px; }
.ps-share-twitter:hover { border-color: rgba(56, 189, 248, 0.4); color: #38bdf8; }
.ps-share-linkedin:hover { border-color: rgba(2, 119, 189, 0.5); color: #0ea5e9; }
.ps-share-copy:hover, .ps-share-download:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--ps-emerald);
}
.ps-share-feedback {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--ps-emerald);
    text-align: center;
    min-height: 16px;
}

/* Streak danger modal */
.ps-danger-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 14, 0.94);
    backdrop-filter: blur(10px);
    z-index: 290;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ps-danger-overlay.show { opacity: 1; pointer-events: auto; }
.ps-danger-card {
    position: relative;
    background: var(--ps-bg-elev);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--ps-radius-lg);
    padding: 32px 22px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    transform: scale(0.94);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ps-danger-overlay.show .ps-danger-card { transform: scale(1); }
.ps-danger-flame {
    font-size: 48px;
    margin: 0 0 10px;
    animation: ps-shake 1.6s ease-in-out infinite;
    display: inline-block;
    transform-origin: center bottom;
}
@keyframes ps-shake {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}
.ps-danger-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ps-text);
    margin: 0 0 8px;
    line-height: 1.25;
}
.ps-danger-sub {
    font-size: 13px;
    color: var(--ps-text-muted);
    line-height: 1.5;
    margin: 0 0 20px;
}
.ps-danger-actions { display: flex; flex-direction: column; gap: 8px; }
.ps-danger-btn-primary,
.ps-danger-btn-secondary,
.ps-danger-btn-text {
    -webkit-tap-highlight-color: transparent;
    border: 0;
    border-radius: 12px;
    padding: 13px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.ps-danger-btn-primary {
    background: var(--ps-emerald);
    color: var(--ps-bg);
    box-shadow: 0 6px 20px var(--ps-emerald-glow);
}
.ps-danger-btn-primary:hover { background: var(--ps-emerald-dim); transform: translateY(-1px); }
.ps-danger-btn-secondary {
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.ps-danger-btn-secondary:hover { background: rgba(56, 189, 248, 0.18); border-color: rgba(56, 189, 248, 0.5); }
.ps-danger-btn-secondary:disabled { opacity: 0.5; cursor: wait; }
.ps-danger-btn-text {
    background: transparent;
    color: var(--ps-text-faint);
    font-weight: 500;
}
.ps-danger-btn-text:hover { color: var(--ps-text-muted); }
.ps-danger-note {
    font-size: 12px;
    color: var(--ps-text-faint);
    font-style: italic;
    margin: 0;
    padding: 8px 4px;
}
.ps-danger-feedback {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--ps-emerald);
    min-height: 16px;
}

/* Auth pill (when authenticated, replaces save CTA) */
.ps-auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--ps-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================================
   SPRINT 4 - Live Session Tracking
   =========================================== */

/* Big "Start a call" CTA on the dashboard */
.ps-start-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}
.ps-start-call-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 12px 40px -12px rgba(16, 185, 129, 0.6);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    text-align: left;
}
.ps-start-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px -12px rgba(16, 185, 129, 0.75);
}
.ps-start-call-btn:active {
    transform: translateY(0);
}
.ps-start-call-icon {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 28px;
}
.ps-start-call-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: ps-pulse 2s ease-out infinite;
}
@keyframes ps-pulse {
    0%   { transform: scale(0.95); opacity: 0.9; }
    100% { transform: scale(1.35); opacity: 0; }
}
.ps-start-call-text { display: flex; flex-direction: column; gap: 4px; }
.ps-start-call-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ps-start-call-sub { font-size: 13px; opacity: 0.85; line-height: 1.4; }

/* Quick-tap toggle (secondary action) */
.ps-quick-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease;
}
.ps-quick-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}
.ps-quick-toggle-caret {
    margin-left: auto;
    transition: transform 0.2s ease;
}
.ps-quick-toggle[aria-expanded="true"] .ps-quick-toggle-caret {
    transform: rotate(180deg);
}

/* Tracker collapsed by default in Sprint 4 ; opens on toggle */
.ps-tracker-collapsed {
    display: none;
}
.ps-tracker-collapsed.open {
    display: block;
}

/* ===========================================
   Live Session Modal (full-screen)
   =========================================== */

.ps-live-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: stretch;
    justify-content: center;
}
.ps-live-modal.show {
    display: flex;
    animation: ps-modal-fade 0.2s ease-out;
}
@keyframes ps-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ps-live-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.92);
    backdrop-filter: blur(8px);
}
.ps-live-panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: auto;
    padding: 28px;
    background: linear-gradient(180deg, #0a1018 0%, #050a10 100%);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 24px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #f1f5f9;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}
@media (min-width: 720px) {
    .ps-live-panel {
        margin: 5vh auto;
    }
}

.ps-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ps-live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ps-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: ps-blink 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}
@keyframes ps-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.ps-live-timer {
    font-family: 'Inter', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.ps-live-close-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 18px;
}
.ps-live-close-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fff;
}

.ps-live-counters {
    min-height: 28px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.ps-live-counters-total {
    color: #10B981;
    font-weight: 600;
}

.ps-live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 720px) {
    .ps-live-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.ps-live-evbtn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px 18px;
    min-height: 116px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.ps-live-evbtn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}
.ps-live-evbtn:active {
    transform: scale(0.98);
}
.ps-live-evbtn-icon {
    font-size: 28px;
    color: #10B981;
}
.ps-live-evbtn-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}
.ps-live-evbtn-count {
    position: absolute;
    top: 10px;
    right: 12px;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ps-live-evbtn-count.has-events {
    background: #10B981;
    color: #fff;
}
.ps-live-evbtn.flash {
    animation: ps-live-flash 0.45s ease-out;
}
@keyframes ps-live-flash {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    50%  { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ps-live-footer {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ps-live-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.ps-live-end-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* Undo toast inside the live modal */
.ps-live-undo {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
    color: #f1f5f9;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ps-live-undo.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.ps-live-undo-btn {
    background: transparent;
    border: 0;
    color: #10B981;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.ps-live-undo-btn:hover { text-decoration: underline; }

/* ===========================================
   Sub-modals (objection picker + outcome picker)
   =========================================== */

.ps-objection-picker {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 16px;
}
.ps-objection-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.85);
    backdrop-filter: blur(6px);
}
.ps-objection-picker-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #0a1018;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 18px;
    padding: 24px;
    color: #f1f5f9;
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.6);
}
.ps-objection-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.ps-objection-picker-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}
.ps-objection-picker-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
}
.ps-objection-picker-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.ps-objection-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.ps-objection-picker-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ps-objection-picker-btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}
.ps-objection-picker-btn i {
    font-size: 20px;
    color: #10B981;
}

/* Outcome picker variants */
.ps-outcome-panel { max-width: 560px; }
.ps-outcome-hint {
    margin: -8px 0 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}
.ps-outcome-btn {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
}
.ps-outcome-btn span:first-of-type {
    font-weight: 600;
}
.ps-outcome-xp {
    font-size: 11px !important;
    color: rgba(16, 185, 129, 0.8) !important;
    font-weight: 700;
}
.ps-outcome-btn.suggested {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
}
.ps-outcome-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #10B981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 9px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================================
   Post-call Recap Modal
   =========================================== */

.ps-recap-modal {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ps-recap-modal.show {
    display: flex;
    animation: ps-modal-fade 0.2s ease-out;
}
.ps-recap-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.92);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.ps-recap-panel {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: linear-gradient(180deg, #0a1018 0%, #050a10 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    padding: 28px;
    color: #f1f5f9;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ps-recap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ps-recap-outcome {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ps-recap-outcome-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    font-size: 24px;
}
.ps-recap-outcome-label {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.ps-recap-outcome-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}
.ps-recap-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.ps-recap-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.ps-recap-body { display: flex; flex-direction: column; gap: 14px; }
.ps-recap-section-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}
.ps-recap-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.5;
}
.ps-recap-empty i {
    font-size: 36px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.ps-recap-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ps-recap-event {
    display: grid;
    grid-template-columns: 56px 36px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.ps-recap-event-time {
    font-family: 'Inter', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}
.ps-recap-event-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    font-size: 16px;
}
.ps-recap-event-objection .ps-recap-event-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}
.ps-recap-event-buying_signal .ps-recap-event-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
.ps-recap-event-next_step .ps-recap-event-icon {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
}
.ps-recap-event-quick_note .ps-recap-event-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}
.ps-recap-event-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ps-recap-event-label {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}
.ps-recap-event-detail {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CTA footer */
.ps-recap-cta {
    margin-top: 8px;
    padding: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ps-recap-cta-objection {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.ps-recap-cta-light {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ps-recap-cta-save {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.35);
}
.ps-recap-cta-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #10B981;
    font-size: 22px;
    flex-shrink: 0;
}
.ps-recap-cta-save .ps-recap-cta-icon { color: #818cf8; }
.ps-recap-cta-text {
    flex: 1;
    min-width: 200px;
}
.ps-recap-cta-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}
.ps-recap-cta-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}
.ps-recap-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #10B981;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.ps-recap-cta-save .ps-recap-cta-btn { background: #6366f1; }
.ps-recap-cta-btn:hover {
    transform: translateY(-2px);
    background: #059669;
}
.ps-recap-cta-save .ps-recap-cta-btn:hover { background: #4f46e5; }
.ps-recap-close-btn-secondary {
    margin-left: auto;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.ps-recap-close-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* ===========================================
   Top Objections Widget (dashboard)
   =========================================== */

.ps-top-objections {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(20, 184, 166, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 18px;
}
.ps-top-objections.hidden { display: none; }
.ps-top-objections-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.ps-top-objections-header > i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    border-radius: 12px;
    font-size: 20px;
}
.ps-top-objections-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}
.ps-top-objections-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}
.ps-top-objections-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ps-top-objection-row {
    display: grid;
    grid-template-columns: 28px 110px 1fr 36px;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
}
.ps-top-objection-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #10B981;
    font-size: 16px;
}
.ps-top-objection-label {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}
.ps-top-objection-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}
.ps-top-objection-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #10B981, #14b8a6);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.ps-top-objection-count {
    font-family: 'Inter', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 700;
    color: #10B981;
    text-align: right;
}
.ps-top-objections-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}
.ps-top-objections-cta:hover {
    background: #10B981;
    color: #fff;
}
.ps-top-objections-cta i:last-child {
    margin-left: 4px;
}

/* Reduced motion: kill all looping animations */
@media (prefers-reduced-motion: reduce) {
    .ps-start-call-pulse,
    .ps-live-dot {
        animation: none;
    }
    .ps-live-evbtn:hover,
    .ps-recap-cta-btn:hover,
    .ps-start-call-btn:hover {
        transform: none;
    }
}

/* ===========================================
   SPRINT 4.1 - UX REFONTE
   Goals: clear hierarchy, hero compact, primary CTA above the fold,
   2-col desktop, onboarding for new users, thin sticky save banner.
   =========================================== */

/* --- Save streak banner (thin, sticky on top) --- */
.ps-save-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: -16px -16px 16px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(59, 130, 246, 0.12));
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
    color: #e0e7ff;
    font-size: 13px;
}
.ps-save-banner.hidden { display: none; }
.ps-save-banner-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-size: 14px;
}
.ps-save-banner-text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}
.ps-save-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #6366f1;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.ps-save-banner-btn:hover { background: #4f46e5; }

/* --- Hero v2: compact intro + fused stat card --- */
.ps-hero-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.ps-hero-intro {
    text-align: center;
    padding: 16px 0 4px;
}
.ps-hero-intro .ps-hero-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
}
.ps-hero-title-v2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #f1f5f9;
    margin: 0;
}
@media (min-width: 768px) {
    .ps-hero-title-v2 { font-size: 30px; }
}

/* --- Stat card (streak + level + xp + day stats fused) --- */
.ps-statcard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(20, 184, 166, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 18px;
}
.ps-statcard-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ps-statcard-streak {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ps-statcard-streak-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}
.ps-statcard-streak-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.ps-statcard-xp { display: flex; flex-direction: column; gap: 6px; }
.ps-statcard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ps-statcard-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.ps-statcard-stat-value {
    font-family: 'Inter', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 22px;
    font-weight: 700;
    color: #10B981;
    line-height: 1;
}
.ps-statcard-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ps-statcard-stat-bar {
    width: 100%;
    height: 4px;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    display: block;
}
.ps-statcard-stat-bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10B981, #14b8a6);
    transition: width 0.4s ease;
}

/* Layout side-by-side on desktop */
@media (min-width: 768px) {
    .ps-statcard {
        grid-template-columns: minmax(180px, 1fr) 1.4fr;
        align-items: center;
    }
    .ps-statcard-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        grid-row: span 2;
        padding-right: 18px;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .ps-statcard-xp {
        grid-column: 2;
        grid-row: 1;
    }
    .ps-statcard-stats {
        grid-column: 2;
        grid-row: 2;
        padding-top: 0;
        border-top: 0;
    }
}

/* --- Onboarding (3 steps, only for new users) --- */
.ps-onboarding {
    margin: 0 0 24px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 18px;
}
.ps-onboarding.hidden { display: none; }
.ps-onboarding-header {
    text-align: center;
    margin-bottom: 18px;
}
.ps-onboarding-eyebrow {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.ps-onboarding-title {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
    letter-spacing: -0.01em;
}
.ps-onboarding-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 768px) {
    .ps-onboarding-steps { grid-template-columns: repeat(3, 1fr); }
}
.ps-onboarding-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .ps-onboarding-step {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
        padding: 18px;
    }
}
.ps-onboarding-step-num {
    position: absolute;
    top: 8px;
    right: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.18);
    line-height: 1;
}
.ps-onboarding-step-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    font-size: 18px;
}
.ps-onboarding-step-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ps-onboarding-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}
.ps-onboarding-step-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* --- Primary CTA (massive button) --- */
.ps-start-section-v2 { margin: 0 0 24px; }
.ps-start-call-btn-v2 {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 16px 50px -12px rgba(16, 185, 129, 0.55);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    text-align: left;
}
.ps-start-call-btn-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px -12px rgba(16, 185, 129, 0.7);
}
.ps-start-call-btn-v2:active { transform: translateY(0); }
.ps-start-call-btn-v2 .ps-start-call-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ps-start-call-btn-v2 .ps-start-call-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.ps-start-call-btn-v2 .ps-start-call-sub { font-size: 13px; opacity: 0.85; line-height: 1.4; }
.ps-start-call-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 18px;
    transition: transform 0.15s ease;
}
.ps-start-call-btn-v2:hover .ps-start-call-arrow {
    transform: translateX(4px);
}

/* --- 2-column grid (desktop only) --- */
.ps-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .ps-grid-2col { grid-template-columns: 1fr 1fr; }
}

/* --- Mission card (already partly styled, just refresh padding) --- */
.ps-grid-2col .ps-mission {
    margin: 0;
    height: 100%;
}

/* --- Warmup v2 (compact 1-line on mobile, vertical on tight) --- */
.ps-warmup-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    height: 100%;
}
.ps-warmup-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    font-size: 22px;
}
.ps-warmup-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ps-warmup-v2 .ps-warmup-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}
.ps-warmup-v2 .ps-warmup-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
}
.ps-warmup-btn-v2 {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.ps-warmup-btn-v2:hover {
    background: #10B981;
    color: #fff;
}

/* --- Heatmap compact: smaller day labels, less padding --- */
.ps-heatmap-section { margin-bottom: 24px; }
.ps-heatmap-compact .ps-heatmap-card {
    padding: 16px;
}
.ps-heatmap-compact .ps-tracker-section-title {
    font-size: 13px;
    margin-bottom: 12px;
}
/* Override the giant LUN/MER/VEN labels (text in SVG) */
.ps-heatmap-compact .ps-heatmap-svg-wrap text {
    font-size: 9px !important;
    fill: rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
}

/* --- Goal editor: discreet footer link --- */
.ps-goal-footer {
    margin-top: 32px;
    padding: 16px 0 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ps-goal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}
.ps-goal-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
}
.ps-goal-link i:first-child { font-size: 14px; color: #10B981; }
.ps-goal-link i:last-child { font-size: 12px; opacity: 0.5; }
.ps-goal-link span strong,
.ps-goal-link span > span {
    color: #f1f5f9;
    font-weight: 700;
}
.ps-goal-controls {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.ps-goal-controls.hidden { display: none; }
.ps-goal-controls input {
    width: 70px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.ps-goal-controls input:focus {
    outline: none;
    border-color: #10B981;
}
.ps-goal-controls-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Hide deprecated styles from prior layout (defensive: in case
   localStorage / cached pages still try to display them) */
.ps-tracker-collapsed,
.ps-quick-toggle {
    display: none !important;
}
