/* ============================================
   Dashboard Page Styles
   ============================================ */

.dashboard {
    max-width: 1100px;
}

/* ============================================
   Page Header - Loop Title & Selector
   ============================================ */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--club-text-dark);
    margin: 0 0 0.5rem 0;
}

.loop-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loop-number-gold {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--club-accent);
}

.loop-selector-inline {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.loop-selector-inline .loop-select {
    appearance: none;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--club-text-secondary);
    cursor: pointer;
    padding: 0;
    padding-right: 1.25rem;
    outline: none;
}

.loop-selector-inline .loop-select:hover {
    color: var(--club-accent);
}

.loop-selector-inline .loop-select-arrow {
    position: absolute;
    right: 0;
    pointer-events: none;
    color: var(--club-text-secondary);
}

.loop-selector-inline .loop-select:hover + .loop-select-arrow,
.loop-selector-inline:hover .loop-select-arrow {
    color: var(--club-accent);
}

/* ============================================
   Check-in CTA - New Design
   ============================================ */
.checkin-cta {
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.05), transparent);
    border: 1px solid var(--club-accent);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.12);
}

/* Published celebration animation */
.checkin-cta.cta-published {
    animation: celebrate-glow 2.5s ease-in-out infinite;
}

@keyframes celebrate-glow {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.12);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(201, 168, 108, 0.25), 0 4px 20px rgba(201, 168, 108, 0.2);
    }
}

/* Main Layout: Stepper | Content */
.cta-layout {
    display: flex;
}

/* Left Stepper Panel */
.cta-stepper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1.75rem;
    background: var(--club-bg);
    border-right: 1px solid var(--club-border);
}

/* Individual Step - Icon on left, label on right */
.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c5c5c5;
    background: var(--club-surface);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.step-icon svg {
    color: #a0a0a0;
}

.step-icon svg.icon-publish {
    transform: rotate(-45deg);
}

/* Filled icon state (active/complete) */
.step-icon-filled {
    background: var(--club-accent);
    border-color: var(--club-accent);
}

.step-icon-filled svg {
    color: #ffffff;
}

/* Step states */
.step-complete .step-icon {
    background: var(--club-accent);
    border-color: var(--club-accent);
}

.step-complete .step-icon svg {
    color: #ffffff;
}

.step-active .step-icon-filled {
    background: var(--club-accent);
    border-color: var(--club-accent);
}

.step-active .step-icon:not(.step-icon-filled) {
    border-color: #c5c5c5;
    background: var(--club-surface);
}

.step-pending .step-icon {
    border-color: #c5c5c5;
    background: var(--club-surface);
}

.step-pending .step-icon svg {
    color: #a0a0a0;
}

/* Skipped steps (for past months) */
.step-skipped .step-icon {
    border-color: #d0d0d0;
    background: var(--club-surface);
    opacity: 0.6;
}

.step-skipped .step-icon svg {
    color: #b0b0b0;
}

.step-skipped .step-label {
    opacity: 0.6;
}

.step-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--club-text-dark);
    white-space: nowrap;
}

/* Connector with down arrow between steps - centered under icon */
.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 20px;
    margin: 0.25rem 0;
    color: #c5c5c5;
}

.step-connector::before {
    content: '';
    width: 1.5px;
    height: 10px;
    background: currentColor;
}

.step-connector::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    margin-top: -1px;
}

.step-connector-complete {
    color: var(--club-accent);
}

/* Right Content Panel - Centered */
.cta-main {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--club-text-dark);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.cta-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--club-text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    max-width: 420px;
}

.cta-headline {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--club-text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

/* Published Essay Details */
.published-details {
    margin-bottom: 1rem;
}

.published-essay-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--club-text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.published-essay-title-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--club-accent);
    text-decoration: none;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    transition: color 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.published-essay-title-link:hover {
    color: var(--club-accent-dark);
    text-decoration: underline;
}

.published-essay-title-link svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.published-essay-title-link:hover svg {
    opacity: 1;
}

.published-essay-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--club-text-secondary);
    margin: 0 0 0.75rem 0;
    font-style: italic;
}

.published-essay-notes {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--club-text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.published-essay-date {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #999;
    display: block;
}

.cta-context {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--club-text-secondary);
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
    max-width: 400px;
}

.cta-actions-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.cta-link {
    background: none;
    border: none;
    color: var(--club-accent);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.cta-link:hover {
    color: var(--club-accent-dark);
    text-decoration: underline;
}

/* Keep edit-next-btn and publish-btn for JS compatibility */
.edit-next-btn {
    background: none;
    border: none;
    color: var(--club-accent);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.edit-next-btn:hover {
    color: var(--club-accent-dark);
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-content form {
    padding: 1.5rem;
}

.modal-content .form-group {
    margin-bottom: 1.25rem;
}

.modal-content .form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
}

.modal-content .field-instructions {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #6b6b6b;
    margin: 0 0 0.5rem 0;
}

.modal-content .form-input,
.modal-content .form-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #1a1a1a;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-content .form-input:focus,
.modal-content .form-textarea:focus {
    outline: none;
    border-color: #c9a86c;
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.modal-content .form-textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content .char-count {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

/* Status Options in Modal */
.status-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-option:hover {
    background: #f0ede8;
    border-color: #d5d5d5;
}

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

.status-option .radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.status-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--club-accent);
    background: var(--club-accent);
}

.status-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.status-option .radio-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #4a4a4a;
    flex: 1;
    transition: all 0.2s ease;
}

.status-option input[type="radio"]:checked ~ .radio-text {
    color: #1a1a1a;
    font-weight: 500;
}

.status-option .status-score {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--club-accent);
    background: rgba(201, 168, 108, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
    border: 1px solid rgba(201, 168, 108, 0.2);
}

.status-option input[type="radio"]:checked ~ .status-score {
    background: var(--club-accent);
    color: white;
    border-color: var(--club-accent);
}

/* Month Progress Bar */
.month-progress {
    padding: 1.25rem 2rem;
    border-top: 1px solid #e5e5e5;
    background: #fdfcfa;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
}

.progress-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: italic;
    color: #1a1a1a;
}

.progress-goal {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #6b6b6b;
}

.progress-bar {
    height: 10px;
    background: #e0ddd8;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #c9a86c;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* ============================================
   Active Members Section
   ============================================ */
.active-members-section {
    margin-bottom: 2rem;
}

.active-members-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.active-members-section .section-header-simple .section-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
}

.members-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--club-text-dark);
    margin: 0;
}

.participation-rate {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--club-text-secondary);
}

/* Publish Rate Display - Core Group Metric */
.publish-rate-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.publish-rate-number {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--club-accent);
    line-height: 1;
    letter-spacing: -0.01em;
}

.publish-rate-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.publish-rate-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--club-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.publish-rate-breakdown {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--club-text-secondary);
}

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

.member-card {
    background: var(--club-surface);
    border: 1px solid var(--club-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.member-card:hover {
    border-color: var(--club-cream-soft);
    box-shadow: var(--shadow-sm);
}

.member-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Clickable Avatar Link Styles */
.member-avatar-link {
    display: block;
    border-radius: 50%;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.member-avatar-link:hover {
    transform: scale(1.05);
}

.member-avatar-link:hover .member-avatar {
    border-color: var(--club-accent);
    box-shadow: 0 2px 8px rgba(201, 168, 108, 0.3);
}

.member-name-link {
    text-decoration: none;
    color: inherit;
}

.member-name-link:hover .member-name {
    color: var(--club-accent-dark);
}

.member-avatar-initials {
    background: linear-gradient(135deg, var(--club-accent), var(--club-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--club-text-dark);
    margin: 0 0 0.375rem 0;
    line-height: 1.2;
}

.subscribe-btn {
    background: transparent;
    border: 1px solid var(--club-accent);
    color: var(--club-accent);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.subscribe-btn:hover {
    background: var(--club-accent);
    color: white;
    text-decoration: none;
}

.published-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--club-accent);
    color: white;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    margin-top: 0.75rem;
    transition: background 0.2s ease;
}

.published-tag:hover {
    background: var(--club-accent-dark);
}

.published-tag[style*="pointer-events: none"] {
    cursor: default;
}

.published-tag[style*="pointer-events: none"]:hover {
    background: var(--club-accent);
}

.published-tag[style*="pointer-events: none"] svg {
    display: none;
}

.published-tag svg {
    flex-shrink: 0;
}

.member-headline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--club-text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-headline-empty {
    font-style: italic;
    color: var(--club-text-muted, #999);
}

.no-members-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--club-surface);
    border: 1px dashed var(--club-border);
    border-radius: var(--radius-lg);
}

.no-members-message p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--club-text-secondary);
    margin: 0;
}

/* Published State */
.member-card.member-published {
    border: 2px solid var(--club-accent);
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
}

.member-card.member-published:hover {
    border-color: var(--club-accent-dark);
}

/* ============================================
   Activity Feed Section
   ============================================ */
.activity-feed-section {
    margin-bottom: 2rem;
    padding-top: 2.5rem;
}

.activity-feed-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--club-border);
}

.activity-feed-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--club-text-dark);
    margin: 0;
}

/* Activity Filter Pills */
.activity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--club-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.activity-filter:hover {
    background: var(--club-surface);
    color: var(--club-text-dark);
}

.activity-filter.active {
    background: var(--club-accent);
    color: white;
}

.activity-filter.active svg {
    stroke: white;
}

.activity-filter svg {
    flex-shrink: 0;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    padding-top: 1.25rem;
}

/* Activity Date Headers */
.activity-date-header {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--club-text-dark);
    margin: 0;
    padding: 1.5rem 0 0.75rem 0;
    border-bottom: 1px solid var(--club-border);
}

.activity-date-header:first-child {
    padding-top: 0.5rem;
}

.activity-date-group {
    display: flex;
    flex-direction: column;
}

.activity-date-group .activity-timeline-item:last-child {
    border-bottom: none;
}

.activity-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--club-border);
}

.activity-timeline-item:last-child {
    border-bottom: none;
}

/* Main Avatar (Profile Picture) - Left Side */
.activity-main-avatar {
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.activity-main-avatar:hover {
    transform: scale(1.05);
}

.activity-main-avatar:hover .activity-avatar-large {
    border-color: var(--club-accent);
    box-shadow: 0 4px 12px rgba(201, 168, 108, 0.25);
}

.activity-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-avatar-large-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--club-accent), var(--club-accent-dark));
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.activity-extra-people {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--club-surface);
    border: 2px solid white;
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--club-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Activity Type Icon - Right Side */
.activity-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.activity-timeline-item:hover .activity-type-icon {
    opacity: 1;
}

.activity-type-icon svg {
    width: 18px;
    height: 18px;
}

/* Type Icon color variations */
.activity-type-optins {
    background: rgba(34, 197, 94, 0.1);
}
.activity-type-optins svg {
    stroke: #22c55e;
}

.activity-type-new-members {
    background: rgba(59, 130, 246, 0.1);
}
.activity-type-new-members svg {
    stroke: #3b82f6;
}

.activity-type-published {
    background: rgba(201, 168, 108, 0.15);
}
.activity-type-published svg {
    stroke: var(--club-accent);
}

.activity-type-feedback {
    background: rgba(168, 85, 247, 0.1);
}
.activity-type-feedback svg {
    stroke: #a855f7;
}

.activity-type-forum {
    background: rgba(107, 114, 128, 0.1);
}
.activity-type-forum svg {
    stroke: #6b7280;
}

.activity-type-read {
    background: rgba(236, 72, 153, 0.1);
}
.activity-type-read svg {
    stroke: #ec4899;
}

.activity-type-meetings {
    background: rgba(245, 158, 11, 0.1);
}
.activity-type-meetings svg {
    stroke: #f59e0b;
}

/* Activity Content - Middle */
.activity-timeline-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.125rem;
}

.activity-date {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--club-text-secondary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.activity-date-separator {
    color: var(--club-text-secondary);
    margin: 0 0.375rem;
    font-weight: 400;
}

.activity-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--club-text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

/* Clickable title link for published essays */
.activity-title-link {
    color: var(--club-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.activity-title-link:hover {
    color: var(--club-accent-dark);
    text-decoration: underline;
}

/* Highlighted title text (non-clickable) for feedback drafts */
.activity-title-highlight {
    color: var(--club-accent);
}

/* Forum Card Style - clickable card appearance */
.activity-forum-card {
    background: var(--club-surface);
    border: 1px solid var(--club-border);
    border-radius: var(--radius-md);
    margin: 0.5rem 0;
    padding: 1rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-forum-card:hover {
    border-color: var(--club-accent);
    box-shadow: 0 4px 12px rgba(201, 168, 108, 0.15);
    transform: translateY(-1px);
}

.activity-forum-card:first-child {
    margin-top: 0;
}

.activity-forum-card .activity-title-link {
    pointer-events: auto;
}

/* Make the whole card clickable except for specific interactive elements */
.activity-forum-card .activity-main-avatar,
.activity-forum-card .activity-title-link {
    position: relative;
    z-index: 2;
}

.activity-meta {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--club-text-secondary);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.activity-meta:empty {
    display: none;
}

/* Activity Context Box - for opt-in context details */
.activity-context-box {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--club-text-secondary);
    line-height: 1.5;
    border-left: 3px solid #e0e0e0;
}

/* Activity Comments Section - nested comments for published essays */
.activity-comments-section {
    margin-top: 0.75rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.activity-comments-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--club-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.activity-comments-header svg {
    flex-shrink: 0;
    stroke: var(--club-text-secondary);
}

.activity-comments-list {
    padding: 0.5rem 0;
}

.activity-comment-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    transition: background 0.15s ease;
}

.activity-comment-item:hover {
    background: #f0f0f0;
}

.activity-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.activity-comment-avatar:hover {
    transform: scale(1.1);
}

.activity-comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.activity-comment-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--club-accent), var(--club-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
}

.activity-comment-content {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.4;
}

.activity-comment-name {
    font-weight: 600;
    color: var(--club-text-dark);
}

.activity-comment-action {
    color: var(--club-text-secondary);
}

.activity-comment-time {
    color: #999;
    font-size: 0.75rem;
}

/* Forum Category Tag */
.activity-category-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 100px;
    padding: 0.3rem 0.65rem;
}

/* Category Tag Color Variants - matching forum.css */
.activity-category-tag.category-announcements {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.activity-category-tag.category-general {
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
}

.activity-category-tag.category-check-this-out,
.activity-category-tag.category-recommendations {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.activity-category-tag.category-feature-requests {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.activity-category-tag.category-introductions {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.activity-category-tag.category-craft-talk {
    background: rgba(201, 168, 108, 0.15);
    color: var(--club-accent-dark);
}

.activity-category-tag.category-opportunities {
    background: rgba(20, 184, 166, 0.12);
    color: #0d9488;
}

.activity-category-tag.category-resources {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.activity-category-tag.category-wins {
    background: rgba(251, 191, 36, 0.15);
    color: #b45309;
}

.activity-category-tag.category-struggles {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* Meeting Activity Item - No left avatar */
.activity-meeting-item {
    /* Meeting items don't have a main avatar, so adjust layout */
}

.activity-meeting-item .activity-timeline-content {
    flex: 1;
}

/* Meeting Activity Avatars - Row of profile pictures */
.meeting-activity-avatars {
    display: flex;
    align-items: center;
    margin-top: 0.625rem;
}

.meeting-attendee-avatar-link {
    display: block;
    margin-left: -12px;
    transition: transform 0.15s ease, z-index 0.15s ease;
    position: relative;
    z-index: 1;
}

.meeting-attendee-avatar-link:first-child {
    margin-left: 0;
}

.meeting-attendee-avatar-link:hover {
    transform: scale(1.15) translateY(-2px);
    z-index: 10;
}

.meeting-attendee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--club-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.meeting-attendee-initials {
    background: linear-gradient(135deg, var(--club-accent), var(--club-accent-dark));
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.meeting-attendee-overflow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--club-surface);
    border: 3px solid var(--club-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--club-text-secondary);
    margin-left: -12px;
}

.meeting-notes-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--club-surface);
    border: 1px solid var(--club-border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--club-text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.75rem;
}

.meeting-notes-btn:hover {
    background: var(--club-accent);
    border-color: var(--club-accent);
    color: white;
}

.meeting-notes-btn svg {
    flex-shrink: 0;
}

/* Activity Empty State */
.activity-empty-state {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--club-text-secondary);
}

.activity-empty-state p {
    font-family: var(--font-body);
    font-size: 1rem;
    margin: 0;
}

/* Activity People */
/* Legacy Activity People styles - kept for backward compatibility */
.activity-people {
    display: none;
}

/* ============================================
   Activity Pagination
   ============================================ */
.activity-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--club-border);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--club-surface);
    border: 1px solid var(--club-border);
    border-radius: 10px;
    color: var(--club-text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--club-accent);
    border-color: var(--club-accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 108, 0.25);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--club-bg);
}

.pagination-btn svg {
    width: 18px;
    height: 18px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--club-text-secondary);
    min-width: 80px;
    justify-content: center;
}

.pagination-current {
    font-weight: 600;
    color: var(--club-text-dark);
    background: var(--club-surface);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--club-border);
    min-width: 32px;
    text-align: center;
}

.pagination-separator {
    font-weight: 400;
    color: var(--club-text-secondary);
}

.pagination-total {
    font-weight: 500;
    color: var(--club-text-secondary);
}

/* Activity Loading State */
.activity-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--club-text-secondary);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--club-border);
    border-top-color: var(--club-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Timeline transition for loading state */
.activity-timeline {
    transition: opacity 0.2s ease;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cta-layout {
        flex-direction: column;
    }
    
    .cta-stepper {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        padding: 1.25rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--club-border);
        gap: 0.5rem;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-connector {
        width: 20px;
        height: 2px;
        margin: 15px 0.25rem 0;
    }
    
    .cta-main {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.25rem;
    }
    
    .cta-description {
        max-width: 100%;
        font-size: 0.9rem;
    }
    
    .cta-actions-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .month-progress {
        padding: 1rem 1.5rem;
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .active-members-section .section-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .members-title {
        font-size: 1.15rem;
    }
    
    .publish-rate-display {
        align-self: flex-start;
    }
    
    .publish-rate-number {
        font-size: 1.5rem;
    }
    
    .publish-rate-label {
        font-size: 0.75rem;
    }
    
    .publish-rate-breakdown {
        font-size: 0.7rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .loop-info-row {
        flex-wrap: wrap;
    }
    
    .progress-labels {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Activity Feed Responsive */
    .activity-feed-header {
        gap: 0.75rem;
        padding-bottom: 1rem;
    }
    
    .activity-feed-header h2 {
        font-size: 1.75rem;
    }
    
    .activity-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .activity-filter {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .activity-timeline {
        padding-top: 1rem;
    }
    
    .activity-date-header {
        font-size: 1rem;
        padding: 1.25rem 0 0.625rem 0;
    }
    
    .activity-date-header:first-child {
        padding-top: 0.375rem;
    }
    
    .activity-timeline-item {
        padding: 1rem 0;
    }
    
    .activity-avatar-large {
        width: 42px;
        height: 42px;
    }
    
    .activity-avatar-large-initials {
        font-size: 0.9rem;
    }
    
    .activity-extra-people {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
    }
    
    .activity-type-icon {
        width: 32px;
        height: 32px;
    }
    
    .activity-type-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .activity-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .activity-title {
        font-size: 0.95rem;
    }
    
    .activity-meta {
        font-size: 0.8rem;
    }
    
    .activity-context-box {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .activity-comments-section {
        margin-top: 0.625rem;
    }
    
    .activity-comments-header {
        padding: 0.4rem 0.625rem;
        font-size: 0.7rem;
    }
    
    .activity-comment-item {
        padding: 0.4rem 0.625rem;
        gap: 0.5rem;
    }
    
    .activity-comment-avatar {
        width: 24px;
        height: 24px;
    }
    
    .activity-comment-avatar-initials {
        font-size: 0.55rem;
    }
    
    .activity-comment-content {
        font-size: 0.75rem;
    }
    
    .activity-comment-time {
        font-size: 0.7rem;
    }
    
    .activity-forum-card {
        padding: 0.875rem !important;
        margin: 0.4rem 0;
    }
    
    /* Meeting Attendees Responsive */
    .meeting-attendee-avatar {
        width: 42px;
        height: 42px;
        border-width: 2px;
    }
    
    .meeting-attendee-initials {
        font-size: 0.9rem;
    }
    
    .meeting-attendee-overflow {
        width: 42px;
        height: 42px;
        font-size: 0.75rem;
        border-width: 2px;
        margin-left: -10px;
    }
    
    .meeting-attendee-avatar-link {
        margin-left: -10px;
    }
    
    .meeting-attendee-avatar-link:first-child {
        margin-left: 0;
    }
    
    .meeting-notes-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Pagination Responsive */
    .activity-pagination {
        gap: 0.75rem;
        padding: 1.25rem 0;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
    }
    
    .pagination-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .pagination-info {
        font-size: 0.85rem;
        gap: 0.375rem;
    }
    
    .pagination-current {
        padding: 0.3rem 0.6rem;
        min-width: 28px;
    }
}

@media (max-width: 480px) {
    .cta-stepper {
        padding: 1rem 0.75rem;
        gap: 0.25rem;
    }
    
    .step-icon {
        width: 28px;
        height: 28px;
    }
    
    .step-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-connector {
        width: 12px;
        margin-top: 13px;
    }
    
    .cta-main {
        padding: 1.25rem 1rem;
    }
    
    .cta-title {
        font-size: 1.15rem;
    }
    
    .cta-description {
        font-size: 0.85rem;
    }
    
    .month-progress {
        padding: 0.875rem 1rem;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    /* Activity Feed Mobile */
    .activity-feed-header h2 {
        font-size: 1.5rem;
    }
    
    .activity-timeline-item {
        gap: 0.75rem;
    }
    
    .activity-avatar-large {
        width: 36px;
        height: 36px;
    }
    
    .activity-avatar-large-initials {
        font-size: 0.8rem;
    }
    
    .activity-extra-people {
        width: 18px;
        height: 18px;
        font-size: 0.5rem;
        bottom: -2px;
        right: -2px;
    }
    
    .activity-type-icon {
        width: 28px;
        height: 28px;
    }
    
    .activity-type-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .activity-title {
        font-size: 0.9rem;
    }
    
    .activity-date {
        font-size: 0.65rem;
    }
    
    .activity-meta {
        font-size: 0.75rem;
    }
    
    .activity-context-box {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .activity-comments-section {
        margin-top: 0.5rem;
    }
    
    .activity-comments-header {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .activity-comments-header svg {
        width: 12px;
        height: 12px;
    }
    
    .activity-comment-item {
        padding: 0.35rem 0.5rem;
        gap: 0.4rem;
    }
    
    .activity-comment-avatar {
        width: 22px;
        height: 22px;
    }
    
    .activity-comment-avatar-initials {
        font-size: 0.5rem;
    }
    
    .activity-comment-content {
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .activity-comment-time {
        font-size: 0.65rem;
    }
    
    .activity-forum-card {
        padding: 0.75rem !important;
        margin: 0.35rem 0;
    }
    
    .activity-person {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Meeting Attendees Mobile */
    .meeting-attendee-avatar {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }
    
    .meeting-attendee-initials {
        font-size: 0.8rem;
    }
    
    .meeting-attendee-overflow {
        width: 36px;
        height: 36px;
        font-size: 0.65rem;
        border-width: 2px;
        margin-left: -8px;
    }
    
    .meeting-attendee-avatar-link {
        margin-left: -8px;
    }
    
    .meeting-attendee-avatar-link:first-child {
        margin-left: 0;
    }
    
    .meeting-notes-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
        gap: 0.375rem;
        margin-top: 0.5rem;
    }
    
    .meeting-notes-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* Pagination Mobile */
    .activity-pagination {
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
    }
    
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .pagination-current {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}
