:root{
    --app-accent:#dc3545;--bottom-nav-height:72px
}
body{
    padding-bottom:calc(var(--bottom-nav-height) + 1rem);background:#f6f7f9
}
.app-shell{
    max-width:760px;margin:auto
}
.brand-logo{
    max-width:300px;max-height:300px
}
.bottom-nav{
    height:var(--bottom-nav-height);box-shadow:0 -3px 15px rgba(0,0,0,.08)
}
.session-grid{
    display:grid;grid-template-columns:repeat(2,1fr);gap:1rem
}
.session-btn{
    aspect-ratio:1/1;font-size:3.4rem;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center
}
.session-btn small{
    font-size:.8rem;font-weight:500
}
.exercise-card{
    border:0;border-radius:1rem;box-shadow:0 .25rem 1rem rgba(0,0,0,.06)
}
.complete-btn{
    min-height:88px;font-size:1.35rem;font-weight:700
}
.safe-bottom{padding-bottom:env(safe-area-inset-bottom)
}
#pushStatus:not(:empty){
    padding-top:.25rem
}
.modal textarea{
    resize:vertical
}
.card article:last-child{
    margin-bottom:0
}
.trainer-comment{
    padding:1rem;border-left:4px solid var(--app-accent);background:#fff;border-radius:.5rem
}
.workout-section>h2{
    font-weight:750
}
.exercise-item:last-child{
    border-bottom:0!important;margin-bottom:0!important;padding-bottom:0!important
}
.note-status {
    font-size: 12px;
    opacity: .7;
    white-space: nowrap;
}
.session-btn.disabled{
    opacity:.45
}
.session-btn.btn-success{
    color:#fff
}

.page-title-small h2 {
	letter-spacing: 1.2px;
	text-transform: uppercase;
    text-align: center;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.slideInUp {
    animation: slideInUp 1s ease-out;
}
@keyframes slideInDown {
    from {
        transform: translateY(0);
        opacity: 0;
    }
    to {
        transform: translateY(100%);
        opacity: 1;
    }
}
.slideInDown {
    animation: slideInUp 1s ease-out;
}
.card-style {
  border-radius: 30px;
}
.btn-dark-pink {
  --bs-btn-color: #fff;
  --bs-btn-bg: #D770AD;
  --bs-btn-border-color: #D770AD;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ac588a;
  --bs-btn-hover-border-color: #a94983;
  --bs-btn-focus-shadow-rgb: 225, 83, 97;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #a94983;
  --bs-btn-active-border-color: #8c3368;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #D770AD;
  --bs-btn-disabled-border-color: #D770AD;
}

.btn-outline-pink {
  --bs-btn-color: #D770AD;
  --bs-btn-border-color: #D770AD;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #D770AD;
  --bs-btn-hover-border-color: #D770AD;
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #D770AD;
  --bs-btn-active-border-color: #D770AD;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #D770AD;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #D770AD;
  --bs-gradient: none;
}
.pricing-4 {
  max-width: 95%;
  width: 95%;
  margin: 0 auto 30px auto;
  border: solid 1px rgba(0, 0, 0, 0.05);
  padding: 0px 0px 10px 0px;
  overflow: hidden;
}
.letters-with-space {
  letter-spacing: 1.1px;  
}

.superset-exercises{
    border-left:2px dotted #D770AD;
    margin-left:.1rem;
    padding-left:0.8rem;
}
.superset-exercises .exercise-item:last-child{margin-bottom:0!important}

/* ==========================================================
   iOS Toggle Switch
   ========================================================== */

.ios-switch-fera {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 32px;
    cursor: pointer;
    user-select: none;
}

.ios-switch-fera input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-switch-fera .slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background .22s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.ios-switch-fera .slider::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform .22s cubic-bezier(.4,0,.2,1);
    box-shadow:
        0 2px 6px rgba(0,0,0,.22),
        0 1px 2px rgba(0,0,0,.08);
}

.ios-switch-fera input:checked + .slider {
    background: #d36ba6;   /* your pink brand colour */
}

.ios-switch-fera input:checked + .slider::before {
    transform: translateX(22px);
}

.ios-switch-fera input:disabled + .slider {
    opacity: .55;
    cursor: not-allowed;
}

.ios-switch-fera input:focus-visible + .slider {
    outline: 2px solid rgba(211,107,166,.35);
    outline-offset: 3px;
}
/* ==========================================================
   Workout block slider (v1.0.7)
   One outer slide = one single exercise or one full superset.
   ========================================================== */
.workout-block-browser {
    background: var(--bs-body-bg, #fff);
    overflow: hidden;
}

.workout-block-slider {
    width: 100%;
    overflow: hidden;
}

.workout-block-slider .splide__track {
    overflow: hidden;
}

.workout-block-slide {
    padding: 16px 14px 6px;
}

.workout-slide-indicators .badge {
    padding: .48rem .78rem;
    border-radius: 999px !important;
    letter-spacing: .02em;
}

.workout-indicator-badges {
    min-width: 0;
}

.workout-swipe-hint {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 78px;
    white-space: nowrap;
    color: #7f858b;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .035em;
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
}

.workout-swipe-chevron {
    font-size: .72rem;
    opacity: .9;
    transition: opacity .2s ease, visibility .2s ease;
}

.workout-swipe-chevron.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.workout-swipe-hint.is-nudging {
    animation: workoutSwipeHintNudge 1.15s ease-in-out 1;
}

@keyframes workoutSwipeHintNudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(4px); }
    55% { transform: translateX(-4px); }
    78% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
    .workout-swipe-hint.is-nudging {
        animation: none;
    }
}

/* Two thumbnail positions are visible. Inside a superset the thumbnail
   positions remain fixed; only the active/inactive state changes. */
.workout-block-thumbs-viewport {
    width: 100%;
    overflow: hidden;
}

.workout-block-thumbs {
    display: flex;
    gap: 12px;
    width: 100%;
}

.workout-block-thumb {
    flex: 0 0 calc(50% - 6px);
    opacity: .48;
    transition: opacity .22s ease, transform .22s ease;
}

.workout-block-thumb.is-workout-active {
    opacity: 1;
}

.workout-thumb-button {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.workout-thumb-button:focus-visible {
    outline: 3px solid rgba(215, 112, 173, .35);
    outline-offset: 3px;
}

.workout-thumb-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 14px;
    background: #d9dde2;
}

.workout-thumb-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workout-block-thumb-empty {
    opacity: 1 !important;
    pointer-events: none;
}

.workout-thumb-media-empty {
    visibility: hidden;
}

.workout-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #7c848c;
    background: linear-gradient(145deg, #e3e6e9, #cfd4da);
}

/* Small dots identify the active exercise inside a true superset. */
.workout-exercise-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 20px;
    padding-top: 10px;
}

.workout-progress-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c5c8cd;
    transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
    opacity: .8;
}

.workout-progress-dot.is-active {
    background: #d770ad;
    transform: scale(1.25);
    opacity: 1;
}

.workout-active-details {
    min-height: 280px;
}

.workout-exercise-detail {
    animation: workoutDetailIn .18s ease-out;
}

@keyframes workoutDetailIn {
    from { opacity: .55; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.workout-exercise-name {
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
    letter-spacing: 0.01em;
}

.workout-exercise-metrics .badge {
    padding: .48rem .8rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.workout-video-button {
    min-height: 48px;
    font-size: 1rem;
    letter-spacing: .02em;
}

.workout-trainer-tips .form-label,
.workout-notes-heading .form-label {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: #151515;
}

.workout-notes-heading .note-status {
    margin-left: auto;
}

.workout-notes-field {
    min-height: 108px;
    border: 0;
    border-radius: 14px;
    background: #d8dde3;
    box-shadow: none;
    padding: .8rem;
}

.workout-notes-field:focus {
    background: #eef0f3;
    box-shadow: 0 0 0 2px rgba(215, 112, 173, .18);
}

/* The block slider replaces the old vertical superset connector. */
.workout-block-browser .superset-exercises {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}



/* Workout action row: keep Video and exercise completion control on the same line. */
.workout-exercise-action-row {
    min-height: 48px;
}

.workout-exercise-action-row .workout-video-button {
    width: auto;
}

.workout-exercise-action-row .workout-done-switch {
    flex: 0 0 72px;
    width: 72px;
    height: 48px;
}

.workout-exercise-action-row .workout-done-switch .slider::before {
    width: 44px;
    height: 44px;
}

.workout-exercise-action-row .workout-done-switch input:checked + .slider::before {
    transform: translateX(24px);
}

/* Home activity calendar: additive rules, no changes to existing styles. */
.activity-cal-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0}
.activity-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.activity-cal-weekday{text-align:center;font-size:.75rem;opacity:.65;padding:8px 0}
.activity-cal-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;position:relative;border:1px solid transparent;border-radius:50%;background:transparent;color:inherit;width:100%;padding:0}
.activity-cal-day.is-completed{background:#D770AD;color:#fff;cursor:pointer}
.activity-cal-day.is-today:not(.is-completed){border-color:#D770AD}
.activity-cal-day .activity-cal-count{position:absolute;right:-2px;top:-3px;font-size:.65rem;background:#333;color:white;border-radius:10px;min-width:15px}
.activity-cal-day:focus-visible{outline:2px solid #D770AD;outline-offset:2px}
