/* =============================================
   ATLON FIT LITE — Reusable Components
   ============================================= */

/* ---- Header ---- */
.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: calc(var(--header-height) + var(--safe-top));
    padding: var(--safe-top) 20px 0;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.app-header .header-title {
    font-size: var(--font-lg);
    font-weight: 700;
}

.app-header .header-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ---- Bottom Navigation (Stitch Design) ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    padding: 6px 4px;
    padding-bottom: calc(6px + var(--safe-bottom));
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-muted);
    background: none;
    border: none;
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    position: relative;
}

.nav-item .material-symbols-outlined {
    font-size: 24px;
    transition: all var(--transition-base);
    display: block;
}

.nav-item:active .material-symbols-outlined {
    transform: scale(0.90);
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all var(--transition-base);
}

/* Active state: bright icon + bold label + pill dot */
.nav-item.active {
    color: var(--primary);
}

.nav-item.active .material-symbols-outlined {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.5));
}

.nav-item.active .nav-label {
    font-weight: 700;
    color: var(--primary);
}

/* Pill indicator dot under active item */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.6);
    animation: navPillIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes navPillIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 20px;
        opacity: 1;
    }
}

/* FAB center button */
.nav-fab-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
}

.nav-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    border: 4px solid var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.40);
    transition: all var(--transition-bounce);
    margin-bottom: -4px;
    -webkit-tap-highlight-color: transparent;
}

.nav-fab .material-symbols-outlined {
    font-size: 28px;
}

.nav-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.50);
}

.nav-fab:active {
    transform: scale(0.95);
}

/* ---- Cards ---- */
.card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: var(--font-base);
    font-weight: 600;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- Stat Cards ---- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

.stat-value {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-lg);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.3), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.btn:active::after {
    opacity: 1;
}

/* ---- Floating Action Button ---- */
.fab {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
    right: calc(50% - var(--max-width) / 2 + 20px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    transition: all var(--transition-base);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.4);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* ---- Inputs ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: var(--font-base);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

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

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
}

.badge-primary {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* ---- Avatar ---- */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 72px;
    height: 72px;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    font-weight: 700;
    font-size: var(--font-lg);
}

/* ---- List Items ---- */
.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
}

.list-item:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
}

.list-item:active {
    transform: scale(0.98);
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    font-size: var(--font-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-subtitle {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---- Modal / Sheet ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-sheet {
    width: 100%;
    max-width: var(--max-width);
    max-height: 90vh;
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px 20px calc(20px + var(--safe-bottom));
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin: 0 auto 20px;
}

.modal-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 20px;
}

/* ---- Toast ---- */
.toast-container {
    position: fixed;
    top: calc(var(--safe-top) + 16px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: calc(var(--max-width) - 32px);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
}

.toast-success {
    background: #065F46;
    color: #D1FAE5;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast-error {
    background: #7F1D1D;
    color: #FEE2E2;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-warning {
    background: #78350F;
    color: #FEF3C7;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.toast-info {
    background: #1E3A5F;
    color: #DBEAFE;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ---- Empty State ---- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: var(--font-sm);
    color: var(--text-muted);
    max-width: 260px;
}

/* ---- Divider ---- */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}

/* ---- Chip / Tag ---- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip.active {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}

/* ---- Skeleton Loading ---- */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.04) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 22px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* ---- Checkbox / Toggle ---- */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
}

.checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox.checked::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* ---- Section ---- */
.section {
    padding: 0 20px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
}

.section-action {
    font-size: var(--font-sm);
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

/* ---- Progress Bar ---- */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pro Feature Lock ---- */
.pro-locked {
    position: relative;
    opacity: 0.4;
    pointer-events: none;
}

.pro-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--accent), #D97706);
    color: white;
    font-size: var(--font-xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* =============================================
   PROFESSIONAL WORKOUT SYSTEM — Hevy/Strong Style
   Clean, data-focused, zero decoration
   ============================================= */

/* ---- Session Header ---- */
.workout-timer {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* ---- Exercise Block ---- */
.ex-block {
    margin-bottom: 24px;
}

.ex-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    margin-bottom: 8px;
}

.ex-block-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: var(--font);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.ex-block-name:active {
    opacity: 0.7;
}

.ex-block-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---- Set Table ---- */
.set-table-head {
    display: grid;
    grid-template-columns: 36px 1fr 1fr 1fr 40px;
    gap: 6px;
    padding: 4px 4px 8px;
    align-items: center;
}

.set-table-head span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.5px;
}

.set-table-head span:first-child {
    text-align: left;
}

/* ---- Set Row ---- */
.set-row {
    display: grid;
    grid-template-columns: 36px 1fr 1fr 1fr 40px;
    gap: 6px;
    padding: 5px 4px;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: background 0.15s ease;
}

.set-row.completed {
    background: rgba(34, 197, 94, 0.08);
}

.set-row-header {
    display: none;
}

/* ---- Set Number ---- */
.set-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
}

.set-row.completed .set-num {
    color: var(--success);
}

/* ---- Previous Performance ---- */
.set-prev {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Set Inputs ---- */
.set-input {
    width: 100%;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid transparent;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.set-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.set-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.set-row.completed .set-input {
    opacity: 0.5;
}

/* ---- Check Button ---- */
.set-check {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: rgba(255, 255, 255, 0.15);
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0 auto;
}

.set-check svg {
    width: 18px;
    height: 18px;
}

.set-check.done {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* ---- Add Set Link ---- */
.add-set-link {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
}

.add-set-link:active {
    opacity: 0.6;
}

/* ---- Exercise Info Drawer ---- */
.ex-info-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0 4px;
}

.ex-info-drawer.open {
    max-height: 600px;
}

.ex-info-content {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
}

.ex-info-muscles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.ex-info-muscle {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.ex-info-muscle.sec {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.ex-info-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ---- Rest Timer (Full-screen) ---- */
.rest-timer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeIn 0.2s ease;
}

.rest-timer-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rest-timer-circle svg {
    width: 220px;
    height: 220px;
    transform: rotate(-90deg);
    position: absolute;
    inset: 0;
}

.rest-timer-circle circle {
    fill: none;
    stroke-width: 5;
}

.rest-timer-track {
    stroke: rgba(255, 255, 255, 0.06);
}

.rest-timer-fill {
    stroke: var(--primary);
    stroke-dasharray: 653;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.rest-timer-text {
    font-size: 64px;
    font-weight: 800;
    color: white;
    z-index: 1;
    font-variant-numeric: tabular-nums;
}

.rest-timer-label {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.rest-timer-actions {
    display: flex;
    gap: 12px;
}

.rest-timer-btn {
    padding: 12px 28px;
    border-radius: 100px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: white;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rest-timer-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.rest-timer-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
}

/* ---- Workout Summary ---- */
.workout-done {
    padding: 80px 24px 40px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.workout-done-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.workout-done h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.workout-done p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.done-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 32px;
}

.done-stat {
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.done-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.done-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ---- Workout Card (List) ---- */
.workout-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.workout-card:active {
    background: rgba(255, 255, 255, 0.08);
}

.workout-card.today {
    border-color: rgba(var(--primary-rgb), 0.25);
}

.workout-card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.workout-card-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.workout-card-muscles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

.workout-card-muscle {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* PWA Standalone: iOS manages safe area zone itself, so reduce
   nav padding to avoid double spacing. Color match is guaranteed
   because body background = var(--surface) = nav background. */
@media (display-mode: standalone) {
    .bottom-nav {
        padding-bottom: 6px;
    }

    .page {
        padding-bottom: calc(var(--nav-height) + 16px);
    }
}