:root {
    --bg-color: #050505;
    --card-bg: rgba(18, 18, 18, 0.6);
    --card-border: rgba(255, 255, 255, 0.04);
    --accent-color: #ff003c;
    --accent-glow: rgba(255, 0, 60, 0.4);
    --comfort-glow: rgba(79, 70, 229, 0.15); /* Comforting Indigo */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(8, 8, 8, 0.95);
    --shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Global Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px var(--accent-glow); }
    50% { box-shadow: 0 0 35px var(--accent-glow), 0 0 60px rgba(239, 68, 68, 0.15); }
}

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

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100dvh;
    overflow: hidden; /* Lock global scroll for native app feel */
    position: relative;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none; /* Prevent pull-to-refresh and bounce */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
}

main {
    position: fixed;
    top: 80px; /* Header height */
    bottom: 70px; /* Bottom Nav height */
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
}

section {
    min-height: 100%; /* Fill the main container */
    display: none; /* Controlled by tabs.js */
}

section.active-section {
    display: block;
}

input, textarea, select {
    -webkit-user-select: auto;
    user-select: auto;
}

/* Flashy Background Glows */
body::before, body::after {
    content: '';
    position: fixed;
    width: 80vw;
    height: 80vh;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

body::before {
    top: -20%;
    left: -10%;
    background: var(--accent-glow);
    animation: floatGlow 25s infinite alternate ease-in-out;
}

body::after {
    bottom: -20%;
    right: -10%;
    background: var(--comfort-glow);
    animation: floatGlowReverse 30s infinite alternate ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30vw, 20vh) scale(1.2); }
    66% { transform: translate(15vw, 40vh) scale(0.9); }
    100% { transform: translate(50vw, 15vh) scale(1.1); }
}

@keyframes floatGlowReverse {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40vw, -30vh) scale(1.3); }
    66% { transform: translate(-70vw, -10vh) scale(0.8); }
    100% { transform: translate(-20vw, -60vh) scale(1.2); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Header */
header {
    height: 80px;
    padding-top: env(safe-area-inset-top);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    position: fixed; /* Keep header fixed at top */
    width: 100%;
    top: 0;
    background: rgba(5, 5, 5, 0.85);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

header.scrolled {
    height: calc(70px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(255, 0, 60, 0.1);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 14rem 0 12rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 60, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -6px;
    line-height: 0.85;
    background: linear-gradient(to bottom, #ffffff 40%, #52525b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroTitleIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 40px rgba(255, 0, 60, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-weight: 400;
    letter-spacing: -0.2px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Muscle Filter */
.muscle-filter {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.desktop-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-filter {
    display: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .desktop-filters {
        display: none;
    }
    .mobile-filter {
        display: block;
    }
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    box-shadow: none;
}

.filter-btn:hover {
    color: #fff;
}

.filter-btn.active {
    color: var(--accent-color);
    background: transparent;
    box-shadow: none;
    animation: none;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Section Styling */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #d4d4d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Workout Grid */
.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
    max-height: 800px;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 48px;
    background: rgba(15, 15, 15, 0.2);
    backdrop-filter: blur(20px);
}

.workout-card {
    background: rgba(20, 20, 20, 0.4);
    border: none;
    border-radius: 40px;
    padding: 3rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(30px);
    position: relative;
    overflow: hidden;
}

.workout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.workout-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(38, 38, 38, 0.65);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(239, 68, 68, 0.15), var(--shadow);
}

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

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
}

.workout-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.workout-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.read-more {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.read-more:hover {
    opacity: 1;
}

.details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    font-size: 0.95rem;
}

.details.active {
    max-height: 1000px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.visual-guide {
    margin-bottom: 1.5rem;
}

.video-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=800&auto=format&fit=crop') center/cover;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.video-placeholder span {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.video-placeholder:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
}

.video-placeholder:hover i {
    transform: scale(1.1);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.rating {
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.9rem;
}

.day-select {
    background: #171717;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: #fff;
    padding: 0.5rem;
    font-size: 0.8rem;
    outline: none;
}

.add-btn {
    background: var(--accent-color);
    border: none;
    color: #000000;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.4rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.add-btn:hover {
    filter: brightness(1.2);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Routine Builder */
.builder {
    padding: 10rem 0;
    background: transparent;
    border-top: 1px solid var(--card-border);
}

.builder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.day-column {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    min-height: 450px;
    transition: background 0.3s;
}

.day-column:hover {
    background: rgba(15, 23, 42, 0.8);
}

.day-column h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0.5;
}

.planned-exercise {
    background: #262626;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.planned-exercise h5 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.exercise-inputs input {
    background: #171717;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: #fff;
    padding: 0.6rem;
    font-size: 0.85rem;
}

.remove-exercise {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.7rem;
    transition: color 0.3s;
}

.remove-exercise:hover {
    color: #ef4444;
}

.builder-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.generate-btn {
    background: linear-gradient(135deg, var(--accent-color), #dc2626);
    color: #000000;
    border: none;
    padding: 1.25rem 3.5rem;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.45);
}

.clear-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* Calculator Section */
.calculator {
    padding: 6rem 0;
    background: transparent;
    border-top: 1px solid var(--card-border);
}

.calc-wrapper {
    display: flex;
    justify-content: center;
}

.calc-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
}

.calc-card:hover {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.input-group input {
    background: #171717;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: #fff;
    padding: 1rem;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.calc-btn {
    background: linear-gradient(135deg, var(--accent-color), #dc2626);
    color: #000000;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
    position: relative;
    overflow: hidden;
}

.calc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.calc-btn:hover::before {
    left: 100%;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.calc-results {
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    text-align: center;
}

.calc-results h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.calc-results h3 span {
    color: var(--accent-color);
}

.muted-text {
    font-size: 1.2rem !important;
    color: var(--text-secondary) !important;
    font-weight: 400;
}

.percentages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.percentages-grid div {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.percentages-grid div span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.percentages-grid div strong {
    font-size: 1.2rem;
    color: #fff;
}

/* Tracker Section */
.tracker-card {
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

@media (max-width: 768px) {
    .tracker-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.tracker-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: end;
}

.weight-chart-wrapper {
    position: relative;
    padding: 1.5rem;
    height: 400px;
    width: 100%;
    border-radius: 24px;
    box-shadow: inset 0 0 20px rgba(255, 0, 60, 0.05);
}

@media (max-width: 768px) {
    .weight-chart-wrapper {
        padding: 1rem;
        height: 300px;
    }
    .weight-btn-group {
        flex-direction: column;
        height: auto !important;
    }
    .weight-btn-group button {
        height: 48px;
    }
}

.custom-select {
    background: #171717;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.custom-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.tdee-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--card-border);
    padding-left: 3rem;
    text-align: left;
}

@media (max-width: 768px) {
    .tdee-results {
        border-left: none;
        border-top: 1px solid var(--card-border);
        padding-left: 0;
        padding-top: 2rem;
        text-align: center;
    }
}

.macro-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.macro-box {
    background: rgba(23, 23, 23, 0.5);
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all 0.3s;
}

.macro-box:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 68, 68, 0.2);
}

.macro-box span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.macro-box strong {
    font-size: 1.5rem;
    color: #fff;
}

.macro-box.protein strong { color: #ef4444; }
.macro-box.carbs strong { color: #3b82f6; }
.macro-box.fats strong { color: #f59e0b; }

/* Interactive Rating */
.interactive-rating {
    display: flex;
    gap: 0.2rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.interactive-rating .star {
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
}

.interactive-rating .star.active {
    color: #fbbf24;
}

.interactive-rating .star:hover {
    transform: scale(1.2);
}

.rating-container {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.rating-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Support & About */
.support {
    padding: 6rem 0;
    background: radial-gradient(circle at center, #171717 0%, #000000 100%);
    border-top: 1px solid var(--card-border);
}

.support-content {
    display: flex;
    justify-content: center;
}

.bio-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3rem;
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.bio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.bio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -20px rgba(239, 68, 68, 0.12), var(--shadow);
    border-color: rgba(239, 68, 68, 0.3);
}

.bio-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.age-tag {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bio-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-info {
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
}

.contact-info h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), #dc2626);
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
}

.email-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* Plan Widget */
.plan-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.plan-widget.collapsed {
    transform: translateY(calc(100% - 75px));
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.widget-header h4 {
    font-weight: 800;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero h1 { font-size: 3.5rem; letter-spacing: -1.5px; }
    .container { padding: 0 1.5rem; }
    .builder-grid { grid-template-columns: 1fr; }
    .chat-window { width: calc(100% - 2rem); right: 1rem; bottom: 80px; }

    header, header.scrolled {
        height: auto;
        padding-bottom: 0;
    }
    header .container {
        flex-direction: column;
        align-items: stretch;
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 0;
    }
    .header-top {
        justify-content: space-between;
        width: 100%;
    }
    .mobile-menu-btn {
        display: block;
    }
    nav#navMenu {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    nav#navMenu.active {
        display: block;
        animation: fadeInUp 0.3s ease;
    }
    .nav-links {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        padding: 1.5rem;
        background: rgba(15, 15, 15, 0.95);
        border: 1px solid var(--card-border);
        border-radius: 12px;
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        margin: 0;
    }
    .chart-container {
        padding: 1rem;
        height: 50vh;
        min-height: 300px;
    }
}

/* AI Chatbot Styles */
.chat-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #dc2626);
    color: #000000;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    z-index: 1001;
    transition: all 0.3s;
    animation: floatUp 3s ease-in-out infinite;
}

.chat-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.5);
}

.chat-window {
    position: fixed;
    bottom: 6rem;
    left: 2rem;
    width: 350px;
    height: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
}

.chat-window.collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.chat-header {
    background: #171717;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.chat-header h4 {
    color: var(--text-primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header h4 i {
    color: var(--accent-color);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.user {
    background: var(--accent-color);
    color: #000000;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    font-weight: 600;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 0.5rem;
    background: #171717;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 0.6rem;
    border-radius: 8px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--accent-color);
}

.chat-input-area button {
    background: var(--accent-color);
    color: #000000;
    border: none;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-input-area button:hover {
    opacity: 0.8;
}

/* Rest Timer Widget */
.timer-widget {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, bottom 0.3s;
}

.timer-widget.collapsed {
    transform: translate(-50%, calc(100% - 30px));
}

.timer-header {
    background: linear-gradient(135deg, #171717, #000000);
    padding: 0.3rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
}

.timer-header h4 {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-header h4 i {
    color: var(--accent-color);
}

.timer-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.timer-widget.collapsed .timer-toggle-btn {
    transform: rotate(180deg);
}

.timer-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.timer-display {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.timer-display.finished {
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-presets {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.preset-btn:hover, .preset-btn.active {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.timer-controls {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

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

.control-btn.play {
    background: linear-gradient(135deg, var(--accent-color), #dc2626);
    color: #000000;
}

.control-btn.pause {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--card-border);
}

.control-btn.reset {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Hero Quote */
.hero-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 1rem 2rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 50px;
    display: inline-flex;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-quote i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.hero-quote span {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1rem;
    font-weight: 500;
}

/* Workout of the Day */
.wod-section {
    padding: 3rem 0 0;
    background: var(--bg-color);
}

.wod-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(38, 38, 38, 0.4));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.wod-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 20px 50px -15px rgba(239, 68, 68, 0.15);
}

.wod-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #000;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: glowPulse 2s ease-in-out infinite;
}

.wod-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.wod-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.wod-content p {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 1rem;
}

.wod-meta {
    display: flex;
    gap: 1.5rem;
}

.wod-meta span {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    margin: 2rem auto 0;
    background: rgba(38, 38, 38, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s;
}

.search-bar:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.search-bar i {
    color: var(--text-secondary);
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

/* Water Tracker */
.water-card {
    text-align: center;
}

.water-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.water-count {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: #3b82f6;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.water-display span {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.water-glasses {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.water-glass {
    width: 50px;
    height: 60px;
    border: 2px solid var(--card-border);
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.water-glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    transition: height 0.4s;
    border-radius: 0 0 10px 10px;
}

.water-glass.filled::after {
    height: 100%;
}

.water-glass.filled {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.water-glass i {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    transition: color 0.3s;
}

.water-glass.filled i {
    color: #fff;
}

/* Progress Logger */
.progress-log {
    border-top: 1px solid var(--card-border);
    margin-top: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
    animation: fadeInUp 0.3s ease-out;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.log-info strong {
    color: #fff;
    font-size: 1rem;
}

.log-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.log-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.log-delete {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.log-delete:hover {
    color: #ef4444;
}

/* Footer */
footer {
    background: transparent;
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Email Signup */
.email-signup {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.email-signup h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
}

.email-signup > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
    max-width: 450px;
    margin: 0 auto 0.75rem;
}

.signup-form input {
    flex: 1;
    background: rgba(38, 38, 38, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: #fff;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.signup-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.signup-form button {
    background: linear-gradient(135deg, var(--accent-color), #dc2626);
    color: #000;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.signup-note {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.signup-success {
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
}

/* Premium Plans */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .premium-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

.premium-card {
    background: rgba(15, 15, 15, 0.2);
    border: none;
    border-radius: 48px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(50px);
}

.premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 0, 60, 0.3);
    box-shadow: var(--shadow);
}

.premium-card.featured {
    border-color: rgba(255, 0, 60, 0.2);
    background: linear-gradient(135deg, rgba(255, 0, 60, 0.05), rgba(15, 15, 15, 0.4));
}

.premium-tag {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.premium-card.featured .premium-tag {
    background: var(--accent-color);
    color: #000;
    animation: glowPulse 2s ease-in-out infinite;
}

.premium-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.3rem;
}

.premium-duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.premium-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.premium-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.premium-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.premium-features li i {
    color: #22c55e;
    font-size: 0.75rem;
}

.premium-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
}

.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-color), #b91c1c);
    color: #ffffff;
    padding: 1.1rem 2rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px rgba(255, 0, 60, 0.2);
}

.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 60, 0.4);
}

/* Gear Section */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .gear-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gear-grid {
        grid-template-columns: 1fr;
    }
}

.gear-card {
    background: rgba(15, 15, 15, 0.2);
    border: none;
    border-radius: 40px;
    padding: 3rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    backdrop-filter: blur(40px);
}

.gear-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 20px 40px -15px rgba(239, 68, 68, 0.12);
}

.gear-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s;
}

.gear-card:hover .gear-icon {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1);
}

.gear-card h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.gear-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex: 1;
}

.gear-cta {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s;
}

.gear-card:hover .gear-cta {
    gap: 0.8rem;
}

/* Coaching CTA */
.coaching-cta {
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.coaching-cta h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.coaching-cta p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.coaching-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #000;
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 900;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.coaching-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

/* Motivation Section & Chart */
.motivation-section {
    padding: 8rem 0;
    position: relative;
}

.motivation-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--comfort-glow) 0%, transparent 60%);
    z-index: -1;
}

.chart-container {
    background: rgba(10, 10, 10, 0.4);
    border: none;
    border-radius: 48px;
    padding: 3.5rem;
    max-width: 950px;
    margin: 0 auto 3rem;
    position: relative;
    height: 60vh;
    min-height: 400px;
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);
}

.motivation-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    font-style: italic;
}

/* Auto Plan Generator */
.auto-plan-section {
    padding: 5rem 0;
    position: relative;
}

.auto-plan-form-container {
    max-width: 700px;
    margin: 0 auto 4rem;
    background: rgba(15, 15, 15, 0.2);
    border: none;
    border-radius: 48px;
    padding: 4rem;
    backdrop-filter: blur(50px);
}

.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group select, .form-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #fff;
    padding: 1.2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff003c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.1em;
}

.form-group select:focus, .form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), #b91c1c);
    color: #ffffff;
    border: none;
    padding: 1.2rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px rgba(255, 0, 60, 0.2);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 60, 0.4);
}

/* Generated Plan Output */
.generated-plan-output {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.plan-day-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.plan-day-header {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 800;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-exercise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.plan-exercise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.plan-exercise-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-exercise-sets {
    color: var(--text-secondary);
    font-size: 0.8rem;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.premium-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #333;
    color: #888;
    box-shadow: none;
}
.premium-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Global Polish & Refinement */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

input:focus, select:focus, textarea:focus {
    transform: scale(1.01);
}

.section-header h2 {
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}



::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
/* Flashy View Details Button */
.view-details-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0);
}
.view-details-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 60, 0.4);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}
.modal-video-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px dashed var(--accent-color);
}
.modal-video-placeholder i {
    font-size: 4rem;
    color: var(--accent-glow);
}
.modal-body-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}
.modal-body-content h4 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.modal-body-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   SPA Bottom Tab Bar 
========================================== */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10000;
    padding-bottom: env(safe-area-inset-bottom); /* iOS support */
}

.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    gap: 4px;
    width: 16.6%;
    transition: all 0.2s ease;
}

.bottom-tab i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.bottom-tab.active {
    color: var(--accent-color);
}

.bottom-tab.active i {
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Hide tab bar on very large desktop screens (optional) */
@media (min-width: 1024px) {
    .bottom-tab-bar {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
}
