/* ViperFit — World-class mobile-first dark UI */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #22222f;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.15);
    --danger: #ef4444;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2a2a3a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* ─── Login ─── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow);
}

.logo-container {
    margin-bottom: 16px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 0 40px var(--accent-glow);
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.error-msg {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:active { transform: scale(0.97); }
.btn-login { width: 100%; margin-top: 8px; }

/* ─── App Layout ─── */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.header-day {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.header-right { display: flex; gap: 16px; }

.nav-icon {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.nav-icon:hover { background: var(--bg-card); color: var(--text-primary); }

.back-btn {
    color: var(--accent);
    font-size: 1.5rem;
    text-decoration: none;
    padding: 4px 8px;
}

.today-link {
    display: inline-block;
    color: var(--accent-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 2px;
}

/* ─── Calendar Strip ─── */
.calendar-strip {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 73px;
    z-index: 98;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.calendar-day:active { transform: scale(0.95); }

.calendar-day.today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-glow);
}

.calendar-day.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.calendar-day.selected.today {
    box-shadow: 0 0 12px var(--accent-glow);
}

.calendar-day-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.calendar-day-num {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1px;
}

/* ─── Progress Bar ─── */
.progress-container {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 157px;
    z-index: 97;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ─── Rest Day ─── */
.rest-day {
    text-align: center;
    padding: 60px 20px;
}

.rest-icon { font-size: 4rem; margin-bottom: 16px; }
.rest-day h2 { font-size: 1.5rem; margin-bottom: 8px; }
.rest-day p { color: var(--text-secondary); }

/* ─── Exercise Cards ─── */
.exercises-list {
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exercise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.exercise-card.completed { border-color: var(--success); }

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    user-select: none;
}

.exercise-header:active { background: var(--bg-card-hover); }

.exercise-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.exercise-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-chest { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.badge-shoulders { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.badge-back { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.badge-biceps { background: rgba(168, 85, 247, 0.2); color: #c4b5fd; }
.badge-triceps { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; }
.badge-legs { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.badge-core { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }

.exercise-target {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.exercise-rest {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.exercise-toggle {
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.exercise-card.open .exercise-toggle { transform: rotate(180deg); }

.exercise-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border);
}

/* ─── Video ─── */
.video-container { margin: 12px 0; }

.video-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.video-btn:active { background: var(--bg-card-hover); }

.video-embed {
    margin-top: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-embed iframe { display: block; }

/* ─── Notes ─── */
.exercise-notes {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 8px 0;
}

/* ─── Sets Logger ─── */
.sets-logger { margin-top: 8px; }

.sets-header {
    display: grid;
    grid-template-columns: 32px 1fr 44px;
    gap: 8px;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sets-header span:nth-child(2) { text-align: center; }

.set-row {
    display: grid;
    grid-template-columns: 32px 1fr 44px;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

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

.set-row.logged { opacity: 0.6; }
.set-row.logged .set-check { color: var(--success); }

.set-num {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

.set-inputs {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.weight-input, .reps-input {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: center;
    min-width: 0;
}

.weight-input:focus, .reps-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.set-check {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.set-check:active { transform: scale(0.9); }
.set-check.checked { background: var(--success-bg); border-color: var(--success); color: var(--success); }

/* ─── History Button ─── */
.history-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.exercise-history {
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-height: 200px;
    overflow-y: auto;
}

.exercise-history table {
    width: 100%;
    border-collapse: collapse;
}

.exercise-history th, .exercise-history td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.exercise-history th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* ─── Complete Button ─── */
.complete-section {
    padding: 16px;
    margin-top: 8px;
}

/* ─── Food Log ─── */
.food-section {
    margin: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.food-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.food-title {
    font-size: 1rem;
    font-weight: 700;
}

.food-add-form {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.food-form-row {
    display: flex;
    gap: 8px;
}

.food-meal-type {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 130px;
    flex-shrink: 0;
    -webkit-appearance: none;
}

.food-meal-type:focus {
    outline: none;
    border-color: var(--accent);
}

.food-name-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.food-name-input:focus {
    outline: none;
    border-color: var(--accent);
}

.food-name-input::placeholder {
    color: var(--text-muted);
}

.food-macros-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.food-macro-input {
    padding: 8px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: center;
    min-width: 0;
}

.food-macro-input:focus {
    outline: none;
    border-color: var(--accent);
}

.food-macro-input::placeholder {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.btn-add-food {
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
}

.btn-add-food:active { transform: scale(0.97); }

/* ─── Fasting Tracker ─── */
.fasting-section {
    margin: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.fasting-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.fasting-title {
    font-size: 1rem;
    font-weight: 700;
}

.fasting-form {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.fasting-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fasting-label-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 40px;
    flex-shrink: 0;
}

.fasting-datetime {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    -webkit-appearance: none;
}

.fasting-datetime:focus {
    outline: none;
    border-color: var(--accent);
}

.fasting-optional {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.btn-fasting {
    padding: 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
}

.btn-fasting:active { transform: scale(0.97); }

.fasting-ongoing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(239, 68, 68, 0.08);
}

.fasting-ongoing-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fasting-ongoing-icon {
    font-size: 0.7rem;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.fasting-ongoing-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-fasting-end {
    padding: 8px 16px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-fasting-end:active { transform: scale(0.97); }

.fasting-history {
    padding: 8px 16px 14px;
}

.fasting-history-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.fasting-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(42, 42, 58, 0.4);
}

.fasting-history-item:last-child { border-bottom: none; }

.fasting-history-range {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fasting-history-hours {
    font-weight: 600;
    color: var(--accent-light);
    flex-shrink: 0;
    margin-left: 8px;
}

.fasting-history-del {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.fasting-history-del:active {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.food-entries {
    padding: 8px 16px;
}

.food-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 16px 0;
}

.food-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.food-entry-meal {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.food-entry-info {
    flex: 1;
    min-width: 0;
}

.food-entry-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.food-entry-macros {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.food-entry-cal {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.food-entry-del {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.food-entry-del:active { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.food-totals {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.food-total-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 8px 4px;
}

.food-total-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
}

.food-total-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.btn-complete {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-complete:active { transform: scale(0.97); }

/* ─── Bottom Nav ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    padding: 8px 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 32px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s;
    border-radius: 12px;
}

.nav-item.active { color: var(--accent); }
.nav-item:active { background: var(--bg-card); }

/* ─── Stats Grid ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 16px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ─── Sessions List ─── */
.sessions-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.session-card.completed { border-left: 3px solid var(--success); }

.session-day {
    font-weight: 600;
    display: block;
}

.session-full-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.session-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-sets {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state p { margin-bottom: 16px; }

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .login-card { padding: 32px 24px; }
    .header-day { font-size: 1.1rem; }
    .exercises-list { padding: 12px 12px 20px; }
    .set-inputs { flex-direction: row; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 12px 0; }
    .stat-card { padding: 12px 8px; }
    .stat-value { font-size: 1.4rem; }
}

@media (min-width: 768px) {
    .app-container { max-width: 700px; }
    .exercises-list { gap: 16px; }
}

/* ─── Animations ─── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.exercise-card { animation: slideUp 0.3s ease forwards; }
.exercise-card:nth-child(2) { animation-delay: 0.05s; }
.exercise-card:nth-child(3) { animation-delay: 0.1s; }
.exercise-card:nth-child(4) { animation-delay: 0.15s; }
.exercise-card:nth-child(5) { animation-delay: 0.2s; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── Toast ─── */
.toast-msg {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.toast-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}