@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&family=Open+Sans:wght@400;600&display=swap');

/* --- DESIGN SYSTEM: MONSTRA GREEN --- */
:root {
    /* Core Colors */
    --monstra-green: #ccff00;
    --monstra-dark: #0a0a0a;
    --monstra-gray: #1f1f1f;
    --monstra-text: #e5e5e5;
    
    /* Legacy variables mapped to new system for compatibility */
    --neon-aqua: #ccff00; /* Replaced aqua with Monstra Green */
    --neon-purple: #9dff00; /* Secondary green or keep purple if needed, but lets align */
    --neon-blue: #ffffff; /* White accents */
    
    /* Missing legacy mappings */
    --neon-lime: #ccff00;
    --glow-lime: rgba(204, 255, 0, 0.4);
    --neon-glow: rgba(204, 255, 0, 0.4);
    
    /* Glows */
    --glow-aqua: rgba(204, 255, 0, 0.4);
    --glow-purple: rgba(204, 255, 0, 0.2);
    
    /* Glass & Backgrounds */
    --glass-bg: rgba(31, 31, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-dark: #0a0a0a;
    --surface-dark: #1f1f1f;

    /* Text */
    --text-main: #e5e5e5;
    --text-muted: #9ca3af;
    --danger: #ff2a6d;

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- UTILITIES --- */
.font-display { font-family: var(--font-display); }
.text-monstra-green { color: var(--monstra-green); }
.bg-monstra-green { background-color: var(--monstra-green); }
.text-shadow-glow { text-shadow: 0 0 20px rgba(204, 255, 0, 0.3); }

.clip-path-slant {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    background-color: var(--monstra-green);
    color: var(--monstra-dark);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* --- LAYOUT CONTAINER --- */
.app-shell {
    width: 100%;
    /* max-width removed to allow full width sections */
    position: relative;
    z-index: 10;
    flex: 1;
    margin-top: 100px; /* Compensate for fixed navbar */
}

/* --- NAVBAR (Updated for new Layout) --- */
.monstra-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-family: var(--font-body);
}

.nav-link:hover, .nav-link.active {
    color: var(--monstra-green);
}

.btn-download {
    background: var(--monstra-green);
    color: var(--monstra-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 15px rgba(204,255,0,0.3);
    border: none;
}

.btn-download:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 0 20px rgba(204,255,0,0.5);
    color: #000;
}

/* --- BUTTONS --- */
.btn-monstro {
    width: 100%;
    padding: 18px;
    background: var(--monstra-green);
    color: var(--monstra-dark);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-monstro:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.4);
}

.btn-outline-monstro {
    border: 2px solid var(--monstra-green);
    color: var(--monstra-green);
    background: transparent;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline-monstro:hover {
    background: var(--monstra-green);
    color: var(--monstra-dark);
}

/* --- MARQUEE ANIMATION --- */
.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- LANDING HERO --- */
.hero-section-new {
    padding-top: 50px; /* Reduced from 150px because .app-shell adds 100px margin */
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: linear-gradient(to left, rgba(204, 255, 0, 0.1), transparent);
    z-index: 0;
    pointer-events: none;
}

/* --- FOOTER --- */
.monstra-footer {
    background: #000;
    padding: 60px 0 30px;
    border-top: 1px solid #222;
    margin-top: auto;
}

/* --- INPUTS & FORMS --- */
.input-monstra {
    width: 100%;
    background: rgba(31, 31, 31, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-monstra:focus {
    border-color: var(--monstra-green);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.2);
}

    /* ... existing content ... */

/* --- LAYOUT CONTAINERS (REPLACING GLASS PANEL) --- */

/* 1. Structural Wrapper (No visual style, just alignment) */
.monstra-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

/* 2. Tech Frame (For Login, Forms, Focused Content) */
.tech-frame {
    background: #080808; /* Very dark, solid */
    border: 1px solid #222;
    border-left: 4px solid var(--monstra-green); /* Accent line */
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    /* Tech corners */
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 20px), 
        calc(100% - 20px) 100%, 
        0 100%
    );
}

/* Optional: Add a "scanline" or top detail to tech-frame */
.tech-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, var(--monstra-green), transparent);
    opacity: 0.5;
}

/* 3. Section Headers (To stand out without boxes) */
.page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* --- ADAPT EXISTING COMPONENTS --- */

/* Make glass-panel transparent for legacy support, or map it to wrapper */
.glass-panel {
    /* Legacy mapping: effectively removed the glass look */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px; /* Aligned with wrapper */
}

/* Update Inputs for Darker/Solid backgrounds */
.input-monstra, .form-control-glass, textarea, .input-field {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px; /* Sharper corners */
}
.input-monstra:focus, .form-control-glass:focus, textarea:focus, .input-field:focus {
    background: #161616;
    border-color: var(--monstra-green);
    box-shadow: none; /* Removed glow for flatter look */
}

/* Exercise Cards - Flat & Sharp */
.exercise-card, .exercise-card-wiki {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px; /* Slightly rounded, not huge */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.exercise-card:hover, .exercise-card-wiki:hover {
    transform: translateY(-2px);
    border-color: var(--monstra-green);
    background: #161616;
}

/* Stat Cards */
.stat-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}
.stat-card:hover {
    border-color: var(--monstra-green);
}


.monstro-eye {
    width: 60px; height: 60px;
    background: var(--monstra-green);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--glow-aqua); /* mapped to green glow */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 50px var(--glow-aqua); }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.fade-in-up { animation: fadeInUp 0.5s forwards; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll smoothness */
html { scroll-behavior: smooth; }


/* --- USER MENU DROPDOWN (Global) --- */
.user-menu-container {
    position: relative;
    z-index: 2000;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    transform-origin: top right;
    animation: menuScaleIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes menuScaleIn {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.user-menu-header {
    padding: 12px 16px;
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 4px;
}

.user-menu-item {
    padding: 12px 16px;
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.user-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--neon-aqua);
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(4px);
}

.user-menu-item:hover i {
    opacity: 1;
    text-shadow: 0 0 10px var(--neon-aqua);
}

.user-menu-item.danger {
    color: #ff6b6b;
}

.user-menu-item.danger i {
    color: #ff6b6b;
}

.user-menu-item.danger:hover {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

/* --- COMPONENTE VIDRO (GLASSMORPHISM) --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 1000px; /* Increased max-width for better desktop flow */
    margin: 0 auto; /* Center the panel within its parent */
    box-sizing: border-box; /* Include padding in width */
}

/* --- FORMULÁRIOS & INPUTS --- */
.input-group { position: relative; margin-bottom: 20px; }

textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    height: 140px;
    transition: all 0.3s ease;
    outline: none;
}

textarea:focus {
    border-color: var(--neon-aqua);
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.1);
    background: rgba(0,0,0,0.5);
}

/* --- BOTÕES --- */
.btn-monstro {
    width: 100%;
    padding: 18px;
    background: var(--neon-aqua);
    color: #000;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-monstro:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-aqua);
}

.btn-monstro:active { transform: scale(0.98); }

.btn-monstro:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333;
    color: #666;
    box-shadow: none;
    transform: none;
}

.btn-icon-back {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    margin-left: -10px;
}

.upload-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 10px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px 0;
}
.upload-trigger:hover { color: #fff; }

/* --- ANIMAÇÕES DE TRANSIÇÃO --- */
.hidden { display: none !important; opacity: 0; pointer-events: none; }

.fade-in-up { animation: fadeInUp 0.5s forwards; }
.fade-out { animation: fadeOut 0.3s forwards; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- LOADING STATE --- */
.loader-container { text-align: center; padding: 40px 0; }

.monstro-eye {
    width: 60px; height: 60px;
    background: var(--neon-aqua);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--glow-aqua);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 50px var(--glow-aqua); }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* --- VIEW: RESULTADO --- */
.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.workout-list { display: flex; flex-direction: column; gap: 15px; }

.exercise-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
    cursor: pointer;
}

.exercise-card:hover { background: rgba(255,255,255,0.07); }

.ex-thumb {
    width: 60px; height: 60px;
    background: #222;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: #555;
    flex-shrink: 0;
}

.ex-info { flex: 1; }
.ex-info h3 { font-size: 1rem; font-weight: 500; margin-bottom: 4px; }
.ex-meta { display: flex; gap: 10px; font-size: 0.8rem; color: var(--neon-aqua); }
.badge { background: rgba(0, 230, 230, 0.1); padding: 2px 6px; border-radius: 4px; }

/* --- VIEW: DETALHES --- */
.detail-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.detail-title { font-size: 1.5rem; line-height: 1.2; font-weight: 700; color: #fff; }

/* --- GALLERY GRID (Updated) --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    aspect-ratio: 4/3; /* Maintain consistent aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-aqua);
    box-shadow: 0 15px 40px rgba(0, 230, 230, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the frame elegantly */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.img-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--neon-aqua);
    border: 1px solid rgba(0, 230, 230, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.img-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    gap: 10px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--neon-aqua);
    color: var(--neon-aqua);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.instruction-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.instruction-item {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ddd;
}

.step-number {
    color: var(--neon-aqua);
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 20px;
}

/* --- VIEW: DASHBOARD --- */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-aqua);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(204,255,0,0.2);
}

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

.data-list { display: flex; flex-direction: column; }

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.data-main h4 { font-size: 1rem; font-weight: 500; color: #fff; margin-bottom: 3px; }
.data-meta { font-size: 0.75rem; color: #666; display: flex; gap: 10px; }

.action-group { display: flex; gap: 8px; }

.btn-mini {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit { background: rgba(255,255,255,0.1); color: #fff; }
.btn-edit:hover { background: var(--neon-aqua); color: #000; }

.btn-del { background: rgba(255, 68, 68, 0.1); color: var(--danger); }
.btn-del:hover { background: var(--danger); color: #fff; }

.admin-link {
    text-align: center;
    margin-top: 30px;
    font-size: 0.75rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}
.admin-link:hover { color: var(--neon-aqua); }

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* --- CONTACT PAGE --- */
.input-field {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-field:focus {
    border-color: var(--neon-aqua);
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.1);
    background: rgba(0,0,0,0.5);
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 230, 230, 0.1);
    border-radius: 12px;
    color: var(--neon-aqua);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* --- LANDING PAGE --- */

/* Hero */
.hero-section {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-title .highlight {
    color: var(--neon-aqua);
    text-shadow: 0 0 30px var(--glow-aqua);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 18px 30px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-outline:hover {
    border-color: var(--neon-aqua);
    color: var(--neon-aqua);
}

/* Sections General */
section {
    width: 100%;
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--neon-aqua);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-aqua);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.06);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--neon-aqua);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.step-num {
    background: var(--neon-aqua);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.step-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-line {
    display: none; /* Hidden on mobile */
}

/* CTA Footer Section */
.cta-section {
    text-align: center;
    background: rgba(0, 230, 230, 0.05);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 230, 230, 0.2);
}

.cta-section h2 {
    color: var(--neon-aqua);
    margin-bottom: 10px;
}

.cta-section p {
    color: #ccc;
    margin-bottom: 25px;
}

/* Responsive Tweaks */
@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        flex: 1;
    }
    
    .step-line {
        display: block;
        flex: 0.5;
        height: 2px;
        background: rgba(255,255,255,0.1);
        margin-top: 20px;
    }
}

/* --- NEW DASHBOARD STYLES --- */
.workout-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* HORIZONTAL CARD STYLE */
.workout-card-horizontal {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: stretch;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    min-height: 120px;
}

.workout-card-horizontal:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    border-color: rgba(0, 230, 230, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.wc-img-placeholder {
    width: 120px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 2rem;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: color 0.3s;
}

.workout-card-horizontal:hover .wc-img-placeholder {
    color: var(--neon-aqua);
}

.wc-content-hz {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.wc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    transition: color 0.3s;
}

.workout-card-horizontal:hover .wc-title {
    color: var(--neon-aqua);
}

.wc-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
}

.wc-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wc-action {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 2;
    transition: transform 0.3s, color 0.3s;
}

.workout-card-horizontal:hover .wc-action {
    color: var(--neon-aqua);
    transform: translateX(3px);
}

.wc-bg-glow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 100% 50%, rgba(0, 230, 230, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.workout-card-horizontal:hover .wc-bg-glow {
    opacity: 1;
}

/* Infinite Scroll Loader */
.scroll-loader {
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    min-height: 60px;
}

.spinner-mini {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--neon-aqua);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 0;
}

.empty-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-container {
    text-align: center;
    padding: 40px;
    background: rgba(255, 68, 68, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

/* --- WORKOUT DETAIL --- */
.workout-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-badge {
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-badge i {
    color: var(--neon-aqua);
}

.ex-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.tag-pill {
    background: var(--neon-aqua);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- EXERCISE DETAIL --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-block {
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.info-block label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.info-block span {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.form-control-glass {
    background: rgba(0,0,0,0.3); 
    border: 1px solid var(--glass-border); 
    color: var(--neon-aqua); 
    padding: 8px; 
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: bold;
    outline: none;
    transition: all 0.3s;
    width: 80px;
}

.form-control-glass:focus {
    border-color: var(--neon-aqua);
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.2);
}

.sets-reps-container {
    display: flex; 
    gap: 20px; 
    align-items: center; 
    justify-content: center;
    background: rgba(0, 230, 230, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 230, 230, 0.1);
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.input-wrapper label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- INPUT PAGE NEW STYLES --- */
.input-section {
    margin-bottom: 30px;
}

.section-label {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 500;
}

.body-part-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.part-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.part-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.part-btn.active {
    background: rgba(0, 230, 230, 0.2);
    border-color: var(--neon-aqua);
    color: var(--neon-aqua);
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.1);
    font-weight: 700;
}

/* Slider */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.intensity-value {
    color: var(--neon-aqua);
    font-weight: 700;
}

.monstro-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    outline: none;
    transition: 0.2s;
}

.monstro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--neon-aqua);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-aqua);
}

.monstro-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--neon-aqua);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-aqua);
}

.intensity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
}
.validation-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* --- ANIMATIONS & TRANSITIONS --- */

/* View Transitions API */
::view-transition-group(root) {
    animation-duration: 0.4s;
}

/* Staggered Entry Animation */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-slide-in {
    animation: slideInRight 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Holographic Drag Styles (Cyberpunk Ghost) */
.sortable-ghost {
    opacity: 0.4;
    background: repeating-linear-gradient(
        45deg,
        rgba(204, 255, 0, 0.05),
        rgba(204, 255, 0, 0.05) 10px,
        rgba(204, 255, 0, 0.1) 10px,
        rgba(204, 255, 0, 0.1) 20px
    );
    border: 1px dashed var(--monstra-green);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
    transform: scale(0.98);
}

.sortable-drag {
    cursor: grabbing;
    opacity: 1;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
}
