/* ==========================================================================
   HYPERCAL MODERN SAAS DESIGN SYSTEM — RED & WHITE THEME
   Brand: HyperCal — Fitness Calculator & Progress Tracker
   Palette: Crimson Red (#dc2626) + Clean White (#ffffff) + Dark Charcoal (#0f172a)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
    /* Brand Colors - Red & White Gym/SaaS Theme */
    --hc-primary: #dc2626;           /* Crimson Red */
    --hc-primary-hover: #b91c1c;     /* Dark Crimson */
    --hc-primary-light: #fef2f2;     /* Very Light Blush / Soft Red */
    --hc-primary-border: #fecaca;    /* Soft Red Border */
    --hc-primary-glow: rgba(220, 38, 38, 0.16);

    /* Secondary / Accent aliases (harmonized to Red & Charcoal) */
    --hc-accent: #dc2626;
    --hc-accent-hover: #b91c1c;
    --hc-accent-light: #fef2f2;
    --hc-accent-border: #fecaca;
    --hc-accent-glow: rgba(220, 38, 38, 0.16);

    /* Status Colors */
    --hc-success: #10b981;           /* Emerald Energy */
    --hc-success-bg: #ecfdf5;
    --hc-success-border: #a7f3d0;
    --hc-warning: #f59e0b;           /* Amber */
    --hc-warning-bg: #fffbeb;
    --hc-danger: #dc2626;            /* Crimson */
    --hc-danger-bg: #fef2f2;
    --hc-danger-border: #fecaca;
    
    /* Neutrals & Surfaces */
    --hc-bg: #f8fafc;                /* Off-white canvas */
    --hc-surface: #ffffff;           /* Clean White Card Surface */
    --hc-surface-subtle: #f1f5f9;    /* Light Slate */
    --hc-surface-hover: #fef2f2;     /* Soft red-tinted hover */
    --hc-border: #e2e8f0;            /* Crisp light border */
    --hc-border-subtle: #f1f5f9;
    --hc-border-focus: #ef4444;      /* Red Focus */

    /* Typography Colors */
    --hc-text: #0f172a;              /* Slate 900 / Dark Charcoal */
    --hc-text-muted: #64748b;        /* Slate 500 */
    --hc-text-subtle: #94a3b8;       /* Slate 400 */
    --hc-text-inverse: #ffffff;

    /* Dark Mode / Dark Accent Cards */
    --hc-dark: #0f172a;
    --hc-dark-surface: #1e293b;
    --hc-dark-card: #0f172a;
    --hc-dark-border: rgba(255, 255, 255, 0.08);

    /* Bootstrap Overrides in CSS variables */
    --bs-primary: #dc2626;
    --bs-primary-rgb: 220, 38, 38;
    --bs-link-color: #dc2626;
    --bs-link-hover-color: #b91c1c;

    /* Shadows */
    --hc-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --hc-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
    --hc-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.07);
    --hc-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
    --hc-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

    /* Radii */
    --hc-radius-sm: 8px;
    --hc-radius-md: 12px;
    --hc-radius-lg: 16px;
    --hc-radius-xl: 24px;
    --hc-radius-pill: 9999px;

    /* Transitions */
    --hc-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

    /* Compatibility aliases with previous code */
    --hf-black: #0f172a;
    --hf-red: #dc2626;
    --hf-green: var(--hc-success);
    --hf-soft: var(--hc-bg);
    --hf-muted: var(--hc-text-muted);
    --hf-border: var(--hc-border);
}

/* ==========================================================================
   GLOBAL BASE & BOOTSTRAP OVERRIDES (Ensures NO blue leaks)
   ========================================================================== */
html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 992px) {
    html { font-size: 16px; }
}

body {
    margin: 0;
    color: var(--hc-text);
    font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--hc-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

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

a:hover {
    color: var(--hc-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hc-text);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

/* Global Bootstrap utility color overrides */
.text-primary { color: var(--hc-primary) !important; }
.bg-primary { background-color: var(--hc-primary) !important; }
.border-primary { border-color: var(--hc-primary) !important; }
.btn-primary {
    background-color: var(--hc-primary) !important;
    border-color: var(--hc-primary) !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--hc-primary-hover) !important;
    border-color: var(--hc-primary-hover) !important;
    color: #ffffff !important;
}
.btn-outline-primary {
    color: var(--hc-primary) !important;
    border-color: var(--hc-primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--hc-primary) !important;
    border-color: var(--hc-primary) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.hc-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--hc-border);
    transition: var(--hc-transition);
}

.hc-navbar {
    padding: 0.75rem 0;
}

.hc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--hc-text) !important;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.hc-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--hc-radius-md);
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hc-brand-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    background: var(--hc-primary-light);
    color: var(--hc-primary);
    border: 1px solid var(--hc-primary-border);
    border-radius: var(--hc-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hc-nav-pills {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.hc-nav-link {
    color: #475569 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
}

.hc-nav-link:hover {
    color: #0f172a !important;
    background: #f1f5f9;
}

.hc-nav-link.active {
    color: #dc2626 !important;
    background: #fef2f2;
    box-shadow: none;
    font-weight: 700;
}

#userProfileDropdown {
    transition: all 0.15s ease;
    background: transparent;
}

#userProfileDropdown:hover {
    background-color: #f1f5f9;
}

/* Mobile Navigation Layout Fix */
@media (max-width: 991.98px) {
    .hc-nav-pills {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--hc-radius-lg);
        width: 100%;
        margin: 0.75rem 0;
        padding: 0.5rem;
        gap: 0.35rem;
    }

    .hc-nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 1rem !important;
        border-radius: var(--hc-radius-md);
    }
}

/* Header compatibility aliases */
.hf-header { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 1020; border-bottom: 1px solid var(--hc-border); }
.hf-navbar { padding: 0.75rem 0; }
.hf-brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 900; font-size: 1.25rem; color: var(--hc-text) !important; letter-spacing: -0.03em; }
.hf-logo { width: 36px; height: 36px; border-radius: var(--hc-radius-md); background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.15rem; box-shadow: 0 4px 12px rgba(220,38,38,0.28); }
.hf-nav-pill { display: flex; align-items: center; gap: 0.35rem; background: transparent; padding: 0; border: none; }
.hf-nav-pill .nav-link { color: #475569 !important; font-weight: 600; font-size: 0.9rem; padding: 0.5rem 0.85rem !important; border-radius: 8px; transition: all 0.15s ease; }
.hf-nav-pill .nav-link:hover { color: #0f172a !important; background: #f1f5f9; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--hc-radius-md);
    border: 1px solid transparent;
    transition: var(--hc-transition);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.hc-btn:hover {
    transform: translateY(-1px);
}

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

.hc-btn-primary {
    background: var(--hc-primary);
    color: #ffffff !important;
    border-color: var(--hc-primary);
    box-shadow: 0 4px 14px var(--hc-primary-glow);
}

.hc-btn-primary:hover {
    background: var(--hc-primary-hover);
    border-color: var(--hc-primary-hover);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
}

.hc-btn-accent {
    background: var(--hc-primary);
    color: #ffffff !important;
    border-color: var(--hc-primary);
    box-shadow: 0 4px 14px var(--hc-primary-glow);
}

.hc-btn-accent:hover {
    background: var(--hc-primary-hover);
    border-color: var(--hc-primary-hover);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
}

.hc-btn-outline {
    background: #ffffff;
    color: var(--hc-text) !important;
    border: 1px solid var(--hc-border);
    box-shadow: var(--hc-shadow-xs);
}

.hc-btn-outline:hover {
    background: var(--hc-primary-light);
    border-color: var(--hc-primary-border);
    color: var(--hc-primary) !important;
}

.hc-btn-pill {
    border-radius: var(--hc-radius-pill) !important;
}

.hc-btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    border-radius: var(--hc-radius-sm);
}

.hc-btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1.05rem;
    border-radius: var(--hc-radius-lg);
}

/* Button compatibility aliases */
.hf-btn-primary { background: var(--hc-primary); color: #fff !important; border: 1px solid var(--hc-primary); border-radius: var(--hc-radius-pill); padding: 0.75rem 1.5rem; font-weight: 700; box-shadow: 0 4px 14px var(--hc-primary-glow); transition: var(--hc-transition); }
.hf-btn-primary:hover { background: var(--hc-primary-hover); border-color: var(--hc-primary-hover); transform: translateY(-1px); color: #fff !important; }
.hf-btn-outline { background: #fff; color: var(--hc-text) !important; border: 1px solid var(--hc-border); border-radius: var(--hc-radius-pill); padding: 0.75rem 1.5rem; font-weight: 700; box-shadow: var(--hc-shadow-xs); transition: var(--hc-transition); }
.hf-btn-outline:hover { background: var(--hc-primary-light); border-color: var(--hc-primary-border); color: var(--hc-primary) !important; }

/* ==========================================================================
   CARDS & SURFACES
   ========================================================================== */
.hc-card {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-xl);
    padding: 1.75rem;
    box-shadow: var(--hc-shadow-sm);
    transition: var(--hc-transition);
}

.hc-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--hc-shadow-lg);
    border-color: var(--hc-primary-border);
}

.hc-stat-card {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--hc-shadow-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--hc-transition);
}

.hc-stat-card:hover {
    box-shadow: var(--hc-shadow-md);
    border-color: var(--hc-primary-border);
}

.hc-stat-num {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--hc-text);
    line-height: 1.1;
    margin-top: 0.25rem;
    letter-spacing: -0.04em;
}

.hc-stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hc-dark-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid var(--hc-dark-border);
    border-radius: var(--hc-radius-xl);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

/* Compatibility aliases for cards */
.hf-dashboard-card, .hf-form-card, .hf-feature-card, .hf-phase-card {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-xl);
    padding: 1.75rem;
    box-shadow: var(--hc-shadow-sm);
}

.hf-stat {
    border-radius: var(--hc-radius-lg);
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--hc-border);
    box-shadow: var(--hc-shadow-xs);
}

.hf-stat .number {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--hc-text);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-md);
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
    color: var(--hc-text);
    background-color: #ffffff;
    transition: var(--hc-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--hc-primary);
    box-shadow: 0 0 0 3.5px var(--hc-primary-glow);
    outline: none;
}

.input-group-text {
    background-color: var(--hc-surface-subtle);
    border: 1px solid var(--hc-border);
    color: var(--hc-text-muted);
    font-weight: 600;
}

/* ==========================================================================
   BADGES & CHIPS
   ========================================================================== */
.hc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--hc-radius-pill);
    line-height: 1;
}

.hc-badge-red {
    background: var(--hc-primary-light);
    color: var(--hc-primary);
    border: 1px solid var(--hc-primary-border);
}

.hc-badge-blue {
    /* Re-aliased to red palette for consistent design */
    background: var(--hc-primary-light);
    color: var(--hc-primary);
    border: 1px solid var(--hc-primary-border);
}

.hc-badge-accent {
    background: var(--hc-primary-light);
    color: var(--hc-primary);
    border: 1px solid var(--hc-primary-border);
}

.hc-badge-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.hc-badge-success {
    background: var(--hc-success-bg);
    color: #065f46;
    border: 1px solid var(--hc-success-border);
}

.hc-badge-danger {
    background: var(--hc-danger-bg);
    color: #991b1b;
    border: 1px solid var(--hc-danger-border);
}

.hc-badge-neutral {
    background: var(--hc-surface-subtle);
    color: var(--hc-text-muted);
    border: 1px solid var(--hc-border);
}

.hc-badge-warning {
    background: var(--hc-warning-bg);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Page title aliases */
.hc-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--hc-text);
    margin-bottom: 0.25rem;
}

.hc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--hc-border);
}

/* ==========================================================================
   BODY CHECK-IN GALLERY
   ========================================================================== */
.check-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--hc-radius-md);
    border: 1px solid var(--hc-border);
    background: var(--hc-surface-subtle);
}

/* Trend badges in body check-in */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0.2rem 0.5rem;
    border-radius: var(--hc-radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
}
.trend-up { background: #fef2f2; color: #b91c1c; }
.trend-down { background: #ecfdf5; color: #065f46; }
.trend-equal { background: var(--hc-surface-subtle); color: var(--hc-text-muted); }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-item {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #ffffff;
}

.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--hc-transition);
    user-select: none;
    color: var(--hc-text);
}

.faq-question:hover { background: var(--hc-surface-subtle); }

.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
    color: var(--hc-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { background: var(--hc-surface-subtle); }

/* ==========================================================================
   PAYMENT CHECKOUT
   ========================================================================== */
.payment-radio-card {
    border: 2px solid var(--hc-border);
    border-radius: var(--hc-radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: var(--hc-transition);
    background: #ffffff;
}

.payment-radio-card:hover {
    border-color: var(--hc-primary);
    background: var(--hc-primary-light);
}

.payment-radio-card.active {
    border-color: var(--hc-primary);
    background: var(--hc-primary-light);
    box-shadow: 0 0 0 3px var(--hc-primary-glow);
}

/* ==========================================================================
   PREMIUM PAGE
   ========================================================================== */
.hc-premium-card {
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-xl);
    padding: 2rem;
    position: relative;
    overflow: visible;
    transition: var(--hc-transition);
}

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

.hc-premium-card.recommended {
    border: 2px solid var(--hc-primary);
    box-shadow: 0 8px 30px var(--hc-primary-glow);
}

.hc-price {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--hc-text);
}

/* Compatibility alias */
.hf-premium-card { background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius-xl); padding: 2rem; position: relative; overflow: visible; }
.hf-premium-card.recommended { border: 2px solid var(--hc-primary); box-shadow: 0 8px 30px var(--hc-primary-glow); }
.hf-price { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.04em; color: var(--hc-text); }

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.hf-auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: var(--hc-bg);
}

.hf-auth-card {
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--hc-shadow-md);
}

.hf-auth-side {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--hc-radius-xl);
    padding: 2.5rem;
}

.hf-auth-side ul { padding-left: 1.25rem; color: rgba(255,255,255,0.85); }
.hf-auth-side ul li { margin-bottom: 0.5rem; font-size: 0.95rem; }

.hf-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--hc-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.hf-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: var(--hc-border);
}
.hf-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 0.75rem;
}

.hf-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #ffffff;
    border: 1px solid var(--hc-border);
    color: var(--hc-text) !important;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: var(--hc-radius-md);
    font-size: 0.95rem;
    box-shadow: var(--hc-shadow-xs);
    transition: var(--hc-transition);
    width: 100%;
    cursor: pointer;
}
.hf-google-btn:hover { box-shadow: var(--hc-shadow-sm); border-color: var(--hc-primary-border); transform: translateY(-1px); }

.hf-google-dot {
    width: 22px; height: 22px;
    background: #ea4335;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.hc-table {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
}

.hc-table thead th {
    background: var(--hc-surface-subtle);
    color: var(--hc-text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--hc-border);
}

.hc-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--hc-border-subtle);
    color: var(--hc-text);
}

.hc-table tbody tr:last-child td {
    border-bottom: 0;
}

.hc-table-card {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-xl);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--hc-shadow-xs);
}

/* ==========================================================================
   WORKOUT & GYM TRACKING COMPONENTS
   ========================================================================== */
.hc-exercise-card {
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--hc-shadow-xs);
    transition: var(--hc-transition);
}

.hc-exercise-card:hover {
    border-color: var(--hc-primary-border);
}

.hc-set-table th {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--hc-text-muted);
    text-transform: uppercase;
    padding: 0.5rem 0.6rem;
    background: #f8fafc;
}

.hc-set-table td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
}

.hc-set-input {
    border-radius: var(--hc-radius-sm) !important;
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
}

.hc-set-input:focus {
    border-color: var(--hc-primary) !important;
    box-shadow: 0 0 0 3px var(--hc-primary-glow) !important;
}

/* ==========================================================================
   EMPTY & LOADING STATES
   ========================================================================== */
.hc-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 1px dashed var(--hc-border);
    border-radius: var(--hc-radius-xl);
}

.hc-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hc-empty-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hc-text);
    margin-bottom: 0.5rem;
}

.hc-empty-desc {
    color: var(--hc-text-muted);
    font-size: 0.95rem;
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

/* ==========================================================================
   SECTIONS & TYPOGRAPHY
   ========================================================================== */
.hc-page {
    padding: 2.5rem 0 4rem;
}

.hc-eyebrow {
    color: var(--hc-primary);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hc-page-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--hc-text);
    margin-bottom: 0.4rem;
}

.hc-section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--hc-text);
    margin-bottom: 0.5rem;
}

.hc-muted {
    color: var(--hc-text-muted);
}

/* Compatibility aliases */
.hf-page { padding: 2.5rem 0 4rem; }
.hf-eyebrow { color: var(--hc-primary); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.hf-page-title { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 900; letter-spacing: -0.04em; }
.hf-muted { color: var(--hc-text-muted); }
.hf-table-card { border: 1px solid var(--hc-border); border-radius: var(--hc-radius-xl); overflow: hidden; background: #fff; box-shadow: var(--hc-shadow-xs); }
.hf-workout-app-card { border: 1px solid var(--hc-border); border-radius: var(--hc-radius-lg); padding: 1.25rem; background: #fff; box-shadow: var(--hc-shadow-xs); transition: var(--hc-transition); }
.hf-workout-app-card:hover { transform: translateY(-2px); box-shadow: var(--hc-shadow-md); border-color: var(--hc-primary-border); }

/* Compare Container */
.compare-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.compare-image-box { position: relative; border-radius: var(--hc-radius-lg); overflow: hidden; border: 1px solid var(--hc-border); background: var(--hc-surface-subtle); }
.compare-image-box img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.compare-label { position: absolute; bottom: 12px; left: 12px; background: rgba(15, 23, 42, 0.85); color: #fff; padding: 0.35rem 0.85rem; border-radius: var(--hc-radius-md); font-size: 0.82rem; font-weight: 700; backdrop-filter: blur(8px); }

/* Heart Rate Zone Cards */
.hr-zone-card { border-radius: var(--hc-radius-md); border: 1px solid var(--hc-border); background: #fff; padding: 1rem 1.25rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 1rem; transition: var(--hc-transition); }
.hr-zone-card:hover { border-color: var(--hc-primary-border); }
.hr-zone-indicator { width: 10px; height: 38px; border-radius: 4px; flex-shrink: 0; }
.hr-zone-1 { background: #94a3b8; }
.hr-zone-2 { background: var(--hc-success); }
.hr-zone-3 { background: #f59e0b; }
.hr-zone-4 { background: #ea580c; }
.hr-zone-5 { background: var(--hc-danger); }

/* Footer */
.hc-footer {
    background: #ffffff;
    border-top: 1px solid var(--hc-border);
    padding: 3.5rem 0 2rem;
    color: var(--hc-text-muted);
    font-size: 0.9rem;
}

.hf-footer {
    background: #ffffff;
    border-top: 1px solid var(--hc-border);
    padding: 2.5rem 0;
    color: var(--hc-text-muted);
}

@media (max-width: 768px) {
    .compare-container { grid-template-columns: 1fr; gap: 0.85rem; }
    .hc-page { padding: 1.5rem 0 3rem; }
    .hf-page { padding: 1.5rem 0 3rem; }
}

/* ==========================================
   HOMEPAGE BANNER & CAROUSEL
   ========================================== */
.hc-banner-section {
    background: transparent;
}

.hc-banner-container {
    background: #0f172a;
    position: relative;
    max-height: 420px;
}

.hc-banner-img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.hc-banner-link:hover .hc-banner-img {
    transform: scale(1.01);
}

.hc-carousel-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.hc-carousel-control-btn:hover {
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    transform: scale(1.08);
}

.carousel-indicators [data-bs-target] {
    width: 28px;
    height: 5px;
    border-radius: 3px;
    background-color: #ffffff;
    opacity: 0.5;
    border: none;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    width: 40px;
    background-color: var(--hc-primary, #dc2626);
}

@media (max-width: 768px) {
    .hc-banner-container {
        max-height: 240px;
    }
    .hc-banner-img {
        max-height: 240px;
        min-height: 150px;
    }
    .hc-carousel-control-btn {
        width: 34px;
        height: 34px;
    }
    .hc-carousel-control-btn i {
        font-size: 0.9rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        transition: none !important;
    }
    .hc-banner-img {
        transition: none !important;
    }
}

