﻿/* ================================================================= */
/* LAKAN ZEN DESIGN SYSTEM                                           */
/* Premium Brazilian Therapist SaaS — Zen Edition                    */
/* Bauhaus-inspired: Feature precedes design, design enhances feature */
/* ================================================================= */

/* -------------------------------------------------------------------------- */
/*                          1. DESIGN TOKENS                                  */
/* -------------------------------------------------------------------------- */

:root {
    --zen-primary: #3E6D66;
    --zen-primary-dark: #355e58;
    --zen-primary-light: rgba(62, 109, 102, 0.1);
    --zen-secondary: #D4AF37;
    --zen-secondary-light: rgba(212, 175, 55, 0.1);
    --zen-bg: #F9F7F2;
    --zen-surface: #FFFFFF;
    --zen-text: #333333;
    --zen-text-muted: #718096;
    --zen-border: #e5e7eb;
    --zen-shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --zen-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --zen-radius: 0.75rem;
    --zen-radius-lg: 1rem;
    --zen-radius-xl: 1.5rem;
    --zen-radius-2xl: 2rem;
    --zen-font-display: 'Playfair Display', 'Fraunces Variable', 'Noto Serif', serif;
    --zen-font-sans: 'Inter', 'Onest', 'Figtree', sans-serif;
    --zen-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* MudBlazor drawer override */
    --mud-drawer-mini-width-left: 72px;
}

/* -------------------------------------------------------------------------- */
/*                          2. BASE & SCROLLBAR                               */
/* -------------------------------------------------------------------------- */

.zen-dashboard {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: var(--zen-font-sans);
}

.zen-dashboard ::-webkit-scrollbar { width: 8px; }
.zen-dashboard ::-webkit-scrollbar-track { background: transparent; }
.zen-dashboard ::-webkit-scrollbar-thumb {
    background-color: rgba(62, 109, 102, 0.2);
    border-radius: 20px;
}

/* -------------------------------------------------------------------------- */
/*                        3. APPBAR GREEN HEADER                              */
/* -------------------------------------------------------------------------- */

.zen-appbar.mud-appbar {
    background: linear-gradient(135deg, var(--zen-primary) 0%, #345c56 100%) !important;
    color: white !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    height: 64px !important;
    padding: 0 1.25rem !important;
    margin-bottom: 0 !important;
    z-index: 1300 !important;
}

/* Icon buttons */
.zen-appbar-icon {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 10px !important;
    width: 38px !important;
    height: 38px !important;
}

.zen-appbar-icon:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    transform: scale(1.05);
}

.zen-appbar .mud-icon-button {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.zen-appbar .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Logo */
.zen-logo {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    margin-right: 1rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.zen-logo:hover {
    opacity: 0.85;
}

.zen-logo-img {
    height: 20px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zen-logo-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.4rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.zen-logo:hover .zen-logo-img {
    transform: scale(1.04);
}

/* Search bar */
.zen-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 420px;
    margin: 0 1.5rem;
    align-items: center;
}

.zen-search-wrapper input[type="text"],
.zen-search-wrapper .mud-input-slot {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    font-size: 0.8125rem !important;
    font-family: var(--zen-font-body) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    height: 38px;
}

.zen-search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.zen-search-wrapper input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

.zen-search-wrapper input:focus::placeholder {
    color: #999 !important;
}

.zen-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.zen-search-wrapper input:focus ~ .zen-search-icon,
.zen-search-wrapper:focus-within .zen-search-icon {
    color: var(--zen-primary) !important;
}

/* ─── Create / "Novo" Button ─────────────────────────────────────────────── */

.zen-create-menu .zen-create-btn.mud-button-filled {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-family: var(--zen-font-body) !important;
    font-size: 0.8125rem !important;
    padding: 0.375rem 0.875rem !important;
    height: 38px !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    box-shadow: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    gap: 0.25rem !important;
}

.zen-create-menu .zen-create-btn.mud-button-filled:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.zen-create-icon {
    font-size: 1.125rem !important;
    margin-right: 0.125rem;
}

.zen-create-btn .mud-icon-root {
    font-size: 1.125rem !important;
    transition: transform 0.2s ease !important;
    margin-left: -0.125rem !important;
}

.zen-create-btn:hover .mud-icon-root {
    transform: rotate(180deg);
}

/* Create dropdown popover */
.zen-create-popover {
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid var(--zen-border) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
    animation: zenDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.zen-create-popover .mud-list {
    padding: 0 !important;
}

.zen-create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 8px;
    min-width: 340px;
}

.zen-create-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
}

.zen-create-option:hover {
    background: var(--zen-hover, rgba(62, 109, 102, 0.06));
}

.zen-create-option:active {
    transform: scale(0.97);
}

.zen-create-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.zen-create-option-icon .material-symbols-outlined {
    font-size: 1.375rem;
}

.zen-create-option:hover .zen-create-option-icon {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.zen-create-option-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text, #1a1a1a);
    font-family: var(--zen-font-body);
}

.zen-create-option-desc {
    font-size: 0.6875rem;
    color: var(--zen-text-muted, #888);
    font-family: var(--zen-font-body);
    line-height: 1.3;
}

/* Notification button */
.zen-notif-btn {
    position: relative !important;
}

.zen-notif-btn:hover {
    animation: zenBellShake 0.5s ease-in-out;
}

@keyframes zenBellShake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
}

/* Header notification badge */
.zen-notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--zen-primary);
}

/* Header divider */
.zen-header-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 0.375rem;
    border-radius: 1px;
}

/* ─── Account Menu ────────────────────────────────────────────────────────── */

.zen-account-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.25rem 0.625rem 0.25rem 0.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    height: 38px;
}

.zen-account-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.zen-account-avatar.mud-avatar {
    background: rgba(255, 255, 255, 0.18) !important;
    color: white !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
}

.zen-account-trigger:hover .zen-account-avatar.mud-avatar {
    background: rgba(255, 255, 255, 0.28) !important;
}

.zen-account-name {
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--zen-font-body);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zen-account-chevron {
    font-size: 1.125rem !important;
    opacity: 0.6;
    transition: transform 0.2s ease !important;
}

.zen-account-menu:has(.mud-popover-open) .zen-account-chevron {
    transform: rotate(180deg);
}

/* Account popover dropdown */
.zen-account-popover {
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid var(--zen-border) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
    min-width: 220px !important;
    animation: zenDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.zen-account-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.zen-account-header-avatar.mud-avatar {
    background: linear-gradient(135deg, var(--zen-primary) 0%, #4a8a80 100%) !important;
    color: white !important;
}

.zen-account-header-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zen-text, #1a1a1a);
    font-family: var(--zen-font-body);
}

.zen-account-header-email {
    font-size: 0.75rem;
    color: var(--zen-text-muted, #888);
    font-family: var(--zen-font-body);
}

.zen-logout-item:hover {
    background-color: rgba(239, 68, 68, 0.06) !important;
}

/* ─── Dropdown Animations ─────────────────────────────────────────────────── */

@keyframes zenDropIn {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* -------------------------------------------------------------------------- */
/*                           4. SIDEBAR                                       */
/* -------------------------------------------------------------------------- */

.zen-sidebar.mud-drawer {
    background-color: var(--zen-surface) !important;
    border-right: 1px solid var(--zen-border) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    top: 0 !important;
    height: 100% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Open state — subtle depth */
.zen-sidebar.mud-drawer--open.mud-drawer {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04) !important;
}

/* Overlay backdrop */
.zen-sidebar ~ .mud-overlay {
    transition: opacity 0.3s ease !important;
}

.zen-sidebar .mud-navmenu {
    padding: 0;
}

/* -------------------------------------------------------------------------- */
/*                          5. HERO BANNER                                    */
/* -------------------------------------------------------------------------- */

.zen-hero {
    position: relative;
    width: 100%;
    border-radius: var(--zen-radius-2xl);
    overflow: hidden;
    background: var(--zen-primary);
    color: white;
    box-shadow: var(--zen-shadow-hover);
}

.zen-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.08;
    pointer-events: none;
}

.zen-hero-gradient {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 33%;
    background: linear-gradient(to left, var(--zen-primary-dark), transparent);
    pointer-events: none;
}

.zen-hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    padding: 2rem 2.5rem;
    align-items: center;
}

.zen-hero-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.85;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.zen-hero-title {
    font-family: var(--zen-font-display);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.zen-hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

.zen-hero-subtitle strong {
    color: white;
    font-weight: 600;
}

/* Quote */
.zen-hero-quote {
    text-align: right;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 2rem;
}

.zen-hero-quote-icon {
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.08);
}

.zen-hero-quote blockquote {
    font-family: var(--zen-font-display);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.zen-hero-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

/* -------------------------------------------------------------------------- */
/*                        6. QUICK ACTIONS                                    */
/* -------------------------------------------------------------------------- */

.zen-section-title {
    font-family: var(--zen-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.zen-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.zen-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--zen-surface);
    border: 2px solid var(--zen-border);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    cursor: pointer;
    transition: var(--zen-transition);
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.zen-action-card:hover {
    border-color: var(--zen-primary);
    box-shadow: var(--zen-shadow-hover);
    transform: translateY(-3px);
}

.zen-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zen-action-card:hover .zen-action-icon {
    transform: rotate(12deg) scale(1.05);
}

.zen-action-icon.blue { background: #eff6ff; }
.zen-action-icon.amber { background: #fffbeb; }
.zen-action-icon.indigo { background: #eef2ff; }
.zen-action-icon.purple { background: #faf5ff; }

.zen-action-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a202c;
    transition: color 0.2s;
}

.zen-action-card:hover .zen-action-title.text-primary { color: var(--zen-primary) !important; }
.zen-action-card:hover .zen-action-title.text-secondary { color: var(--zen-secondary) !important; }
.zen-action-card:hover .zen-action-title.text-blue { color: #4f46e5 !important; }
.zen-action-card:hover .zen-action-title.text-purple { color: #9333ea !important; }

.zen-action-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    margin-top: 0.125rem;
}

/* -------------------------------------------------------------------------- */
/*                         7. MAIN CONTENT GRID                               */
/* -------------------------------------------------------------------------- */

.zen-main-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 2rem;
}

.zen-card {
    background: var(--zen-surface);
    border-radius: var(--zen-radius-2xl);
    padding: 2rem;
    box-shadow: var(--zen-shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* -------------------------------------------------------------------------- */
/*                        8. AGENDA / TIMELINE                                */
/* -------------------------------------------------------------------------- */

.zen-agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.zen-agenda-title {
    font-family: var(--zen-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.zen-agenda-subtitle {
    font-size: 0.875rem;
    color: var(--zen-text-muted);
    margin: 0.25rem 0 0;
}

.zen-agenda-nav {
    display: flex;
    gap: 0.375rem;
}

.zen-agenda-nav button {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #9ca3af;
    transition: var(--zen-transition);
    display: flex;
    align-items: center;
}

.zen-agenda-nav button:hover {
    background: #f3f4f6;
    color: var(--zen-primary);
}

/* Timeline */
.zen-timeline {
    position: relative;
    padding-left: 2rem;
    margin-left: 1rem;
}

.zen-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-left: 2px dashed #e5e7eb;
}

.zen-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.zen-timeline-item:last-child {
    padding-bottom: 0;
}

/* Timeline dots */
.zen-timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: 0.375rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #f3f4f6;
    z-index: 10;
    transition: border-color 0.3s;
}

.zen-timeline-item:hover .zen-timeline-dot:not(.active):not(.upcoming) {
    border-color: var(--zen-primary);
}

.zen-timeline-dot.active {
    width: 20px;
    height: 20px;
    left: -2.65rem;
    top: 0;
    border: 4px solid white;
    background: var(--zen-secondary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25),
                0 2px 8px rgba(0, 0, 0, 0.1);
    animation: zen-dot-glow 3s ease-in-out infinite;
}

@keyframes zen-dot-glow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 2px 12px rgba(0, 0, 0, 0.12); }
}

.zen-timeline-dot.upcoming {
    border-color: var(--zen-primary);
    background: white;
}

/* Past event row */
.zen-event-past {
    opacity: 0.55;
    transition: opacity 0.3s;
}

.zen-event-past:hover {
    opacity: 1;
}

.zen-event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zen-event-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.zen-event-time {
    width: 55px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    padding-top: 0.125rem;
    flex-shrink: 0;
}

.zen-event-time.primary {
    color: var(--zen-primary);
    font-weight: 600;
}

.zen-event-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a202c;
    margin: 0;
}

.zen-event-detail {
    font-size: 0.875rem;
    color: var(--zen-text-muted);
    margin: 0.125rem 0 0;
}

.zen-event-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #6b7280;
}

/* -------------------------------------------------------------------------- */
/*                     9. CURRENT SESSION HIGHLIGHT                           */
/* -------------------------------------------------------------------------- */

.zen-current-session {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 70%);
    padding: 1.5rem;
    border-radius: var(--zen-radius-lg);
    border: 1px solid #fde68a;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
    position: relative;
    overflow: hidden;
    margin-top: -0.75rem;
    transition: box-shadow 0.3s;
}

.zen-current-session:hover {
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

.zen-current-session-watermark {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    opacity: 0.07;
}

.zen-current-session-watermark .mud-icon-root {
    font-size: 5rem !important;
    color: var(--zen-secondary);
}

.zen-current-session-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.zen-current-session-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.zen-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--zen-radius);
    padding: 0.625rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    min-width: 70px;
}

.zen-time-box-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--zen-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.zen-time-box-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
}

.zen-current-patient-name {
    font-family: var(--zen-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zen-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: zen-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes zen-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.zen-current-session-detail {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0.25rem 0 0;
}

.zen-session-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.zen-session-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
}

.zen-session-tag .mud-icon-root {
    font-size: 0.875rem !important;
}

/* Action buttons */
.zen-current-session-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.zen-btn-outline {
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: var(--zen-transition);
    white-space: nowrap;
}

.zen-btn-outline:hover {
    background: #f9fafb;
    border-color: var(--zen-primary);
    color: var(--zen-primary);
}

.zen-btn-primary {
    padding: 0.625rem 1.5rem;
    background: var(--zen-primary);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(62, 109, 102, 0.3);
    transition: var(--zen-transition);
    white-space: nowrap;
}

.zen-btn-primary:hover {
    background: var(--zen-primary-dark);
    box-shadow: 0 4px 16px rgba(62, 109, 102, 0.4);
    transform: translateY(-1px);
}

.zen-btn-primary .mud-icon-root {
    font-size: 1.125rem !important;
}

/* ── CTA Shimmer + Icon/Label Hover ── */

.zen-cta-shimmer {
    position: relative;
    overflow: hidden;
    border-radius: 0.625rem;
    font-family: var(--zen-font-sans);
    letter-spacing: 0.01em;
}

/* Shimmer sweep — only on hover */
.zen-cta-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    pointer-events: none;
    transition: none;
}

.zen-cta-shimmer:hover::before {
    animation: zen-cta-sweep 0.6s ease-out forwards;
}

/* Icon — 90° clockwise on hover */
.zen-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zen-cta-shimmer:hover .zen-cta-icon {
    transform: rotate(90deg);
}

/* Label — slide up out, reappear from bottom, re-center */
.zen-cta-label {
    display: inline-block;
    position: relative;
}

.zen-cta-shimmer:hover .zen-cta-label {
    animation: zen-cta-text-flip 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zen-cta-sweep {
    0%   { left: -100%; }
    100% { left: 160%; }
}

@keyframes zen-cta-text-flip {
    0%   { transform: translateY(0);    opacity: 1; }
    30%  { transform: translateY(-110%); opacity: 0; }
    31%  { transform: translateY(110%);  opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

/* Future events */
.zen-future-event {
    padding: 0.75rem;
    margin: -0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    cursor: pointer;
}

.zen-future-event:hover {
    background: #f9fafb;
}

.zen-more-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
    display: flex;
}

.zen-more-btn:hover {
    color: var(--zen-primary);
}

/* -------------------------------------------------------------------------- */
/*                       10. REMINDER CARD                                    */
/* -------------------------------------------------------------------------- */

.zen-reminder {
    background: linear-gradient(135deg, #eef2ff 0%, #e8ecff 100%);
    border-radius: var(--zen-radius-2xl);
    padding: 1.5rem;
    border: 1px solid #c7d2fe;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.zen-reminder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.zen-reminder-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.zen-reminder-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zen-reminder-icon .mud-icon-root {
    font-size: 1rem !important;
    color: #4338ca;
}

.zen-reminder-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #312e81;
    margin: 0;
}

.zen-reminder-text {
    font-size: 0.875rem;
    color: #4338ca;
    line-height: 1.5;
    margin: 0.25rem 0 0;
}

.zen-reminder-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.zen-reminder-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4f46e5;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: var(--zen-transition);
}

.zen-reminder-btn:hover {
    color: #312e81;
    background: rgba(99, 102, 241, 0.08);
}

/* -------------------------------------------------------------------------- */
/*                       11. PERFORMANCE CARD                                 */
/* -------------------------------------------------------------------------- */

.zen-perf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.zen-perf-title {
    font-family: var(--zen-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.zen-perf-link {
    font-size: 0.75rem;
    color: var(--zen-primary);
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.zen-perf-link:hover {
    text-decoration: underline;
    color: var(--zen-primary-dark);
}

.zen-stat-group {
    margin-bottom: 1.5rem;
}

.zen-stat-group:last-of-type {
    margin-bottom: 0;
}

.zen-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.zen-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.zen-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}

.zen-stat-change {
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

.zen-stat-change.positive { color: #16a34a; }
.zen-stat-change.negative { color: #ef4444; }
.zen-stat-change.neutral { color: #9ca3af; }

.zen-progress-track {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
}

.zen-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.zen-progress-bar.primary { background: var(--zen-primary); }
.zen-progress-bar.secondary { background: var(--zen-secondary); }

.zen-perf-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 1.5rem 0;
}

.zen-billing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zen-billing-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.zen-billing-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0.25rem 0 0;
}

.zen-billing-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.zen-billing-icon:hover {
    transform: rotate(12deg);
}

.zen-billing-icon .mud-icon-root {
    color: #16a34a;
    font-size: 1.25rem !important;
}

/* -------------------------------------------------------------------------- */
/*                     11b. PAGE HEADER (Reusable)                            */
/* -------------------------------------------------------------------------- */

.zen-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.zen-page-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.zen-page-header-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--zen-radius-lg);
    background: var(--zen-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zen-page-header:hover .zen-page-header-icon {
    transform: scale(1.05);
}

.zen-page-title {
    font-family: var(--zen-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zen-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.zen-page-subtitle {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin: 0.25rem 0 0;
}

.zen-page-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Page Header: Prefix avatar --- */
.zen-page-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--zen-primary-light);
}

.zen-page-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.zen-page-header-avatar-initials {
    font-family: var(--zen-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--zen-primary);
    line-height: 1;
}

/* --- Page Header: Rich subtitle (meta row) --- */
.zen-page-subtitle-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-top: 0.125rem;
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
}

.zen-page-subtitle-meta .zen-meta-sep {
    opacity: 0.4;
}

/* -------------------------------------------------------------------------- */
/*                     11c. QUICK STATS ROW (Patient List)                    */
/* -------------------------------------------------------------------------- */

.zen-pl-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zen-pl-stat-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--zen-surface);
    border-radius: var(--zen-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--zen-shadow-soft);
    transition: var(--zen-transition);
}

.zen-pl-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--zen-shadow-hover);
}

.zen-pl-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--zen-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zen-pl-stat-icon.primary { background: var(--zen-primary-light); }
.zen-pl-stat-icon.emerald { background: rgba(16, 185, 129, 0.1); }
.zen-pl-stat-icon.amber   { background: rgba(245, 158, 11, 0.1); }
.zen-pl-stat-icon.muted   { background: rgba(113, 128, 150, 0.1); }

.zen-pl-stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.zen-pl-stat-value {
    font-family: var(--zen-font-sans);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--zen-text);
    line-height: 1;
}

.zen-pl-stat-label {
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------------- */
/*                    11b-2. HEADER BACK BUTTON                               */
/* -------------------------------------------------------------------------- */

.zen-header-back {
    width: 40px;
    height: 40px;
    border-radius: var(--zen-radius);
    border: 1px solid var(--zen-border);
    background: var(--zen-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--zen-transition);
    flex-shrink: 0;
}

.zen-header-back:hover {
    background: var(--zen-primary-light);
    border-color: var(--zen-primary);
}

/* -------------------------------------------------------------------------- */
/*                    11b-3. HEADER SEARCH                                    */
/* -------------------------------------------------------------------------- */

.zen-header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 40px;
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius);
    background: var(--zen-surface);
    min-width: 220px;
    transition: var(--zen-transition);
}

.zen-header-search:focus-within {
    border-color: var(--zen-primary);
    box-shadow: 0 0 0 3px var(--zen-primary-light);
}

.zen-header-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    font-family: var(--zen-font-sans);
    color: var(--zen-text);
    width: 100%;
}

.zen-header-search-input::placeholder {
    color: var(--zen-text-muted);
}

/* -------------------------------------------------------------------------- */
/*                    11b-4. CTA OUTLINE BUTTON                               */
/* -------------------------------------------------------------------------- */

.zen-btn-cta-outline {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 2px solid var(--zen-primary);
    border-radius: 0.5rem;
    color: var(--zen-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--zen-transition);
    white-space: nowrap;
}

.zen-btn-cta-outline:hover {
    background: var(--zen-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(62, 109, 102, 0.3);
    transform: translateY(-1px);
}

.zen-btn-cta-outline .mud-icon-root {
    font-size: 1.125rem !important;
}

/* -------------------------------------------------------------------------- */
/*                    11b-5. QUICK INSIGHTS CARD                              */
/* -------------------------------------------------------------------------- */

.zen-insights-card {
    background: var(--zen-surface);
    border-radius: var(--zen-radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--zen-shadow-soft);
    overflow: hidden;
    border-top: 3px solid var(--zen-primary);
}

.zen-insights-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.75rem 0;
    font-family: var(--zen-font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--zen-text);
}

.zen-insights-grid {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr auto 1fr;
    padding: 1.25rem 1.75rem 1.5rem;
    align-items: start;
}

.zen-insights-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
}

.zen-insights-col:first-child {
    padding-left: 0;
    align-items: center;
}

.zen-insights-col:last-child {
    padding-right: 0;
}

.zen-insights-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.zen-insights-col-label {
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--zen-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.zen-insights-divider {
    width: 1px;
    background: var(--zen-border);
    align-self: stretch;
    margin: 0 0.5rem;
}

/* Donut chart */
.zen-insights-donut-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zen-donut {
    width: 100%;
    height: 100%;
}

.zen-donut-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.zen-donut-value {
    font-family: var(--zen-font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zen-text);
    line-height: 1;
}

.zen-donut-label {
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    color: var(--zen-text-muted);
    font-weight: 500;
}

.zen-insights-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.zen-legend-item {
    font-family: var(--zen-font-sans);
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.zen-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bar rows */
.zen-insights-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}

.zen-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.zen-bar-label {
    font-family: var(--zen-font-sans);
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    min-width: 65px;
    font-weight: 500;
}

.zen-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.zen-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.zen-bar-fill.success { background: #10b981; }
.zen-bar-fill.danger  { background: #f59e0b; }
.zen-bar-fill.warning { background: #f59e0b; }

.zen-bar-value {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text);
    min-width: 24px;
    text-align: right;
}

/* Badge */
.zen-insights-badge {
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

.zen-insights-badge.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.zen-insights-badge.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.zen-insights-badge.danger  { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Summary column */
.zen-insights-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.zen-summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--zen-bg);
    border-radius: var(--zen-radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.zen-summary-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zen-summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.zen-summary-title {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text);
}

.zen-summary-desc {
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    color: var(--zen-text-muted);
}

.zen-summary-number {
    font-family: var(--zen-font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--zen-text);
}

.zen-summary-divider {
    height: 1px;
    background: var(--zen-border);
}

.zen-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.zen-summary-mini {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--zen-radius);
    background: var(--zen-surface);
}

.zen-summary-mini-label {
    font-family: var(--zen-font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zen-summary-mini-value {
    font-family: var(--zen-font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--zen-text);
    line-height: 1;
}

.zen-summary-mini-value.success { color: #10b981; }
.zen-summary-mini-value.danger  { color: #ef4444; }

/* -------------------------------------------------------------------------- */
/*                    11b-6. ACTIONS BAR                                       */
/* -------------------------------------------------------------------------- */

.zen-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.zen-actions-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.zen-actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/*                    11b-6b. RADIO FILTER PILLS                              */
/* -------------------------------------------------------------------------- */

.zen-filter-radio-group {
    display: flex;
    align-items: center;
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius);
    overflow: hidden;
    padding: 0.1875rem;
    gap: 0.125rem;
}

.zen-filter-radio {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: calc(var(--zen-radius) - 0.125rem);
    background: transparent;
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    cursor: pointer;
    transition: var(--zen-transition);
    white-space: nowrap;
}

.zen-filter-radio:hover {
    color: var(--zen-text);
    background: var(--zen-primary-light);
}

.zen-filter-radio.active {
    background: var(--zen-primary);
    color: white;
    box-shadow: 0 1px 3px rgba(62, 109, 102, 0.3);
}

.zen-filter-radio.active .zen-filter-radio-dot {
    border-color: rgba(255, 255, 255, 0.5);
}

.zen-filter-radio.active .zen-filter-radio-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.zen-filter-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zen-filter-radio-dot.all {
    background: var(--zen-primary);
}

.zen-filter-radio-dot.uptodate {
    background: #10b981;
}

.zen-filter-radio-dot.overdue {
    background: #f59e0b;
}

.zen-filter-radio-dot.archived {
    background: #9ca3af;
}

.zen-filter-radio-dot.pending {
    background: #f59e0b;
}

.zen-filter-radio-count {
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.06);
    color: var(--zen-text-muted);
    padding: 0.0625rem 0.375rem;
    border-radius: 999px;
    min-width: 1.125rem;
    text-align: center;
    line-height: 1.2;
    transition: var(--zen-transition);
}

/* -------------------------------------------------------------------------- */
/*                    11b-7. VIEW TOGGLE                                       */
/* -------------------------------------------------------------------------- */

.zen-view-toggle {
    display: flex;
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius);
    overflow: hidden;
    background: var(--zen-surface);
}

.zen-view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--zen-text-muted);
    transition: var(--zen-transition);
}

.zen-view-toggle-btn:not(:last-child) {
    border-right: 1px solid var(--zen-border);
}

.zen-view-toggle-btn:hover {
    background: var(--zen-primary-light);
    color: var(--zen-primary);
}

.zen-view-toggle-btn.active {
    background: var(--zen-primary);
    color: white;
}

.zen-view-toggle-btn.active:hover {
    background: var(--zen-primary-dark);
}

/* -------------------------------------------------------------------------- */
/*                    11b-8. PATIENT CARD GRID                                 */
/* -------------------------------------------------------------------------- */

.zen-patient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.zen-patient-card {
    background: var(--zen-surface);
    border-radius: var(--zen-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--zen-shadow-soft);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--zen-transition);
}

.zen-patient-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--zen-shadow-hover);
    border-color: var(--zen-primary);
}

.zen-patient-card.archived {
    opacity: 0.7;
}

.zen-patient-card.archived:hover {
    border-color: var(--zen-border);
}

/* Add patient card */
.zen-patient-card-add {
    border: 2px dashed var(--zen-border);
    background: transparent;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    font-family: var(--zen-font-sans);
}

.zen-patient-card-add:hover {
    border-color: var(--zen-primary);
    background: var(--zen-primary-light);
    box-shadow: none;
    transform: none;
}

.zen-patient-card-add-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.zen-patient-card-add-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--zen-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--zen-transition);
}

.zen-patient-card-add:hover .zen-patient-card-add-icon {
    transform: scale(1.1);
    background: rgba(62, 109, 102, 0.15);
}

.zen-patient-card-add-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zen-primary);
}

.zen-patient-card-add-hint {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
}

/* Card header — avatar + menu */
.zen-patient-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.zen-patient-card-menu {
    margin: -0.5rem -0.5rem 0 0;
}

/* Card body — name + detail */
.zen-patient-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.zen-patient-card-name {
    font-family: var(--zen-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zen-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zen-patient-card-name.archived {
    color: var(--zen-text-muted);
}

.zen-patient-card-detail {
    font-family: var(--zen-font-sans);
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.zen-patient-card-detail.muted {
    opacity: 0.7;
}

/* Card footer — billing + session count */
.zen-patient-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Skeleton layout helpers */
.zen-pl-skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.zen-pl-skeleton-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                     11d. DATA TABLE (Reusable)                             */
/* -------------------------------------------------------------------------- */

.zen-table-card {
    padding: 0 !important;
    overflow: hidden;
}

.zen-ios-surface {
    border-radius: var(--zen-radius-xl) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px -4px rgba(0, 0, 0, 0.06);
}

.zen-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    border-bottom: none;
    flex-wrap: wrap;
    background: var(--zen-surface);
}

.zen-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.zen-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.zen-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--zen-bg);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius);
    min-width: 280px;
    max-width: 360px;
    transition: var(--zen-transition);
}

.zen-search-box:focus-within {
    border-color: var(--zen-primary);
    box-shadow: 0 0 0 3px var(--zen-primary-light);
    background: var(--zen-surface);
}

.zen-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text);
    width: 100%;
}

.zen-search-input::placeholder {
    color: var(--zen-text-muted);
}

.zen-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--zen-text-muted);
    transition: color 0.15s;
    flex-shrink: 0;
}

.zen-search-clear:hover {
    color: var(--zen-text);
}

/* ── Active filter pills ── */

.zen-active-filters {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.zen-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: var(--zen-primary-light);
    color: var(--zen-primary);
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--zen-transition);
    border: none;
    white-space: nowrap;
}

.zen-filter-pill:hover {
    background: rgba(62, 109, 102, 0.18);
}

.zen-filter-clear-all {
    background: none;
    border: none;
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--zen-text-muted);
    cursor: pointer;
    padding: 0.25rem 0.375rem;
    transition: color 0.15s;
}

.zen-filter-clear-all:hover {
    color: #ef4444;
}

/* ── Filter dropdown ── */

.zen-table-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zen-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.zen-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--zen-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

.zen-filter-popover {
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid var(--zen-border) !important;
    margin-top: 8px;
    overflow: hidden;
    animation: zenDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zen-filter-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    min-width: 220px;
}

.zen-filter-menu-title {
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--zen-text-muted);
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--zen-border);
    margin-bottom: 0.25rem;
}

.zen-filter-option {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text);
    padding: 0.125rem 0;
    border-radius: 0.375rem;
    transition: background 0.15s;
}

.zen-filter-option:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ── MudTable zen overrides ── */

.zen-data-table {
    font-family: var(--zen-font-sans) !important;
}

.zen-data-table .mud-table-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(62, 109, 102, 0.2) transparent;
}

/* ── Table Head — iOS frosted / Bauhaus accent ── */

.zen-data-table .mud-table-head {
    position: relative;
}

.zen-data-table .mud-table-head .mud-table-cell {
    font-family: var(--zen-font-sans) !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--zen-primary) !important;
    background: linear-gradient(
        180deg,
        var(--zen-surface) 0%,
        rgba(62, 109, 102, 0.035) 100%
    ) !important;
    border-bottom: 2px solid var(--zen-primary) !important;
    padding: 0.9375rem 1.5rem !important;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.zen-data-table .mud-table-head .mud-table-cell:first-child {
    border-top-left-radius: 0;
}

.zen-data-table .mud-table-head .mud-table-cell:last-child {
    border-top-right-radius: 0;
}

/* Sort label styling */
.zen-data-table .mud-table-sort-label {
    color: var(--zen-primary) !important;
    font-size: 0.6875rem !important;
}

.zen-data-table .mud-table-sort-label .mud-icon-root {
    color: var(--zen-primary) !important;
    opacity: 0.5;
    font-size: 0.875rem !important;
    transition: opacity 0.2s;
}

.zen-data-table .mud-table-sort-label:hover .mud-icon-root {
    opacity: 1;
}

/* ── Table Body — iOS interactive rows ── */

.zen-data-table .mud-table-body .mud-table-row {
    transition: background 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

.zen-data-table .mud-table-body .mud-table-row:hover {
    background: rgba(62, 109, 102, 0.035) !important;
    box-shadow: inset 3px 0 0 var(--zen-primary);
}

.zen-data-table .mud-table-body .mud-table-cell {
    font-family: var(--zen-font-sans) !important;
    font-size: 0.8125rem;
    color: var(--zen-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    padding: 0.8125rem 1.5rem !important;
    vertical-align: middle;
}

/* Alternate row tinting (Bauhaus rhythm) */
.zen-data-table .mud-table-body .mud-table-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.012);
}

.zen-td-clickable {
    cursor: pointer;
}

/* ── Table footer ── */

.zen-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(
        180deg,
        rgba(62, 109, 102, 0.015) 0%,
        var(--zen-surface) 100%
    );
}

.zen-table-count {
    font-family: var(--zen-font-sans);
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    white-space: nowrap;
}

.zen-table-pager {
    font-family: var(--zen-font-sans) !important;
    font-size: 0.75rem;
    border-top: none !important;
}

/* ── Patient row cells ── */

.zen-patient-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.zen-patient-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--zen-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--zen-transition);
    position: relative;
}

.zen-patient-avatar:not(.archived) {
    border-color: rgba(62, 109, 102, 0.15);
}

.mud-table-row:hover .zen-patient-avatar:not(.archived) {
    border-color: var(--zen-primary);
}

.zen-patient-avatar.archived {
    opacity: 0.45;
    filter: grayscale(0.7);
}

.zen-avatar-img {
    border-radius: 50%;
    object-fit: cover;
}

.zen-avatar-initials {
    font-family: var(--zen-font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--zen-primary);
    line-height: 1;
    user-select: none;
}

.zen-patient-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.zen-patient-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--zen-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.mud-table-row:hover .zen-patient-name:not(.archived) {
    color: var(--zen-primary);
}

.zen-patient-name.archived {
    color: var(--zen-text-muted);
}

.zen-patient-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: var(--zen-text-muted);
}

.zen-cell-text {
    font-size: 0.8125rem;
    color: var(--zen-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 200px;
}

.zen-cell-text.archived {
    color: var(--zen-text-muted);
    opacity: 0.6;
}

.zen-cell-placeholder {
    color: var(--zen-text-muted);
    opacity: 0.4;
    font-size: 0.8125rem;
}

/* ── Session count ── */

.zen-session-count {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text);
}

/* ── Billing pills ── */

.zen-billing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--zen-transition);
}

.zen-billing-pill.success {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.zen-billing-pill.danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.zen-billing-pill.warning {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.zen-billing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zen-billing-dot.success {
    background: #22c55e;
    animation: zen-dot-pulse 2.5s ease-in-out infinite;
}

.zen-billing-dot.danger {
    background: #ef4444;
}

.zen-billing-dot.warning {
    background: #f59e0b;
}

/* ── Finance amount styling ── */

.zen-finance-amount {
    font-family: var(--zen-font-sans);
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.zen-finance-amount.income {
    color: #16a34a;
}

.zen-finance-amount.expense {
    color: #dc2626;
}

.zen-finance-amount.archived {
    color: var(--zen-text-muted);
}

/* ── Row action menu (enhanced) ── */

.zen-row-menu-popover {
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid var(--zen-border) !important;
    overflow: hidden;
    animation: zenDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 200px;
}

.zen-row-menu-popover .mud-list-item {
    padding: 0.25rem 0.5rem !important;
}

.zen-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text);
}

.zen-menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zen-menu-icon.primary { background: var(--zen-primary-light); color: var(--zen-primary); }
.zen-menu-icon.primary .mud-icon-root { color: var(--zen-primary) !important; }
.zen-menu-icon.indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.zen-menu-icon.indigo .mud-icon-root { color: #6366f1 !important; }
.zen-menu-icon.gold { background: var(--zen-secondary-light); color: var(--zen-secondary); }
.zen-menu-icon.gold .mud-icon-root { color: var(--zen-secondary) !important; }
.zen-menu-icon.danger { background: rgba(239, 68, 68, 0.08); color: #ef4444; }
.zen-menu-icon.danger .mud-icon-root { color: #ef4444 !important; }

.zen-menu-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.zen-menu-text span:first-child {
    font-weight: 500;
    font-size: 0.8125rem;
}

.zen-menu-hint {
    font-size: 0.6875rem !important;
    font-weight: 400 !important;
    color: var(--zen-text-muted) !important;
    line-height: 1.3;
}

.zen-menu-item.danger .zen-menu-text span:first-child {
    color: #ef4444;
}

/* ── Empty state enhanced ── */

.zen-pl-empty {
    padding: 4rem 2rem !important;
}

.zen-empty-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--zen-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.zen-empty-title {
    font-family: var(--zen-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0 0 0.25rem;
}

.zen-empty-action {
    margin-top: 0.75rem;
    display: inline-flex !important;
}

/* -------------------------------------------------------------------------- */
/*                     12. MICRO ANIMATIONS & TRANSITIONS                     */
/* -------------------------------------------------------------------------- */

@keyframes zen-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zen-animate-in {
    opacity: 0;
    animation: zen-fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.zen-animate-delay-1 { animation-delay: 0.05s; }
.zen-animate-delay-2 { animation-delay: 0.12s; }
.zen-animate-delay-3 { animation-delay: 0.2s; }
.zen-animate-delay-4 { animation-delay: 0.28s; }
.zen-animate-delay-5 { animation-delay: 0.36s; }

/* Skeleton shimmer */
@keyframes zen-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.zen-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: zen-shimmer 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

/* Empty state */
.zen-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.zen-empty-state .mud-icon-root {
    font-size: 3rem !important;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.zen-empty-state p {
    color: var(--zen-text-muted);
    margin: 0.5rem 0 1rem;
    font-size: 0.875rem;
}

/* -------------------------------------------------------------------------- */
/*                  SESSION LIST (zen-sl-*) COMPONENTS                        */
/* -------------------------------------------------------------------------- */

.zen-sl-timeline-card {
    overflow-y: auto;
    max-height: calc(100vh - 360px);
}

.zen-sl-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 360px);
    overflow-y: auto;
}

.zen-sl-detail-panel::-webkit-scrollbar { width: 6px; }
.zen-sl-detail-panel::-webkit-scrollbar-track { background: transparent; }
.zen-sl-detail-panel::-webkit-scrollbar-thumb {
    background-color: rgba(62, 109, 102, 0.15);
    border-radius: 20px;
}

/* Selected state for timeline items */
.zen-sl-selected {
    outline: 2px solid var(--zen-primary);
    outline-offset: -2px;
    border-radius: var(--zen-radius) !important;
}

.zen-event-past.zen-sl-selected,
.zen-future-event.zen-sl-selected {
    background: var(--zen-primary-light);
}

/* Patient header card */
.zen-sl-patient-header {
    padding: 1.5rem;
}

.zen-sl-patient-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.zen-sl-patient-info {
    flex: 1;
    min-width: 0;
}

.zen-sl-patient-name {
    font-family: var(--zen-font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0;
    line-height: 1.3;
}

.zen-sl-patient-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin-top: 0.25rem;
}

.zen-sl-meta-dot {
    color: #d1d5db;
}

.zen-sl-patient-actions {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* Content sections */
.zen-sl-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--zen-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zen-text);
    margin-bottom: 0.75rem;
}

.zen-sl-section-text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--zen-text-muted);
    margin: 0;
}

.zen-sl-section-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

.zen-sl-empty-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0.5rem;
    gap: 0.5rem;
}

.zen-sl-empty-section p {
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin: 0;
    max-width: 280px;
}

.zen-empty-title {
    font-family: var(--zen-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0.25rem 0 0;
}

/* -------------------------------------------------------------------------- */
/*                     13. DARK MODE OVERRIDES                                */
/* -------------------------------------------------------------------------- */

/* Sidebar drawer — explicit dark surface */
.dark-theme .zen-sidebar.mud-drawer {
    background-color: var(--mud-palette-surface) !important;
    border-right-color: rgba(255, 255, 255, 0.06) !important;
}

.dark-theme .zen-sidebar.mud-drawer--open.mud-drawer {
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2) !important;
}

.dark-theme .zen-dashboard {
    color: #e2e8f0;
}

.dark-theme .zen-card {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-action-card {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-theme .zen-action-card:hover {
    border-color: var(--zen-primary);
}

.dark-theme .zen-action-title,
.dark-theme .zen-event-name,
.dark-theme .zen-agenda-title,
.dark-theme .zen-current-patient-name,
.dark-theme .zen-section-title,
.dark-theme .zen-stat-value,
.dark-theme .zen-billing-value,
.dark-theme .zen-perf-title {
    color: #f7fafc;
}

.dark-theme .zen-event-detail,
.dark-theme .zen-event-time,
.dark-theme .zen-action-desc,
.dark-theme .zen-agenda-subtitle,
.dark-theme .zen-stat-label {
    color: #a0aec0;
}

.dark-theme .zen-progress-track {
    background: #4a5568;
}

.dark-theme .zen-perf-divider {
    border-color: #4a5568;
}

.dark-theme .zen-timeline::before {
    border-color: #4a5568;
}

.dark-theme .zen-timeline-dot {
    border-color: #4a5568;
    background: #2d3748;
}

.dark-theme .zen-current-session {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, #2d3748 70%);
    border-color: rgba(212, 175, 55, 0.2);
}

.dark-theme .zen-time-box {
    background: #1a202c;
    border-color: #4a5568;
}

.dark-theme .zen-btn-outline {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-theme .zen-reminder {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.dark-theme .zen-reminder-title { color: #c7d2fe; }
.dark-theme .zen-reminder-text { color: #a5b4fc; }

.dark-theme .zen-future-event:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dark-theme .zen-billing-icon {
    background: rgba(22, 163, 106, 0.1);
}

/* ── Dark mode: Page header, data table, patient list ── */

.dark-theme .zen-page-title {
    color: #f7fafc;
}

.dark-theme .zen-page-header-icon {
    background: rgba(62, 109, 102, 0.15);
}

.dark-theme .zen-pl-stat-card {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-pl-stat-value {
    color: #f7fafc;
}

.dark-theme .zen-pl-stat-icon.primary { background: rgba(62, 109, 102, 0.15); }
.dark-theme .zen-pl-stat-icon.emerald { background: rgba(16, 185, 129, 0.15); }
.dark-theme .zen-pl-stat-icon.amber   { background: rgba(245, 158, 11, 0.15); }
.dark-theme .zen-pl-stat-icon.muted   { background: rgba(113, 128, 150, 0.15); }

/* ── Dark mode: Insights card ── */
.dark-theme .zen-insights-card {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-insights-title {
    color: #f7fafc;
}

.dark-theme .zen-insights-divider {
    background: #4a5568;
}

.dark-theme .zen-donut-value {
    color: #f7fafc;
}

.dark-theme .zen-bar-value {
    color: #f7fafc;
}

.dark-theme .zen-bar-track {
    background: rgba(255, 255, 255, 0.08);
}

.dark-theme .zen-summary-item {
    background: #1a202c;
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-summary-title {
    color: #f7fafc;
}

.dark-theme .zen-summary-number {
    color: #f7fafc;
}

.dark-theme .zen-summary-mini {
    border-color: rgba(255, 255, 255, 0.08);
    background: #1a202c;
}

.dark-theme .zen-summary-mini-value {
    color: #f7fafc;
}

.dark-theme .zen-summary-divider {
    background: #4a5568;
}

/* ── Dark mode: Session List ── */
.dark-theme .zen-sl-patient-name,
.dark-theme .zen-sl-section-header,
.dark-theme .zen-empty-title {
    color: #f7fafc;
}

.dark-theme .zen-sl-patient-meta,
.dark-theme .zen-sl-section-text {
    color: #a0aec0;
}

.dark-theme .zen-sl-meta-dot {
    color: #4a5568;
}

.dark-theme .zen-sl-selected {
    outline-color: var(--zen-primary);
}

.dark-theme .zen-event-past.zen-sl-selected,
.dark-theme .zen-future-event.zen-sl-selected {
    background: rgba(62, 109, 102, 0.1);
}

.dark-theme .zen-sl-empty-section p {
    color: #a0aec0;
}

.dark-theme .zen-sl-section-date {
    color: #718096;
}

.dark-theme .zen-skeleton {
    background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
    background-size: 200px 100%;
}

.dark-theme .zen-header-back {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-theme .zen-header-back:hover {
    background: rgba(62, 109, 102, 0.15);
    border-color: var(--zen-primary);
}

.dark-theme .zen-header-search {
    background: #1a202c;
    border-color: #4a5568;
}

.dark-theme .zen-header-search:focus-within {
    border-color: var(--zen-primary);
    background: #2d3748;
}

.dark-theme .zen-header-search-input {
    color: #f7fafc;
}

.dark-theme .zen-btn-cta-outline {
    border-color: var(--zen-primary);
    color: #a0d5cc;
}

.dark-theme .zen-btn-cta-outline:hover {
    background: var(--zen-primary);
    color: white;
}

/* ── Dark mode: View toggle ── */
.dark-theme .zen-view-toggle {
    border-color: #4a5568;
    background: #2d3748;
}

/* ── Dark mode: Radio filter pills ── */
.dark-theme .zen-filter-radio-group {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-theme .zen-filter-radio {
    color: #a0aec0;
}

.dark-theme .zen-filter-radio:hover {
    color: #e2e8f0;
    background: rgba(62, 109, 102, 0.15);
}

.dark-theme .zen-filter-radio.active {
    background: var(--zen-primary);
    color: white;
}

.dark-theme .zen-filter-radio-count {
    background: rgba(255, 255, 255, 0.08);
    color: #a0aec0;
}

.dark-theme .zen-filter-radio.active .zen-filter-radio-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dark-theme .zen-view-toggle-btn {
    color: #a0aec0;
}

.dark-theme .zen-view-toggle-btn:not(:last-child) {
    border-right-color: #4a5568;
}

.dark-theme .zen-view-toggle-btn:hover {
    background: rgba(62, 109, 102, 0.15);
    color: #a0d5cc;
}

.dark-theme .zen-view-toggle-btn.active {
    background: var(--zen-primary);
    color: white;
}

/* ── Dark mode: Patient cards ── */
.dark-theme .zen-patient-card {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-patient-card:hover {
    border-color: var(--zen-primary);
}

.dark-theme .zen-patient-card-name {
    color: #f7fafc;
}

.dark-theme .zen-patient-card-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-patient-card-add {
    border-color: #4a5568;
}

.dark-theme .zen-patient-card-add:hover {
    border-color: var(--zen-primary);
    background: rgba(62, 109, 102, 0.1);
}

.dark-theme .zen-patient-card-add-label {
    color: #a0d5cc;
}

.dark-theme .zen-table-toolbar {
    background: #2d3748;
    border-bottom-color: #4a5568;
}

.dark-theme .zen-search-box {
    background: #1a202c;
    border-color: #4a5568;
}

.dark-theme .zen-search-box:focus-within {
    border-color: var(--zen-primary);
    background: #2d3748;
}

.dark-theme .zen-search-input {
    color: #f7fafc;
}

.dark-theme .zen-search-clear {
    color: #718096;
}

.dark-theme .zen-search-clear:hover {
    color: #e2e8f0;
}

.dark-theme .zen-filter-pill {
    background: rgba(62, 109, 102, 0.15);
}

.dark-theme .zen-filter-clear-all:hover {
    color: #fc8181;
}

.dark-theme .zen-filter-menu {
    background: #2d3748;
}

.dark-theme .zen-filter-menu-title {
    border-bottom-color: #4a5568;
}

.dark-theme .zen-filter-option {
    color: #e2e8f0;
}

.dark-theme .zen-filter-option:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dark-theme .zen-ios-surface {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 6px 24px -4px rgba(0, 0, 0, 0.2);
}

.dark-theme .zen-data-table .mud-table-head .mud-table-cell {
    background: linear-gradient(
        180deg,
        #2d3748 0%,
        rgba(62, 109, 102, 0.08) 100%
    ) !important;
    border-bottom: 2px solid var(--zen-primary) !important;
    color: rgba(62, 109, 102, 0.85) !important;
}

.dark-theme .zen-data-table .mud-table-sort-label {
    color: rgba(62, 109, 102, 0.85) !important;
}

.dark-theme .zen-data-table .mud-table-sort-label .mud-icon-root {
    color: rgba(62, 109, 102, 0.6) !important;
}

.dark-theme .zen-data-table .mud-table-body .mud-table-row:hover {
    background: rgba(62, 109, 102, 0.06) !important;
    box-shadow: inset 3px 0 0 var(--zen-primary);
}

.dark-theme .zen-data-table .mud-table-body .mud-table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.dark-theme .zen-data-table .mud-table-body .mud-table-cell {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

.dark-theme .zen-table-footer {
    border-top-color: #4a5568;
    background: linear-gradient(
        180deg,
        rgba(62, 109, 102, 0.04) 0%,
        #2d3748 100%
    );
}

.dark-theme .zen-patient-avatar {
    background: #1a202c;
}

.dark-theme .zen-patient-avatar:not(.archived) {
    border-color: rgba(62, 109, 102, 0.2);
}

.dark-theme .mud-table-row:hover .zen-patient-avatar:not(.archived) {
    border-color: var(--zen-primary);
}

.dark-theme .zen-avatar-initials {
    color: rgba(62, 109, 102, 0.8);
}

.dark-theme .zen-patient-name {
    color: #f7fafc;
}

.dark-theme .mud-table-row:hover .zen-patient-name:not(.archived) {
    color: var(--zen-primary);
}

.dark-theme .zen-patient-name.archived {
    color: #a0aec0;
}

.dark-theme .zen-cell-text {
    color: #e2e8f0;
}

.dark-theme .zen-cell-text.archived {
    color: #718096;
}

.dark-theme .zen-cell-placeholder {
    color: #4a5568;
}

.dark-theme .zen-session-count {
    color: #e2e8f0;
}

.dark-theme .zen-billing-pill.success {
    background: rgba(34, 197, 94, 0.12);
}

.dark-theme .zen-billing-pill.danger {
    background: rgba(239, 68, 68, 0.12);
}

.dark-theme .zen-billing-pill.warning {
    background: rgba(245, 158, 11, 0.12);
}

.dark-theme .zen-finance-amount.income {
    color: #4ade80;
}

.dark-theme .zen-finance-amount.expense {
    color: #f87171;
}

.dark-theme .zen-finance-amount.archived {
    color: #718096;
}

.dark-theme .zen-table-pager {
    border-top-color: #4a5568;
}

.dark-theme .zen-row-menu-popover {
    border-color: #4a5568 !important;
    background: #2d3748;
}

.dark-theme .zen-menu-item {
    color: #e2e8f0;
}

.dark-theme .zen-menu-hint {
    color: #718096 !important;
}

.dark-theme .zen-menu-item.danger .zen-menu-text span:first-child {
    color: #fc8181;
}

.dark-theme .zen-empty-icon-wrap {
    background: #1a202c;
}

.dark-theme .zen-empty-title {
    color: #f7fafc;
}

.dark-theme .zen-btn-outline {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* -------------------------------------------------------------------------- */
/*                      14. RESPONSIVE                                        */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .zen-hero-content {
        grid-template-columns: 1fr;
    }
    .zen-hero-quote {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 1rem;
        text-align: left;
    }
    .zen-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zen-main-grid {
        grid-template-columns: 1fr;
    }
    .zen-current-session-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .zen-current-session-actions {
        width: 100%;
    }
    .zen-current-session-actions button {
        flex: 1;
        justify-content: center;
    }
    .zen-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .zen-page-header-right {
        width: 100%;
        justify-content: flex-end;
    }
    .zen-pl-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .zen-pl-skeleton-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .zen-search-box {
        min-width: 200px;
    }
    .zen-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .zen-toolbar-right {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .zen-dashboard {
        padding: 1rem;
        gap: 1rem;
    }
    .zen-hero-title {
        font-size: 1.75rem;
    }
    .zen-actions-grid {
        grid-template-columns: 1fr;
    }
    .zen-card {
        padding: 1.25rem;
    }
    .zen-pl-stats {
        grid-template-columns: 1fr 1fr;
    }
    .zen-pl-skeleton-stats {
        grid-template-columns: 1fr 1fr;
    }
    .zen-pl-stat-card {
        padding: 0.75rem 1rem;
    }
    .zen-pl-stat-value {
        font-size: 1.125rem;
    }
    .zen-search-box {
        min-width: 0;
        max-width: none;
    }
    .zen-cell-text {
        max-width: 120px;
    }
}


/* ========================================================================== */
/*  CALENDAR PAGE                                                             */
/* ========================================================================== */

.zen-calendar-page {
    gap: 1.25rem;
}

/* ── Calendar navigation controls ── */

.zen-cal-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.zen-cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--zen-border);
    border-radius: calc(var(--zen-radius) - 0.125rem);
    background: var(--zen-surface);
    color: var(--zen-text-muted);
    cursor: pointer;
    transition: var(--zen-transition);
}

.zen-cal-nav-btn:hover {
    border-color: var(--zen-primary);
    color: var(--zen-primary);
    background: var(--zen-primary-light);
}

.zen-cal-nav-btn:active {
    transform: scale(0.95);
}

.zen-cal-today-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 0.875rem;
    border: 1px solid var(--zen-border);
    border-radius: calc(var(--zen-radius) - 0.125rem);
    background: var(--zen-surface);
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-primary);
    cursor: pointer;
    transition: var(--zen-transition);
    white-space: nowrap;
    margin-left: 0.25rem;
}

.zen-cal-today-btn:hover {
    background: var(--zen-primary);
    color: white;
    border-color: var(--zen-primary);
    box-shadow: 0 2px 8px rgba(62, 109, 102, 0.25);
}

.zen-cal-today-btn:active {
    transform: scale(0.97);
}

.zen-cal-today-btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.zen-cal-current-date {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    margin-left: 0.75rem;
    white-space: nowrap;
}

/* ── Date display button (replaces raw date picker) ── */

.zen-cal-date-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.25rem;
    padding: 0 0.875rem;
    border: 1px solid var(--zen-border);
    border-radius: calc(var(--zen-radius) - 0.125rem);
    background: var(--zen-surface);
    font-family: var(--zen-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zen-text);
    cursor: pointer;
    transition: var(--zen-transition);
    white-space: nowrap;
    min-width: 160px;
    justify-content: center;
    position: relative;
}

.zen-cal-date-display .mud-icon-root {
    color: var(--zen-primary);
    font-size: 1.125rem !important;
}

.zen-cal-date-display:hover {
    border-color: var(--zen-primary);
    background: var(--zen-primary-light);
    color: var(--zen-primary);
}

.zen-cal-date-display:active {
    transform: scale(0.98);
}

.zen-cal-date-text {
    text-transform: capitalize;
}

/* ── Date picker overlay & dropdown ── */

.zen-cal-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 160px;
    padding-left: 2rem;
}

.zen-cal-picker-dropdown {
    background: var(--zen-surface);
    border-radius: var(--zen-radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--zen-border);
    overflow: hidden;
    animation: zenDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zen-cal-picker-dropdown .mud-picker-static {
    box-shadow: none !important;
}

/* ── Calendar view selector (Day/Week/Month) ── */

.zen-cal-view-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius);
    overflow: hidden;
    background: var(--zen-surface);
    padding: 0.1875rem;
    gap: 0.125rem;
}

.zen-cal-view-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border: none;
    border-radius: calc(var(--zen-radius) - 0.125rem);
    background: transparent;
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    cursor: pointer;
    transition: var(--zen-transition);
    white-space: nowrap;
}

.zen-cal-view-btn .mud-icon-root {
    font-size: 1.125rem !important;
    transition: var(--zen-transition);
}

.zen-cal-view-btn:hover {
    color: var(--zen-text);
    background: var(--zen-primary-light);
}

.zen-cal-view-btn.active {
    background: var(--zen-primary);
    color: white;
    box-shadow: 0 1px 3px rgba(62, 109, 102, 0.3);
}

.zen-cal-view-btn.active .mud-icon-root {
    color: white !important;
}

.zen-cal-view-btn.active:hover {
    background: var(--zen-primary-dark);
}

/* ── View toggle with labels (legacy override for calendar) ── */

.zen-view-toggle .zen-view-label {
    font-family: var(--zen-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

@media (max-width: 900px) {
    .zen-view-toggle .zen-view-label {
        display: none;
    }
}

/* ── Calendar card wrapper ── */

.zen-calendar-card {
    padding: 1rem 1.25rem 1.25rem;
    overflow: hidden;
}

.zen-calendar-card .mud-calendar {
    border: none !important;
    border-radius: var(--zen-radius);
}

/* Override MudCalendar header to blend with zen surface */
.zen-calendar-card .mud-cal-toolbar {
    display: none !important;
}

/* Soften MudCalendar cell borders */
.zen-calendar-card .mud-cal-week-layer td,
.zen-calendar-card .mud-cal-month-cell {
    border-color: var(--zen-border) !important;
}

/* Current time indicator */
.zen-calendar-card .mud-cal-current-time-indicator {
    border-color: var(--zen-primary) !important;
}

.zen-calendar-card .mud-cal-current-time-circle {
    background-color: var(--zen-primary) !important;
}

/* Calendar event items — softer styling */
.zen-calendar-card .mud-cal-cell-item {
    border-radius: 0.375rem !important;
    font-family: var(--zen-font-sans) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.zen-calendar-card .mud-cal-cell-item:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Dark mode overrides for calendar ── */

.dark-theme .zen-cal-nav-btn {
    background: var(--mud-palette-surface);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--mud-palette-text-secondary);
}

.dark-theme .zen-cal-nav-btn:hover {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
    background: rgba(90, 158, 149, 0.1);
}

.dark-theme .zen-cal-today-btn {
    background: var(--mud-palette-surface);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--mud-palette-primary);
}

.dark-theme .zen-cal-today-btn:hover {
    background: var(--mud-palette-primary);
    color: white;
    border-color: var(--mud-palette-primary);
}

.dark-theme .zen-cal-current-date {
    color: var(--mud-palette-text-secondary);
}

.dark-theme .zen-cal-date-display {
    background: var(--mud-palette-surface);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--mud-palette-text-primary);
}

.dark-theme .zen-cal-date-display:hover {
    border-color: var(--mud-palette-primary);
    background: rgba(90, 158, 149, 0.1);
    color: var(--mud-palette-primary);
}

.dark-theme .zen-cal-date-display .mud-icon-root {
    color: var(--mud-palette-primary);
}

.dark-theme .zen-cal-picker-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.dark-theme .zen-cal-picker-dropdown {
    background: var(--mud-palette-surface);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .zen-cal-view-selector {
    background: var(--mud-palette-surface);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .zen-cal-view-btn {
    color: var(--mud-palette-text-secondary);
}

.dark-theme .zen-cal-view-btn:hover {
    color: var(--mud-palette-text-primary);
    background: rgba(90, 158, 149, 0.1);
}

.dark-theme .zen-cal-view-btn.active {
    background: var(--mud-palette-primary);
    color: white;
}

.dark-theme .zen-cal-view-btn.active:hover {
    background: var(--mud-palette-primary-darken);
}

.dark-theme .zen-calendar-card .mud-cal-week-layer td,
.dark-theme .zen-calendar-card .mud-cal-month-cell {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ── Calendar responsive ── */

@media (max-width: 1024px) {
    .zen-cal-nav {
        flex-wrap: wrap;
    }
    .zen-cal-current-date {
        display: none;
    }
    .zen-cal-view-btn span:not(.mud-icon-root) {
        display: none;
    }
    .zen-cal-view-btn {
        padding: 0.4375rem 0.625rem;
    }
}

@media (max-width: 640px) {
    .zen-calendar-page .zen-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .zen-cal-nav {
        justify-content: center;
    }
    .zen-calendar-page .zen-actions-right {
        justify-content: center;
    }
    .zen-cal-date-display {
        min-width: 0;
        font-size: 0.8125rem;
    }
    .zen-calendar-card {
        padding: 0.75rem;
    }
}

/* ================================================================= */
/*              PATIENT VIEW v2 — PREMIUM DESIGN                      */
/* ================================================================= */

/* — Layout Container — */
.pv2 {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: pv2FadeIn 0.4s ease-out;
}

@keyframes pv2FadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* — Skeleton loader header — */
.pv2-skeleton-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

/* — Back Button — */
.pv2-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: var(--zen-text-muted);
    font-size: 0.8125rem;
    font-family: var(--zen-font-sans);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.pv2-back:hover { color: var(--zen-primary); }

/* — Hero Header — */
.pv2-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.pv2-hero-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.pv2-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--zen-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(62, 109, 102, 0.15);
}
.pv2-avatar-img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    object-fit: cover;
}
.pv2-avatar-initials {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--zen-primary);
    font-family: var(--zen-font-sans);
    letter-spacing: 0.02em;
}
.pv2-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}
.pv2-name {
    font-family: var(--zen-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}
.pv2-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    font-family: var(--zen-font-sans);
    flex-wrap: wrap;
}
.pv2-meta-sep { opacity: 0.4; }

/* — Hero Actions — */
.pv2-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* — Shared Button Styles — */
.pv2-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--zen-primary);
    color: #fff;
    border: none;
    border-radius: var(--zen-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--zen-font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.pv2-btn-primary:hover {
    background: var(--zen-primary-dark);
    box-shadow: 0 2px 8px rgba(62, 109, 102, 0.25);
}
.pv2-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--zen-surface);
    color: var(--zen-text);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--zen-font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.pv2-btn-secondary:hover {
    background: var(--zen-bg);
    border-color: var(--zen-primary);
    color: var(--zen-primary);
}
.pv2-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--zen-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--zen-font-sans);
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}
.pv2-link-btn:hover { opacity: 0.7; }
.pv2-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--zen-radius-sm);
    border: 1px solid var(--zen-border);
    background: var(--zen-surface);
    color: var(--zen-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.pv2-icon-btn:hover {
    color: var(--zen-primary);
    border-color: var(--zen-primary);
    background: var(--zen-primary-light);
}
.pv2-icon-btn--danger:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

/* — KPI Strip — */
.pv2-kpis {
    display: flex;
    align-items: center;
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
    padding: 1rem 1.5rem;
    gap: 0;
}
.pv2-kpi {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    padding: 0 0.75rem;
}
.pv2-kpi-divider {
    width: 1px;
    height: 36px;
    background: var(--zen-border);
    flex-shrink: 0;
}
.pv2-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--zen-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pv2-kpi-icon--danger { background: rgba(239, 68, 68, 0.08) !important; color: #ef4444 !important; }
.pv2-kpi-icon--success { background: rgba(16, 185, 129, 0.08) !important; color: #10b981 !important; }
.pv2-kpi-data {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}
.pv2-kpi-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
    line-height: 1.2;
}
.pv2-kpi-value--danger { color: #ef4444 !important; }
.pv2-kpi-value--success { color: #10b981 !important; }
.pv2-kpi-value--muted { color: var(--zen-text-muted); }
.pv2-kpi-label {
    font-size: 0.6875rem;
    color: var(--zen-text-muted);
    font-family: var(--zen-font-sans);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* — Tab Bar — */
.pv2-tabs {
    display: flex;
    gap: 0.125rem;
    border-bottom: 1px solid var(--zen-border);
    padding-bottom: 0;
}
.pv2-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--zen-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--zen-font-sans);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.pv2-tab:hover { color: var(--zen-text); }
.pv2-tab--active {
    color: var(--zen-primary);
    border-bottom-color: var(--zen-primary);
    font-weight: 600;
}
.pv2-tab-count {
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--zen-primary-light);
    color: var(--zen-primary);
    padding: 0.0625rem 0.4375rem;
    border-radius: 9999px;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
}
.pv2-tab-count--warn {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

/* — Tab Content Area — */
.pv2-body {
    animation: pv2FadeIn 0.3s ease-out;
}

/* — Card — */
.pv2-card {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
    overflow: hidden;
}
.pv2-card--accent {
    border-left: 3px solid var(--zen-secondary);
}
.pv2-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}
.pv2-card-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: var(--zen-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pv2-card-header-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
}
.pv2-card-header-meta {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    margin-left: auto;
    font-family: var(--zen-font-sans);
}
.pv2-card-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.pv2-card-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zen-text-muted);
    font-weight: 600;
    font-family: var(--zen-font-sans);
    margin-bottom: 0.25rem;
}
.pv2-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--zen-border);
}

/* — Badge — */
.pv2-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
    font-family: var(--zen-font-sans);
}
.pv2-badge--success { background: rgba(16, 185, 129, 0.08); color: #10b981; }
.pv2-badge--danger  { background: rgba(239, 68, 68, 0.08); color: #ef4444; }

/* — Text Helpers — */
.pv2-text-muted { color: var(--zen-text-muted); font-size: 0.8125rem; font-family: var(--zen-font-sans); }
.pv2-ai-summary { font-size: 0.875rem; color: var(--zen-text); line-height: 1.6; margin: 0; font-family: var(--zen-font-sans); }

/* — Tab Header Row — */
.pv2-tab-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.pv2-section-title {
    font-family: var(--zen-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0;
}
.pv2-section-subtitle {
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin: 0.125rem 0 0;
    font-family: var(--zen-font-sans);
}

/* — Empty State — */
.pv2-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
}
.pv2-empty-state h4 {
    font-family: var(--zen-font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0.5rem 0 0;
}
.pv2-empty-state p {
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin: 0;
    font-family: var(--zen-font-sans);
}

.pv2-empty-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    font-family: var(--zen-font-sans);
}
.pv2-empty-mini--success {
    color: #10b981;
}

/* ============ OVERVIEW TAB ============ */
.pv2-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pv2-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}
.pv2-overview-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* — Next Session Block — */
.pv2-next-session-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem 1.25rem;
}
.pv2-next-date-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 56px;
    padding: 0.5rem 0;
    background: var(--zen-primary-light);
    border-radius: var(--zen-radius);
}
.pv2-next-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zen-primary);
    line-height: 1;
    font-family: var(--zen-font-sans);
}
.pv2-next-month {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--zen-primary);
    letter-spacing: 0.06em;
    font-family: var(--zen-font-sans);
}
.pv2-next-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.pv2-next-time {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
}
.pv2-next-countdown {
    font-size: 0.8125rem;
    color: var(--zen-primary);
    font-weight: 500;
    font-family: var(--zen-font-sans);
}

/* — Last Session Summary — */
.pv2-last-session-summary {
    padding: 0 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.pv2-last-session-summary p {
    font-size: 0.8125rem;
    color: var(--zen-text);
    line-height: 1.5;
    margin: 0;
    padding-left: 0.75rem;
    border-left: 2px solid var(--zen-border);
    font-family: var(--zen-font-sans);
}

/* — Mini Stats Row — */
.pv2-mini-stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 1.25rem 1rem;
}
.pv2-mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.0625rem;
}
.pv2-mini-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
}
.pv2-mini-stat-label {
    font-size: 0.6875rem;
    color: var(--zen-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--zen-font-sans);
}
.pv2-mini-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--zen-border);
}

/* — Finance List (overview) — */
.pv2-finance-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}
.pv2-finance-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
}
.pv2-finance-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pv2-finance-dot--warn { background: #f59e0b; }
.pv2-finance-dot--danger { background: #ef4444; }
.pv2-finance-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-width: 0;
}
.pv2-finance-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
}
.pv2-finance-due {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    font-family: var(--zen-font-sans);
}

/* — Progress Bars — */
.pv2-progress-bars {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0 1.25rem 1.25rem;
}
.pv2-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.pv2-progress-label {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    width: 64px;
    flex-shrink: 0;
    font-family: var(--zen-font-sans);
}
.pv2-progress-track {
    flex: 1;
    height: 6px;
    background: var(--zen-border);
    border-radius: 3px;
    overflow: hidden;
}
.pv2-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.pv2-progress-fill--success { background: #10b981; }
.pv2-progress-fill--danger  { background: #ef4444; }
.pv2-progress-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text);
    width: 28px;
    text-align: right;
    font-family: var(--zen-font-sans);
}

/* --- PV2 Overview: Timeline --- */
.pv2-timeline {
    padding: 0 1.25rem 0.5rem;
}

.pv2-timeline-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.625rem 0;
    cursor: pointer;
    position: relative;
}

.pv2-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 2rem;
    bottom: 0;
    width: 1px;
    background: var(--zen-border);
}

.pv2-timeline-item:hover .pv2-timeline-content {
    color: var(--zen-primary);
}

.pv2-timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--zen-primary);
    flex-shrink: 0;
    margin-top: 0.375rem;
}

.pv2-timeline-content {
    flex: 1;
    min-width: 0;
    transition: color 0.15s ease;
}

.pv2-timeline-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pv2-timeline-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text);
}

.pv2-timeline-text {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    line-height: 1.5;
    margin: 0.25rem 0 0;
}

/* --- PV2 Overview: Upcoming Sessions List --- */
.pv2-upcoming-list {
    display: flex;
    flex-direction: column;
}

.pv2-upcoming-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 1.25rem;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.pv2-upcoming-row:first-child {
    border-top: none;
}

.pv2-upcoming-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.pv2-upcoming-weekday {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text);
    text-transform: capitalize;
}

.pv2-upcoming-countdown {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zen-primary);
    white-space: nowrap;
}

/* --- PV2 Overview: Quick Info --- */
.pv2-quickinfo {
    padding: 0 1.25rem 0.5rem;
}

.pv2-quickinfo-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.pv2-quickinfo-item:last-child {
    border-bottom: none;
}

.pv2-quickinfo-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--zen-text-muted);
}

.pv2-quickinfo-value {
    font-size: 0.8125rem;
    color: var(--zen-text);
    text-align: right;
    max-width: 60%;
}

/* ============ SESSIONS TAB ============ */
.pv2-sessions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pv2-stats-strip {
    display: flex;
    gap: 0.75rem;
}
.pv2-stat-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius);
    font-family: var(--zen-font-sans);
}
.pv2-stat-chip-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--zen-text);
}
.pv2-stat-chip-label {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
}

/* — Session List — */
.pv2-session-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pv2-session-card {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pv2-session-card:hover {
    border-color: rgba(62, 109, 102, 0.2);
}
.pv2-session-card--expanded {
    border-color: var(--zen-primary);
    box-shadow: 0 0 0 1px var(--zen-primary);
}
.pv2-session-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
}
.pv2-session-row:hover {
    background: rgba(62, 109, 102, 0.02);
}
.pv2-session-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
    padding: 0.375rem 0;
    background: var(--zen-primary-light);
    border-radius: var(--zen-radius-sm);
    flex-shrink: 0;
}
.pv2-session-date-day {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--zen-primary);
    line-height: 1;
    font-family: var(--zen-font-sans);
}
.pv2-session-date-month {
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--zen-primary);
    letter-spacing: 0.06em;
    font-family: var(--zen-font-sans);
}
.pv2-session-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.pv2-session-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
}
.pv2-session-preview {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--zen-font-sans);
}
.pv2-session-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.pv2-duration-chip {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.5rem;
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    border-radius: 9999px;
    font-family: var(--zen-font-sans);
}

/* Session Detail */
.pv2-session-detail {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--zen-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    animation: pv2FadeIn 0.25s ease-out;
}
.pv2-detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.pv2-detail-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zen-text-muted);
    font-family: var(--zen-font-sans);
}
.pv2-detail-text {
    font-size: 0.8125rem;
    color: var(--zen-text);
    line-height: 1.6;
    font-family: var(--zen-font-sans);
    margin: 0;
}
.pv2-detail-text--html p { margin: 0 0 0.5rem; }
.pv2-detail-text--html ul { padding-left: 1.25rem; margin: 0; }
.pv2-detail-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

/* Transcript */
.pv2-transcript {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.75rem;
    background: var(--zen-bg);
    border-radius: var(--zen-radius);
    font-size: 0.8125rem;
    font-family: var(--zen-font-sans);
}
.pv2-transcript-line {
    display: flex;
    gap: 0.5rem;
    line-height: 1.5;
    color: var(--zen-text);
}
.pv2-transcript-time {
    color: var(--zen-text-muted);
    font-size: 0.75rem;
    min-width: 36px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* ============ FINANCES TAB ============ */
.pv2-finances {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pv2-finance-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.pv2-finance-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}
.pv2-finance-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--zen-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pv2-finance-stat-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.pv2-finance-stat-label {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    font-family: var(--zen-font-sans);
}
.pv2-finance-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--zen-font-sans);
}

/* — Transaction List — */
.pv2-transaction-list {
    display: flex;
    flex-direction: column;
}
.pv2-transaction-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--zen-border);
    cursor: pointer;
    transition: background 0.15s;
}
.pv2-transaction-row:first-child { border-top: none; }
.pv2-transaction-row:hover { background: rgba(62, 109, 102, 0.02); }
.pv2-transaction-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pv2-status--paid { background: #10b981; color: #10b981; }
.pv2-status--pending { background: #f59e0b; color: #f59e0b; }
.pv2-status--overdue { background: #ef4444; color: #ef4444; }
.pv2-transaction-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.pv2-transaction-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
}
.pv2-transaction-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pv2-transaction-tag {
    font-size: 0.6875rem;
    padding: 0.0625rem 0.375rem;
    background: var(--zen-primary-light);
    color: var(--zen-primary);
    border-radius: 9999px;
    font-weight: 500;
    font-family: var(--zen-font-sans);
}
.pv2-transaction-paid-date {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
    font-size: 0.6875rem;
    color: #10b981;
    font-family: var(--zen-font-sans);
}
.pv2-transaction-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    flex-shrink: 0;
}
.pv2-transaction-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: var(--zen-font-sans);
}
.pv2-amount--positive { color: #10b981; }
.pv2-amount--negative { color: #ef4444; }
.pv2-transaction-status-label {
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: var(--zen-font-sans);
}

/* ============ DOCUMENTS TAB ============ */
.pv2-documents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pv2-doc-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pv2-doc-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
    transition: border-color 0.2s;
}
.pv2-doc-card:hover {
    border-color: rgba(62, 109, 102, 0.2);
}
.pv2-doc-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--zen-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pv2-doc-card-icon.pdf   { background: rgba(239, 68, 68, 0.08); color: #ef4444; }
.pv2-doc-card-icon.image { background: rgba(99, 102, 241, 0.08); color: #6366f1; }
.pv2-doc-card-icon.doc   { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.pv2-doc-card-icon.excel { background: rgba(16, 185, 129, 0.08); color: #10b981; }
.pv2-doc-card-icon.default { background: var(--zen-primary-light); color: var(--zen-primary); }
.pv2-doc-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}
.pv2-doc-card-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv2-doc-card-meta {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    font-family: var(--zen-font-sans);
}
.pv2-doc-card-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* ============ PERSONAL INFO TAB ============ */
.pv2-personal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pv2-info-section {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
    overflow: hidden;
}
.pv2-info-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
    border-bottom: 1px solid var(--zen-border);
}
.pv2-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.pv2-info-field {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}
.pv2-info-field:last-child,
.pv2-info-field:nth-last-child(2):nth-child(odd) ~ .pv2-info-field {
    border-bottom: none;
}
.pv2-info-field--full {
    grid-column: 1 / -1;
}
.pv2-info-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zen-text-muted);
    font-family: var(--zen-font-sans);
}
.pv2-info-value {
    font-size: 0.875rem;
    color: var(--zen-text);
    font-family: var(--zen-font-sans);
    line-height: 1.4;
}
.pv2-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
}
.pv2-medical-blocks {
    display: flex;
    flex-direction: column;
}
.pv2-medical-block {
    border-top: 1px solid var(--zen-border);
}
.pv2-medical-block:first-child { border-top: none; }
.pv2-medical-block-title {
    display: block;
    padding: 0.75rem 1.25rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zen-primary);
    font-family: var(--zen-font-sans);
}

/* ============ DARK MODE ============ */
.dark-theme .pv2 {
    --zen-surface: #1e2a2f;
    --zen-bg: #151e22;
    --zen-border: rgba(255, 255, 255, 0.08);
    --zen-text: #f7fafc;
    --zen-text-muted: #a0aec0;
}
.dark-theme .pv2-back { color: #a0aec0; }
.dark-theme .pv2-back:hover { color: #9dc5bf; }
.dark-theme .pv2-name { color: #f7fafc; }
.dark-theme .pv2-kpis { background: #1e2a2f; border-color: rgba(255,255,255,0.08); }
.dark-theme .pv2-kpi-value { color: #f7fafc; }
.dark-theme .pv2-tab { color: #a0aec0; }
.dark-theme .pv2-tab--active { color: #9dc5bf; border-bottom-color: #9dc5bf; }
.dark-theme .pv2-tab:hover { color: #f7fafc; }
.dark-theme .pv2-tab-count { background: rgba(62,109,102,0.15); color: #9dc5bf; }
.dark-theme .pv2-card { background: #1e2a2f; border-color: rgba(255,255,255,0.08); }
.dark-theme .pv2-card-footer { border-top-color: rgba(255,255,255,0.06); }
.dark-theme .pv2-card-header-title { color: #f7fafc; }
.dark-theme .pv2-btn-secondary { background: #1e2a2f; border-color: rgba(255,255,255,0.1); color: #f7fafc; }
.dark-theme .pv2-btn-secondary:hover { background: #151e22; border-color: #9dc5bf; color: #9dc5bf; }
.dark-theme .pv2-timeline-item:not(:last-child)::before { background: rgba(255,255,255,0.06); }
.dark-theme .pv2-timeline-date { color: #f7fafc; }
.dark-theme .pv2-timeline-dot { background: #9dc5bf; }
.dark-theme .pv2-upcoming-row { border-top-color: rgba(255,255,255,0.06); }
.dark-theme .pv2-upcoming-weekday { color: #f7fafc; }
.dark-theme .pv2-upcoming-countdown { color: #9dc5bf; }
.dark-theme .pv2-quickinfo-item { border-bottom-color: rgba(255,255,255,0.04); }
.dark-theme .pv2-quickinfo-value { color: #f7fafc; }
.dark-theme .pv2-session-card { background: #1e2a2f; border-color: rgba(255,255,255,0.08); }
.dark-theme .pv2-session-card:hover { border-color: rgba(157,197,191,0.2); }
.dark-theme .pv2-session-card--expanded { border-color: #9dc5bf; box-shadow: 0 0 0 1px #9dc5bf; }
.dark-theme .pv2-session-row:hover { background: rgba(255,255,255,0.02); }
.dark-theme .pv2-session-time { color: #f7fafc; }
.dark-theme .pv2-session-date-block { background: rgba(62,109,102,0.15); }
.dark-theme .pv2-session-detail { border-top-color: rgba(255,255,255,0.06); }
.dark-theme .pv2-transcript { background: rgba(255,255,255,0.03); }
.dark-theme .pv2-stat-chip { background: #1e2a2f; border-color: rgba(255,255,255,0.08); }
.dark-theme .pv2-stat-chip-value { color: #f7fafc; }
.dark-theme .pv2-transaction-row { border-top-color: rgba(255,255,255,0.06); }
.dark-theme .pv2-transaction-row:hover { background: rgba(255,255,255,0.02); }
.dark-theme .pv2-transaction-title { color: #f7fafc; }
.dark-theme .pv2-transaction-tag { background: rgba(62,109,102,0.15); color: #9dc5bf; }
.dark-theme .pv2-doc-card { background: #1e2a2f; border-color: rgba(255,255,255,0.08); }
.dark-theme .pv2-doc-card:hover { border-color: rgba(157,197,191,0.2); }
.dark-theme .pv2-doc-card-name { color: #f7fafc; }
.dark-theme .pv2-icon-btn { background: #1e2a2f; border-color: rgba(255,255,255,0.1); color: #a0aec0; }
.dark-theme .pv2-icon-btn:hover { color: #9dc5bf; border-color: #9dc5bf; background: rgba(62,109,102,0.15); }
.dark-theme .pv2-info-section { background: #1e2a2f; border-color: rgba(255,255,255,0.08); }
.dark-theme .pv2-info-section-header { color: #f7fafc; border-bottom-color: rgba(255,255,255,0.06); }
.dark-theme .pv2-info-field { border-bottom-color: rgba(255,255,255,0.04); }
.dark-theme .pv2-info-value { color: #f7fafc; }
.dark-theme .pv2-medical-block { border-top-color: rgba(255,255,255,0.06); }
.dark-theme .pv2-medical-block-title { color: #9dc5bf; }
.dark-theme .pv2-empty-state { background: #1e2a2f; border-color: rgba(255,255,255,0.08); }
.dark-theme .pv2-empty-state h4 { color: #f7fafc; }
.dark-theme .pv2-next-date-big { background: rgba(62,109,102,0.15); }
.dark-theme .pv2-finance-stat-card { background: #1e2a2f; border-color: rgba(255,255,255,0.08); }
.dark-theme .pv2-avatar { background: rgba(62,109,102,0.15); border-color: rgba(62,109,102,0.2); }
.dark-theme .pv2-progress-track { background: rgba(255,255,255,0.06); }
.dark-theme .pv2-section-title { color: #f7fafc; }
.dark-theme .pv2-last-session-summary p { border-left-color: rgba(255,255,255,0.1); color: #f7fafc; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .pv2 { padding: 1rem 0 2rem; }
    .pv2-hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .pv2-hero-actions { width: 100%; }
    .pv2-hero-actions .pv2-btn-primary,
    .pv2-hero-actions .pv2-btn-secondary { flex: 1; justify-content: center; }
    .pv2-kpis { flex-wrap: wrap; padding: 0.75rem; gap: 0.75rem; }
    .pv2-kpi { flex: 1 1 40%; min-width: 140px; padding: 0.5rem; }
    .pv2-kpi-divider { display: none; }
    .pv2-overview-grid { grid-template-columns: 1fr; }
    .pv2-finance-summary { grid-template-columns: 1fr; }
    .pv2-info-grid { grid-template-columns: 1fr; }
    .pv2-edit-grid { grid-template-columns: 1fr; }
    .pv2-name { font-size: 1.25rem; max-width: 280px; }
    .pv2-tab { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
}

/* ========================================================================== */
/*                     PRE-SESSION PAGE                                       */
/* ========================================================================== */

.zen-presession {
    max-width: 820px;
    padding-top: 2rem;
    min-height: calc(100dvh - 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.zen-presession:has(.expanded) {
    max-width: 1320px;
}

/* ── Stepper ── */
.zen-presession-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 1rem;
    width: 100%;
    max-width: 480px;
}
.zen-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}
.zen-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--zen-border);
    background: var(--zen-surface);
    color: var(--zen-text-muted);
    transition: var(--zen-transition);
}
.zen-step.active .zen-step-dot {
    border-color: var(--zen-primary);
    background: var(--zen-primary-light);
    color: var(--zen-primary);
    box-shadow: 0 0 0 4px rgba(62, 109, 102, 0.12);
}
.zen-step.completed .zen-step-dot {
    border-color: var(--zen-primary);
    background: var(--zen-primary);
    color: white;
}
.zen-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.zen-step.active .zen-step-label {
    color: var(--zen-primary);
    font-weight: 600;
}
.zen-step.completed .zen-step-label {
    color: var(--zen-primary);
}
.zen-step-line {
    flex: 1;
    height: 2px;
    background: var(--zen-border);
    margin: 0 0.5rem;
    margin-bottom: 1.25rem; /* aligns with dot center since label adds height */
    border-radius: 1px;
    transition: var(--zen-transition);
    min-width: 40px;
}
.zen-step-line.completed {
    background: var(--zen-primary);
}

/* ── Main Card ── */
.zen-presession-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.zen-presession-card.expanded {
    flex: 1;
    min-height: 0;
}

/* ── Header ── */
.zen-presession-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0;
}
.zen-presession-header-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--zen-radius-lg);
    background: var(--zen-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--zen-transition);
}
.zen-presession-header-text {
    flex: 1;
    min-width: 0;
}
.zen-presession-title {
    font-family: var(--zen-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0;
    line-height: 1.3;
}
.zen-presession-subtitle {
    font-size: 0.875rem;
    color: var(--zen-text-muted);
    margin: 0.125rem 0 0;
    line-height: 1.4;
}
.zen-presession-divider {
    height: 1px;
    background: var(--zen-border);
    margin: 1.25rem 0;
}

/* ── Body ── */
.zen-presession-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.zen-presession-body.expanded {
    overflow: hidden;
}

/* ── Step 1: Patient + Type ── */
.zen-presession-step1 {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    flex: 1;
}
.zen-presession-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.zen-presession-field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.zen-presession-select .mud-input-outlined .mud-input-outlined-border {
    border-radius: var(--zen-radius) !important;
}

/* ── Selected Patient Card ── */
.zen-selected-patient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: var(--zen-radius);
    border: 1.5px solid var(--zen-primary);
    background: color-mix(in srgb, var(--zen-primary) 6%, var(--zen-surface));
    transition: var(--zen-transition);
    animation: zen-selected-patient-in 0.3s ease;
}
@keyframes zen-selected-patient-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.zen-selected-patient-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}
.zen-selected-patient-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}
.zen-selected-patient-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zen-text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zen-selected-patient-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--zen-text-secondary);
    line-height: 1.3;
    flex-wrap: wrap;
}
.zen-selected-patient-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--zen-text-secondary);
    cursor: pointer;
    transition: var(--zen-transition);
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.zen-selected-patient-clear:hover {
    background: color-mix(in srgb, var(--zen-text) 10%, transparent);
    color: var(--zen-text);
}

.zen-presession-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.zen-presession-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border-radius: var(--zen-radius-xl);
    border: 2px solid var(--zen-border);
    background: var(--zen-surface);
    cursor: pointer;
    transition: var(--zen-transition);
    position: relative;
    overflow: hidden;
}
.zen-presession-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(62, 109, 102, 0.06) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.zen-presession-type-card:hover {
    border-color: var(--zen-primary);
    transform: translateY(-3px);
    box-shadow: var(--zen-shadow-hover);
}
.zen-presession-type-card:hover::before {
    opacity: 1;
}
.zen-presession-type-card:active {
    transform: translateY(-1px);
}
.zen-presession-type-card.selected {
    border-color: var(--zen-primary);
    background: var(--zen-primary-light);
    box-shadow: 0 4px 16px rgba(62, 109, 102, 0.18);
}
.zen-presession-type-card.selected::before {
    opacity: 1;
}
.zen-presession-type-icon-wrap {
    width: 80px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zen-presession-type-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.zen-presession-type-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zen-text);
    transition: color 0.2s;
}
.zen-presession-type-card.selected .zen-presession-type-label {
    color: var(--zen-primary);
}
.zen-presession-type-hint {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
}

/* ── Step 2: Financial ── */
.zen-presession-step2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}
.zen-presession-finance-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: var(--zen-radius);
    background: var(--zen-secondary-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.zen-presession-finance-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: rgba(212, 175, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.zen-presession-finance-banner-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zen-text);
    margin-bottom: 0.125rem;
}
.zen-presession-finance-banner-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    line-height: 1.4;
}
.zen-presession-finance-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.zen-presession-finance-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.zen-presession-finance-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
}
.zen-presession-finance-done-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.zen-presession-finance-done-title {
    font-family: var(--zen-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0;
}
.zen-presession-finance-done-desc {
    font-size: 0.875rem;
    color: var(--zen-text-muted);
    margin: 0;
    max-width: 360px;
    line-height: 1.5;
}

/* ── Step 3: Review ── */
.zen-presession-step3 {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Session List */
.zen-presession-session-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--zen-radius-lg);
    padding: 1.25rem;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.zen-presession-session-list-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zen-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--zen-border);
}
.zen-presession-session-count {
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--zen-primary);
    color: white;
    border-radius: 10px;
    padding: 0.125rem 0.5rem;
    min-width: 22px;
    text-align: center;
}
.zen-presession-session-items {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.zen-presession-session-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: var(--zen-radius);
    border: 1px solid transparent;
    background: var(--zen-surface);
    cursor: pointer;
    transition: var(--zen-transition);
    width: 100%;
    text-align: left;
}
.zen-presession-session-item:hover {
    border-color: var(--zen-primary);
    background: var(--zen-primary-light);
}
.zen-presession-session-item.selected {
    border-color: var(--zen-primary);
    background: var(--zen-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(62, 109, 102, 0.25);
}
.zen-presession-session-item-number {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--zen-primary);
    background: var(--zen-primary-light);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.zen-presession-session-item.selected .zen-presession-session-item-number {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}
.zen-presession-session-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}
.zen-presession-session-item-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zen-text);
}
.zen-presession-session-item.selected .zen-presession-session-item-date {
    color: white;
}
.zen-presession-session-item-time {
    font-size: 0.75rem;
    color: var(--zen-text-muted);
}
.zen-presession-session-item.selected .zen-presession-session-item-time {
    color: rgba(255, 255, 255, 0.7);
}
.zen-presession-session-item.selected .mud-icon-root {
    color: rgba(255, 255, 255, 0.6) !important;
}
.zen-presession-session-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    flex: 1;
}
.zen-presession-session-empty span {
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
}

/* Session Detail */
.zen-presession-session-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding: 0.25rem;
}
.zen-presession-detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.zen-presession-detail-title {
    font-family: var(--zen-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--zen-primary);
    margin: 0;
}
.zen-presession-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.zen-presession-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    background: rgba(0, 0, 0, 0.03);
    padding: 0.3125rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--zen-border);
}
.zen-presession-detail-divider {
    height: 1px;
    background: var(--zen-border);
}
.zen-presession-detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.zen-presession-detail-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zen-text);
}
.zen-presession-detail-content {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--zen-radius);
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--zen-text);
}
.zen-presession-detail-content p {
    margin: 0;
}
.zen-presession-detail-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.zen-presession-detail-list li {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--zen-text);
}
.zen-presession-detail-list li::marker {
    color: var(--zen-primary);
}
.zen-presession-detail-empty-section {
    text-align: center;
    padding: 1.5rem;
    color: var(--zen-text-muted);
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--zen-radius);
    border: 1px dashed var(--zen-border);
}
.zen-presession-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    flex: 1;
}
.zen-presession-detail-placeholder h4 {
    font-family: var(--zen-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0;
}
.zen-presession-detail-placeholder p {
    font-size: 0.875rem;
    color: var(--zen-text-muted);
    margin: 0;
    max-width: 320px;
    line-height: 1.5;
}

/* ── Footer ── */
.zen-presession-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    margin-top: auto;
    border-top: 1px solid var(--zen-border);
}
.zen-presession-footer-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.zen-presession-start-btn {
    padding: 0.75rem 2rem !important;
    font-size: 0.9375rem !important;
    border-radius: 0.75rem !important;
}

/* disabled state for zen buttons */
.zen-btn-primary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* ── Pre-session dark mode ── */
.dark-theme .zen-presession-title,
.dark-theme .zen-presession-detail-title,
.dark-theme .zen-presession-finance-done-title,
.dark-theme .zen-presession-detail-placeholder h4 {
    color: #f7fafc;
}
.dark-theme .zen-presession-subtitle,
.dark-theme .zen-presession-finance-banner-desc,
.dark-theme .zen-presession-finance-done-desc,
.dark-theme .zen-presession-detail-placeholder p,
.dark-theme .zen-presession-session-empty span,
.dark-theme .zen-presession-type-hint {
    color: #a0aec0;
}
.dark-theme .zen-presession-divider,
.dark-theme .zen-presession-detail-divider,
.dark-theme .zen-presession-footer {
    border-color: #4a5568;
}
.dark-theme .zen-step-dot {
    border-color: #4a5568;
    background: #2d3748;
    color: #a0aec0;
}
.dark-theme .zen-step-line {
    background: #4a5568;
}
.dark-theme .zen-presession-type-card {
    border-color: #4a5568;
    background: #2d3748;
}
.dark-theme .zen-presession-type-card:hover {
    border-color: var(--zen-primary);
}
.dark-theme .zen-presession-type-card.selected {
    background: rgba(62, 109, 102, 0.15);
}
.dark-theme .zen-presession-type-label {
    color: #e2e8f0;
}
.dark-theme .zen-presession-session-list {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}
.dark-theme .zen-presession-session-list-header {
    color: #f7fafc;
    border-color: #4a5568;
}
.dark-theme .zen-presession-session-item {
    background: #2d3748;
}
.dark-theme .zen-presession-session-item-date {
    color: #e2e8f0;
}
.dark-theme .zen-presession-session-item-time {
    color: #a0aec0;
}
.dark-theme .zen-presession-detail-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #a0aec0;
}
.dark-theme .zen-presession-detail-content {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}
.dark-theme .zen-presession-detail-list li {
    color: #e2e8f0;
}
.dark-theme .zen-presession-detail-empty-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}
.dark-theme .zen-presession-detail-section-title {
    color: #f7fafc;
}
.dark-theme .zen-presession-field-label {
    color: #e2e8f0;
}
.dark-theme .zen-presession-finance-banner {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.15);
}
.dark-theme .zen-presession-finance-banner-title {
    color: #f7fafc;
}
.dark-theme .zen-presession-header-icon {
    background: rgba(62, 109, 102, 0.15);
}

/* ========================================================================== */
/*                    SETTINGS PAGE — Zen Design System                       */
/* ========================================================================== */

.zen-settings-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
}

.zen-settings-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 1.5rem 0;
    border-right: 1px solid var(--zen-border);
    display: flex;
    flex-direction: column;
}

.zen-settings-content {
    flex: 1;
    padding: 1.5rem 2.5rem;
    min-width: 0;
}

/* ── Settings Sidebar Navigation ── */

.zen-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.zen-settings-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: var(--zen-radius);
    cursor: pointer;
    font-family: var(--zen-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    transition: var(--zen-transition);
}

.zen-settings-nav-item:hover {
    background: var(--zen-primary-light);
    color: var(--zen-text);
}

.zen-settings-nav-item.active {
    background: var(--zen-primary-light);
    color: var(--zen-primary);
    font-weight: 600;
}

.zen-settings-nav-item .mud-icon-root {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.zen-settings-nav-divider {
    height: 1px;
    background: var(--zen-border);
    margin: 0.5rem 1rem;
}

/* ── Settings Header (User greeting) ── */

.zen-settings-user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem 1.5rem;
}

.zen-settings-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--zen-primary), var(--zen-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--zen-font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.zen-settings-greeting {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.zen-settings-greeting-name {
    font-family: var(--zen-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zen-settings-greeting-sub {
    font-family: var(--zen-font-sans);
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    margin: 0;
}

/* ── Settings Cards (Section containers) ── */

.zen-settings-card {
    background: var(--zen-surface);
    border-radius: var(--zen-radius-xl);
    padding: 1.75rem;
    box-shadow: var(--zen-shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.zen-settings-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--zen-border);
}

.zen-settings-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--zen-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zen-settings-card-icon.primary { background: var(--zen-primary-light); color: var(--zen-primary); }
.zen-settings-card-icon.gold    { background: var(--zen-secondary-light); color: var(--zen-secondary); }
.zen-settings-card-icon.info    { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.zen-settings-card-icon.danger  { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.zen-settings-card-icon.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.zen-settings-card-title {
    font-family: var(--zen-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zen-text);
    margin: 0;
}

.zen-settings-card-subtitle {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin: 0.125rem 0 0;
}

/* ── Settings Rows (key-value action rows) ── */

.zen-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--zen-border);
    gap: 1rem;
}

.zen-settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zen-settings-row:first-child {
    padding-top: 0;
}

.zen-settings-row-info {
    flex: 1;
    min-width: 0;
}

.zen-settings-row-label {
    font-family: var(--zen-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zen-text);
    margin: 0;
}

.zen-settings-row-desc {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin: 0.125rem 0 0;
}

.zen-settings-row-action {
    flex-shrink: 0;
}

/* ── Danger Card variant ── */

.zen-settings-card.danger {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.02);
}

/* ── Settings Skeleton ── */

.zen-settings-skeleton {
    display: flex;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
}

.zen-settings-skeleton-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zen-settings-skeleton-content {
    flex: 1;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Dark Mode ── */

.dark-theme .zen-settings-sidebar {
    border-right-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-settings-nav-item {
    color: #a0aec0;
}

.dark-theme .zen-settings-nav-item:hover {
    background: rgba(62, 109, 102, 0.15);
    color: #e2e8f0;
}

.dark-theme .zen-settings-nav-item.active {
    background: rgba(62, 109, 102, 0.15);
    color: #68d391;
}

.dark-theme .zen-settings-avatar {
    background: linear-gradient(135deg, #4a8c84, #3E6D66);
}

.dark-theme .zen-settings-greeting-name {
    color: #f7fafc;
}

.dark-theme .zen-settings-card {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-settings-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-settings-card-title {
    color: #f7fafc;
}

.dark-theme .zen-settings-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-settings-row-label {
    color: #e2e8f0;
}

.dark-theme .zen-settings-nav-divider {
    background: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-settings-card.danger {
    border-color: rgba(239, 68, 68, 0.15);
    background: rgba(239, 68, 68, 0.05);
}

/* ── Responsive (≤ 768px) ── */

@media (max-width: 768px) {
    .zen-settings-layout {
        flex-direction: column;
    }

    .zen-settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--zen-border);
        padding: 1rem 0;
    }

    .zen-settings-content {
        padding: 1rem;
    }
}

/* ======================================================================= */
/* SETTINGS V2 — Premium Makeover                                          */
/* ======================================================================= */

/* ── Account Health Widget ── */

.zen-account-health {
    background: var(--zen-surface);
    padding: 1rem 1.25rem;
    border-radius: var(--zen-radius-xl);
    border: 1px solid var(--zen-border);
    box-shadow: var(--zen-shadow-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
}

.zen-account-health-ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.zen-account-health-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.zen-account-health-ring .ring-bg {
    stroke: var(--zen-border);
    fill: transparent;
    stroke-width: 4;
}

.zen-account-health-ring .ring-fill {
    stroke: #22c55e;
    fill: transparent;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.zen-account-health-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--zen-text);
}

.zen-account-health-label {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--zen-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zen-account-health-sub {
    font-family: var(--zen-font-sans);
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 500;
    margin-top: 0.125rem;
}

/* ── Settings Sidebar v2 ── */

.zen-settings-sidebar-v2 {
    text-align: center;
    padding-bottom: 2rem;
}

.zen-settings-avatar-v2 {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--zen-primary), var(--zen-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--zen-font-sans);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 3px 3px 0px 0px var(--zen-primary-dark);
    border: 2px solid var(--zen-text);
}

.zen-settings-welcome-name {
    font-family: var(--zen-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--zen-text);
    margin: 0;
}

.zen-settings-welcome-sub {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin: 0.25rem 0 0;
}

/* ── Sidebar Nav v2 ── */

.zen-settings-nav-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0 0.75rem;
    margin-top: 1.5rem;
}

.zen-settings-nav-v2-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--zen-radius);
    cursor: pointer;
    font-family: var(--zen-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zen-text-muted);
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    width: 100%;
    transition: var(--zen-transition);
}

.zen-settings-nav-v2-item:hover {
    background: var(--zen-surface);
    color: var(--zen-primary);
}

.zen-settings-nav-v2-item:hover .mud-icon-root {
    transform: rotate(12deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zen-settings-nav-v2-item.active {
    background: rgba(0, 0, 0, 0.06);
    color: var(--zen-text);
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.zen-settings-nav-v2-item .mud-icon-root {
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Sidebar Help Text ── */

.zen-settings-help-text {
    font-family: 'Patrick Hand', cursive;
    color: var(--zen-text-muted);
    font-size: 1.125rem;
    text-align: center;
    transform: rotate(-2deg);
    opacity: 0.6;
    padding: 0 1rem;
}

/* ── Premium Content Card ── */

.zen-settings-premium-card {
    background: var(--zen-surface);
    border-radius: var(--zen-radius-xl);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--zen-border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.zen-settings-premium-card-blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    background: var(--zen-primary);
    opacity: 0.04;
    border-radius: 50%;
    filter: blur(48px);
    margin-right: -64px;
    margin-top: -64px;
    pointer-events: none;
}

.zen-settings-premium-card-blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 96px;
    height: 96px;
    background: var(--zen-secondary);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(32px);
    margin-left: -48px;
    margin-bottom: -48px;
    pointer-events: none;
}

/* ── Profile Card Header ── */

.zen-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.zen-profile-avatar-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed var(--zen-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(253, 248, 240, 0.8);
}

.zen-profile-avatar-ring .mud-icon-root {
    font-size: 1.75rem;
    color: var(--zen-primary);
}

.zen-profile-header-text h2 {
    font-family: var(--zen-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zen-text);
    margin: 0;
}

.zen-profile-header-text p {
    font-family: var(--zen-font-sans);
    font-size: 0.875rem;
    color: var(--zen-text-muted);
    margin: 0.25rem 0 0;
}

/* ── Profile Field Row (hover-to-reveal edit) ── */

.zen-profile-field {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1rem;
    margin: 0 -1rem;
    border-radius: var(--zen-radius-xl);
    transition: background 0.2s ease;
}

.zen-profile-field:last-child {
    border-bottom: none;
}

.zen-profile-field:hover {
    background: rgba(0, 0, 0, 0.02);
}

.zen-profile-field-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.375rem;
}

.zen-profile-field-label {
    font-family: 'JetBrains Mono', var(--zen-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--zen-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.zen-profile-field-edit-btn {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zen-primary);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
}

.zen-profile-field:hover .zen-profile-field-edit-btn {
    opacity: 1;
}

.zen-profile-field-value {
    font-family: var(--zen-font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--zen-text);
    margin: 0;
}

/* ── Status Card — Email (Verified / Green) ── */

.zen-status-card {
    border-radius: var(--zen-radius-xl);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.zen-status-card:hover {
    box-shadow: var(--zen-shadow-soft);
}

.zen-status-card.verified {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.zen-status-card.unverified {
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-left: 4px solid #f97316;
}

.zen-status-card-bg-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    opacity: 0.08;
    transition: opacity 0.2s ease;
}

.zen-status-card:hover .zen-status-card-bg-icon {
    opacity: 0.15;
}

.zen-status-card-bg-icon .mud-icon-root {
    font-size: 3.5rem;
}

.zen-status-card .zen-profile-field-header {
    position: relative;
    z-index: 1;
}

.zen-status-card .zen-profile-field-value {
    position: relative;
    z-index: 1;
}

.zen-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--zen-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.zen-status-badge.verified {
    background: #22c55e;
    color: white;
}

.zen-status-badge.unverified {
    background: #f97316;
    color: white;
}

.zen-status-badge .mud-icon-root {
    font-size: 0.875rem;
}

.zen-status-hint {
    font-family: var(--zen-font-sans);
    font-size: 0.75rem;
    color: #c2410c;
    margin: 0.75rem 0 0;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* ── Empty State Card (dashed border) ── */

.zen-empty-state-card {
    border: 2px dashed var(--zen-border);
    border-radius: var(--zen-radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.zen-empty-state-card:hover {
    background: rgba(0, 0, 0, 0.02);
}

.zen-empty-state-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.zen-empty-state-card:hover .zen-empty-state-icon {
    transform: scale(1.1);
}

.zen-empty-state-icon .mud-icon-root {
    font-size: 1.5rem;
    color: var(--zen-text-muted);
}

.zen-empty-state-title {
    font-family: var(--zen-font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--zen-text);
    margin: 0;
}

.zen-empty-state-desc {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    color: var(--zen-text-muted);
    margin: 0.25rem 0 0.75rem;
}

.zen-empty-state-cta {
    font-family: var(--zen-font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--zen-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.zen-empty-state-cta:hover {
    text-decoration: underline;
    text-decoration-style: wavy;
}

/* ── Settings Footer ── */

.zen-settings-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--zen-text-muted);
    opacity: 0.6;
}

.zen-settings-footer-dot {
    opacity: 0.5;
}

/* ── Dark Mode v2 ── */

.dark-theme .zen-account-health {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-account-health-ring .ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.dark-theme .zen-account-health-pct {
    color: #f7fafc;
}

.dark-theme .zen-account-health-label {
    color: #e2e8f0;
}

.dark-theme .zen-settings-avatar-v2 {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.3);
}

.dark-theme .zen-settings-welcome-name {
    color: #f7fafc;
}

.dark-theme .zen-settings-nav-v2-item {
    color: #a0aec0;
}

.dark-theme .zen-settings-nav-v2-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.dark-theme .zen-settings-nav-v2-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #f7fafc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-theme .zen-settings-premium-card {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-settings-premium-card-blob-1 {
    opacity: 0.06;
}

.dark-theme .zen-settings-premium-card-blob-2 {
    opacity: 0.04;
}

.dark-theme .zen-profile-avatar-ring {
    background: rgba(255, 255, 255, 0.04);
}

.dark-theme .zen-profile-header-text h2 {
    color: #f7fafc;
}

.dark-theme .zen-profile-field {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-profile-field:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dark-theme .zen-profile-field-value {
    color: #f7fafc;
}

.dark-theme .zen-status-card.verified {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

.dark-theme .zen-status-card.unverified {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.2);
    border-left-color: #f97316;
}

.dark-theme .zen-status-hint {
    color: #fb923c;
}

.dark-theme .zen-empty-state-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .zen-empty-state-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dark-theme .zen-empty-state-icon {
    background: rgba(255, 255, 255, 0.06);
}

.dark-theme .zen-empty-state-title {
    color: #f7fafc;
}
