:root {
    --primary-blue: #059bff;
    --secondary-orange: #ff6d05;
    --bg-black: #000000;
    --dark-gray: #0a0a0a;
    --medium-gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --glow-blue: rgb(5, 155, 255);
    --glow-orange: rgb(255, 109, 5);
    --body-outline-color: #ff6d05;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-blue);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-orange);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: 50%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(40px, 10px) scale(1.05); }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-blue) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0;
    opacity: 0.03;
    animation: gridScroll 20s linear infinite;
    transform:
        perspective(700px)
        rotateX(var(--grid-rotate-x, 0deg))
        rotateY(var(--grid-rotate-y, 0deg))
        translate3d(var(--grid-offset-x, 0px), var(--grid-offset-y, 0px), 0)
        scale(var(--grid-scale, 1));
    transform-origin: center center;
    will-change: transform, background-position;
    transition: transform 0.16s ease-out, background-position 0.16s ease-out;
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    box-shadow: 0 0 40px var(--glow-blue);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px var(--glow-blue); transform: scale(1); }
    50% { box-shadow: 0 0 60px var(--glow-orange); transform: scale(1.05); }
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.tagline {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 10px;
    letter-spacing: 2px;
}

.seo-intro {
    max-width: 760px;
    margin: 14px auto 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-gray);
    opacity: 0.8;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.seo-links .btn {
    flex: 1 1 170px;
    max-width: 220px;
    padding: 12px 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.seo-section {
    max-width: 900px;
    margin: 24px auto 0;
    text-align: left;
}

.seo-section summary {
    cursor: pointer;
    list-style: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.seo-section summary::-webkit-details-marker {
    display: none;
}

.seo-section summary:hover {
    color: var(--secondary-orange);
}

.seo-section .seo-content {
    padding-top: 4px;
}

.seo-section p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.seo-section .cta-row {
    margin-top: 18px;
}

.seo-section .btn {
    display: inline-block;
}

.seo-bullets {
    margin-top: 16px;
    padding-left: 22px;
}

.seo-bullets li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-white);
}

/* Cards */
.card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(5, 155, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(5, 155, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(5, 155, 255, 0.4);
    box-shadow: 0 0 60px rgba(5, 155, 255, 0.2);
    transform: translateY(-5px);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select, textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(42, 42, 42, 0.5);
    border: 2px solid rgba(5, 155, 255, 0.2);
    border-radius: 10px;
    color: var(--text-white);
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px var(--glow-blue);
}

/* Slider */
.slider-container {
    margin-top: 15px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 5px;
    outline: none;
    border: 1px solid rgba(5, 155, 255, 0.2);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px var(--glow-blue);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--glow-orange);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px var(--glow-blue);
    border: none;
}

.slider-value {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 15px;
    background: rgba(5, 155, 255, 0.2);
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Button */
.btn {
    padding: 18px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
    color: var(--text-white);
    box-shadow: 0 0 30px var(--glow-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--glow-orange);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 109, 5, 0.2);
    color: var(--secondary-orange);
    border: 2px solid var(--secondary-orange);
}

.btn-secondary:hover {
    background: var(--secondary-orange);
    color: var(--text-white);
    box-shadow: 0 0 30px var(--glow-orange);
}

.btn-danger {
    background: rgba(255, 50, 50, 0.2);
    color: #ff3232;
    border: 2px solid #ff3232;
}

.btn-danger:hover {
    background: #ff3232;
    color: var(--text-white);
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.5);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Workout Timeline */
.workout-timeline {
    margin-top: 40px;
}

.timeline-bar {
    background: rgba(42, 42, 42, 0.5);
    border: 2px solid rgba(5, 155, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    min-height: 120px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.drill-square {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.drill-square:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.drill-square.dragging {
    opacity: 0.5;
    transform: scale(0.9);
}

/* Color Legend */
.color-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

input[type="color"] {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(5, 155, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
    padding: 5px;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 5px;
    border: none;
}

.legend-label {
    flex: 1;
    padding: 12px 15px;
    background: rgba(42, 42, 42, 0.5);
    border: 2px solid rgba(5, 155, 255, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
}

/* Drill Bank */
.drill-bank {
    background: rgba(42, 42, 42, 0.3);
    border: 2px dashed rgba(5, 155, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.drill-bank .drill-square {
    cursor: grab;
}

.drill-bank .drill-square::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    color: var(--text-gray);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.timeline-empty {
    width: 100%;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-align: center;
    color: var(--text-gray);
}

.trash-bin {
    margin-top: 20px;
    min-height: 90px;
    border: 2px dashed rgba(255, 50, 50, 0.4);
    border-radius: 15px;
    background: rgba(255, 50, 50, 0.08);
    color: #ff8a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bank-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Session View */
.session-container {
    display: none;
}

.session-container.active {
    display: block;
}

.drill-display {
    text-align: center;
}

.drill-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.drill-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.drill-focus {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 109, 5, 0.2);
    border: 2px solid var(--secondary-orange);
    border-radius: 20px;
    color: var(--secondary-orange);
    font-weight: 700;
    margin-bottom: 30px;
}

/* Timer */
.timer-container {
    margin: 50px 0;
    text-align: center;
}

.timer-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px var(--glow-blue);
    margin-bottom: 30px;
}

.timer-progress {
    width: 100%;
    height: 15px;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 2px solid rgba(5, 155, 255, 0.2);
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    border-radius: 8px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px var(--glow-blue);
}

.timer-status {
    min-height: 24px;
    margin-bottom: 24px;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* Muscle Diagram */
.muscle-diagram-container {
    margin: 50px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Loading Animation */
.loading-container {
    display: none;
    text-align: center;
    padding: 100px 0;
}

.loading-container.active {
    display: block;
}

.loading-spinner {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border: 5px solid rgba(5, 155, 255, 0.2);
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

.loading-container.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.loading-spinner {
    border-color: rgba(31, 122, 224, 0.16) !important;
    border-top-color: var(--primary-blue) !important;
    border-right-color: var(--secondary-orange) !important;
    animation: spin 0.8s linear infinite !important;
}

.loading-text {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-text 1.2s ease-in-out infinite !important;
}
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .card {
        padding: 25px;
    }

    .timer-display {
        font-size: 4rem;
    }

    .muscle-diagram {
        width: 100%;
        max-width: 300px;
    }

    .drill-square {
        width: 50px;
        height: 50px;
    }
}
/* Muscle Diagram */
.muscle-groups {
position: relative;
background: var(--dark-gray);
width: 100%;
padding: 0.5rem 1rem;
border-radius: 5px;
box-shadow: 0 0 20px var(--secondary-orange);
overflow: hidden;
border-top: 0.75rem solid var(--dark-gray);
}
.muscle-groups h1,
.muscle-groups .muscle-diagram-heading {
margin: -0.5rem -1rem 1rem;
padding: 0 1rem 0.75rem;
background: var(--dark-gray);
color: #eee;
text-align: center;
font-size: 1.25rem;
}
.muscle-groups h2 {
margin: 0 0 0.5rem;
font-size: 0.8rem;
letter-spacing: -0.03em;
text-transform: uppercase;
}
.muscle-groups label + h2 {
margin-top: 1rem;
}
.muscle-groups label {
width: 50px;
display: block;
margin-bottom: 0.5rem;
cursor: pointer;
font-size: 0.7rem;
opacity: 0.5;
position: relative;
z-index: 200;
border-left: 5px solid transparent;
padding-left: 6px;
margin-left: -11px;
}
.muscle-groups label:hover, .muscle-groups label.hover {
opacity: 1;
border-color: rgba(255, 255, 255, 0.75);
}
.muscle-groups label.ai-selected {
cursor: not-allowed;
}
.muscle-groups label.manual-selected {
opacity: 1;
font-weight: bold;
color: var(--primary-blue);
border-color: rgba(5, 155, 255, 0.85);
text-shadow: 0 0 10px var(--glow-blue), 0 0 20px var(--glow-blue);
}
.muscle-groups input:checked + label {
opacity: 1;
font-weight: bold;
color: var(--secondary-orange);
}
.muscle-groups svg {
position: absolute;
right: -1.5rem;
bottom: 3rem;
height: 350px;
z-index: 100;
}
.muscle-groups svg g[id] path {
opacity: 1;
transition: opacity 0.25s ease-in-out;
}
.muscle-groups svg #Front,
.muscle-groups svg #Back {
stroke: var(--body-outline-color) !important;
}
.muscle-groups svg g g[id]:hover path {
cursor: pointer;
opacity: 1;
fill: #00BCD4 !important;
}
.muscle-groups svg g g.manual-selected path {
stroke: var(--primary-blue) !important;
stroke-width: 1.5px !important;
filter: drop-shadow(0 0 6px var(--glow-blue));
}
.muscle-groups .muscles-helper {
display: none;
}
.muscle-groups label[for=obliques]:hover ~ svg #Obliques path {
opacity: 0.75;
}
.muscle-groups .obliques:checked ~ svg #Obliques path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=abs]:hover ~ svg #Abs path {
opacity: 0.75;
}
.muscle-groups .abs:checked ~ svg #Abs path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=quads]:hover ~ svg #Quads path {
opacity: 0.75;
}
.muscle-groups .quads:checked ~ svg #Quads path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=biceps]:hover ~ svg #Biceps path {
opacity: 0.75;
}
.muscle-groups .biceps:checked ~ svg #Biceps path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=adductors]:hover ~ svg #Adductors path {
opacity: 0.75;
}
.muscle-groups .adductors:checked ~ svg #Adductors path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=pectorals]:hover ~ svg #Pectorals path {
opacity: 0.75;
}
.muscle-groups .pectorals:checked ~ svg #Pectorals path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=deltoids]:hover ~ svg #Deltoids path {
opacity: 0.75;
}
.muscle-groups .deltoids:checked ~ svg #Deltoids path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=hamstrings]:hover ~ svg #Hamstrings path {
opacity: 0.75;
}
.muscle-groups .hamstrings:checked ~ svg #Hamstrings path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=quads]:hover ~ svg #Quads path {
opacity: 0.75;
}
.muscle-groups .quads:checked ~ svg #Quads path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=forearms]:hover ~ svg #Forearms path {
opacity: 0.75;
}
.muscle-groups .forearms:checked ~ svg #Forearms path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=calves]:hover ~ svg #Calves path {
opacity: 0.75;
}
.muscle-groups .calves:checked ~ svg #Calves path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=triceps]:hover ~ svg #Triceps path {
opacity: 0.75;
}
.muscle-groups .triceps:checked ~ svg #Triceps path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=glutes]:hover ~ svg #Glutes path {
opacity: 0.75;
}
.muscle-groups .glutes:checked ~ svg #Glutes path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=lats]:hover ~ svg #Lats path {
opacity: 0.75;
}
.muscle-groups .lats:checked ~ svg #Lats path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}
.muscle-groups label[for=trapezius]:hover ~ svg #Trapezius path {
opacity: 0.75;
}
.muscle-groups .trapezius:checked ~ svg #Trapezius path {
opacity: 0.8;
fill: var(--secondary-orange) !important;
}

main {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
width: 100%;
padding: 2rem 0;
}
main .info {
font-size: 0.8rem;
display: block;  
padding-top: 200px;
color: #eee;
padding-left: 2rem;
opacity: 0.5;
}
main .info:hover {
opacity: 1;
}
main .info a {
color: #eee;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.progress-indicator {
    text-align: center;
    margin-bottom: 30px;
}

.progress-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-gray);
}

.progress-number {
    color: var(--primary-blue);
    font-weight: 900;
}

/* Light Theme Refresh */
:root {
    --primary-blue: #1f7ae0;
    --secondary-orange: #ff8a34;
    --bg-black: #f6f9ff;
    --dark-gray: #ffffff;
    --medium-gray: #edf3fb;
    --light-gray: #dbe7f3;
    --text-white: #172033;
    --text-gray: #5f6f86;
    --glow-blue: rgba(31, 122, 224, 0.22);
    --glow-orange: rgba(255, 138, 52, 0.24);
    --body-outline-color: #8aa1bd;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(118, 140, 168, 0.24);
    --line-strong: rgba(31, 122, 224, 0.34);
    --soft-shadow: 0 22px 55px rgba(30, 50, 80, 0.13);
    --hover-shadow: 0 28px 70px rgba(31, 122, 224, 0.18);
    --pointer-x: 50%;
    --pointer-y: 18%;
    --bg-shift-x: 0px;
    --bg-shift-y: 0px;
    --grid-shift-x: 0px;
    --grid-shift-y: 0px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f6f9ff;
    color: var(--text-white);
    text-rendering: geometricPrecision;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: none;
    opacity: 0;
}

.animated-bg {
    background:
        linear-gradient(90deg, rgba(31, 122, 224, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(31, 122, 224, 0.12) 1px, transparent 1px);
    background-size: 34px 34px;
    background-position: var(--grid-shift-x) var(--grid-shift-y);
    transform:
        perspective(700px)
        rotateX(var(--bg-rotate-x, 0deg))
        rotateY(var(--bg-rotate-y, 0deg))
        translate3d(var(--bg-shift-x), var(--bg-shift-y), 0)
        scale(var(--bg-scale, 1));
    transition: transform 0.22s ease-out, background-position 0.22s ease-out;
}

.animated-bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 180deg at 50% 50%, transparent, rgba(31, 122, 224, 0.08), transparent, rgba(255, 138, 52, 0.09), transparent);
    animation: ambientSweep 18s linear infinite;
    opacity: 0.8;
}

.pointer-glow {
    position: absolute;
    width: 34rem;
    height: 34rem;
    left: var(--pointer-x);
    top: var(--pointer-y);
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31, 122, 224, 0.2), rgba(255, 138, 52, 0.16));
    filter: blur(18px);
    opacity: 0.44;
    transition: left 0.28s ease-out, top 0.28s ease-out;
}

.bg-orb {
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.28;
    animation: ribbonFloat 16s ease-in-out infinite;
}

.orb-1,
.orb-2,
.orb-3 {
    height: 16rem;
    width: 48rem;
    background: linear-gradient(90deg, transparent, rgba(31, 122, 224, 0.14), rgba(255, 138, 52, 0.12), transparent);
}

.orb-1 {
    top: 6%;
    left: -18rem;
    transform: rotate(-14deg);
}

.orb-2 {
    right: -16rem;
    bottom: 12%;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 52, 0.16), rgba(31, 122, 224, 0.09), transparent);
    animation-delay: -6s;
}

.orb-3 {
    top: 48%;
    right: 16%;
    opacity: 0.18;
    animation-delay: -11s;
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(31, 122, 224, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 122, 224, 0.16) 1px, transparent 1px);
    opacity: 0.72;
    background-size: 34px 34px;
    background-position: var(--grid-shift-x) var(--grid-shift-y);
    animation: gridScroll 28s linear infinite;
    transform:
        perspective(700px)
        rotateX(var(--grid-rotate-x, 0deg))
        rotateY(var(--grid-rotate-y, 0deg))
        translate3d(var(--grid-offset-x, 0px), var(--grid-offset-y, 0px), 0)
        scale(var(--grid-scale, 1));
    transform-origin: center center;
    will-change: transform, background-position;
    transition: transform 0.18s ease-out, background-position 0.18s ease-out;
}

@keyframes ambientSweep {
    from { transform: rotate(0deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1.1); }
}

@keyframes ribbonFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-10deg); }
    50% { transform: translate3d(5rem, -1.5rem, 0) rotate(-6deg); }
}

.container {
    padding-top: 32px;
}

header {
    margin-bottom: 42px;
}

.logo-placeholder {
    background: var(--surface-strong);
    border: 1px solid rgba(31, 122, 224, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(31, 122, 224, 0.16);
    animation: logoLift 4s ease-in-out infinite;
}

.logo-placeholder img {
    border-radius: 16px !important;
}

@keyframes logoLift {
    0%, 100% { transform: translateY(0); box-shadow: 0 18px 40px rgba(31, 122, 224, 0.16); }
    50% { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(255, 138, 52, 0.2); }
}

h1,
.timer-display {
    letter-spacing: 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.tagline,
label,
.bank-title,
.progress-text,
.timer-status,
.drill-description {
    color: var(--text-gray);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px) saturate(1.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.card:hover {
    background: var(--surface-strong);
    border-color: var(--line-strong);
    box-shadow: var(--hover-shadow);
    transform: translateY(-4px);
}

.card-title,
.drill-name,
.loading-text,
.progress-number {
    color: var(--primary-blue);
}

input,
select,
textarea,
.legend-label {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-white);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input::placeholder,
textarea::placeholder {
    color: #8b9bb0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.12), 0 12px 28px rgba(31, 122, 224, 0.1);
    background: #ffffff;
}

select option {
    color: #172033;
    background: #ffffff;
}

input[type="range"] {
    background: linear-gradient(90deg, rgba(31, 122, 224, 0.22), rgba(255, 138, 52, 0.22));
    border: 1px solid rgba(31, 122, 224, 0.14);
}

input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-moz-range-thumb {
    background: #ffffff;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 10px 22px rgba(31, 122, 224, 0.28);
}

.slider-value {
    background: rgba(31, 122, 224, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(31, 122, 224, 0.16);
}

.btn {
    border-radius: 8px;
    letter-spacing: 1px;
    box-shadow: 0 14px 30px rgba(30, 50, 80, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(31, 122, 224, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 46px rgba(31, 122, 224, 0.32);
}

.btn-secondary {
    background: #ffffff;
    color: #bf5f17;
    border: 1px solid rgba(255, 138, 52, 0.42);
}

.btn-secondary:hover {
    background: #ff8a34;
    color: #ffffff;
    box-shadow: 0 20px 38px rgba(255, 138, 52, 0.24);
}

.btn-danger {
    background: rgba(230, 71, 71, 0.08);
    color: #c63737;
    border: 1px solid rgba(230, 71, 71, 0.32);
}

.btn-danger:hover {
    background: #d94545;
    color: #ffffff;
    box-shadow: 0 20px 38px rgba(217, 69, 69, 0.24);
}

.timeline-bar,
.drill-bank {
    background: rgba(255, 255, 255, 0.66);
    border: 1px dashed rgba(31, 122, 224, 0.24);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.timeline-empty {
    border-color: rgba(95, 111, 134, 0.22);
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.45);
}

.drill-square {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(30, 50, 80, 0.18);
}

.drill-square:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 34px rgba(30, 50, 80, 0.22);
}

.drill-focus {
    background: rgba(255, 138, 52, 0.1);
    border: 1px solid rgba(255, 138, 52, 0.36);
    color: #bf5f17;
    border-radius: 999px;
}

.timer-progress {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(31, 122, 224, 0.16);
    box-shadow: inset 0 1px 2px rgba(30, 50, 80, 0.08);
}

.timer-progress-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    box-shadow: 0 0 18px rgba(31, 122, 224, 0.25);
}

.loading-spinner {
    border-color: rgba(31, 122, 224, 0.14);
    border-top-color: var(--primary-blue);
}

.trash-bin {
    background: rgba(217, 69, 69, 0.06);
    border-color: rgba(217, 69, 69, 0.28);
    color: #b83333;
}

.muscle-groups {
    background: rgba(255, 255, 255, 0.88);
    border-top-color: rgba(31, 122, 224, 0.28);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    color: var(--text-white);
}

.muscle-groups h1,
.muscle-groups .muscle-diagram-heading {
    background: linear-gradient(90deg, rgba(31, 122, 224, 0.12), rgba(255, 138, 52, 0.12));
    color: var(--text-white);
    -webkit-text-fill-color: currentColor;
}

.muscle-groups h2,
.muscle-groups label,
main .info,
main .info a {
    color: var(--text-gray);
    letter-spacing: 0;
}

.muscle-groups label:hover,
.muscle-groups label.hover {
    border-color: rgba(31, 122, 224, 0.5);
}

.muscle-groups label.manual-selected {
    color: var(--primary-blue);
    text-shadow: none;
}

.muscle-groups input:checked + label {
    color: #bf5f17;
}

.muscle-groups svg #Front,
.muscle-groups svg #Back {
    stroke: var(--body-outline-color) !important;
}

.muscle-groups svg g g.manual-selected path {
    filter: drop-shadow(0 4px 8px rgba(31, 122, 224, 0.22));
}



.animated-bg {
    background: transparent !important;
    transform: none !important;
    transition: none !important;
}

.animated-bg::before,
.bg-orb,
.pointer-glow {
    display: none !important;
}

.grid-pattern {
    inset: -50vh -50vw !important;
    width: 200vw !important;
    height: 200vh !important;
    background-image:
        linear-gradient(rgba(31, 122, 224, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 122, 224, 0.18) 1px, transparent 1px) !important;
    background-size: 34px 34px !important;
    background-position: var(--grid-shift-x) var(--grid-shift-y) !important;
    opacity: 0.68 !important;
    animation: none !important;
    transition: none !important;
    will-change: background-position;
}

.muscle-groups h1,
.muscle-groups h2,
.muscle-groups .muscle-diagram-heading {
    color: var(--primary-blue) !important;
    -webkit-text-fill-color: var(--primary-blue) !important;
}

.muscle-groups h1,
.muscle-groups .muscle-diagram-heading {
    background: rgba(31, 122, 224, 0.08) !important;
}

.muscle-groups svg g g[id] path {
    fill: #d9e1ec !important;
    stroke: rgba(138, 161, 189, 0.35) !important;
    stroke-width: 0.5px !important;
    filter: none !important;
}

.muscle-groups svg #Front,
.muscle-groups svg #Back {
    stroke: #b8c4d3 !important;
}

.muscle-groups svg g g[id]:hover path {
    fill: var(--primary-blue) !important;
    stroke: var(--primary-blue) !important;
    opacity: 1 !important;
}

.muscle-groups label.ai-selected,
.muscle-groups input:checked + label {
    color: var(--secondary-orange) !important;
    border-color: rgba(255, 138, 52, 0.78) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.muscle-groups svg g g.ai-selected path,
.muscle-groups .obliques:checked ~ svg #Obliques path,
.muscle-groups .abs:checked ~ svg #Abs path,
.muscle-groups .quads:checked ~ svg #Quads path,
.muscle-groups .biceps:checked ~ svg #Biceps path,
.muscle-groups .adductors:checked ~ svg #Adductors path,
.muscle-groups .pectorals:checked ~ svg #Pectorals path,
.muscle-groups .deltoids:checked ~ svg #Deltoids path,
.muscle-groups .hamstrings:checked ~ svg #Hamstrings path,
.muscle-groups .forearms:checked ~ svg #Forearms path,
.muscle-groups .calves:checked ~ svg #Calves path,
.muscle-groups .triceps:checked ~ svg #Triceps path,
.muscle-groups .glutes:checked ~ svg #Glutes path,
.muscle-groups .lats:checked ~ svg #Lats path,
.muscle-groups .trapezius:checked ~ svg #Trapezius path {
    fill: var(--secondary-orange) !important;
    stroke: var(--secondary-orange) !important;
    opacity: 1 !important;
}

.muscle-groups label.manual-selected {
    color: var(--primary-blue) !important;
    border-color: rgba(31, 122, 224, 0.78) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.muscle-groups svg g g.manual-selected path {
    fill: var(--primary-blue) !important;
    stroke: var(--primary-blue) !important;
    stroke-width: 1px !important;
    filter: none !important;
    opacity: 1 !important;
}        .loading-container.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.loading-spinner {
    border-color: rgba(31, 122, 224, 0.16) !important;
    border-top-color: var(--primary-blue) !important;
    border-right-color: var(--secondary-orange) !important;
    animation: spin 0.8s linear infinite !important;
}

.loading-text {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-text 1.2s ease-in-out infinite !important;
}
@media (max-width: 768px) {
    .container {
        padding: 24px 14px;
    }

    .logo-container {
        gap: 12px;
    }

    .card {
        border-radius: 8px;
    }

    .pointer-glow {
        width: 22rem;
        height: 22rem;
    }
}

.muscle-groups label.manual-selected,
.muscle-groups label.ai-selected.manual-selected {
    border-color: var(--primary-blue) !important;
    border-left-color: var(--primary-blue) !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.muscle-groups label.manual-selected:not(.ai-selected) {
    color: var(--primary-blue) !important;
}

.muscle-groups label.ai-selected.manual-selected {
    color: var(--secondary-orange) !important;
}

.muscle-groups svg g g.manual-selected:not(.ai-selected) path {
    fill: var(--primary-blue) !important;
    stroke: #62b8ff !important;
    stroke-width: 3px !important;
    stroke-opacity: 1 !important;
    paint-order: stroke fill !important;
    vector-effect: non-scaling-stroke !important;
    filter: drop-shadow(0 0 2px rgba(98, 184, 255, 0.45)) !important;
    opacity: 1 !important;
}

.muscle-groups svg g g.ai-selected.manual-selected path {
    fill: var(--secondary-orange) !important;
    stroke: #62b8ff !important;
    stroke-width: 3px !important;
    stroke-opacity: 1 !important;
    paint-order: stroke fill !important;
    vector-effect: non-scaling-stroke !important;
    filter: drop-shadow(0 0 2px rgba(98, 184, 255, 0.45)) !important;
    opacity: 1 !important;
}
/* ==========================================================================
   Mobile fixes (added — see commit notes)
   1) Hide SEO-only marketing copy on small screens. It stays in the HTML
      for search engines/crawlers, it's just visually hidden here so it
      doesn't clutter the phone layout.
   2) Extra small-phone sizing pass beyond the existing 768px breakpoint.
   3) Touch devices don't have real hover — neutralize the hover-only
      transform/glow effects there so buttons/cards don't look "stuck" or
      lit up after a tap. :active supplies tap feedback instead.
   4) Visual feedback + touch-action for the touch drag-and-drop shim in
      scripts/script.js (native HTML5 drag-and-drop does not fire on touch
      devices, so the workout-timeline builder needed a touch equivalent).
   ========================================================================== */

@media (max-width: 768px) {
    #marketingIntro .seo-intro,
    #marketingIntro .seo-links,
    #marketingIntro .seo-section {
        display: none;
    }

    /* The muscle diagram SVG is normally pulled out of flow and pinned to
       the bottom-right corner of .muscle-groups for a side-overlap layout
       next to the muscle list. At mobile widths that fixed-height,
       negative-offset positioning pushed it past the container's edge,
       where overflow:hidden on .muscle-groups clipped it. Let it sit in
       normal flow below the list instead, scaled to fit. */
    .muscle-diagram-container {
        position: static;
        margin: 1.25rem 0 0.5rem;
        justify-content: center;
    }

    .muscle-groups svg {
        position: static;
        right: auto;
        bottom: auto;
        display: block;
        width: 100%;
        max-width: 260px;
        height: auto;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 18px 12px;
    }

    h1 {
        font-size: 1.9rem;
        letter-spacing: -1px;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .card {
        padding: 18px;
        border-radius: 14px;
    }

    .card-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .btn {
        padding: 14px 22px;
        font-size: 0.95rem;
        letter-spacing: 1px;
        width: 100%;
    }

    .flex-center .btn {
        width: auto;
        flex: 1 1 140px;
    }

    .drill-square {
        width: 44px;
        height: 44px;
        font-size: 0.7rem;
    }

    .timer-display {
        font-size: 2.75rem;
    }

    body {
        padding-top: 60px;
    }
}

/* Drop-target highlight used by the touch drag-and-drop shim */
.drop-target-active {
    outline: 2px dashed var(--primary-blue);
    outline-offset: 2px;
}

/* Let the JS drag shim own touch gestures on drill squares instead of the
   browser trying to scroll the page when a drag starts on one. */
.drill-square {
    touch-action: none;
}

/* Neutralize hover-only effects on devices with no real hover capability */
@media (hover: none) {
    .card:hover {
        background: var(--surface);
        border-color: var(--line);
        box-shadow: var(--soft-shadow);
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
        box-shadow: 0 18px 36px rgba(31, 122, 224, 0.25);
    }

    .btn-secondary:hover {
        background: #ffffff;
        color: #bf5f17;
        box-shadow: 0 14px 30px rgba(30, 50, 80, 0.12);
    }

    .btn-danger:hover {
        background: rgba(230, 71, 71, 0.08);
        color: #c63737;
        box-shadow: 0 14px 30px rgba(30, 50, 80, 0.12);
    }

    .drill-square:hover {
        transform: none;
        box-shadow: 0 12px 24px rgba(30, 50, 80, 0.18);
    }

    .seo-section summary:hover {
        color: var(--primary-blue);
    }

    input[type="range"]::-webkit-slider-thumb:hover {
        transform: none;
        box-shadow: 0 10px 22px rgba(31, 122, 224, 0.28);
    }

    .btn-primary:active {
        transform: scale(0.97);
    }

    .btn-secondary:active,
    .btn-danger:active {
        opacity: 0.85;
    }

    .drill-square:active {
        transform: scale(1.05);
    }

    .site-nav-link:hover {
        color: #FFF;
    }

    /* Muscle diagram: on touch, tapping a muscle leaves it in a "stuck"
       :hover state (browsers apply :hover on tap and only clear it on the
       next tap elsewhere). That stuck hover fill has the same visual
       weight as the real selected-state fill, so deselecting a muscle
       looked like it went from "blue + outline" to "blue, no outline"
       instead of back to grey. Since this is scoped to hover:none, mouse
       users on desktop keep the normal hover-preview behavior untouched. */
    .muscle-groups svg g g[id]:hover:not(.manual-selected):not(.ai-selected) path {
        fill: #d9e1ec !important;
        stroke: rgba(138, 161, 189, 0.35) !important;
        stroke-width: 0.5px !important;
        opacity: 1 !important;
    }

    /* Same stuck-hover problem, but for a muscle the program already
       picked (ai-selected, shown in orange): tapping it on/off should
       just toggle the blue "you also picked this" outline — the orange
       fill itself shouldn't change. Without this, untapping it left the
       stuck hover-blue showing instead of the program's orange. */
    .muscle-groups svg g g[id].ai-selected:hover:not(.manual-selected) path {
        fill: var(--secondary-orange) !important;
        stroke: var(--secondary-orange) !important;
        opacity: 1 !important;
    }
}