/* Gut Healing Academy - Member Portal Styles */
/* Complete Dashboard Styling */

/* ============================================
   COLOR VARIABLES
   ============================================ */
:root {
    --primary: #6B9080;      /* Soft teal */
    --primary-dark: #5a7a6b;
    --secondary: #A4C3B2;    /* Sage green */
    --secondary-light: #c8ddd2;
    --background: #FDF8F5;   /* Warm cream */
    --accent: #E07A5F;       /* Coral (CTA) */
    --accent-dark: #c96a52;
    --text: #2D3436;         /* Dark charcoal */
    --text-light: #636e72;   /* Lighter text */
    --white: #FFFFFF;
    --shadow: rgba(45, 52, 54, 0.1);
    --shadow-lg: rgba(45, 52, 54, 0.15);
    --border: #e0e0e0;
    --success: #27ae60;
    --warning: #f39c12;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.view {
    min-height: 100vh;
}

/* ============================================
   CONTAINER & CARD (Login/Status Pages)
   ============================================ */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px var(--shadow);
    text-align: center;
    width: 100%;
}

/* ============================================
   BRAND SECTION
   ============================================ */
.brand {
    margin-bottom: 32px;
}

.brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.btn-disabled,
.btn-primary:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary.btn-disabled:hover,
.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.btn-google svg {
    background: var(--white);
    border-radius: 4px;
    padding: 2px;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: var(--secondary);
    color: var(--text);
}

.btn-logout-small {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout-small:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    padding: 8px;
    margin-top: 16px;
}

.btn-text:hover {
    color: var(--primary);
    text-decoration: underline;
}

.btn-upgrade {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-upgrade:hover {
    background-color: var(--accent-dark);
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

/* ============================================
   LOADING & STATUS
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-text {
    color: var(--text-light);
    font-size: 15px;
}

.status-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.status-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.status-message {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.status-note {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 16px;
}

/* ============================================
   WELCOME TEXT (Login Page)
   ============================================ */
.welcome-text {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 15px;
}

.legal-agreement {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 16px;
    line-height: 1.5;
}

.legal-agreement a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-agreement a:hover {
    color: var(--primary-dark);
}

/* ============================================
   UPGRADE OPTIONS (Trial Expired Page)
   ============================================ */
.upgrade-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.upgrade-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
}

.upgrade-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, #fff9f7 0%, var(--white) 100%);
}

.upgrade-card .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.upgrade-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.upgrade-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.upgrade-card .price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.upgrade-card .savings {
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.upgrade-card .features {
    list-style: none;
    text-align: left;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-light);
}

.upgrade-card .features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.upgrade-card .features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.upgrade-card .btn-primary {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
#dashboard-view {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Dashboard Main */
.dashboard-main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px 40px;
}

/* Welcome Section */
.welcome-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-text-area h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.protocol-name {
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
}

.trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    padding: 12px 16px;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.trial-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trial-label {
    font-size: 13px;
    color: var(--text);
}

.trial-days {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.tab-nav {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 52px;
    z-index: 90;
    margin: 0 -20px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    min-width: max-content;
    padding: 16px 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ============================================
   TAB CONTENT & PANELS
   ============================================ */
.tab-content {
    padding-top: 24px;
}

.tab-panel {
    animation: fadeIn 0.3s ease;
}

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

.panel-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px var(--shadow);
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.panel-intro {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ============================================
   TRACKING FORM
   ============================================ */
.tracking-form {
    margin-bottom: 32px;
}

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

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

.field-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Slider */
.slider-container {
    padding: 8px 0;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--secondary-light);
    outline: none;
    margin-bottom: 8px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px var(--shadow);
    transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px var(--shadow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

.slider-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-text {
    padding: 10px 16px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-text {
    background: var(--secondary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

.radio-label:hover .radio-text {
    border-color: var(--secondary);
}

/* Select */
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Number Input */
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input-number {
    max-width: 120px;
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================
   INFO BOX (Why Track)
   ============================================ */
.info-box {
    background: linear-gradient(135deg, var(--secondary-light) 0%, #e8f4ed 100%);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.info-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.info-box p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   TRACKING HISTORY
   ============================================ */
.recent-history h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-empty {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    padding: 24px;
    background: var(--background);
    border-radius: 8px;
}

.history-item {
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
}

.history-item.has-notes {
    border-left: 3px solid var(--secondary);
}

.history-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.history-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    min-width: 80px;
}

.history-summary {
    font-size: 13px;
    color: var(--text);
    flex: 1;
    text-align: right;
}

.notes-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 10px;
    transition: color 0.2s ease;
}

.notes-toggle:hover {
    color: var(--primary);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

.history-notes {
    padding: 0 16px 12px;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.notes-content {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    padding-top: 10px;
    white-space: pre-wrap;
    font-style: italic;
}

/* ============================================
   PROTOCOL CONTENT
   ============================================ */
.protocol-content {
    line-height: 1.7;
}

.protocol-week {
    padding: 0;
}

.protocol-week h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.protocol-focus {
    font-size: 15px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.protocol-day {
    margin-bottom: 24px;
}

.protocol-day h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--secondary-light);
    border-radius: 6px;
    display: inline-block;
}

.protocol-day ul {
    margin-left: 20px;
}

.protocol-day li {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
    padding-left: 8px;
}

.protocol-tips {
    background: linear-gradient(135deg, #fff5f2 0%, #fff9f7 100%);
    border: 1px solid rgba(224, 122, 95, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 24px;
}

.protocol-tips h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.protocol-tips p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 12px;
}

.protocol-tips p:last-child {
    margin-bottom: 0;
}

.protocol-tips strong {
    color: var(--text);
}

/* ============================================
   ACCORDION/EXPANDABLE SECTIONS
   ============================================ */
.protocol-accordion {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.protocol-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--background);
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.protocol-accordion-header:hover {
    background: #f8f0eb;
}

.protocol-accordion-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.protocol-accordion-icon {
    font-size: 18px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.protocol-accordion.active .protocol-accordion-icon {
    transform: rotate(180deg);
}

.protocol-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.protocol-accordion-content-inner {
    padding: 0 20px 20px 20px;
}

.protocol-accordion.active .protocol-accordion-content {
    max-height: 2000px;
}

/* Safety Disclaimer specific styling */
.safety-disclaimer {
    background: #fff9f0;
    border-color: rgba(224, 122, 95, 0.3);
}

.safety-disclaimer .protocol-accordion-header {
    background: #fff3e6;
}

.safety-disclaimer .protocol-accordion-title {
    color: var(--accent);
}

.safety-disclaimer .protocol-accordion-content-inner ul {
    margin: 12px 0 12px 20px;
}

.safety-disclaimer .protocol-accordion-content-inner li {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

/* Bristol Stool Chart specific styling */
.bristol-chart-accordion .bristol-chart-image {
    width: 100%;
    max-width: 600px;
    margin: 16px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bristol-chart-summary {
    margin-top: 16px;
    padding: 16px;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.bristol-chart-summary p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.6;
}

.bristol-chart-summary p:last-child {
    margin-bottom: 0;
}

/* Learn More sections within protocol days */
.learn-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--secondary);
    border-radius: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.learn-more-toggle:hover {
    background: var(--secondary-light);
    border-color: var(--primary);
}

.learn-more-toggle-icon {
    transition: transform 0.3s ease;
}

.learn-more-toggle.active .learn-more-toggle-icon {
    transform: rotate(180deg);
}

.learn-more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.learn-more-content.active {
    max-height: 3000px;
}

.learn-more-content-inner {
    margin-top: 16px;
    padding: 20px;
    background: #f7faf9;
    border-left: 3px solid var(--primary);
    border-radius: 6px;
}

.learn-more-content-inner h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.learn-more-content-inner p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.learn-more-content-inner p:last-child {
    margin-bottom: 0;
}

.learn-more-content-inner ul {
    margin: 12px 0 16px 20px;
}

.learn-more-content-inner li {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

/* Protocol Introduction */
.protocol-intro {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--background);
    border-radius: 8px;
}

/* What to Expect box */
.what-to-expect {
    background: linear-gradient(135deg, #f0f7f5 0%, #f7faf9 100%);
    border: 1px solid rgba(107, 144, 128, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 24px;
}

.what-to-expect h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.what-to-expect p,
.what-to-expect ul {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

.what-to-expect ul {
    margin: 12px 0 12px 20px;
}

.what-to-expect li {
    margin-bottom: 8px;
}

/* Warning highlights */
.warning-text {
    color: #d97706;
    font-weight: 500;
}

/* ============================================
   RECOVERY PATH SECTION
   ============================================ */
.recovery-path-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

/* Recovery Path Header */
.recovery-path-header {
    text-align: center;
    margin-bottom: 24px;
}

.recovery-path-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.recovery-path-subtitle {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 400;
}

/* Current Phase Display */
.current-phase-display {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--secondary-light) 0%, #e8f4ed 100%);
    border-radius: 10px;
    margin-bottom: 32px;
    font-size: 15px;
}

.phase-label {
    color: var(--text);
    font-weight: 500;
}

.phase-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.phase-arrow {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
}

.phase-next {
    color: var(--text-light);
    font-style: italic;
}

/* Membership Benefits Card - Clean Design */
.membership-benefits-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    margin-bottom: 32px;
}

.membership-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 32px;
    text-align: left;
}

.membership-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.membership-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.membership-feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkmark {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: bold;
    color: #6b9080;
    line-height: 1.4;
}

.feature-text {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
}

.feature-text strong {
    font-weight: 600;
    color: var(--text);
}

.membership-value {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.membership-value p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.membership-value strong {
    color: var(--text);
    font-weight: 600;
}

/* Paid User Milestone Card */
.milestone-card {
    background: var(--white);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 28px 24px;
}

.milestone-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.milestone-intro {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.milestone-section {
    margin-bottom: 24px;
}

.milestone-section:last-of-type {
    margin-bottom: 20px;
}

.milestone-section h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.milestone-list {
    list-style: none;
    padding-left: 0;
}

.milestone-list li {
    font-size: 14px;
    color: var(--text);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.5;
}

.milestone-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 600;
}

/* Custom Checkboxes */
.milestone-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone-checkbox {
    display: flex;
    align-items: center;
    cursor: not-allowed;
    opacity: 0.8;
}

.milestone-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    background: var(--white);
    position: relative;
}

.milestone-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--success);
    border-color: var(--success);
}

.milestone-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
}

.milestone-footer {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Upgrade CTA Section */
.upgrade-cta-section {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #fff9f7 0%, var(--white) 100%);
    border: 2px solid var(--accent);
    border-radius: 12px;
}

.btn-upgrade-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.btn-upgrade-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
    text-decoration: none;
}

.btn-upgrade-primary:active {
    transform: translateY(0);
}

.upgrade-cta-subtext {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   MESSAGING
   ============================================ */

/* Practitioner Header */
.practitioner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--white);
}

.practitioner-header.hidden {
    display: none;
}

.back-button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.practitioner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.practitioner-info {
    flex: 1;
}

.practitioner-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}

.practitioner-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0 0 0;
}

.message-compose {
    margin-bottom: 32px;
}

.message-compose textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    resize: vertical;
    min-height: 100px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.message-compose textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.message-compose textarea::placeholder {
    color: var(--text-light);
}

.message-compose .btn-primary {
    width: 100%;
}

/* File Attachment */
.attachment-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.file-input-hidden {
    display: none;
}

.btn-attach {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-attach:hover {
    background: var(--secondary-light);
    border-color: var(--secondary);
}

.file-size-hint {
    font-size: 12px;
    color: var(--text-light);
}

/* Attached Files Preview */
.attached-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
}

.attached-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
}

.attached-file-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.attached-file-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attached-file-size {
    font-size: 11px;
    color: var(--text-light);
}

.attached-file-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px;
    font-size: 16px;
    line-height: 1;
}

.attached-file-remove:hover {
    color: var(--accent);
}

/* Message History Header */
.message-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.message-history-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-filter:hover {
    background: var(--secondary-light);
    border-color: var(--secondary);
    color: var(--text);
}

.btn-filter.active {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--white);
}

.btn-filter svg {
    width: 14px;
    height: 14px;
}

/* Message Search */
.message-search {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 10px 36px;
    font-size: 14px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

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

.btn-clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

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

.message-history h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.messages-empty {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    padding: 32px;
    background: var(--background);
    border-radius: 10px;
}

.message {
    padding: 14px 16px;
    border-radius: 12px;
    max-width: 85%;
}

.message-member {
    background: var(--secondary-light);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-expert {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

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

.message-sender {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-member .message-sender {
    color: var(--primary);
}

.message-expert .message-sender {
    color: rgba(255, 255, 255, 0.9);
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
}

.message-text {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Message Highlight Button */
.message-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn-highlight {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-light);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.btn-highlight:hover {
    opacity: 1;
    color: var(--warning);
}

.btn-highlight.highlighted {
    opacity: 1;
    color: var(--warning);
}

.btn-highlight svg {
    width: 16px;
    height: 16px;
}

/* Highlighted Message Style */
.message.highlighted {
    border: 2px solid var(--warning);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
}

/* Message Attachments Display */
.message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.message-attachment {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.message-attachment:hover {
    background: rgba(255,255,255,0.5);
    text-decoration: none;
}

.message-member .message-attachment {
    background: rgba(0,0,0,0.05);
}

.message-member .message-attachment:hover {
    background: rgba(0,0,0,0.1);
}

.attachment-icon {
    width: 16px;
    height: 16px;
}

/* Search highlight */
.search-match {
    background: var(--warning);
    color: var(--text);
    padding: 0 2px;
    border-radius: 2px;
}

/* ============================================
   LIVE Q&A TAB
   ============================================ */
.qna-session-card {
    background: linear-gradient(135deg, var(--secondary-light) 0%, #e8f4ed 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.qna-session-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.qna-icon {
    font-size: 32px;
}

.qna-session-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.qna-session-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.qna-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.qna-label {
    color: var(--text);
    font-weight: 500;
}

.qna-value {
    color: var(--primary);
    font-weight: 600;
}

.qna-join-section {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
}

.btn-qna-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: #0b5cff;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-qna-join:hover {
    background-color: #0a52e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 92, 255, 0.3);
    text-decoration: none;
}

.qna-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
}

.locked-message {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: 8px;
    border: 2px dashed var(--border);
}

.lock-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.lock-text {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 16px;
}

.btn-upgrade-small {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-upgrade-small:hover {
    background-color: var(--accent-dark);
    text-decoration: none;
}

.qna-benefits {
    margin-top: 24px;
}

.qna-benefits h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.qna-benefits-list {
    list-style: none;
    padding-left: 0;
}

.qna-benefits-list li {
    padding: 8px 0 8px 28px;
    font-size: 14px;
    color: var(--text);
    position: relative;
    line-height: 1.5;
}

.qna-benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
    font-size: 16px;
}

/* ============================================
   LEARNING MATERIAL TAB
   ============================================ */
.learning-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    min-height: 400px;
}

.learning-content.locked {
    pointer-events: none;
}

.learning-content.locked .resource-card {
    pointer-events: none;
    user-select: none;
    opacity: 0.3;
    filter: blur(3px);
}

.learning-content.locked .btn-resource {
    visibility: hidden;
}

.resource-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.resource-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 8px var(--shadow);
}

.resource-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.resource-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-resource {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-resource:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    text-decoration: none;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
    min-height: 100%;
}

.locked-overlay-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.lock-icon-large {
    font-size: 64px;
    margin-bottom: 16px;
}

.locked-overlay-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.locked-overlay-content p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ============================================
   GLOBAL FOOTER
   ============================================ */
.global-footer {
    background: #37534e;
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 20px 24px;
    margin-top: 60px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer {
    margin-bottom: 24px;
}

.footer-disclaimer p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.footer-copyright {
    margin-top: 20px;
    text-align: center;
}

.footer-copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px var(--shadow-lg);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 600px) {
    /* General */
    .container {
        padding: 16px;
    }

    .card {
        padding: 32px 24px;
    }

    /* Upgrade Options */
    .upgrade-options {
        grid-template-columns: 1fr;
    }

    .upgrade-card .price {
        font-size: 24px;
    }

    /* Dashboard */
    .dashboard-header {
        padding: 10px 16px;
    }

    .header-brand h1 {
        font-size: 16px;
    }

    .dashboard-main {
        padding: 0 16px 32px;
    }

    .welcome-section {
        padding: 20px 0;
    }

    .welcome-text-area h2 {
        font-size: 20px;
    }

    .trial-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .trial-info {
        justify-content: center;
    }

    /* Tabs */
    .tab-nav {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .tab-btn {
        padding: 14px 8px;
        font-size: 13px;
    }

    /* Panel */
    .panel-card {
        padding: 20px 16px;
    }

    .panel-title {
        font-size: 18px;
    }

    /* Form */
    .radio-group {
        flex-direction: column;
    }

    .radio-text {
        width: 100%;
        text-align: center;
    }

    /* History */
    .history-main {
        flex-wrap: wrap;
        gap: 8px;
    }

    .history-summary {
        text-align: left;
        order: 3;
        width: 100%;
    }

    .notes-toggle {
        order: 2;
    }

    /* Messages */
    .message {
        max-width: 90%;
    }

    .messages-list {
        max-height: 300px;
    }

    /* Learning Materials */
    .learning-content {
        min-height: 300px;
    }

    .resource-card {
        flex-direction: column;
        padding: 16px;
    }

    .resource-icon {
        font-size: 32px;
        text-align: center;
    }

    .locked-overlay-content {
        padding: 24px 16px;
    }

    .lock-icon-large {
        font-size: 48px;
    }

    .locked-overlay-content h3 {
        font-size: 20px;
    }

    .locked-overlay-content p {
        font-size: 14px;
    }

    /* Q&A Section */
    .qna-session-card {
        padding: 16px;
    }

    .qna-icon {
        font-size: 28px;
    }

    .qna-session-header h4 {
        font-size: 18px;
    }

    .btn-qna-join,
    .btn-upgrade-small {
        width: 100%;
    }

    /* Footer */
    .global-footer {
        padding: 32px 16px 20px;
        margin-top: 40px;
    }

    .footer-disclaimer p {
        font-size: 12px;
    }

    .footer-links {
        gap: 12px;
        padding: 16px 0;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-divider {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
    }

    /* Recovery Path */
    .recovery-path-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .recovery-path-title {
        font-size: 20px;
    }

    .recovery-path-subtitle {
        font-size: 14px;
    }

    .current-phase-display {
        font-size: 14px;
        padding: 14px 16px;
        gap: 6px;
    }

    .phase-name {
        font-size: 15px;
    }

    .phase-arrow {
        font-size: 16px;
    }

    .phase-next {
        font-size: 13px;
    }

    .locked-content-card {
        padding: 24px 16px;
    }

    .locked-content-preview h4 {
        font-size: 18px;
    }

    .locked-subtitle {
        font-size: 14px;
    }

    .locked-features {
        gap: 16px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-text h5 {
        font-size: 14px;
    }

    .feature-text p {
        font-size: 12px;
    }

    .milestone-card {
        padding: 24px 16px;
    }

    .milestone-card h4 {
        font-size: 17px;
    }

    .milestone-intro {
        font-size: 13px;
    }

    .milestone-section h5 {
        font-size: 14px;
    }

    .milestone-list li {
        font-size: 13px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .upgrade-cta-section {
        padding: 24px 16px;
    }

    .btn-upgrade-primary {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
    }

    .upgrade-cta-subtext {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .brand h1 {
        font-size: 22px;
    }

    .btn-google {
        padding: 12px 16px;
        font-size: 14px;
    }

    .welcome-text-area h2 {
        font-size: 18px;
    }

    .protocol-name {
        font-size: 13px;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
.messages-list::-webkit-scrollbar {
    width: 6px;
}

.messages-list::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 3px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.messages-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn-primary:focus,
.btn-google:focus,
.btn-logout:focus,
.btn-logout-small:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Tab focus - only show bottom border, no outline */
.tab-btn:focus {
    outline: none;
}

.tab-btn:focus-visible {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.message-compose textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 144, 128, 0.1);
}
