/* r8f LMS - Frontend Styles */

:root {
    --r8f-primary: #005f69;
    --r8f-secondary: #d81f88;
    --r8f-accent: #00ffb3;
    --r8f-headline: #7e0c4d;
    --r8f-text: #002f34;
    --r8f-bg-light: #fdfaf3;
    --r8f-green-light: #c7fff1;
    --r8f-yellow-light: #f1ffbf;
    --r8f-purple-light: #e5d9ff;
    --r8f-neutral-light: #e9e5db;
    --r8f-pink-light: #f3d8e7;
    --r8f-success: #16a34a;
    --r8f-error: #c62828;
    --r8f-border: #e4e4e7;
    --r8f-muted: #71717a;
}

/* Course List Grid */
.r8f-course-list {
    display: grid;
    gap: 24px;
}
.r8f-columns-2 { grid-template-columns: repeat(2, 1fr); }
.r8f-columns-3 { grid-template-columns: repeat(3, 1fr); }
.r8f-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .r8f-course-list { grid-template-columns: 1fr; }
}

/* Course Card */
.r8f-course-card {
    border: 1px solid var(--r8f-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.r8f-course-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.r8f-course-card__image img {
    width: 100%;
    height: auto;
    display: block;
}
.r8f-course-card__content {
    padding: 16px;
}
.r8f-course-card__title {
    margin: 0 0 8px;
    font-size: 1.1em;
}
.r8f-course-card__title a {
    text-decoration: none;
    color: inherit;
}
.r8f-course-card__excerpt {
    color: var(--r8f-muted);
    font-size: 0.9em;
    margin: 0 0 12px;
}

/* Badges */
.r8f-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}
.r8f-badge--free { background: var(--r8f-green-light); color: var(--r8f-primary); }
.r8f-badge--paid { background: var(--r8f-pink-light); color: var(--r8f-secondary); }
.r8f-badge--complete { background: var(--r8f-green-light); color: var(--r8f-success); }

/* Progress Bar */
.r8f-progress-bar {
    background: var(--r8f-neutral-light);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin: 8px 0 4px;
}
.r8f-progress-bar__fill {
    background: var(--r8f-primary);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.r8f-progress-bar__label {
    font-size: 0.85em;
    color: var(--r8f-muted);
}

/* Course Content (outline) */
.r8f-course-content {
    max-width: 800px;
}
.r8f-module {
    border: 1px solid var(--r8f-border);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}
.r8f-module--locked {
    opacity: 0.7;
}
.r8f-module__header {
    padding: 12px 16px;
    background: var(--r8f-bg-light);
    border-bottom: 1px solid var(--r8f-border);
}
.r8f-module__title {
    margin: 0;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.r8f-module__unlock-date {
    font-size: 0.85em;
    color: var(--r8f-muted);
    font-weight: normal;
}
.r8f-lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.r8f-lesson-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--r8f-neutral-light);
}
.r8f-lesson-item:last-child {
    border-bottom: 0;
}
.r8f-lesson-item a {
    text-decoration: none;
    color: var(--r8f-primary);
}
.r8f-lesson-item a:hover {
    text-decoration: underline;
}
.r8f-lesson-item--complete {
    background: var(--r8f-green-light);
}

/* Course Header */
.r8f-course-header {
    margin-bottom: 24px;
}
.r8f-course-header__breadcrumb {
    margin-bottom: 16px;
}
.r8f-course-header__breadcrumb a {
    text-decoration: none;
    color: var(--r8f-muted);
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.15s;
}
.r8f-course-header__breadcrumb a:hover {
    color: var(--r8f-primary);
}
.r8f-course-header__breadcrumb i {
    margin-right: 4px;
}
.r8f-course-header__title {
    margin: 0 0 20px;
    font-size: 2em;
    font-weight: 700;
    color: var(--r8f-headline);
    line-height: 1.2;
}
.r8f-course-header__image {
    margin-bottom: 16px;
}
.r8f-course-header__img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.r8f-course-header__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.r8f-course-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: var(--r8f-muted);
}
.r8f-course-header__meta-item i {
    color: var(--r8f-primary);
}

@media (max-width: 768px) {
    .r8f-course-header__title {
        font-size: 1.5em;
    }
}

/* Course Sidebar */
.r8f-course-sidebar {
    position: relative;
}
.r8f-course-sidebar__toggle {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--r8f-primary);
    color: #fff;
    border: 0;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    transition: background 0.15s;
}
.r8f-course-sidebar__toggle:hover {
    background: var(--r8f-headline);
}
.r8f-course-sidebar--open .r8f-course-sidebar__toggle,
.r8f-course-sidebar--desktop-open .r8f-course-sidebar__toggle {
    display: none;
}
.r8f-course-sidebar__panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid var(--r8f-border);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 16px rgba(0,0,0,0.08);
}
.admin-bar .r8f-course-sidebar__panel {
    top: 32px;
    height: calc(100vh - 32px);
}
.admin-bar .r8f-course-sidebar__toggle {
    top: calc(50% + 16px);
}
@media (max-width: 782px) {
    .admin-bar .r8f-course-sidebar__panel {
        top: 46px;
        height: calc(100vh - 46px);
    }
    .admin-bar .r8f-course-sidebar__toggle {
        top: calc(50% + 23px);
    }
}
.r8f-course-sidebar--open .r8f-course-sidebar__panel,
.r8f-course-sidebar--desktop-open .r8f-course-sidebar__panel {
    transform: translateX(0);
}
.r8f-course-sidebar__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: 0;
    font-size: 1.2em;
    color: var(--r8f-muted);
    cursor: pointer;
    padding: 4px 8px;
}
.r8f-course-sidebar__close:hover {
    color: var(--r8f-text);
}

/* Sidebar Header */
.r8f-course-sidebar__header {
    padding: 20px;
    border-bottom: 1px solid var(--r8f-border);
}
.r8f-course-sidebar__course-title {
    display: block;
    font-weight: 700;
    font-size: 1em;
    color: var(--r8f-headline);
    text-decoration: none;
    margin-bottom: 12px;
    padding-right: 28px;
}
.r8f-course-sidebar__course-title:hover {
    color: var(--r8f-primary);
}
.r8f-course-sidebar__progress {
    display: flex;
    align-items: center;
    gap: 10px;
}
.r8f-course-sidebar__progress-bar {
    flex: 1;
    background: var(--r8f-neutral-light);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}
.r8f-course-sidebar__progress-fill {
    background: linear-gradient(90deg, var(--r8f-primary), var(--r8f-accent));
    height: 100%;
    border-radius: 4px;
}
.r8f-course-sidebar__progress-label {
    font-size: 0.8em;
    color: var(--r8f-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Sidebar Nav */
.r8f-course-sidebar__nav {
    padding: 8px 0;
}

/* Module accordion */
.r8f-course-sidebar__module {
    border-bottom: 1px solid var(--r8f-border);
}
.r8f-course-sidebar__module:last-child {
    border-bottom: 0;
}
.r8f-course-sidebar__module-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.9em;
    transition: background 0.15s;
}
.r8f-course-sidebar__module-header:hover {
    background: var(--r8f-bg-light);
}
.r8f-course-sidebar__module-title {
    flex: 1;
    text-decoration: none;
    color: var(--r8f-text);
    font-weight: 600;
}
.r8f-course-sidebar__module-title:hover {
    color: var(--r8f-primary);
}
.r8f-course-sidebar__module-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 4px 6px;
    color: var(--r8f-muted);
    border-radius: 4px;
    transition: background 0.15s;
}
.r8f-course-sidebar__module-toggle:hover {
    background: var(--r8f-neutral-light);
    color: var(--r8f-text);
}
.r8f-course-sidebar__module-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.r8f-course-sidebar__chevron {
    font-size: 0.75em;
    color: var(--r8f-muted);
    transition: transform 0.2s;
}
.r8f-course-sidebar__module--open .r8f-course-sidebar__chevron {
    transform: rotate(180deg);
}

/* Lesson items */
.r8f-course-sidebar__module-lessons {
    padding-bottom: 4px;
}
.r8f-course-sidebar__lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 32px;
    text-decoration: none;
    color: var(--r8f-text);
    font-size: 0.85em;
    transition: background 0.15s;
}
.r8f-course-sidebar__lesson:hover {
    background: var(--r8f-bg-light);
}
.r8f-course-sidebar__lesson--current {
    background: var(--r8f-green-light);
    font-weight: 600;
}
.r8f-course-sidebar__lesson--current:hover {
    background: var(--r8f-green-light);
}
.r8f-course-sidebar__lesson-icon {
    color: var(--r8f-muted);
    font-size: 0.9em;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.r8f-course-sidebar__lesson--current .r8f-course-sidebar__lesson-icon {
    color: var(--r8f-primary);
}
.r8f-course-sidebar__lesson-title {
    flex: 1;
    line-height: 1.4;
}
.r8f-course-sidebar__lesson-check {
    color: var(--r8f-success);
    font-size: 0.85em;
    flex-shrink: 0;
}


/* Lesson */
.r8f-lesson {
    max-width: 900px;
}
.r8f-lesson__video-wrapper {
    margin-bottom: 20px;
}
.r8f-lesson__video-wrapper iframe {
    border-radius: 8px;
}
.r8f-lesson__actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--r8f-border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.r8f-lesson__status--complete {
    color: var(--r8f-success);
    font-weight: 600;
}
.r8f-video-threshold-hint {
    font-size: 0.85em;
    color: var(--r8f-muted);
}
.r8f-complete-error {
    color: var(--r8f-error);
    font-size: 0.9em;
    margin-top: 8px;
}

/* Assessment */
.r8f-assessment-form {
    max-width: 800px;
}
.r8f-assessment-question {
    border: 1px solid var(--r8f-border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: var(--r8f-bg-light);
}
.r8f-assessment-question__title {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 12px;
    padding: 0;
    color: var(--r8f-headline);
}
.r8f-assessment-question__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.r8f-assessment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--r8f-border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.r8f-assessment-option:hover {
    border-color: var(--r8f-primary);
}
.r8f-assessment-option input[type="checkbox"] {
    margin: 0;
}
.r8f-assessment-question__text-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--r8f-border);
    border-radius: 4px;
    font-size: 1em;
    color: var(--r8f-text);
}
.r8f-assessment-question__feedback {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}
.r8f-assessment-question__feedback--correct {
    background: var(--r8f-green-light);
    color: var(--r8f-success);
}
.r8f-assessment-question__feedback--wrong {
    background: var(--r8f-pink-light);
    color: var(--r8f-error);
}


/* Course Overview */
.r8f-course-overview {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--r8f-neutral-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--r8f-border);
}
.r8f-course-overview__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    text-decoration: none;
    color: var(--r8f-text);
    transition: background-color 0.15s;
}
.r8f-course-overview__item:hover {
    background: var(--r8f-bg-light);
}
.r8f-course-overview__item--complete {
    background: var(--r8f-green-light);
}
.r8f-course-overview__item--complete:hover {
    background: var(--r8f-green-light);
}
.r8f-course-overview__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.85em;
    flex-shrink: 0;
}
.r8f-course-overview__icon--text {
    background: var(--r8f-purple-light);
    color: var(--r8f-primary);
}
.r8f-course-overview__icon--video {
    background: var(--r8f-pink-light);
    color: var(--r8f-secondary);
}
.r8f-course-overview__icon--assessment {
    background: var(--r8f-yellow-light);
    color: var(--r8f-headline);
}
.r8f-course-overview__title {
    flex: 1;
    font-size: 0.95em;
    font-weight: 500;
    color: var(--r8f-text);
    line-height: 1.4;
}
.r8f-course-overview__item--module .r8f-course-overview__title {
    font-weight: 600;
}
.r8f-course-overview__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--r8f-green-light);
    color: var(--r8f-success);
    font-size: 0.8em;
    font-weight: 700;
    flex-shrink: 0;
}
.r8f-course-overview__item--module {
    padding: 18px 20px;
}
.r8f-course-overview__item--module + .r8f-course-overview__item--lesson {
    border-top: none;
}

/* My Courses Overview */
.r8f-my-courses-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.r8f-my-courses-overview__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--r8f-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: var(--r8f-text);
    transition: box-shadow 0.2s;
}
.r8f-my-courses-overview__card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.r8f-my-courses-overview__card--complete {
    border-color: var(--r8f-green-light);
}
.r8f-my-courses-overview__image img {
    width: 100%;
    height: auto;
    display: block;
}
.r8f-my-courses-overview__content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.r8f-my-courses-overview__title {
    margin: 0 0 4px;
    font-size: 1em;
    font-weight: 600;
    color: var(--r8f-headline);
}
.r8f-my-courses-overview__excerpt {
    margin: 0 0 8px;
    font-size: 0.85em;
    color: var(--r8f-muted);
    line-height: 1.5;
}
.r8f-my-courses-overview__meta {
    display: flex;
    gap: 14px;
    font-size: 0.8em;
    color: var(--r8f-muted);
    margin-bottom: 12px;
}
.r8f-my-courses-overview__meta i {
    margin-right: 3px;
}
.r8f-my-courses-overview__progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.r8f-my-courses-overview__progress-bar {
    flex: 1;
    background: var(--r8f-neutral-light);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}
.r8f-my-courses-overview__progress-fill {
    background: linear-gradient(90deg, var(--r8f-primary), var(--r8f-accent));
    height: 100%;
    border-radius: 4px;
}
.r8f-my-courses-overview__progress-label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--r8f-muted);
    flex-shrink: 0;
}
.r8f-my-courses-overview__title-link {
    text-decoration: none;
    color: inherit;
}
.r8f-my-courses-overview__title-link:hover .r8f-my-courses-overview__title {
    color: var(--r8f-primary);
}
.r8f-my-courses-overview__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    text-decoration: none;
    font-size: 0.9em;
}

@media (max-width: 640px) {
    .r8f-my-courses-overview {
        grid-template-columns: 1fr;
    }
}

/* My Courses */
.r8f-my-courses {
    display: grid;
    gap: 16px;
}
.r8f-my-course-card {
    display: flex;
    gap: 16px;
    border: 1px solid var(--r8f-border);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    align-items: center;
}
.r8f-my-course-card__image {
    flex-shrink: 0;
    width: 120px;
}
.r8f-my-course-card__image img {
    width: 100%;
    border-radius: 4px;
}
.r8f-my-course-card__content {
    flex: 1;
}
.r8f-my-course-card__title {
    margin: 0 0 8px;
    font-size: 1em;
}
.r8f-my-course-card__title a {
    text-decoration: none;
    color: inherit;
}

/* Course Progress Widget */
.r8f-course-progress__info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--r8f-muted);
}
.r8f-course-progress__pct {
    font-weight: 600;
    color: var(--r8f-primary);
}

/* Enroll Button */
.r8f-enroll-button {
    margin: 16px 0;
}

/* Registration Form */
.r8f-registration-form {
    max-width: 480px;
}
.r8f-form__field {
    margin-bottom: 16px;
}
.r8f-form__field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--r8f-text);
}
.r8f-form__field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--r8f-border);
    border-radius: 4px;
    font-size: 1em;
    color: var(--r8f-text);
}
.r8f-form__field .required {
    color: var(--r8f-error);
}
.r8f-form__actions {
    margin-top: 20px;
}
.r8f-form__login-link {
    margin-top: 12px;
    font-size: 0.9em;
}

/* Course Content Blocks */
.r8f-course-blocks {
    margin: 24px 0;
}
.r8f-course-blocks__title {
    margin: 32px 0 16px;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--r8f-headline);
}
/* Welcome */
.r8f-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.r8f-welcome__left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.r8f-welcome__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--r8f-border);
}
.r8f-welcome__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.r8f-welcome__greeting {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--r8f-headline);
}
.r8f-welcome__rank {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: var(--r8f-muted);
    font-weight: 500;
}
.r8f-welcome__streak {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--r8f-border);
    border-radius: 12px;
    background: #fff;
}
.r8f-welcome__streak i {
    color: #f97316;
    font-size: 1.3em;
}
.r8f-welcome__streak-count {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--r8f-text);
    line-height: 1;
}
.r8f-welcome__streak-label {
    font-size: 0.75em;
    color: var(--r8f-muted);
}

/* Stats Bar */
.r8f-stats-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.r8f-stats-bar__card {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 1px solid var(--r8f-border);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
}
.r8f-stats-bar__card--wide {
    min-width: 180px;
}
.r8f-stats-bar__value {
    display: block;
    font-size: 1.6em;
    font-weight: 800;
    color: var(--r8f-primary);
    line-height: 1.2;
}
.r8f-stats-bar__label {
    display: block;
    font-size: 0.8em;
    color: var(--r8f-muted);
    margin-top: 4px;
}
.r8f-stats-bar__rank-bar {
    background: var(--r8f-neutral-light);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}
.r8f-stats-bar__rank-fill {
    background: linear-gradient(90deg, var(--r8f-primary), var(--r8f-accent));
    height: 100%;
    border-radius: 4px;
}
.r8f-stats-bar__rank-label {
    font-size: 0.75em;
    color: var(--r8f-muted);
}

@media (max-width: 640px) {
    .r8f-stats-bar__card {
        min-width: calc(50% - 6px);
    }
}

/* Current Week (next 7 days) */
.r8f-current-week {
    border: 1px solid var(--r8f-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.r8f-current-week__header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--r8f-border);
    background: var(--r8f-bg-light);
}
.r8f-current-week__heading {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--r8f-headline);
    display: flex;
    align-items: center;
    gap: 8px;
}
.r8f-current-week__heading i {
    color: var(--r8f-primary);
}
.r8f-current-week__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.r8f-current-week__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 6px;
    text-decoration: none;
    color: var(--r8f-text);
    border-right: 1px solid var(--r8f-border);
    transition: background 0.15s;
    min-height: 100px;
}
.r8f-current-week__day:last-child {
    border-right: 0;
}
.r8f-current-week__day--active:hover {
    background: var(--r8f-bg-light);
}
.r8f-current-week__day--rest {
    opacity: 0.35;
}
.r8f-current-week__day--complete {
    background: var(--r8f-green-light);
}
.r8f-current-week__day--today {
    background: var(--r8f-bg-light);
    box-shadow: inset 0 -3px 0 var(--r8f-primary);
}
.r8f-current-week__day--today.r8f-current-week__day--complete {
    box-shadow: inset 0 -3px 0 var(--r8f-success);
}
.r8f-current-week__day-label {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--r8f-muted);
}
.r8f-current-week__day--today .r8f-current-week__day-label {
    color: var(--r8f-primary);
    font-weight: 700;
}
.r8f-current-week__day-date {
    font-size: 0.65em;
    color: var(--r8f-muted);
}
.r8f-current-week__day-icon {
    font-size: 1.3em;
    color: var(--r8f-primary);
}
.r8f-current-week__day--complete .r8f-current-week__day-icon {
    color: var(--r8f-success);
}
.r8f-current-week__day--rest .r8f-current-week__day-icon {
    color: var(--r8f-muted);
    font-size: 0.9em;
}
.r8f-current-week__day-title {
    font-size: 0.7em;
    text-align: center;
    line-height: 1.3;
    color: var(--r8f-text);
    word-break: break-word;
}
.r8f-current-week__day-course {
    font-size: 0.6em;
    color: var(--r8f-muted);
    text-align: center;
}
/* Multi-workout day */
.r8f-current-week__day--multi {
    gap: 6px;
    padding-bottom: 8px;
}
.r8f-current-week__day-workout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--r8f-text);
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
    width: 100%;
}
.r8f-current-week__day-workout:hover {
    background: rgba(0,0,0,0.04);
}
.r8f-current-week__day-workout--complete .r8f-current-week__day-icon {
    color: var(--r8f-success);
}
.r8f-current-week__day-workout .r8f-current-week__day-icon {
    font-size: 1em;
}
.r8f-current-week__day-workout .r8f-current-week__day-title {
    font-size: 0.6em;
}

@media (max-width: 640px) {
    .r8f-current-week__day {
        min-height: 80px;
        padding: 10px 4px;
    }
    .r8f-current-week__day-title,
    .r8f-current-week__day-course {
        display: none;
    }
}

/* Next Workout */
.r8f-next-workout {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--r8f-border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: var(--r8f-text);
    transition: box-shadow 0.2s;
}
.r8f-next-workout:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.r8f-next-workout--done {
    cursor: default;
}
.r8f-next-workout--done:hover {
    box-shadow: none;
}
.r8f-next-workout__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--r8f-primary);
    color: #fff;
    font-size: 1.3em;
    flex-shrink: 0;
}
.r8f-next-workout--done .r8f-next-workout__icon {
    background: var(--r8f-green-light);
    color: var(--r8f-success);
}
.r8f-next-workout__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.r8f-next-workout__label {
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--r8f-primary);
}
.r8f-next-workout__title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--r8f-headline);
}
.r8f-next-workout__meta {
    font-size: 0.85em;
    color: var(--r8f-muted);
}
.r8f-next-workout__arrow {
    font-size: 1.2em;
    color: var(--r8f-muted);
    flex-shrink: 0;
}
.r8f-next-workout:hover .r8f-next-workout__arrow {
    color: var(--r8f-primary);
}

/* Push Notifications */
.r8f-push-notification {
    display: flex;
    align-items: center;
    gap: 12px;
}
.r8f-push-notification__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    text-decoration: none;
}
.r8f-push-notification__status {
    font-size: 0.9em;
    color: var(--r8f-success);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Missed Workouts */
.r8f-missed-workouts {
    border: 1px solid var(--r8f-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.r8f-missed-workouts__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--r8f-pink-light);
    border-bottom: 1px solid var(--r8f-border);
    font-weight: 700;
    font-size: 0.9em;
    color: var(--r8f-error);
}
.r8f-missed-workouts__list {
    display: flex;
    flex-direction: column;
}
.r8f-missed-workouts__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--r8f-text);
    border-bottom: 1px solid var(--r8f-border);
    transition: background 0.15s;
}
.r8f-missed-workouts__item:last-child {
    border-bottom: 0;
}
.r8f-missed-workouts__item:hover {
    background: var(--r8f-bg-light);
}
.r8f-missed-workouts__icon {
    font-size: 1.2em;
    color: var(--r8f-muted);
    flex-shrink: 0;
}
.r8f-missed-workouts__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.r8f-missed-workouts__title {
    font-weight: 600;
    font-size: 0.95em;
}
.r8f-missed-workouts__meta {
    font-size: 0.8em;
    color: var(--r8f-muted);
}
.r8f-missed-workouts__action {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--r8f-primary);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.r8f-missed-workouts__item:hover .r8f-missed-workouts__action {
    color: var(--r8f-headline);
}

@media (max-width: 640px) {
    .r8f-missed-workouts__action {
        display: none;
    }
}

/* Training Onboarding */
.r8f-training-onboarding {
    max-width: 500px;
}
.r8f-training-onboarding__title {
    margin: 0 0 8px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--r8f-headline);
}
.r8f-training-onboarding__desc {
    color: var(--r8f-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}
.r8f-training-onboarding__field {
    margin-bottom: 20px;
}
.r8f-training-onboarding__label {
    display: block;
    font-weight: 600;
    color: var(--r8f-text);
    margin-bottom: 8px;
    font-size: 0.95em;
}
.r8f-training-onboarding__label i {
    color: var(--r8f-primary);
    margin-right: 4px;
}
.r8f-training-onboarding__date {
    padding: 10px 14px;
    border: 1px solid var(--r8f-border);
    border-radius: 8px;
    font-size: 1em;
    color: var(--r8f-text);
    width: 100%;
    box-sizing: border-box;
}
.r8f-training-onboarding__days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.r8f-training-onboarding__day-option {
    cursor: pointer;
}
.r8f-training-onboarding__day-option input {
    display: none;
}
.r8f-training-onboarding__day-label {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid var(--r8f-border);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9em;
    color: var(--r8f-text);
    transition: all 0.15s;
    user-select: none;
}
.r8f-training-onboarding__day-option input:checked + .r8f-training-onboarding__day-label {
    border-color: var(--r8f-primary);
    background: var(--r8f-primary);
    color: #fff;
}
.r8f-training-onboarding__day-label:hover {
    border-color: var(--r8f-primary);
}
.r8f-training-onboarding__actions {
    margin-top: 24px;
}
.r8f-training-onboarding__submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1em;
}
.r8f-training-onboarding__status {
    margin-top: 12px;
    font-size: 0.9em;
    color: var(--r8f-success);
}
.r8f-training-onboarding__status--error {
    color: var(--r8f-error);
}

/* Training Plan */
.r8f-training-plan {
    max-width: 900px;
}
.r8f-training-plan__progress {
    margin-bottom: 24px;
}
.r8f-training-plan__progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.r8f-training-plan__progress-text {
    font-size: 0.9em;
    color: var(--r8f-muted);
}
.r8f-training-plan__progress-pct {
    font-weight: 700;
    color: var(--r8f-primary);
}
.r8f-training-plan__progress-bar {
    background: var(--r8f-neutral-light);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}
.r8f-training-plan__progress-fill {
    background: linear-gradient(90deg, var(--r8f-primary), var(--r8f-accent));
    height: 100%;
    border-radius: 6px;
}

/* Week row */
.r8f-training-plan__week {
    border: 1px solid var(--r8f-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.r8f-training-plan__week--current {
    border-color: var(--r8f-primary);
}
.r8f-training-plan__week--locked {
    opacity: 0.6;
}
.r8f-training-plan__week--complete {
    border-color: var(--r8f-green-light);
}
.r8f-training-plan__week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--r8f-border);
    background: var(--r8f-bg-light);
}
.r8f-training-plan__week--complete .r8f-training-plan__week-header {
    background: var(--r8f-green-light);
}
.r8f-training-plan__week-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.r8f-training-plan__week-number {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--r8f-primary);
    background: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.r8f-training-plan__week--current .r8f-training-plan__week-number {
    background: var(--r8f-primary);
    color: #fff;
}
.r8f-training-plan__week-title {
    font-weight: 600;
    color: var(--r8f-text);
}
.r8f-training-plan__badge {
    font-size: 0.8em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
}
.r8f-training-plan__badge--locked {
    color: var(--r8f-muted);
}
.r8f-training-plan__badge--complete {
    color: var(--r8f-success);
}
.r8f-training-plan__badge--current {
    background: var(--r8f-primary);
    color: #fff;
    border-radius: 12px;
}

/* Day slots */
.r8f-training-plan__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}
.r8f-training-plan__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    text-decoration: none;
    color: var(--r8f-text);
    border-right: 1px solid var(--r8f-border);
    transition: background 0.15s;
    min-height: 90px;
}
.r8f-training-plan__day:last-child {
    border-right: 0;
}
.r8f-training-plan__day--rest {
    color: var(--r8f-muted);
    opacity: 0.4;
}
.r8f-training-plan__day--today {
    background: var(--r8f-bg-light);
    box-shadow: inset 0 -3px 0 var(--r8f-primary);
}
.r8f-training-plan__day--today.r8f-training-plan__day--complete {
    box-shadow: inset 0 -3px 0 var(--r8f-success);
}
.r8f-training-plan__day--today .r8f-training-plan__day-label {
    color: var(--r8f-primary);
    font-weight: 700;
}
.r8f-training-plan__day--active {
    background: #fff;
}
.r8f-training-plan__day--active:hover {
    background: var(--r8f-bg-light);
}
.r8f-training-plan__day--complete {
    background: var(--r8f-green-light);
}
.r8f-training-plan__day--complete:hover {
    background: var(--r8f-green-light);
}
.r8f-training-plan__day--locked {
    cursor: default;
}
.r8f-training-plan__day-label {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--r8f-muted);
}
.r8f-training-plan__day-date {
    font-size: 0.65em;
    color: var(--r8f-muted);
    margin-top: -4px;
}
.r8f-training-plan__day-icon {
    font-size: 1.4em;
    color: var(--r8f-primary);
}
.r8f-training-plan__day--complete .r8f-training-plan__day-icon {
    color: var(--r8f-success);
}
.r8f-training-plan__day--rest .r8f-training-plan__day-icon {
    font-size: 1em;
    color: var(--r8f-muted);
    opacity: 0.3;
}
.r8f-training-plan__day--locked .r8f-training-plan__day-icon {
    color: var(--r8f-muted);
}
.r8f-training-plan__day-title {
    font-size: 0.75em;
    text-align: center;
    line-height: 1.3;
    color: var(--r8f-text);
    word-break: break-word;
}
.r8f-training-plan__day--rest .r8f-training-plan__day-title {
    display: none;
}

/* Week info section (text lessons) */
.r8f-training-plan__info {
    border-top: 1px solid var(--r8f-border);
    padding: 8px 0;
}
.r8f-training-plan__info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--r8f-text);
    font-size: 0.9em;
    transition: background 0.15s;
}
.r8f-training-plan__info-item:hover {
    background: var(--r8f-bg-light);
}
.r8f-training-plan__info-item--complete {
    color: var(--r8f-muted);
}
.r8f-training-plan__info-item--locked {
    color: var(--r8f-muted);
    opacity: 0.5;
}
.r8f-training-plan__info-icon {
    color: var(--r8f-primary);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.r8f-training-plan__info-item--locked .r8f-training-plan__info-icon {
    color: var(--r8f-muted);
}
.r8f-training-plan__info-title {
    flex: 1;
}

/* Assessment in week */
.r8f-training-plan__assessment {
    border-top: 1px solid var(--r8f-border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
}
.r8f-training-plan__assessment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    text-decoration: none;
}
.r8f-training-plan__assessment-status {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--r8f-success);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.r8f-training-plan__assessment-locked {
    font-size: 0.9em;
    color: var(--r8f-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
}

/* Bonus workouts section */
.r8f-training-plan__bonus {
    border-top: 1px solid var(--r8f-border);
    padding: 8px 0;
}
.r8f-training-plan__bonus-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--r8f-secondary);
}
.r8f-training-plan__bonus-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--r8f-text);
    font-size: 0.9em;
    transition: background 0.15s;
}
.r8f-training-plan__bonus-item:hover {
    background: var(--r8f-bg-light);
}
.r8f-training-plan__bonus-item--complete {
    color: var(--r8f-muted);
}
.r8f-training-plan__bonus-item--locked {
    color: var(--r8f-muted);
    opacity: 0.5;
}
.r8f-training-plan__bonus-icon {
    color: var(--r8f-secondary);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.r8f-training-plan__bonus-item--locked .r8f-training-plan__bonus-icon {
    color: var(--r8f-muted);
}
.r8f-training-plan__bonus-title {
    flex: 1;
}

@media (max-width: 640px) {
    .r8f-training-plan__days {
        grid-template-columns: repeat(7, 1fr);
        gap: 0;
    }
    .r8f-training-plan__day {
        padding: 10px 4px;
        min-height: 70px;
    }
    .r8f-training-plan__day-title {
        display: none;
    }
    .r8f-training-plan__day-icon {
        font-size: 1.1em;
    }
    .r8f-training-plan__week-header {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

/* Training plan carousel */
.r8f-training-plan__carousel {
    position: relative;
}
.r8f-training-plan__carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.r8f-training-plan__carousel-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--r8f-border);
    background: #fff;
    color: var(--r8f-text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.r8f-training-plan__carousel-btn:hover:not([aria-disabled="true"]) {
    background: var(--r8f-primary);
    border-color: var(--r8f-primary);
    color: #fff;
}
.r8f-training-plan__carousel-btn[aria-disabled="true"] {
    opacity: 0.3;
    cursor: default;
}
.r8f-training-plan__carousel-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: calc(100% + 8px);
    transform: translateY(-50%);
    background: var(--r8f-text, #1f2937);
    color: #fff;
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1.2;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 10;
}
.r8f-training-plan__carousel-btn[data-tooltip]:hover::after,
.r8f-training-plan__carousel-btn[data-tooltip]:focus-visible::after {
    opacity: 1;
}
.r8f-training-plan__carousel-indicator {
    flex: 1;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--r8f-muted);
}
.r8f-training-plan__carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.r8f-training-plan__carousel-viewport::-webkit-scrollbar {
    display: none;
}
.r8f-training-plan__carousel-track {
    display: flex;
    align-items: stretch;
}
.r8f-training-plan__carousel-track > .r8f-training-plan__week {
    flex: 0 0 100%;
    min-width: 100%;
    margin-bottom: 0;
    scroll-snap-align: start;
}
.r8f-training-plan__empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--r8f-muted);
    border: 1px dashed var(--r8f-border);
    border-radius: 12px;
    background: var(--r8f-bg-light);
}
.r8f-training-plan__empty i {
    font-size: 1.6em;
    color: var(--r8f-primary);
    margin-bottom: 8px;
    display: block;
}
.r8f-training-plan__empty p {
    margin: 0;
}

/* Course Intro */
.r8f-course-intro {
    color: var(--r8f-text);
    line-height: 1.7;
    margin-bottom: 24px;
}
.r8f-course-intro p:last-child {
    margin-bottom: 0;
}

.r8f-course-blocks__title:first-child {
    margin-top: 0;
}
.r8f-course-blocks__text {
    color: var(--r8f-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Accordion */
.r8f-accordion {
    border: 1px solid var(--r8f-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.r8f-accordion__item {
    border-bottom: 1px solid var(--r8f-border);
}
.r8f-accordion__item:last-child {
    border-bottom: 0;
}
.r8f-accordion__header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-size: 1em;
    font-weight: 600;
    color: var(--r8f-text);
    transition: background 0.15s;
}
.r8f-accordion__header:hover {
    background: var(--r8f-bg-light);
}
.r8f-accordion__heading {
    flex: 1;
}
.r8f-accordion__chevron {
    font-size: 0.75em;
    color: var(--r8f-muted);
    transition: transform 0.2s;
}
.r8f-accordion__item--open .r8f-accordion__chevron {
    transform: rotate(180deg);
}
.r8f-accordion__body {
    padding: 0 20px 16px;
    color: var(--r8f-text);
    line-height: 1.7;
}
.r8f-accordion__body p:last-child {
    margin-bottom: 0;
}

/* Blog Posts Grid */
.r8f-course-blocks__posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.r8f-course-blocks__post-card {
    border: 1px solid var(--r8f-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: var(--r8f-text);
    transition: box-shadow 0.2s;
}
.r8f-course-blocks__post-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.r8f-course-blocks__post-img {
    width: 100%;
    height: auto;
    display: block;
}
.r8f-course-blocks__post-content {
    padding: 14px 16px;
}
.r8f-course-blocks__post-title {
    margin: 0 0 6px;
    font-size: 1em;
    font-weight: 600;
    color: var(--r8f-headline);
}
.r8f-course-blocks__post-card:hover .r8f-course-blocks__post-title {
    color: var(--r8f-primary);
}
.r8f-course-blocks__post-excerpt {
    margin: 0 0 8px;
    font-size: 0.85em;
    color: var(--r8f-muted);
    line-height: 1.5;
}
.r8f-course-blocks__post-date {
    font-size: 0.8em;
    color: var(--r8f-muted);
}

/* Videos */
.r8f-course-blocks__videos-intro {
    color: var(--r8f-text);
    margin-bottom: 16px;
    line-height: 1.6;
}
.r8f-course-blocks__videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.r8f-course-blocks__video-card {
    border: 1px solid var(--r8f-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.r8f-course-blocks__video iframe {
    display: block;
}
.r8f-course-blocks__video-info {
    padding: 12px 16px;
}
.r8f-course-blocks__video-title {
    margin: 0 0 4px;
    font-size: 1em;
    font-weight: 600;
    color: var(--r8f-headline);
}
.r8f-course-blocks__video-desc {
    margin: 0;
    font-size: 0.85em;
    color: var(--r8f-muted);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .r8f-course-blocks__posts {
        grid-template-columns: 1fr;
    }
    .r8f-course-blocks__videos {
        grid-template-columns: 1fr;
    }
}

/* Module Related Posts */
.r8f-module-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.r8f-module-posts__card {
    border: 1px solid var(--r8f-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: var(--r8f-text);
    transition: box-shadow 0.2s;
}
.r8f-module-posts__card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.r8f-module-posts__img {
    width: 100%;
    height: auto;
    display: block;
}
.r8f-module-posts__content {
    padding: 14px 16px;
}
.r8f-module-posts__title {
    margin: 0 0 6px;
    font-size: 1em;
    font-weight: 600;
    color: var(--r8f-headline);
}
.r8f-module-posts__card:hover .r8f-module-posts__title {
    color: var(--r8f-primary);
}
.r8f-module-posts__excerpt {
    margin: 0 0 8px;
    font-size: 0.85em;
    color: var(--r8f-muted);
    line-height: 1.5;
}
.r8f-module-posts__date {
    font-size: 0.8em;
    color: var(--r8f-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 640px) {
    .r8f-module-posts {
        grid-template-columns: 1fr;
    }
}

/* Profile Image Upload */
.r8f-profile-upload {
    text-align: center;
    max-width: 300px;
}
.r8f-profile-upload__preview {
    margin-bottom: 16px;
}
.r8f-profile-upload__img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--r8f-border);
}
.r8f-profile-upload__placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--r8f-neutral-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: var(--r8f-muted);
}
.r8f-profile-upload__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.r8f-profile-upload__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
}
.r8f-profile-upload__remove {
    background: none;
    border: 1px solid var(--r8f-border);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9em;
    color: var(--r8f-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.r8f-profile-upload__remove:hover {
    color: var(--r8f-error);
    border-color: var(--r8f-error);
}
.r8f-profile-upload__status {
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--r8f-success);
}
.r8f-profile-upload__status--error {
    color: var(--r8f-error);
}

/* Notices */
.r8f-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.r8f-notice--success {
    background: var(--r8f-green-light);
    border: 1px solid var(--r8f-success);
    color: var(--r8f-success);
}
.r8f-notice--error {
    background: var(--r8f-pink-light);
    border: 1px solid var(--r8f-error);
    color: var(--r8f-error);
}
