/* ─── ThriveCraft Design System ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --warm: #F5F0EB;
    --cream: #FAF7F4;
    --bark: #3D2B1F;
    --moss: #4A6741;
    --moss-light: #5C8A50;
    --gold: #C4963C;
    --gold-soft: #E8D5A8;
    --text: #2C1810;
    --text-light: #6B5C52;
    --danger: #C0392B;
    --danger-light: #E74C3C;
    --success: #27AE60;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(61,43,31,0.08);
    --shadow-lg: 0 8px 32px rgba(61,43,31,0.12);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

/* ─── Navigation ─── */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61,43,31,0.06);
    padding: 0 40px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--bark);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--moss); }

.nav-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--moss);
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-btn:hover { background: var(--moss-light); }

.nav-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    background: linear-gradient(165deg, #F5F0EB 0%, #FAF7F4 40%, #EDE7DF 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 150, 60, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 103, 65, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 32px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.1;
    color: var(--bark);
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: italic;
    color: var(--moss);
}

.hero-sub {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 620px;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--moss);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--moss-light); transform: translateY(-1px); }

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--bark);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--bark);
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(61,43,31,0.05); }

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-gold {
    background: var(--gold);
    color: #fff;
}

.btn-gold:hover { background: #d4a43c; }

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover { background: var(--danger-light); }

.btn-outline {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: var(--moss);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--moss);
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover { background: var(--moss); color: #fff; }

/* ─── Problem Section ─── */
.problem {
    padding: 100px 40px;
    background: var(--bark);
    color: #F5F0EB;
}

.problem-inner {
    max-width: 800px;
    margin: 0 auto;
}

.problem h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.3;
    margin-bottom: 32px;
    color: var(--gold-soft);
}

.problem p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #C9BFB5;
    font-weight: 300;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.tool-tag {
    padding: 8px 18px;
    border: 1px solid rgba(232, 213, 168, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #C9BFB5;
    font-weight: 400;
}

/* ─── Features ─── */
.features {
    padding: 120px 40px;
    background: var(--cream);
}

.features-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.features-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

.features h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 72px;
    color: var(--bark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 60px;
}

.feature-card { padding: 0; }

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--moss), var(--moss-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--bark);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    font-weight: 300;
}

/* ─── Rhythm Section ─── */
.rhythm {
    padding: 100px 40px;
    background: linear-gradient(180deg, #EDE7DF 0%, var(--cream) 100%);
}

.rhythm-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.rhythm h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 48px;
    color: var(--bark);
}

.week-flow {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.week-step {
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    padding: 32px 20px;
    text-align: center;
    position: relative;
}

.week-step::after {
    content: '';
    position: absolute;
    right: 0;
    top: 30%;
    height: 40%;
    width: 1px;
    background: var(--gold-soft);
}

.week-step:last-child::after { display: none; }

.week-num {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 12px;
}

.week-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--bark);
    margin-bottom: 8px;
}

.week-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.5;
}

.rhythm p.closing {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Vision ─── */
.vision {
    padding: 120px 40px;
    background: var(--moss);
    text-align: center;
}

.vision-inner {
    max-width: 700px;
    margin: 0 auto;
}

.vision h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    line-height: 1.3;
    margin-bottom: 24px;
}

.vision p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    font-weight: 300;
}

/* ─── Footer ─── */
footer {
    padding: 48px 40px;
    text-align: center;
    background: var(--bark);
}

footer .logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--gold-soft);
    margin-bottom: 12px;
}

footer p {
    font-size: 0.8rem;
    color: #8B7D73;
}

/* ─── App Layout ─── */
#app {
    min-height: calc(100vh - 64px);
    padding-top: 64px;
}

#app-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ─── Auth Forms ─── */
.auth-container {
    max-width: 440px;
    margin: 80px auto;
    padding: 48px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.auth-container h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--bark);
    margin-bottom: 8px;
}

.auth-container .subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 32px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E0D6CC;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--cream);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--moss);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-actions {
    margin-top: 28px;
}

.form-actions .btn-primary {
    width: 100%;
    text-align: center;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--moss);
    font-weight: 600;
    text-decoration: none;
}

.form-error {
    background: #FEF0EF;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.role-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.role-option {
    flex: 1;
    padding: 16px;
    border: 2px solid #E0D6CC;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--cream);
}

.role-option:hover {
    border-color: var(--moss);
}

.role-option.active {
    border-color: var(--moss);
    background: rgba(74, 103, 65, 0.06);
}

.role-option .role-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.role-option .role-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bark);
}

.role-option .role-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 300;
    margin-top: 4px;
}

/* ─── Dashboard ─── */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--bark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card .stat-value {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    color: var(--bark);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
}

/* ─── Cards ─── */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bark);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* ─── Badges ─── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-draft { background: #F0EBE5; color: var(--text-light); }
.badge-published { background: rgba(74,103,65,0.1); color: var(--moss); }
.badge-active { background: rgba(39,174,96,0.1); color: var(--success); }
.badge-submitted { background: rgba(196,150,60,0.15); color: var(--gold); }
.badge-reviewed { background: rgba(74,103,65,0.1); color: var(--moss); }
.badge-completed { background: rgba(39,174,96,0.1); color: var(--success); }

/* ─── Program Editor ─── */
.editor-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    min-height: 60vh;
}

.week-sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 84px;
    height: fit-content;
}

.week-sidebar h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 0 20px;
    margin-bottom: 12px;
}

.week-list-item {
    display: block;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
}

.week-list-item:hover { background: var(--cream); }
.week-list-item.active { background: rgba(74,103,65,0.08); color: var(--moss); font-weight: 600; border-right: 3px solid var(--moss); }

.week-editor {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.week-editor h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--bark);
    margin-bottom: 24px;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--moss);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F0EBE5;
}

/* ─── Assignment Items ─── */
.assignment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--cream);
    border-radius: 8px;
    margin-bottom: 8px;
}

.assignment-item .assignment-type {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.type-journal { background: rgba(196,150,60,0.15); }
.type-activity { background: rgba(74,103,65,0.1); }
.type-reflection { background: rgba(61,43,31,0.08); }

.assignment-item .assignment-info { flex: 1; }
.assignment-item .assignment-title { font-weight: 600; font-size: 0.9rem; color: var(--bark); }
.assignment-item .assignment-desc { font-size: 0.85rem; color: var(--text-light); font-weight: 300; margin-top: 2px; }

.assignment-item .assignment-actions { flex-shrink: 0; }

/* ─── Enrollment Section ─── */
.enroll-form {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.enroll-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #E0D6CC;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    background: var(--cream);
}

.enroll-form input:focus { border-color: var(--moss); }

/* ─── Client Week View ─── */
.week-content-section {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
}

.week-content-section h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--bark);
    margin-bottom: 16px;
}

.workbook-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
}

.workbook-content p { margin-bottom: 16px; }
.workbook-content h1, .workbook-content h2, .workbook-content h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--bark);
    margin-top: 24px;
    margin-bottom: 12px;
}
.workbook-content ul, .workbook-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}
.workbook-content li { margin-bottom: 4px; }
.workbook-content blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-light);
    font-style: italic;
}

.journal-prompt {
    background: var(--cream);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    border-left: 3px solid var(--gold);
}

.journal-prompt .prompt-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bark);
    margin-bottom: 12px;
    font-style: italic;
}

.submission-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 1.5px solid #E0D6CC;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    resize: vertical;
    outline: none;
    line-height: 1.6;
}

.submission-textarea:focus { border-color: var(--moss); }

.submission-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* ─── Progress Bar ─── */
.progress-bar {
    height: 6px;
    background: #F0EBE5;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--moss), var(--moss-light));
    border-radius: 3px;
    transition: width 0.3s;
}

/* ─── Tabs ─── */
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #F0EBE5;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover { color: var(--bark); }
.tab-btn.active { color: var(--moss); border-bottom-color: var(--moss); font-weight: 600; }

/* ─── Submission Review Card ─── */
.submission-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 16px;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.submission-client {
    font-weight: 600;
    color: var(--bark);
}

.submission-assignment {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.submission-content {
    background: var(--cream);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.coach-notes-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E0D6CC;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    min-height: 80px;
    resize: vertical;
    outline: none;
    background: var(--cream);
}

.coach-notes-input:focus { border-color: var(--moss); }

/* ─── Empty States ─── */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--bark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ─── Loading ─── */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #F0EBE5;
    border-top-color: var(--moss);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: var(--bark);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

.toast.success { background: var(--moss); }
.toast.error { background: var(--danger); }

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

/* ─── Back Link ─── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover { color: var(--moss); }

/* ─── Session Cards ─── */
.session-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.session-card:hover {
    box-shadow: var(--shadow-lg);
}

.session-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.session-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bark);
}

.session-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 4px;
    flex-wrap: wrap;
}

.session-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.session-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-one-on-one {
    background: rgba(196,150,60,0.12);
    color: var(--gold);
}

.type-group {
    background: rgba(74,103,65,0.1);
    color: var(--moss);
}

.badge-scheduled { background: rgba(196,150,60,0.15); color: var(--gold); }
.badge-cancelled { background: rgba(192,57,43,0.1); color: var(--danger); }

.session-participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.participant-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--cream);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bark);
}

.participant-chip .remove-participant {
    cursor: pointer;
    color: var(--danger);
    font-weight: 700;
    margin-left: 2px;
    font-size: 0.9rem;
    line-height: 1;
}

.participant-chip .remove-participant:hover { opacity: 0.7; }

.session-notes {
    background: var(--cream);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    font-weight: 300;
    white-space: pre-wrap;
}

.session-notes-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--moss);
    margin-bottom: 6px;
}

.session-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1.5px solid #E0D6CC;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--moss); color: var(--moss); }
.filter-btn.active { background: var(--moss); color: #fff; border-color: var(--moss); }

.session-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.session-detail-main {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.session-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.session-detail-sidebar .card {
    margin-bottom: 0;
}

.session-time-display {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--bark);
    margin-bottom: 4px;
}

.session-date-display {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    #main-nav { padding: 0 16px; }
    .hero { padding: 100px 24px 60px; }
    .problem { padding: 72px 24px; }
    .features { padding: 80px 24px; }
    .rhythm { padding: 72px 24px; }
    .vision { padding: 80px 24px; }

    .feature-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .editor-layout { grid-template-columns: 1fr; }
    .week-sidebar { position: static; }
    .hero-ctas { flex-direction: column; }

    .week-flow {
        flex-direction: column;
        align-items: center;
    }

    .week-step::after {
        right: 30%;
        left: 30%;
        top: auto;
        bottom: 0;
        height: 1px;
        width: 40%;
    }

    .tool-list { gap: 8px; }
    .auth-container { margin: 40px 16px; padding: 32px 24px; }
    #app-content { padding: 24px 16px; }
    .role-selector { flex-direction: column; }
    .session-detail-grid { grid-template-columns: 1fr; }
    .session-filters { gap: 8px; }
}
