/* ==============================================
   PRIORITY 1 - MISSING FOOTER CLASSES (101% Quality)
   ============================================== */

/* Footer Logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--navy);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-logo:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: var(--spacing-3);
    align-items: center;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    color: var(--navy);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.footer-social a:active {
    transform: translateY(-2px) scale(1.05);
}

/* Footer Disclaimer */
.footer-disclaimer {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-4);
    margin-top: var(--spacing-6);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: var(--navy);
    font-weight: var(--font-weight-semibold);
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: var(--spacing-1) 0;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: var(--spacing-2);
}

.footer-nav a:active {
    color: var(--primary-dark);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

/* ==============================================
   PRIORITY 1 - COURSE/CHAPTER NAVIGATION
   ============================================== */

/* Chapter Header */
.chapter-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--spacing-6);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--spacing-6);
}

.chapter-header h1,
.chapter-header h2 {
    color: var(--white);
    margin-bottom: var(--spacing-2);
}

/* Chapter Content */
.chapter-content {
    background: var(--white);
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
}

/* Chapter Intro */
.chapter-intro {
    background: var(--primary-50);
    border-left: 4px solid var(--primary);
    padding: var(--spacing-5);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-6);
}

/* Chapter Label */
.chapter-label {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Breadcrumb List */
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex-wrap: wrap;
    padding: var(--spacing-3) 0;
    list-style: none;
    margin: 0;
}

/* Breadcrumb Item */
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-lg);
}

.breadcrumb-item a:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.breadcrumb-item a:active {
    color: var(--primary-dark);
    background: var(--primary-100);
}

.breadcrumb-item::after {
    content: "/";
    color: var(--text-muted);
    margin-left: var(--spacing-2);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item.active {
    color: var(--navy);
    font-weight: var(--font-weight-medium);
}/* 
==============================================
COMPONENT SYSTEM - TTRENING.COM
Complete and optimized component library
==============================================
*/

/* ==============================================
   BUTTON SYSTEM
   ============================================== */
.btn,
button:not(.unstyled),
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--radius-2xl);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: var(--btn-height-md);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn:hover,
button:not(.unstyled):hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
}

.btn:active,
button:not(.unstyled):active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Button variants - HIGH CONTRAST for white backgrounds */
.btn-primary {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
    font-weight: var(--font-weight-bold);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-primary.active {
    background: var(--primary-dark);
    border: 3px solid var(--primary-dark);
    color: var(--white);
    transform: translateY(0) scale(1.02);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.3);
    font-weight: var(--font-weight-extrabold);
}

.btn-primary:focus {
    outline: 3px solid var(--primary-200);
    outline-offset: 2px;
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(30, 41, 59, 0.6);
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--font-weight-semibold);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-secondary:active,
.btn-secondary.active {
    background: var(--primary) !important;
    border: 3px solid var(--primary-dark) !important;
    color: var(--white) !important;
    transform: translateY(0) scale(1.05) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.4) !important;
    font-weight: var(--font-weight-extrabold) !important;
}

.btn-secondary:focus {
    outline: 3px solid var(--primary-200);
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--primary);
    color: var(--primary-dark);
    font-weight: var(--font-weight-bold);
}

.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-outline:active,
.btn-outline.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    border: 2px solid transparent;
    color: var(--navy);
    font-weight: var(--font-weight-semibold);
}

.btn-ghost:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--navy);
    transform: translateY(-1px);
}

.btn-ghost:active,
.btn-ghost.active {
    background: var(--gray-300);
    border-color: var(--gray-500);
    color: var(--navy);
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
    border-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626 0%, var(--danger) 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Calculator-specific button */
.btn-calculate {
    background: var(--gradient-primary);
    border: 2px solid var(--primary-400);
    color: var(--white);
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-lg);
    min-height: 52px;
    border-radius: var(--radius-2xl);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn-calculate:hover {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-calculate:active {
    transform: translateY(-1px) scale(1.01);
}

/* Button sizes */
.btn-sm {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--font-size-sm);
    min-height: var(--btn-height-sm);
    border-radius: var(--radius-lg);
}

/* Fix text wrapping for full-width buttons */
.btn.w-full {
    white-space: normal;
    text-wrap: balance;
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-lg);
    min-height: var(--btn-height-lg);
    border-radius: var(--radius-3xl);
}

.btn-xl {
    padding: var(--spacing-5) var(--spacing-10);
    font-size: var(--font-size-xl);
    min-height: var(--btn-height-xl);
    border-radius: var(--radius-3xl);
}

/* Button states */
.btn:disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn:disabled:hover,
button:disabled:hover,
input[type="submit"]:disabled:hover,
input[type="button"]:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ==============================================
   CARD SYSTEM
   ============================================== */
.card {
    background: var(--glass-white);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-6);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

/* Removed card hover effect - too flashy */

.card-header {
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--glass-border);
}

.card-header h3 {
    color: var(--white);
    margin-bottom: var(--spacing-2);
}

.card-body {
    margin-bottom: var(--spacing-4);
}

.card-footer {
    margin-top: var(--spacing-4);
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--glass-border);
}

.card-feature {
    text-align: center;
    padding: var(--spacing-8);
}

.card-feature .card-icon {
    font-size: var(--font-size-4xl);
    color: var(--primary);
    margin-bottom: var(--spacing-4);
}

.card-compact {
    padding: var(--spacing-4);
}

/* Remove underlines from links inside cards and containers */
.card a,
.container a,
.card a:hover,
.container a:hover {
    text-decoration: none !important;
}

/* ==============================================
   FORM SYSTEM
   ============================================== */
.form-group {
    margin-bottom: var(--spacing-6);
}

.form-label {
    display: block;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
    font-size: var(--font-size-sm);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    background: #374151;
    color: var(--white);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    min-height: 44px;
}

.form-select option {
    background-color: #1F2937 !important;
    color: #FFFFFF !important;
    padding: 8px 12px !important;
}

.form-select option:not(:checked) {
    background-color: #1F2937 !important;
    color: #FFFFFF !important;
}

.form-select {
    color-scheme: dark !important;
}

/* Checkboxes - Custom styled for dark theme */
.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(148, 163, 184, 0.5);
    border-radius: 0.25rem;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-checkbox:hover {
    border-color: var(--primary, #10B981);
}

.form-checkbox:checked {
    background-color: var(--primary, #10B981);
    border-color: var(--primary, #10B981);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.form-checkbox:focus {
    outline: 2px solid rgba(16, 185, 129, 0.5);
    outline-offset: 2px;
}

.form-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--glass-white-strong);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:invalid {
    border-color: var(--danger);
}

.form-input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

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

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--spacing-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: calc(var(--spacing-4) + 1.5em);
}

.form-help {
    margin-top: var(--spacing-1);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.form-error {
    margin-top: var(--spacing-1);
    font-size: var(--font-size-sm);
    color: var(--danger);
}

/* Checkbox and radio styles */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    background: var(--glass-white);
}

.radio-option:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.radio-option.selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: var(--shadow-md);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option > div {
    flex: 1;
}

.radio-option strong {
    display: block;
    margin-bottom: 0.25rem;
}

.radio-option p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Goal option styles (for onboarding and selection buttons) */
.goal-option {
    display: block;
    padding: 1rem;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--glass-white);
    position: relative;
}

.goal-option:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.goal-option.selected {
    border-color: var(--primary);
    border-width: 3px;
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: scale(1.02);
}

.goal-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.goal-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.goal-option .goal-content {
    display: block;
}

.goal-option .goal-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.goal-option .goal-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.checkbox-label,
.radio-label {
    display: block;
    cursor: pointer;
    position: relative;
}

.checkbox-label .lifestyle-btn,
.radio-label .lifestyle-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--glass-white);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.radio-label:hover .lifestyle-btn,
.checkbox-label:hover .lifestyle-btn {
    background: var(--glass-white-strong);
    border-color: var(--primary-300);
    transform: translateY(-1px);
}

.radio-label:has(input[type="radio"]:checked) .lifestyle-btn,
.checkbox-label:has(input[type="checkbox"]:checked) .lifestyle-btn {
    background: var(--primary);
    border-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.radio-label:has(input[type="radio"]:checked) h3,
.radio-label:has(input[type="radio"]:checked) p,
.radio-label:has(input[type="radio"]:checked) strong,
.radio-label:has(input[type="radio"]:checked) small,
.checkbox-label:has(input[type="checkbox"]:checked) span {
    color: var(--white) !important;
}

.checkbox-input,
.radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Mode button styling */
.mode-btn {
    width: 100%;
}

.mode-btn i {
    font-size: 1.25rem;
}

.mode-btn h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mode-btn p,
.mode-btn small {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Mode grid - responsive layout */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3);
}

@media (min-width: 768px) {
    .mode-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Badge number for step indicators */
.badge-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

/* ==============================================
   LEARNING HUB COMPONENTS
   ============================================== */

.learn-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: var(--spacing-6, 1.5rem);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-6, 1.5rem);
    margin-top: var(--spacing-8, 2rem);
}

.category-card {
    background: var(--glass-white, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    border-radius: var(--radius-xl, 0.75rem);
    padding: var(--spacing-6, 1.5rem);
    transition: var(--transition-base, all 0.25s ease-in-out);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary, #10B981);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-100, rgba(16, 185, 129, 0.1));
    border: 2px solid var(--primary, #10B981);
    border-radius: var(--radius-lg, 0.5rem);
    color: var(--primary, #10B981);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-4, 1rem);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #FFFFFF);
    margin-bottom: var(--spacing-3, 0.75rem);
}

.category-description {
    font-size: 0.9375rem;
    color: var(--text-secondary, #E2E8F0);
    line-height: 1.6;
    margin-bottom: var(--spacing-5, 1.25rem);
}

.category-stats {
    display: flex;
    gap: var(--spacing-6, 1.5rem);
    margin: var(--spacing-5, 1.25rem) 0;
    padding: var(--spacing-4, 1rem) 0;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary, #10B981);
    margin-bottom: var(--spacing-1, 0.25rem);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #E2E8F0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2, 0.5rem);
    padding: var(--spacing-3, 0.75rem) var(--spacing-5, 1.25rem);
    background: var(--primary, #10B981);
    color: var(--white, #FFFFFF);
    text-decoration: none;
    border-radius: var(--radius-lg, 0.5rem);
    font-weight: 600;
    transition: var(--transition-fast, all 0.15s ease-in-out);
    margin-top: var(--spacing-4, 1rem);
}

.category-cta:hover {
    background: var(--primary-dark, #059669);
    transform: translateX(4px);
}

.progress-section {
    margin: var(--spacing-8, 2rem) 0;
    padding: var(--spacing-6, 1.5rem);
    background: var(--glass-white, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    border-radius: var(--radius-xl, 0.75rem);
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-6, 1.5rem);
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #FFFFFF);
    display: flex;
    align-items: center;
    gap: var(--spacing-3, 0.75rem);
}

.view-all-link {
    color: var(--primary, #10B981);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition-fast, all 0.15s ease-in-out);
}

.view-all-link:hover {
    color: var(--primary-light, #34D399);
    transform: translateX(4px);
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-4, 1rem);
}

.progress-card {
    background: var(--glass-white-light, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    border-radius: var(--radius-lg, 0.5rem);
    padding: var(--spacing-4, 1rem);
    transition: var(--transition-fast, all 0.15s ease-in-out);
}

.progress-card:hover {
    border-color: var(--primary, #10B981);
    transform: translateY(-2px);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--glass-white, rgba(255, 255, 255, 0.05));
    border-radius: var(--radius-full, 9999px);
    overflow: hidden;
    margin: var(--spacing-3, 0.75rem) 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #10B981), var(--primary-light, #34D399));
    border-radius: var(--radius-full, 9999px);
    transition: width 0.3s ease-in-out;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #E2E8F0);
}

/* ==============================================
   EXERCISE CARDS (Workout Session Selector)
   ============================================== */

.exercise-card {
    background: var(--glass-white, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    border-radius: var(--radius-lg, 0.5rem);
    padding: var(--spacing-6, 1.5rem) var(--spacing-4, 1rem);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base, all 0.25s ease-in-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3, 0.75rem);
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.exercise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #10B981), var(--primary-light, #34D399));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.exercise-card:hover {
    background: var(--glass-white-light, rgba(255, 255, 255, 0.08));
    border-color: var(--primary, #10B981);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.exercise-card:hover::before {
    opacity: 1;
}

.exercise-card i {
    font-size: 2.5rem;
    color: var(--primary, #10B981);
    margin-bottom: var(--spacing-2, 0.5rem);
}

.exercise-card h3 {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary, #FFFFFF);
    margin: 0;
    line-height: 1.3;
}

.exercise-card p {
    font-size: 0.75rem;
    color: var(--text-secondary, #CBD5E1);
    margin: 0;
    opacity: 0.8;
}

.exercise-card:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==============================================
   TABLE SYSTEM (Responsive)
   ============================================== */

/* Base table styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-white, rgba(255, 255, 255, 0.05));
    border-radius: var(--radius-lg, 0.5rem);
    overflow: hidden;
}

.table thead {
    background: rgba(16, 185, 129, 0.1);
    border-bottom: 2px solid var(--primary, #10B981);
}

.table thead th {
    padding: var(--spacing-3, 0.75rem) var(--spacing-4, 1rem);
    text-align: left;
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary, #FFFFFF);
    font-size: var(--font-size-sm, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    transition: background 0.2s ease;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background: rgba(16, 185, 129, 0.05);
}

.table tbody td {
    padding: var(--spacing-3, 0.75rem) var(--spacing-4, 1rem);
    color: var(--text-secondary, #E2E8F0);
    font-size: var(--font-size-sm, 0.875rem);
    vertical-align: middle;
}

.table tbody td strong {
    color: var(--text-primary, #FFFFFF);
}

/* Responsive table wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg, 0.5rem);
}

/* On mobile: Add horizontal scroll with better UX */
@media (max-width: 768px) {
    .table-responsive {
        margin: 0 calc(var(--spacing-4, 1rem) * -1);
        width: calc(100% + var(--spacing-4, 1rem) * 2);
        padding: 0 var(--spacing-4, 1rem);
        border-left: 4px solid var(--primary, #10B981);
        border-right: 4px solid var(--primary, #10B981);
    }

    .table {
        min-width: 600px; /* Minimum width to prevent extreme squishing */
    }

    .table thead th,
    .table tbody td {
        padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);
        font-size: 0.8125rem;
    }

    /* Action buttons - make smaller on mobile */
    .table tbody td .btn-sm {
        padding: var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem);
        font-size: 0.75rem;
        min-height: 28px;
    }

    .table tbody td .btn-sm i {
        font-size: 0.75rem;
    }
}

/* Add scrollbar styling for better mobile UX */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary, #10B981);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark, #059669);
}

/* ==============================================
   ACTIVITY HEATMAP - Program Calendar
   ============================================== */

.activity-heatmap {
    background: var(--card-bg, #1E293B);
    border-radius: var(--radius-xl, 1rem);
    padding: var(--spacing-6, 1.5rem);
    border: 1px solid var(--border-color, #334155);
}

/* Header */
.heatmap-header {
    margin-bottom: var(--spacing-6, 1.5rem);
}

.heatmap-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-2, 0.5rem);
    font-size: var(--font-size-xl, 1.25rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #F8FAFC);
    margin: 0 0 var(--spacing-4, 1rem) 0;
}

.heatmap-title i {
    color: var(--primary, #10B981);
}

.heatmap-stats {
    display: flex;
    gap: var(--spacing-6, 1.5rem);
    flex-wrap: wrap;
}

.heatmap-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1, 0.25rem);
}

.heatmap-stats .stat-label {
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--text-secondary, #94A3B8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.heatmap-stats .stat-value {
    font-size: var(--font-size-lg, 1.125rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #F8FAFC);
}

/* Calendar Grid */
.heatmap-calendar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3, 0.75rem);
}

.heatmap-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: var(--spacing-2, 0.5rem);
    padding-left: 40px; /* Offset for weekday labels */
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--text-secondary, #94A3B8);
    font-weight: var(--font-weight-medium, 500);
}

.heatmap-grid {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--spacing-2, 0.5rem);
}

.heatmap-weekdays {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    gap: 4px;
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--text-secondary, #94A3B8);
    padding-top: 2px;
}

.heatmap-weekdays span:nth-child(1) { grid-row: 2; } /* Mon */
.heatmap-weekdays span:nth-child(2) { grid-row: 4; } /* Wed */
.heatmap-weekdays span:nth-child(3) { grid-row: 6; } /* Fri */

.heatmap-weeks {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
}

.heatmap-week {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    gap: 4px;
    flex-shrink: 0;
}

/* Day Squares */
.heatmap-day {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.heatmap-day.empty {
    background: transparent;
    cursor: default;
}

/* Color Levels - GitHub-inspired */
.heatmap-day.level-0 {
    background: rgba(148, 163, 184, 0.1); /* Gray - rest day */
    border-color: rgba(148, 163, 184, 0.2);
}

.heatmap-day.level-planned {
    background: rgba(16, 185, 129, 0.15); /* Light green outline - planned */
    border-color: var(--primary, #10B981);
    border-width: 1.5px;
}

.heatmap-day.level-1 {
    background: rgba(16, 185, 129, 0.4); /* Light green - 1 workout */
    border-color: rgba(16, 185, 129, 0.6);
}

.heatmap-day.level-2 {
    background: rgba(16, 185, 129, 0.7); /* Medium green - 2 workouts */
    border-color: var(--primary, #10B981);
}

.heatmap-day.level-3 {
    background: var(--primary, #10B981); /* Full green - 3+ workouts */
    border-color: var(--primary-light, #34D399);
}

.heatmap-day.level-missed {
    background: rgba(239, 68, 68, 0.2); /* Red - missed workout */
    border-color: rgba(239, 68, 68, 0.5);
    border-width: 1.5px;
}

/* Hover Effects */
.heatmap-day:not(.empty):hover {
    transform: scale(1.4);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.heatmap-day.level-1:hover {
    background: rgba(16, 185, 129, 0.6);
}

.heatmap-day.level-2:hover {
    background: rgba(16, 185, 129, 0.85);
}

.heatmap-day.level-3:hover {
    background: var(--primary-light, #34D399);
}

.heatmap-day.level-planned:hover {
    background: rgba(16, 185, 129, 0.3);
}

.heatmap-day.level-missed:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* Legend */
.heatmap-legend {
    display: flex;
    align-items: center;
    gap: var(--spacing-2, 0.5rem);
    justify-content: flex-end;
    margin-top: var(--spacing-2, 0.5rem);
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--text-secondary, #94A3B8);
}

.legend-squares {
    display: flex;
    gap: 3px;
}

.legend-square {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid transparent;
}

.legend-square.level-0 {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
}

.legend-square.level-planned {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary, #10B981);
}

.legend-square.level-1 {
    background: rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.legend-square.level-2 {
    background: rgba(16, 185, 129, 0.7);
    border-color: var(--primary, #10B981);
}

.legend-square.level-3 {
    background: var(--primary, #10B981);
    border-color: var(--primary-light, #34D399);
}

.legend-label {
    font-size: var(--font-size-xs, 0.75rem);
}

/* Scrollbar for weeks overflow */
.heatmap-weeks::-webkit-scrollbar {
    height: 6px;
}

.heatmap-weeks::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 3px;
}

.heatmap-weeks::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 3px;
}

.heatmap-weeks::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .activity-heatmap {
        padding: var(--spacing-4, 1rem);
    }

    .heatmap-title {
        font-size: var(--font-size-lg, 1.125rem);
    }

    .heatmap-stats {
        gap: var(--spacing-4, 1rem);
    }

    .heatmap-stats .stat-value {
        font-size: var(--font-size-base, 1rem);
    }

    /* Smaller squares on mobile */
    .heatmap-day,
    .legend-square {
        width: 10px;
        height: 10px;
    }

    .heatmap-week {
        grid-template-rows: repeat(7, 10px);
        gap: 3px;
    }

    .heatmap-weekdays {
        grid-template-rows: repeat(7, 10px);
        gap: 3px;
        font-size: 0.625rem;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .heatmap-day,
    .legend-square {
        width: 11px;
        height: 11px;
    }

    .heatmap-week {
        grid-template-rows: repeat(7, 11px);
    }

    .heatmap-weekdays {
        grid-template-rows: repeat(7, 11px);
    }
}

/* Desktop - larger squares */
@media (min-width: 1025px) {
    .heatmap-day,
    .legend-square {
        width: 14px;
        height: 14px;
    }

    .heatmap-week {
        grid-template-rows: repeat(7, 14px);
        gap: 5px;
    }

    .heatmap-weekdays {
        grid-template-rows: repeat(7, 14px);
        gap: 5px;
    }

    .heatmap-weeks {
        gap: 5px;
    }
}

/* ==============================================
   EXPANDABLE TABLES - SEO-SAFE
   ============================================== */

/* Table Expand/Collapse Container - SEO Safe (max-height method) */
.expandable-table-wrapper {
    max-height: 300px; /* Show preview - content IS visible to Googlebot */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
}

.expandable-table-wrapper.expanded {
    max-height: none; /* Full height when expanded */
}

/* Fade gradient at bottom when collapsed */
.expandable-table-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.expandable-table-wrapper.expanded::after {
    opacity: 0; /* Hide fade when expanded */
}

/* Table Expand Button */
.table-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem 0 1.5rem 0;
}

.table-expand-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

/* Toggle text visibility */
.table-expand-btn .expand-text,
.table-expand-btn .collapse-text {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.table-expand-btn.expanded .expand-text {
    display: none;
}

.table-expand-btn.expanded .collapse-text {
    display: inline-flex;
}

.table-expand-btn:not(.expanded) .collapse-text {
    display: none;
}

/* Icon rotation animation */
.table-expand-btn i {
    transition: transform 0.3s ease;
}

.table-expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .expandable-table-wrapper {
        max-height: 250px; /* Shorter preview on mobile */
    }
    
    .table-expand-btn {
        width: 100%;
        justify-content: center;
    }
}
