/* ============================================================
   Gym — Athletic Dark theme (UI/UX Pro Max: Vibrant & Block + OLED dark)
   Energy orange + electric blue + success green
   ============================================================ */

:root,
[data-bs-theme="dark"] {
    --gx-bg:           #0B1120;
    --gx-bg-2:         #0F172A;
    --gx-surface:      #161E2E;
    --gx-surface-2:    #1F2A3C;
    --gx-line:         rgba(148, 163, 184, 0.16);
    --gx-line-soft:    rgba(148, 163, 184, 0.10);
    --gx-ink:          #F1F5F9;
    --gx-ink-soft:     #CBD5E1;
    --gx-muted:        #8B98AD;

    --gx-orange:       #F97316;
    --gx-orange-deep:  #EA580C;
    --gx-orange-soft:  rgba(249, 115, 22, 0.16);

    --gx-blue:         #3B82F6;
    --gx-blue-deep:    #2563EB;
    --gx-blue-soft:    rgba(59, 130, 246, 0.16);

    --gx-green:        #22C55E;
    --gx-green-soft:   rgba(34, 197, 94, 0.16);
    --gx-danger:       #F87171;
    --gx-danger-soft:  rgba(248, 113, 113, 0.14);

    --gx-primary:      var(--gx-orange);
    --gx-primary-deep: var(--gx-orange-deep);
    --gx-primary-soft: var(--gx-orange-soft);

    /* Bootstrap overrides */
    --bs-body-bg:        var(--gx-bg);
    --bs-body-color:     var(--gx-ink);
    --bs-border-color:   var(--gx-line);
    --bs-primary:        var(--gx-orange);
    --bs-primary-rgb:    249, 115, 22;
    --bs-secondary-color: var(--gx-muted);
    --bs-emphasis-color: var(--gx-ink);
}

html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overscroll-behavior-x: none; }

body {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(249, 115, 22, 0.08), transparent 60%),
        radial-gradient(1000px 500px at -10% 10%, rgba(59, 130, 246, 0.08), transparent 55%),
        var(--gx-bg);
    background-repeat: no-repeat;
    color: var(--gx-ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h1, .h2, .h3, .display-title {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 0.02em;
    color: var(--gx-ink);
    text-transform: uppercase;
}

.container-narrow { max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* tabular numbers everywhere data shows */
.num, .set-val, .table-app td, .workout-card .date, .stepper-val {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ===== Header ============================================================ */
.app-header {
    position: sticky; top: 0; z-index: 1020;
    background: rgba(11, 17, 32, 0.82);
    border-bottom: 1px solid var(--gx-line);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--gx-ink); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--gx-orange), var(--gx-blue));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; box-shadow: 0 8px 22px -6px rgba(249, 115, 22, 0.55);
}
.brand-text {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.7rem;
    letter-spacing: 0.04em; line-height: 1;
}
.btn-sm-icon { padding: 0.5rem 0.95rem; border-radius: 11px; font-weight: 700; letter-spacing: 0.03em; }

.app-main { padding-top: 1.1rem; padding-bottom: 1.5rem; }

/* ===== Bottom nav ======================================================== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(70px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(15, 23, 42, 0.92);
    border-top: 1px solid var(--gx-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.6);
    display: flex; align-items: stretch; z-index: 1040;
}
.bottom-nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    color: var(--gx-muted); text-decoration: none;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.15s, background 0.15s, transform 0.08s;
    border-radius: 14px; margin: 7px 3px; min-width: 0;
}
.bottom-nav-item span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 100%; padding: 0 2px; }
.bottom-nav-item i { font-size: 1.3rem; }
.bottom-nav-item:active { transform: scale(0.94); }
.bottom-nav-item.active {
    color: #0B1120;
    background: linear-gradient(135deg, var(--gx-orange), var(--gx-orange-deep));
    box-shadow: 0 8px 22px -8px rgba(249, 115, 22, 0.75);
}
.bottom-nav-item.active i { color: #0B1120; }

/* ===== Cards ============================================================= */
.card-app {
    background: var(--gx-surface);
    border: 1px solid var(--gx-line);
    border-radius: 18px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 40px -28px rgba(0,0,0,0.8);
    padding: 1.1rem 1.15rem;
    margin-bottom: 0.9rem;
}
.card-app h5, .card-app .card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400; font-size: 1.4rem; letter-spacing: 0.03em;
    margin: 0 0 0.6rem 0; color: var(--gx-ink);
}

/* ===== Workout list / plan cards ========================================= */
.workout-card {
    display: flex; justify-content: space-between; align-items: center;
    text-decoration: none; color: inherit;
    background: var(--gx-surface);
    border: 1px solid var(--gx-line);
    border-radius: 18px;
    padding: 1rem 1.15rem; margin-bottom: 0.75rem;
    box-shadow: 0 16px 36px -28px rgba(0,0,0,0.8);
    transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
    position: relative; overflow: hidden;
}
.workout-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--gx-orange), var(--gx-blue));
    opacity: 0.9;
}
.workout-card:hover, .workout-card:active {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 18px 40px -22px rgba(249, 115, 22, 0.45);
}
.workout-card .date {
    font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.04em;
    color: var(--gx-ink); line-height: 1.1;
}
.workout-card .summary { margin-top: 0.3rem; }
.workout-card .chevron { color: var(--gx-muted); font-size: 1.5rem; }

.exercise-badge {
    display: inline-block;
    background: var(--gx-blue-soft);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    padding: 0.16rem 0.55rem;
    font-size: 0.76rem; font-weight: 600;
    margin-right: 0.3rem; margin-bottom: 0.25rem;
}

/* ===== Draft (befejezetlen edzés) lista ================================== */
.draft-section { margin-bottom: 1.25rem; }
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--gx-orange);
    display: flex; align-items: center; margin-bottom: 0.55rem;
}
.draft-card {
    display: flex; align-items: stretch; gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.draft-main {
    flex: 1 1 auto; min-width: 0;
    display: flex; justify-content: space-between; align-items: center;
    text-decoration: none; color: inherit;
    background: var(--gx-surface);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    box-shadow: 0 16px 36px -28px rgba(0,0,0,0.8);
    transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
    position: relative; overflow: hidden;
}
.draft-main::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--gx-orange), var(--gx-orange-deep));
}
.draft-main:hover, .draft-main:active {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 18px 40px -22px rgba(249, 115, 22, 0.45);
}
.draft-main .date {
    font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.04em;
    color: var(--gx-ink); line-height: 1.1;
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.draft-main .summary { margin-top: 0.3rem; }
.draft-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--gx-orange-soft); color: #FDBA74;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 6px; padding: 0.12rem 0.4rem;
}
.continue-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem; font-weight: 700; white-space: nowrap;
    color: var(--gx-orange);
    display: inline-flex; align-items: center;
}
.draft-discard { display: flex; margin: 0; }
.btn-discard {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gx-surface); color: var(--gx-muted);
    border: 1px solid var(--gx-line); border-radius: 14px;
    padding: 0 0.85rem; font-size: 1.05rem;
}
.btn-discard:hover, .btn-discard:active {
    background: var(--gx-danger-soft); color: var(--gx-danger);
    border-color: rgba(248, 113, 113, 0.4);
}

/* ===== Autosave státusz (draft form) ==================================== */
.autosave-status {
    margin-top: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem; color: var(--gx-green);
    display: flex; align-items: center; gap: 0.35rem;
}
.autosave-status.is-error { color: var(--gx-orange); }

/* ===== Exercise block (edit form) ======================================== */
.exercise-block {
    background: var(--gx-surface);
    border: 1px solid var(--gx-line);
    border-radius: 18px;
    padding: 1.1rem 1.15rem; margin-bottom: 0.9rem;
    box-shadow: 0 16px 36px -30px rgba(0,0,0,0.8);
}
.exercise-block h5 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400; font-size: 1.45rem; letter-spacing: 0.03em;
    margin: 0; color: var(--gx-ink);
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.exercise-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem; margin-bottom: 0.7rem;
}
.type-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.64rem; font-weight: 700;
    background: var(--gx-surface-2); color: var(--gx-ink-soft);
    border-radius: 6px; padding: 0.12rem 0.45rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.done-counter {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    color: var(--gx-muted); white-space: nowrap;
    letter-spacing: 0.02em;
}
.done-counter.all-done { color: var(--gx-green); }

.suggestion-hint {
    font-size: 0.84rem; color: var(--gx-ink-soft);
    background: var(--gx-orange-soft);
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 12px; padding: 0.5rem 0.75rem; margin-bottom: 0.8rem;
    display: flex; align-items: flex-start; gap: 0.45rem;
}
.suggestion-hint .bi { color: var(--gx-orange); margin-top: 0.1rem; }
.suggestion-hint strong { color: #FDBA74; }

/* ===== SET CARD + STEPPERS (workout logging) ============================= */
.sets-container { display: flex; flex-direction: column; gap: 0.6rem; }

.set-card {
    background: var(--gx-bg-2);
    border: 1px solid var(--gx-line);
    border-radius: 14px;
    padding: 0.7rem 0.7rem 0.8rem;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.set-card.is-done {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(0deg, var(--gx-green-soft), var(--gx-green-soft)), var(--gx-bg-2);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset;
}

.set-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.55rem;
}
.set-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem; letter-spacing: 0.05em;
    color: var(--gx-muted);
}
.set-card.is-done .set-num { color: var(--gx-green); }
.set-card-head-actions { display: flex; align-items: center; gap: 0.4rem; }

/* The big done toggle */
.set-done {
    width: 44px; height: 44px; border-radius: 12px;
    border: 1.5px solid var(--gx-line);
    background: var(--gx-surface-2); color: var(--gx-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem; transition: all 0.12s;
    flex-shrink: 0;
}
.set-done:active { transform: scale(0.92); }
.set-card.is-done .set-done {
    background: var(--gx-green); border-color: var(--gx-green); color: #06210F;
    box-shadow: 0 8px 18px -8px rgba(34, 197, 94, 0.7);
}
.set-remove {
    width: 38px; height: 38px; border-radius: 11px;
    border: 1px solid var(--gx-line);
    background: transparent; color: var(--gx-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex-shrink: 0; transition: all 0.12s;
}
.set-remove:active { transform: scale(0.92); }
.set-remove:hover { background: var(--gx-danger-soft); color: var(--gx-danger); border-color: rgba(248,113,113,0.35); }

/* stepper: [−]  value unit  [+] */
.stepper {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.45rem;
}
.stepper-label {
    grid-column: 1 / -1;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--gx-muted);
    margin-bottom: -0.1rem;
}
.step-btn {
    border: none; border-radius: 12px;
    font-size: 1.6rem; font-weight: 700; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.08s, filter 0.12s;
    color: #fff; user-select: none; -webkit-user-select: none;
    min-height: 56px;
}
.step-btn:active { transform: scale(0.9); }
.step-minus { background: linear-gradient(135deg, #334155, #1F2A3C); color: var(--gx-ink); }
.step-plus  { background: linear-gradient(135deg, var(--gx-orange), var(--gx-orange-deep)); color: #0B1120; }
.stepper[data-field="reps"] .step-plus { background: linear-gradient(135deg, var(--gx-blue), var(--gx-blue-deep)); color: #fff; }

.step-field {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--gx-surface); border: 1px solid var(--gx-line);
    border-radius: 12px; padding: 0.25rem 0.3rem;
}
.step-val {
    width: 100%; border: none; background: transparent; text-align: center;
    color: var(--gx-ink); font-weight: 800; font-size: 1.7rem; line-height: 1.05;
    padding: 0; -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.step-val::-webkit-outer-spin-button,
.step-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-val:focus { outline: none; }
.step-val::placeholder { color: var(--gx-muted); font-weight: 600; font-size: 1.1rem; }
.step-unit {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--gx-muted); margin-top: 1px;
}

.btn-add-set {
    width: 100%; margin-top: 0.7rem;
    background: var(--gx-surface-2); color: var(--gx-ink-soft);
    border: 1px dashed var(--gx-line); border-radius: 12px;
    padding: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
    transition: all 0.12s;
}
.btn-add-set:active { transform: scale(0.98); }
.btn-add-set:hover { color: var(--gx-orange); border-color: rgba(249,115,22,0.45); background: var(--gx-orange-soft); }

/* ===== Belépés (login) =================================================== */
.login-wrap {
    min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.login-card {
    width: 100%; max-width: 380px;
    background: var(--gx-surface); border: 1px solid var(--gx-line);
    border-radius: 20px; padding: 2rem 1.5rem;
    box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9);
}
.login-brand { display: flex; align-items: center; gap: 0.7rem; justify-content: center; }
.login-sub { text-align: center; color: var(--gx-muted); margin: 0.6rem 0 1.2rem; font-size: 0.9rem; }
.login-error {
    background: var(--gx-danger-soft); color: var(--gx-danger);
    border: 1px solid rgba(248, 113, 113, 0.35); border-radius: 12px;
    padding: 0.6rem 0.8rem; margin-bottom: 1rem; font-size: 0.88rem; text-align: center;
}
.btn-logout {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--gx-line); background: var(--gx-surface-2);
    color: var(--gx-muted); font-size: 1.1rem; text-decoration: none;
    transition: color 0.12s, border-color 0.12s, transform 0.08s;
}
.btn-logout:active { transform: scale(0.92); }
.btn-logout:hover { color: var(--gx-danger); border-color: rgba(248, 113, 113, 0.35); }

/* ===== Edzés FÓKUSZ nézet (teljes képernyős swipe carousel) ============== */
.focus-mode {
    position: fixed; inset: 0; z-index: 1045;
    height: 100dvh;
    display: flex; flex-direction: column;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(249, 115, 22, 0.10), transparent 60%),
        radial-gradient(800px 460px at -10% 5%, rgba(59, 130, 246, 0.10), transparent 55%),
        var(--gx-bg);
}

/* --- Fejléc: vissza / haladás / befejezés + pöttyök + mentés-állapot --- */
.focus-bar {
    flex-shrink: 0;
    padding: calc(env(safe-area-inset-top) + 0.6rem) 0.9rem 0.55rem;
    border-bottom: 1px solid var(--gx-line);
    background: rgba(11, 17, 32, 0.78);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.focus-bar-top {
    display: flex; align-items: center; gap: 0.6rem;
    max-width: 640px; width: 100%; margin: 0 auto;
}
.focus-icon-btn {
    flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--gx-line); background: var(--gx-surface-2);
    color: var(--gx-ink); font-size: 1.2rem; text-decoration: none;
    transition: transform 0.08s, filter 0.12s;
}
.focus-icon-btn:active { transform: scale(0.92); }
.focus-finish-btn {
    border: none; color: #06210F;
    background: linear-gradient(135deg, var(--gx-green), #16A34A);
    box-shadow: 0 8px 18px -8px rgba(34, 197, 94, 0.7);
}
.focus-progress { flex: 1; min-width: 0; text-align: center; }
.focus-counter {
    font-family: 'Bebas Neue', sans-serif; font-size: 1.35rem; letter-spacing: 0.05em;
    line-height: 1; color: var(--gx-orange); font-variant-numeric: tabular-nums;
}
.focus-counter .focus-total { color: var(--gx-muted); }
.focus-name {
    font-size: 0.92rem; font-weight: 700; color: var(--gx-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
}
.focus-dots {
    display: flex; flex-wrap: wrap; gap: 5px;
    align-items: center; justify-content: center;
    max-width: 640px; width: 100%; margin: 0 auto;
}
.focus-dot {
    width: 7px; height: 7px; border-radius: 99px;
    background: var(--gx-line); transition: all 0.18s;
}
.focus-dot.is-done { background: var(--gx-green); }
.focus-dot.is-active {
    width: 22px; background: var(--gx-orange);
    box-shadow: 0 0 0 3px var(--gx-orange-soft);
}
.focus-dot.is-active.is-done { background: var(--gx-green); box-shadow: 0 0 0 3px var(--gx-green-soft); }
.focus-autosave {
    justify-content: center; margin-top: 0; font-size: 0.74rem;
    max-width: 640px; width: 100%; margin-left: auto; margin-right: auto;
}

/* --- Vízszintes pálya + slide-ok (natív scroll-snap, touch swipe) --- */
.focus-track {
    flex: 1; min-height: 0;
    display: flex;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.focus-track::-webkit-scrollbar { display: none; }
.focus-slide {
    flex: 0 0 100%; width: 100%;
    scroll-snap-align: start; scroll-snap-stop: always;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain; /* a slide függőleges scrollja ne szivárogjon a vízszintes snap-be (iOS) */
    padding: 1rem 1rem 1.4rem;
}
.focus-slide > .exercise-block,
.focus-slide > .finish-card { max-width: 640px; margin: 0 auto; }

/* a blokk a fókuszban nem külön kártya, csak a tartalom */
.focus-slide .exercise-block {
    background: transparent; border: none; box-shadow: none;
    padding: 0; margin: 0;
}
.focus-slide .exercise-head { margin-bottom: 0.5rem; }
.focus-slide .exercise-head h5 { font-size: 1.35rem; }
.focus-slide .suggestion-hint { margin-bottom: 0.6rem; font-size: 0.8rem; padding: 0.45rem 0.6rem; }
.focus-slide .sets-container { gap: 0.45rem; }

/* kompakt szett-kártya: fejléc teljes szél, súly + ism EGY sorban egymás mellett */
.focus-slide .set-card {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.5rem; align-items: end;
    padding: 0.5rem 0.6rem;
}
.focus-slide .set-card-head { grid-column: 1 / -1; margin-bottom: 0.1rem; }
.focus-slide .set-card.set-bw { grid-template-columns: 1fr; }  /* testsúly: csak ismétlés */
.focus-slide .stepper {
    margin: 0; gap: 0.3rem;
    grid-template-columns: 44px 1fr 44px;
}
.focus-slide .stepper-label { display: none; }
.focus-slide .step-btn { min-height: 44px; font-size: 1.25rem; border-radius: 10px; }
.focus-slide .step-val { font-size: 1.3rem; }
.focus-slide .step-field { padding: 0.1rem 0.2rem; border-radius: 10px; }
.focus-slide .set-done { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 10px; }
.focus-slide .set-remove { width: 30px; height: 30px; font-size: 0.8rem; border-radius: 9px; }
.focus-slide .set-num { font-size: 0.9rem; }
.focus-slide .btn-add-set { margin-top: 0.5rem; padding: 0.55rem; }

/* --- Záró (összegző) slide --- */
.focus-finish-slide { display: flex; align-items: flex-start; justify-content: center; }
.finish-card {
    width: 100%; max-width: 640px;
    background: var(--gx-surface); border: 1px solid var(--gx-line);
    border-radius: 18px; padding: 1.2rem 1.15rem;
    box-shadow: 0 18px 40px -28px rgba(0,0,0,0.8);
}
.finish-title {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: 1.7rem; letter-spacing: 0.03em; color: var(--gx-ink);
    margin: 0 0 0.7rem 0;
}
.finish-summary {
    font-size: 0.9rem; color: var(--gx-ink-soft);
    background: var(--gx-green-soft); border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px; padding: 0.6rem 0.8rem; margin-bottom: 1rem;
}
.finish-summary strong { color: var(--gx-green); }

/* --- Lábléc: Előző / Következő --- */
.focus-foot {
    flex-shrink: 0;
    display: flex; gap: 0.6rem;
    padding: 0.6rem 0.9rem calc(env(safe-area-inset-bottom) + 0.6rem);
    border-top: 1px solid var(--gx-line);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    max-width: 640px; width: 100%; margin: 0 auto;
}
.focus-foot-btn {
    flex: 1; border-radius: 13px; font-weight: 700; letter-spacing: 0.02em;
    padding: 0.8rem 0.9rem;
    background: var(--gx-surface-2); color: var(--gx-ink);
    border: 1px solid var(--gx-line);
    display: inline-flex; align-items: center; justify-content: center;
}
.focus-foot-btn:active { transform: scale(0.98); }
.focus-foot-btn:disabled { opacity: 0.4; }
.focus-foot-next {
    background: linear-gradient(135deg, var(--gx-orange), var(--gx-orange-deep));
    color: #0B1120; border: none;
    box-shadow: 0 10px 24px -12px rgba(249, 115, 22, 0.6);
}

/* ===== Buttons =========================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--gx-orange), var(--gx-orange-deep)) !important;
    border: none !important; color: #0B1120 !important;
    border-radius: 12px; font-weight: 700; letter-spacing: 0.02em;
    box-shadow: 0 10px 24px -10px rgba(249, 115, 22, 0.6);
}
.btn-primary:hover, .btn-primary:focus { filter: brightness(1.05); color: #0B1120 !important; }
.btn-primary:active { transform: scale(0.98); }

.btn-lg-mobile { padding: 0.85rem 1.15rem; font-size: 1rem; border-radius: 13px; font-weight: 700; }

.btn-outline-primary {
    color: var(--gx-orange); border-color: rgba(249,115,22,0.5);
    border-radius: 12px; font-weight: 700; background: transparent;
}
.btn-outline-primary:hover { background: var(--gx-orange); color: #0B1120; border-color: var(--gx-orange); }

.btn-soft-primary {
    background: var(--gx-orange-soft); color: #FDBA74;
    border: 1px solid rgba(249,115,22,0.25); border-radius: 12px; font-weight: 700;
    padding: 0.55rem 0.9rem;
}
.btn-soft-primary:hover { background: rgba(249,115,22,0.26); color: #FED7AA; }
.btn-soft-primary:active { transform: scale(0.97); }

.btn-outline-secondary {
    color: var(--gx-ink-soft); border-color: var(--gx-line);
    border-radius: 12px; background: transparent;
}
.btn-outline-secondary:hover { background: var(--gx-surface-2); color: var(--gx-ink); border-color: var(--gx-line); }

.btn-outline-danger { border-radius: 12px; color: var(--gx-danger); border-color: rgba(248,113,113,0.45); }
.btn-outline-danger:hover { background: var(--gx-danger); color: #2A0A0A; border-color: var(--gx-danger); }
.btn-danger { background: var(--gx-danger); border-color: var(--gx-danger); color: #2A0A0A; border-radius: 12px; font-weight: 700; }

/* ===== Form controls ===================================================== */
.form-control, .form-select {
    background: var(--gx-surface-2); color: var(--gx-ink);
    border-color: var(--gx-line); border-radius: 12px;
    padding: 0.7rem 0.9rem; font-size: 16px;
}
.form-control:focus, .form-select:focus {
    background: var(--gx-surface-2); color: var(--gx-ink);
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.form-control::placeholder { color: var(--gx-muted); }
.form-select option { background: var(--gx-surface); color: var(--gx-ink); }
.form-label {
    font-weight: 700; color: var(--gx-ink-soft); font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem;
}

/* ===== Page heading ====================================================== */
.page-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; gap: 0.5rem; }
.page-toolbar h1 {
    margin: 0; font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: 2.1rem; letter-spacing: 0.03em; line-height: 1;
}

/* ===== Tables ============================================================ */
.table-app { width: 100%; font-size: 0.92rem; color: var(--gx-ink); }
.table-app thead th {
    font-weight: 700; color: var(--gx-muted); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid var(--gx-line); padding: 0.55rem 0.5rem; background: transparent;
}
.table-app tbody td { padding: 0.62rem 0.5rem; border-bottom: 1px solid var(--gx-line-soft); }
.table-app tbody tr:last-child td { border-bottom: 0; }

/* ===== Modal ============================================================= */
.modal-content {
    background: var(--gx-surface); color: var(--gx-ink);
    border-radius: 18px; border: 1px solid var(--gx-line);
    box-shadow: 0 30px 70px -20px rgba(0,0,0,0.85);
}
.modal-header, .modal-footer { border-color: var(--gx-line); }
.modal-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: 0.03em; font-size: 1.4rem; }
.btn-close { filter: invert(1) grayscale(1) brightness(1.4); }

/* ===== Sortable ========================================================== */
.exercise-row { transition: box-shadow .15s, transform .08s; }
.drag-handle {
    cursor: grab; color: var(--gx-muted); padding: 0.5rem 0.35rem;
    border-radius: 10px; user-select: none; touch-action: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.drag-handle:hover { color: var(--gx-orange); background: var(--gx-orange-soft); }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.4; background: var(--gx-orange-soft) !important; border: 1px dashed var(--gx-orange) !important; }
.sortable-chosen { box-shadow: 0 18px 40px -12px rgba(249, 115, 22, 0.45); }

.reorder-toast {
    position: fixed; bottom: calc(86px + env(safe-area-inset-bottom));
    left: 50%; transform: translateX(-50%);
    background: var(--gx-surface); color: var(--gx-ink);
    border: 1px solid rgba(34,197,94,0.4);
    padding: 0.6rem 1.1rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 700;
    box-shadow: 0 16px 36px -10px rgba(0,0,0,0.7);
    z-index: 1100; display: inline-flex; align-items: center; gap: 0.45rem;
}
.reorder-toast .bi { color: var(--gx-green); }

/* ===== Empty state ======================================================= */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gx-muted); }
.empty-state .bi { font-size: 3.2rem; color: var(--gx-orange); opacity: 0.6; margin-bottom: 0.5rem; }

.text-muted { color: var(--gx-muted) !important; }

/* ===== Responsive ======================================================== */
@media (max-width: 575px) {
    .brand-text { font-size: 1.5rem; }
    .page-toolbar h1 { font-size: 1.85rem; }
    .stepper { grid-template-columns: 52px 1fr 52px; }
    .step-btn { min-height: 52px; font-size: 1.45rem; }
    .step-val { font-size: 1.5rem; }
}

@media (min-width: 992px) {
    .bottom-nav { max-width: 720px; margin: 0 auto; border-radius: 20px 20px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
