/* ============================================================
   FitForge — Premium Fitness App CSS
   Dark/Light theme, Bootstrap 5 extension
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    /* Brand */
    --accent: #e63946;
    --accent-dark: #c1121f;
    --accent-glow: rgba(230, 57, 70, 0.3);
    --gold: #ffd60a;
    --gold-dark: #e6be00;

    /* Dark Theme (default) */
    --bg-primary: #0d0d0f;
    --bg-secondary: #141418;
    --bg-card: #1a1a20;
    --bg-card-hover: #222228;
    --bg-elevated: #222228;
    --bg-input: #1a1a20;
    --border-color: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);

    --text-primary: #f0f0f5;
    --text-secondary: #9090a0;
    --text-muted: #60606a;
    --text-accent: #e63946;

    /* Nav */
    --nav-bg: rgba(13, 13, 15, 0.95);
    --nav-border: rgba(255,255,255,0.06);

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);
    --shadow-accent: 0 0 30px var(--accent-glow);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Typography */
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.4s ease;
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ebebef;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f7;
    --bg-elevated: #ffffff;
    --bg-input: #f0f0f5;
    --border-color: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.18);

    --text-primary: #1a1a20;
    --text-secondary: #505060;
    --text-muted: #909098;

    --nav-bg: rgba(245, 245, 247, 0.95);
    --nav-border: rgba(0,0,0,0.06);

    --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }

.text-accent { color: var(--accent) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary-custom { color: var(--text-secondary) !important; }

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.main-content {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-fitforge {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    padding: 0.6rem 0;
    z-index: 1040;
    transition: var(--transition-slow);
}

.navbar-fitforge.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: 0.02em;
}

.logo-icon { font-size: 1.3rem; }
.logo-text { color: var(--text-primary); }
.logo-text span { color: var(--accent); }

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary) !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(255,255,255,0.06);
}

.nav-premium {
    color: var(--gold) !important;
}

.nav-premium:hover {
    background: rgba(255, 214, 10, 0.1) !important;
    color: var(--gold) !important;
}

.btn-ghost-nav {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost-nav:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.btn-user-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-user-menu:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}


/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 680px;
    padding: 0 1rem;
}

.btn-close-search {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.search-input-wrap {
    position: relative;
}

.search-icon-input {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-input-overlay {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 1rem 1rem 1rem 3.25rem !important;
    font-size: 1.2rem !important;
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    transition: var(--transition) !important;
}

.search-input-overlay:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: none;
}

.search-results-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
    background: var(--bg-elevated);
}

.search-result-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
}

.hint-label { color: var(--text-muted); font-size: 0.85rem; }
.hint-tag {
    display: inline-block;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin: 0.2rem;
    transition: var(--transition);
}
.hint-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-outline-accent {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: white;
}

.btn-gold {
    background: var(--gold);
    color: #1a1a20;
    border: none;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: #1a1a20;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 214, 10, 0.3);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-fitforge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-exercise {
    cursor: pointer;
}

.card-exercise .exercise-img-wrap {
    position: relative;
    padding-top: 70%;
    background: var(--bg-elevated);
    overflow: hidden;
}

.card-exercise .exercise-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-exercise:hover .exercise-img-wrap img {
    transform: scale(1.08);
}

.card-exercise .exercise-body {
    padding: 1rem;
}

.card-exercise .exercise-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-exercise .exercise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.tag-accent { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }
.tag-gold { background: rgba(255,214,10,0.15); color: var(--gold); border-color: var(--gold); }

.premium-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.premium-overlay-icon {
    font-size: 2.5rem;
    color: var(--gold);
    filter: drop-shadow(0 0 12px rgba(255,214,10,0.5));
}

.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.favorite-btn:hover, .favorite-btn.active {
    background: var(--accent);
    color: white;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(230,57,70,0.15) 0%, transparent 70%),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(230,57,70,0.08) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 100%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title .line-accent { color: var(--accent); }
.hero-title .line-muted { color: var(--text-secondary); }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.2rem;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-header {
    margin-bottom: 2rem;
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.form-select, .form-control {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition) !important;
    font-size: 0.9rem;
}

.form-select:focus, .form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    background: var(--bg-card) !important;
    outline: none !important;
}

.form-select option { background: var(--bg-card); }

.form-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

/* ============================================================
   EXERCISE DETAIL
   ============================================================ */
.exercise-detail-hero {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.exercise-gif-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.exercise-gif-container img,
.exercise-gif-container video {
    /*max-width: 100%;*/
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

/* Toggle bar sitting below the media container */
.media-toggle-bar {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.media-toggle-bar .btn-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
}

.media-toggle-bar .btn-media.active,
.media-toggle-bar .btn-media:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.12);
    color: var(--accent);
}

.muscle-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.muscle-chip.primary {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.instruction-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.instruction-step:last-child { border-bottom: none; }

.step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 72px);
    padding: 1.5rem;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.875rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.sidebar-nav-item.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.25rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.stat-icon-accent { background: var(--accent-glow); color: var(--accent); }
.stat-icon-gold { background: rgba(255,214,10,0.15); color: var(--gold); }
.stat-icon-blue { background: rgba(58,134,255,0.15); color: #3a86ff; }
.stat-icon-green { background: rgba(6,214,160,0.15); color: #06d6a0; }

/* ============================================================
   AUTH PAGES
   ============================================================ */

/* auth-wrapper centers the card inside <main class="main-content"> */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-card);
}

@media (max-width: 480px) {
    .auth-card { padding: 1.75rem 1.25rem; border-radius: var(--radius-lg); }
}

.auth-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
}

.auth-logo a:hover { color: var(--text-primary); opacity: 0.85; }
.auth-logo span { color: var(--accent); }
.auth-logo i { color: var(--accent); }

/* Icon circle (forgot-password page) */
.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid rgba(230,57,70,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Divider with label */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border-color);
}

/* Input with leading icon */
.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 5;
    font-size: 0.9rem;
}

/* Ensure input text doesn't hide under the toggle button */
.input-icon-wrap .form-control {
    padding-right: 3rem !important;
}

/* Eye-toggle button inside password field */
.btn-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.375rem;
    display: flex;
    align-items: center;
    z-index: 5;
    transition: var(--transition);
}
.btn-password-toggle:hover { color: var(--text-primary); }

/* Demo credentials box */
.auth-demo-creds {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* Password strength meter */
.password-strength { margin-top: 0.5rem; }

.strength-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-label {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Bootstrap form-check dark overrides */
.form-check-input {
    background-color: var(--bg-elevated);
    border-color: var(--border-hover);
}
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Bootstrap alert dark overrides */
.alert-danger {
    background: rgba(230,57,70,0.12);
    border-color: rgba(230,57,70,0.3);
    color: #ff8080;
}
.alert-success {
    background: rgba(6,214,160,0.12);
    border-color: rgba(6,214,160,0.3);
    color: #06d6a0;
}

/* ============================================================
   WORKOUT CARDS
   ============================================================ */
.workout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

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

.workout-cover {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.workout-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workout-body { padding: 1.25rem; }
.workout-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ============================================================
   TOOLS (BMI, CALORIES, TIMER)
   ============================================================ */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 580px;
    margin: 0 auto;
}

.bmi-gauge {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto;
}

.bmi-gauge-svg {
    width: 200px;
    height: 110px;
    display: block;
}

.bmi-gauge-value {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

.timer-widget {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    z-index: 1000;
    min-width: 200px;
    box-shadow: var(--shadow-hover);
}

.timer-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-close-timer {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
}

.timer-display {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.timer-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 999;
    transition: var(--transition);
}

.btn-fab:hover {
    transform: scale(1.1);
}

/* ============================================================
   PREMIUM PAGE
   ============================================================ */

/* Hero */
.premium-hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.premium-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255,214,10,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 60%, rgba(230,57,70,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.premium-hero-content { position: relative; z-index: 1; }

.premium-badge-hero {
    display: inline-flex;
    align-items: center;
    background: rgba(255,214,10,0.12);
    border: 1px solid rgba(255,214,10,0.35);
    color: var(--gold);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.premium-hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.premium-hero-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, #ff8c00 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pricing cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.pricing-card--featured {
    border-color: var(--gold);
    background: linear-gradient(160deg, rgba(255,214,10,0.04) 0%, var(--bg-card) 50%);
    box-shadow: 0 0 40px rgba(255,214,10,0.1);
}

.pricing-card--featured:hover {
    border-color: var(--gold);
    box-shadow: 0 0 60px rgba(255,214,10,0.18), var(--shadow-hover);
}

.pricing-card--inactive {
    opacity: 0.55;
    filter: grayscale(0.4);
    pointer-events: none;
    position: relative;
}

.pricing-card--inactive .pricing-cta {
    pointer-events: all;
}

.pricing-card--inactive:hover {
    border-color: var(--border-color);
    box-shadow: none;
}

.pricing-inactive-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.pricing-badge {
    background: linear-gradient(90deg, var(--gold), #ff8c00);
    color: #1a1a20;
    text-align: center;
    padding: 0.4rem 1rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-header {
    padding: 2rem 1.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.pricing-plan-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.pricing-currency {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.pricing-price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 4rem;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-card--featured .pricing-price { color: var(--gold); }

.pricing-period {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    align-self: flex-end;
    padding-bottom: 0.5rem;
}

.pricing-sub {
    font-size: 0.8rem;
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin: 0;
    padding: 1.25rem 1.75rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li i {
    width: 18px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.feature-yes { color: var(--text-primary); }
.feature-yes i { color: #06d6a0; }
.feature-no { color: var(--text-muted); }
.feature-no i { color: var(--text-muted); }

.pricing-cta {
    padding: 1.25rem 1.75rem 1.75rem;
}

/* Features grid */
.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    border-color: rgba(255,214,10,0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,214,10,0.12);
    border: 1px solid rgba(255,214,10,0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* Trust bar */
.premium-trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 3rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================================
   PREMIUM (inline sections — used on exercise locked pages)
   ============================================================ */
.premium-section {
    background: linear-gradient(135deg, #1a1006 0%, #0d0d0f 40%, #1a0608 100%);
    border: 1px solid rgba(255,214,10,0.15);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,214,10,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.premium-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,214,10,0.15);
    border: 1px solid rgba(255,214,10,0.3);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.price-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.price-card.featured {
    border-color: var(--gold);
    background: rgba(255,214,10,0.04);
    transform: scale(1.04);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   PROGRESS / CHARTS
   ============================================================ */
.progress-bar-custom {
    height: 8px;
    border-radius: 50px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    transition: width 0.8s ease;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
    padding-bottom: 2rem;
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover, .admin-nav-item.active {
    color: var(--accent);
    background: var(--accent-glow);
    border-left-color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: block;
    padding: 0.2rem 0;
    transition: var(--transition);
}

.footer-links li a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
}

.social-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================
   DROPDOWN DARK
   ============================================================ */
.dropdown-menu-dark {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-hover) !important;
    padding: 0.4rem !important;
}

.dropdown-menu-dark .dropdown-item {
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem !important;
    transition: var(--transition) !important;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
}

/* ============================================================
   MODALS (dark-theme overrides)
   ============================================================ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.modal-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.modal-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    padding: 0.875rem 1.25rem;
}

.modal-title { color: var(--text-primary); font-size: 0.95rem; }

.modal-body { padding: 1.25rem; }

.btn-close {
    filter: invert(1) grayscale(100%) brightness(1.8);
    opacity: 0.7;
}
.btn-close:hover { opacity: 1; }

[data-theme="light"] .btn-close { filter: none; }

/* Cancel/secondary button inside modals */
.modal .btn-secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.modal .btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* ============================================================
   TABLES (dark-theme overrides)
   ============================================================ */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: var(--bg-elevated);
    --bs-table-hover-bg: var(--bg-elevated);
    --bs-table-border-color: var(--border-color);
    color: var(--text-primary);
    margin-bottom: 0;
}

.table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.table-hover tbody tr:hover td {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(6,214,160,0.12);
    border-color: rgba(6,214,160,0.3);
    color: #06d6a0;
}

.alert-danger {
    background: rgba(230,57,70,0.12);
    border-color: rgba(230,57,70,0.3);
    color: var(--accent);
}

.alert-warning {
    background: rgba(255,214,10,0.12);
    border-color: rgba(255,214,10,0.3);
    color: var(--gold);
}

.alert-info {
    background: rgba(58,134,255,0.12);
    border-color: rgba(58,134,255,0.3);
    color: #3a86ff;
}

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

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

/* ============================================================
   MISC
   ============================================================ */
.badge-premium {
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    color: #1a1a20;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}


.border-accent { border-color: var(--accent) !important; }
.border-gold { border-color: var(--gold) !important; }

.bg-card { background: var(--bg-card) !important; }
.bg-elevated { background: var(--bg-elevated) !important; }
.bg-secondary-custom { background: var(--bg-secondary) !important; }

.rounded-custom { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-xl); }

hr.border-secondary-custom { border-color: var(--border-color) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .admin-sidebar { 
        width: 100%; 
        position: relative; 
        min-height: auto; 
    }
    .admin-content { margin-left: 0; padding: 1rem; }
    .dashboard-sidebar { position: relative; min-height: auto; height: auto; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .hero-stats { gap: 1.5rem; }
    .tool-card { padding: 1.5rem; }
    .auth-card { padding: 1.5rem; }
    .price-card.featured { transform: none; }
    .btn-fab { bottom: 1rem; right: 1rem; }
    .timer-widget { bottom: 4rem; right: 1rem; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0 0.5rem;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pagination-fitforge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-fitforge li a,
.pagination-fitforge li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.pagination-fitforge li a:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.12);
    color: var(--accent);
}

.pagination-fitforge li.active span {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.pagination-fitforge li.disabled span {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-fitforge li.ellipsis span {
    border-color: transparent;
    background: transparent;
    color: var(--text-secondary);
    cursor: default;
    pointer-events: none;
}

@media (max-width: 480px) {
    .pagination-fitforge li a,
    .pagination-fitforge li span {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
}

/* ============================================================
   DASH CARDS (used on workout, log, create pages)
   ============================================================ */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

.dash-card-header h5 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.dash-card-body {
    padding: 1.25rem;
}

/* ============================================================
   PAGE HEADER (breadcrumb + action row)
   ============================================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h1 { margin: 0; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { color: var(--text-muted); }

/* ============================================================
   WORKOUT SHOW — HERO BANNER
   ============================================================ */
.workout-hero {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.workout-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 100% 50%, rgba(230,57,70,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.workout-hero-content { position: relative; z-index: 1; }

.workout-hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.4rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* ============================================================
   WORKOUT EXERCISE ROWS (show + log pages)
   ============================================================ */
.workout-exercise-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.workout-exercise-row:last-child { border-bottom: none; }

.workout-exercise-row:hover { background: var(--bg-elevated); }

.workout-exercise-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.workout-exercise-thumb {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

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

.workout-exercise-stats {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.workout-exercise-stats .stat-pill {
    text-align: center;
    min-width: 40px;
}

.workout-exercise-stats .stat-pill .val {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.workout-exercise-stats .stat-pill .lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================================
   WORKOUT BUILDER ROWS (create/edit page)
   ============================================================ */
.exercise-builder-list { display: flex; flex-direction: column; gap: 0; }

.exercise-builder-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.exercise-builder-row:last-child { border-bottom: none; }

.exercise-builder-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.exercise-builder-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.exercise-builder-fields {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.exercise-builder-fields > div { min-width: 70px; }

/* ============================================================
   EXERCISE PICKER CARDS (modal)
   ============================================================ */
.picker-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.picker-card:hover {
    border-color: var(--accent);
    background: rgba(230,57,70,0.06);
}

.picker-card img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.picker-card-body { flex: 1; min-width: 0; }

.picker-card .fa-plus { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   LIST GROUP — DARK THEME OVERRIDES
   ============================================================ */
.list-group-item {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.list-group-flush > .list-group-item {
    border-left: 0;
    border-right: 0;
}

.list-group-flush > .list-group-item:first-child {
    border-top: 0;
}

.list-group-flush > .list-group-item:last-child {
    border-bottom: 0;
}

/* ============================================================
   BTN-OUTLINE-SECONDARY — DARK THEME OVERRIDES
   ============================================================ */
.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
    background: var(--bg-elevated);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.profile-avatar-edit {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.profile-avatar-edit:hover {
    background: var(--accent-dark);
    color: white;
}

/* ============================================================
   METRIC CIRCLES (profile body metrics)
   ============================================================ */
.metric-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.metric-circle--good { border-color: #06d6a0; }
.metric-circle--warn { border-color: var(--gold); }

.metric-val {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
}

.metric-unit {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* ============================================================
   FREE PLAN UPGRADE WALL
   ============================================================ */
.free-limit-wall {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(230,57,70,0.06) 100%);
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.free-limit-wall::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,214,10,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.free-limit-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 16px rgba(255,214,10,0.5));
}
