/* Antrenman Takvimi Pro - Mobil Uydu (Companion PWA) Tasarım Sistemi
   Apple iOS Human Interface Guidelines (HIG) Standardı • iPhone 6s (iOS 15) & 120Hz Uyumlu */

:root {
    color-scheme: dark;
    --ios-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --ios-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.18s;
    --duration-ui: 0.38s;

    --bg-screen: #0C0C0E;
    --card-surface: rgba(28, 28, 30, 0.88);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
    
    --text-primary: #FFFFFF;
    --text-secondary: #B0B5C4;
    --text-tertiary: #8E94A5;
    
    --accent-blue: #0A84FF;
    --accent-green: #30D158;
    --accent-orange: #FF9F0A;
    --accent-red: #FF453A;
    --accent-purple: #BF5AF2;
    --accent-indigo: #5E5CE6;
    
    --list-row-bg: rgba(255, 255, 255, 0.045);
    --list-row-border: rgba(255, 255, 255, 0.08);
    --list-row-active: rgba(10, 132, 255, 0.15);

    /* Gün Temaları (Masaüstüyle Birebir) */
    --theme-blue: linear-gradient(150deg, #16365D 0%, #254F82 100%);
    --theme-orange: linear-gradient(150deg, #5C2B14 0%, #824322 100%);
    --theme-green: linear-gradient(150deg, #18482A 0%, #26693E 100%);
    --theme-purple: linear-gradient(150deg, #3A205C 0%, #563182 100%);
    --theme-pink: linear-gradient(150deg, #5C1B38 0%, #822952 100%);
    --theme-slate: linear-gradient(150deg, #1E232B 0%, #15181E 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

html, body {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-screen);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none;
}

/* Arka Plan Ambient Degrade Parıltısı */
.ambient-glow {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.18) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    transition: background var(--duration-ui) ease;
}

/* Ana Taşıyıcı */
.app-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    padding: max(10px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)) 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

/* Üst Mobil Durum Çubuğu */
.mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 14px 4px;
    position: relative;
    z-index: 10001 !important;
}

.top-bar-left {
    display: flex;
    flex-direction: column;
}

.app-brand-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-logo-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(10, 132, 255, 0.2);
    border: 1px solid rgba(10, 132, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.app-brand-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.satellite-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.top-bar-date {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tek Birleşik Akıllı Senkronizasyon & Güncelleme Butonu */
.topbar-action-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: all var(--duration-fast) var(--ios-spring);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10002 !important;
    pointer-events: auto !important;
}

.topbar-action-pill:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.16);
}

.topbar-action-pill.has-update {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.28), rgba(191, 90, 242, 0.28));
    border-color: rgba(10, 132, 255, 0.75);
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(10, 132, 255, 0.45);
    animation: updateGlowPulse 2s infinite ease-in-out;
}

@keyframes updateGlowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(10, 132, 255, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(10, 132, 255, 0.75); transform: scale(1.03); }
}

.sync-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    transition: background 0.3s ease;
}

.sync-status-dot.offline {
    background: #8E8E93;
    box-shadow: none;
}

.sync-status-dot.pending {
    background: #FFD60A;
    box-shadow: 0 0 8px #FFD60A;
    animation: pulseDot 1.4s infinite alternate;
}

.sync-status-dot.syncing {
    background: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
    animation: pulseDot 1s infinite alternate;
}

.sync-status-dot.update-pulse {
    background: #0A84FF;
    box-shadow: 0 0 8px #0A84FF;
    animation: dotBlink 1s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

/* iPhone Safari Ana Ekrana Ekleme Banner'ı */
.ios-install-hint-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(10, 132, 255, 0.14);
    border: 1px solid rgba(10, 132, 255, 0.35);
    border-radius: 14px;
    margin: 2px 0 10px 0;
    font-size: 0.76rem;
    color: var(--text-primary);
}

.iih-text {
    flex: 1;
    line-height: 1.35;
}

.iih-icon {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.72rem;
}

.iih-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
}

/* =========================================================
   ANA KART ALANI (BİREBİR PC KARTI FORMÜLÜ)
========================================================= */
.workout-card-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 4px 0 8px 0;
    overflow: visible !important;
    padding: 2px 0;
}

.day-card-mobile {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 26px;
    border: 1px solid var(--card-border);
    background: var(--card-surface);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--card-shadow);
    padding: 16px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--duration-ui) ease, box-shadow var(--duration-ui) ease;
    overflow: hidden !important;
}

/* =========================================================
   GÜN KARTLARI & BOTTOM SHEET TEMALARI (PC İLE %100 BİREBİR)
========================================================= */
.theme-blue, .day-card-mobile.theme-blue, .bottom-sheet.theme-blue {
    --theme-accent: #0A84FF;
    --theme-accent-2: #5856D6;
    --theme-rgb: 10, 132, 255;
    --theme-rgb-2: 88, 86, 214;
}
.theme-indigo, .day-card-mobile.theme-indigo, .bottom-sheet.theme-indigo {
    --theme-accent: #5E5CE6;
    --theme-accent-2: #BF5AF2;
    --theme-rgb: 94, 92, 230;
    --theme-rgb-2: 191, 90, 242;
}
.theme-green, .day-card-mobile.theme-green, .bottom-sheet.theme-green {
    --theme-accent: #30D158;
    --theme-accent-2: #00C7BE;
    --theme-rgb: 48, 209, 88;
    --theme-rgb-2: 0, 199, 190;
}
.theme-purple, .day-card-mobile.theme-purple, .bottom-sheet.theme-purple {
    --theme-accent: #BF5AF2;
    --theme-accent-2: #5E5CE6;
    --theme-rgb: 191, 90, 242;
    --theme-rgb-2: 94, 92, 230;
}
.theme-pink, .day-card-mobile.theme-pink, .bottom-sheet.theme-pink {
    --theme-accent: #FF375F;
    --theme-accent-2: #BF5AF2;
    --theme-rgb: 255, 55, 95;
    --theme-rgb-2: 191, 90, 242;
}
.theme-plum, .day-card-mobile.theme-plum, .bottom-sheet.theme-plum {
    --theme-accent: #E11D48;
    --theme-accent-2: #FF375F;
    --theme-rgb: 225, 29, 72;
    --theme-rgb-2: 255, 55, 95;
}
.theme-orange, .day-card-mobile.theme-orange, .bottom-sheet.theme-orange {
    --theme-accent: #FF9F0A;
    --theme-accent-2: #FF3B30;
    --theme-rgb: 255, 149, 0;
    --theme-rgb-2: 255, 59, 48;
}
.theme-yellow, .day-card-mobile.theme-yellow, .bottom-sheet.theme-yellow {
    --theme-accent: #FFD60A;
    --theme-accent-2: #FF9500;
    --theme-rgb: 255, 204, 0;
    --theme-rgb-2: 255, 149, 0;
}
.theme-slate, .day-card-mobile.theme-slate, .bottom-sheet.theme-slate {
    --theme-accent: #8E8E93;
    --theme-accent-2: #636366;
    --theme-rgb: 142, 142, 147;
    --theme-rgb-2: 99, 99, 102;
}

.day-card-mobile.theme-blue,
.day-card-mobile.theme-indigo,
.day-card-mobile.theme-green,
.day-card-mobile.theme-purple,
.day-card-mobile.theme-pink,
.day-card-mobile.theme-plum,
.day-card-mobile.theme-orange,
.day-card-mobile.theme-yellow,
.day-card-mobile.theme-slate {
    background:
        radial-gradient(115% 92% at 96% 4%, rgba(var(--theme-rgb), 0.45) 0%, rgba(var(--theme-rgb), 0.14) 42%, transparent 68%),
        radial-gradient(95% 85% at 4% 96%, rgba(var(--theme-rgb-2), 0.28) 0%, transparent 60%),
        linear-gradient(160deg, #161820 0%, #0E1015 100%) !important;
    border: 1px solid rgba(var(--theme-rgb), 0.38) !important;
    box-shadow:
        0 14px 34px -6px rgba(0, 0, 0, 0.55),
        0 0 24px -6px rgba(var(--theme-rgb), 0.22),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
        inset 1px 0 0 rgba(255, 255, 255, 0.08) !important;
}

/* Aktif Antrenman Modu Işığı */
.day-card-mobile.is-active-workout {
    border-color: rgba(255, 159, 10, 0.75) !important;
    box-shadow:
        0 12px 34px -4px rgba(0, 0, 0, 0.65),
        0 0 16px 1px rgba(255, 159, 10, 0.35),
        inset 0 0 18px rgba(255, 159, 10, 0.12),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.3) !important;
}

.day-card-mobile.is-completed-workout {
    border-color: rgba(48, 209, 88, 0.6) !important;
    box-shadow: 0 16px 48px rgba(48, 209, 88, 0.20), 0 0 24px rgba(48, 209, 88, 0.4) !important;
}

/* Kart Header */
.card-header-mobile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-day-name {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-check-badge {
    color: var(--accent-green);
    font-size: 1.15rem;
    font-weight: 800;
    display: inline-flex;
}

/* Canlı Tür Rozeti (PC ile %100 Birebir) */
.card-subtitle-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--theme-accent, var(--accent-blue));
    background: rgba(var(--theme-rgb, 10, 132, 255), 0.18);
    border: 1px solid rgba(var(--theme-rgb, 10, 132, 255), 0.38);
    box-shadow: 0 2px 8px rgba(var(--theme-rgb, 10, 132, 255), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    width: fit-content;
}

.card-subtitle-icon {
    display: flex;
    align-items: center;
}

.card-subtitle-icon svg {
    width: 13px;
    height: 13px;
}

.card-meta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.card-date-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.card-state-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-tertiary);
}

.card-state-pill.active {
    background: rgba(255, 159, 10, 0.18);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 159, 10, 0.35);
}

.card-state-pill.completed {
    background: rgba(48, 209, 88, 0.18);
    color: var(--accent-green);
    border: 1px solid rgba(48, 209, 88, 0.35);
}

/* Egzersiz Listesi */
.exercise-list-mobile {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    padding-right: 2px;
    margin-bottom: 12px;
}

/* Liste kaydırma çubuğu */
.exercise-list-mobile::-webkit-scrollbar {
    display: none;
}

.exercise-row-mobile {
    position: relative;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 14px;
    padding: 10px 12px 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ios-spring), background var(--duration-fast), border-color var(--duration-fast);
}

/* Sol Taraftaki Sabit Renkli Nokta İndikatörü (PC Kartlarıyla %100 Birebir) */
.exercise-row-mobile::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-accent, var(--accent-blue));
    box-shadow: 0 0 0 2.5px rgba(var(--theme-rgb, 10, 132, 255), 0.20);
    transition: all 0.2s var(--ios-spring);
}

.exercise-row-mobile:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.09);
}

.exercise-row-mobile.is-checked {
    background: rgba(48, 209, 88, 0.08);
    border-color: rgba(48, 209, 88, 0.28);
}

.exercise-row-mobile.is-checked::before {
    background: var(--accent-green);
    box-shadow: 0 0 0 2.5px rgba(48, 209, 88, 0.25);
}

.exercise-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}

.exercise-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.exercise-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detaylı Kas Alt Grubu Rozeti (Yan Omuz, Arka Omuz, Üst Sırt vb.) */
.exercise-cat-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(var(--theme-rgb, 10, 132, 255), 0.14);
    border: 1px solid rgba(var(--theme-rgb, 10, 132, 255), 0.32);
    color: var(--theme-accent, var(--accent-blue));
    letter-spacing: -0.1px;
    white-space: nowrap;
}

.exercise-targets {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.exercise-logged-summary {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 1px;
}

.exercise-right-action {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sets-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(var(--theme-rgb, 10, 132, 255), 0.12);
    border: 1px solid rgba(var(--theme-rgb, 10, 132, 255), 0.26);
    color: var(--theme-accent, var(--accent-blue));
    transition: all var(--duration-fast);
}

.exercise-row-mobile.is-checked .sets-badge {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

.chevron-icon {
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
}

/* Dinlenme Günü Kartı */
.rest-day-card {
    text-align: center;
    padding: 36px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rest-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(142, 142, 147, 0.15);
    border: 1px solid rgba(142, 142, 147, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
    margin-bottom: 6px;
}

.rest-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rest-desc {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 280px;
}

.rest-pill {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(48, 209, 88, 0.12);
    border: 1px solid rgba(48, 209, 88, 0.25);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-green);
}

/* Kartın İçindeki Ana Buton (PC ile Aynı Konumda) */
.card-bottom-actions {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-action-btn {
    width: 100%;
    height: 52px;
    border-radius: 18px;
    border: none;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ios-spring), background-color var(--duration-fast), opacity var(--duration-fast);
}

.mobile-action-btn:active:not(:disabled) {
    transform: scale(0.97);
}

/* Başlat Butonu */
.btn-start-workout {
    background: var(--accent-blue);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.35);
}

.btn-start-workout:hover {
    background: #0071E3;
}

/* Bitir ve Senkronize Et Butonu */
.btn-finish-workout {
    background: linear-gradient(135deg, #FF9F0A 0%, #FF375F 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(255, 159, 10, 0.35);
    animation: gentlePulse 2s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(255, 159, 10, 0.3); }
    50% { box-shadow: 0 10px 32px rgba(255, 159, 10, 0.55); }
}

/* Tamamlandı Butonu */
.btn-completed-workout {
    background: rgba(48, 209, 88, 0.18);
    border: 1px solid rgba(48, 209, 88, 0.35);
    color: var(--accent-green);
    cursor: default;
    opacity: 0.95;
    pointer-events: none;
}

/* =========================================================
   DOKUNMATİK AĞIRLIK/TEKRAR MENÜSÜ (IOS BOTTOM SHEET)
   KLAVYEYİ ASLA AÇMAZ - TEK DOKUNUŞLA ÇALIŞIR
========================================================= */
.sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 105%);
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.86) 0%, rgba(14, 14, 18, 0.96) 100%) !important;
    backdrop-filter: blur(40px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(220%) !important;
    border-top: 1.5px solid rgba(var(--theme-rgb, 10, 132, 255), 0.45) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 30px 30px 0 0 !important;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.75), 0 0 36px rgba(var(--theme-rgb, 10, 132, 255), 0.2) !important;
    padding: 14px 18px max(24px, env(safe-area-inset-bottom)) 18px;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    transition: transform var(--duration-ui) var(--ios-spring);
}

.bottom-sheet::before {
    content: '';
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(var(--theme-rgb, 10, 132, 255), 0.35) 0%, rgba(var(--theme-rgb-2, 88, 86, 214), 0.12) 60%, transparent 80%);
    filter: blur(32px);
    pointer-events: none;
    z-index: 0;
}

.sheet-backdrop.active .bottom-sheet {
    transform: translate(-50%, 0);
}

.sheet-drag-handle {
    width: 38px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 auto 2px auto;
}

.sheet-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-title-col {
    display: flex;
    flex-direction: column;
}

.sheet-exercise-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-primary);
}

.sheet-exercise-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.sheet-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Set Seçici Haplar (Carousel) */
.set-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px 0;
    -webkit-overflow-scrolling: touch;
}

.set-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.set-tab-pill {
    padding: 7px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.set-tab-pill.active {
    background: var(--theme-accent, var(--accent-blue));
    color: #FFFFFF;
    border-color: var(--theme-accent, var(--accent-blue));
    box-shadow: 0 4px 14px rgba(var(--theme-rgb, 10, 132, 255), 0.35);
}

.set-tab-pill.saved {
    border-color: rgba(48, 209, 88, 0.4);
    color: var(--accent-green);
}

.set-tab-pill.add-new {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Dokunmatik Değer Kartları (Büyük Tipografi) */
.stepper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#cardioStepperGrid {
    grid-template-columns: 1fr !important;
}

.stepper-box-cardio {
    padding: 16px 14px;
}

.stepper-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stepper-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
}

.stepper-value-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stepper-number {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 1;
}

.stepper-unit {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.stepper-buttons-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
}

.stepper-pill-btn {
    flex: 1;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s var(--ios-spring), background 0.1s;
}

.stepper-pill-btn:active {
    transform: scale(0.93);
    background: rgba(255, 255, 255, 0.2);
}

.stepper-pill-btn.primary {
    background: rgba(var(--theme-rgb, 10, 132, 255), 0.2);
    border-color: rgba(var(--theme-rgb, 10, 132, 255), 0.4);
    color: var(--theme-accent, var(--accent-blue));
}

/* Hızlı Ağırlık Hapları (Tek Dokunuş) */
.quick-picks-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
}

.quick-picks-bar::-webkit-scrollbar {
    display: none;
}

.quick-pill {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
}

.quick-pill:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

/* RIR (Reps in Reserve) Seçim Çubuğu */
.rir-selector-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rir-title-group {
    display: flex;
    flex-direction: column;
}

.rir-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rir-desc {
    font-size: 0.68rem;
    color: var(--text-tertiary);
}

.rir-pills-row {
    display: flex;
    gap: 6px;
}

.rir-pill {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.rir-pill:active {
    transform: scale(0.92);
}

.rir-pill.active {
    background: var(--accent-orange);
    color: #000;
    border-color: var(--accent-orange);
}

/* Seti Kaydet Butonları */
.sheet-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn-sheet-save {
    flex: 2;
    height: 48px;
    border-radius: 16px;
    background: var(--accent-green);
    color: #000000;
    border: none;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(48, 209, 88, 0.35);
}

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

.btn-sheet-done {
    flex: 1;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-sheet-done:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   SENKRONİZASYON VE EŞLEŞTİRME MODALI
========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
    padding: max(20px, env(safe-area-inset-top)) 16px max(60px, env(safe-area-inset-bottom)) 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-ui) var(--ios-spring);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
    background: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    padding: 20px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform var(--duration-ui) var(--ios-bounce);
}

.modal-overlay.active .modal-dialog {
    transform: scale(1);
}

.modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.modal-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.sync-code-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sync-code-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.sync-code-digits {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--accent-blue);
    font-family: -apple-system, monospace;
}

.sync-input-field {
    width: 100%;
    height: 46px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0 14px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
}

.sync-input-field:focus {
    border-color: var(--accent-blue);
}

.modal-buttons-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-modal-primary {
    flex: 1;
    height: 44px;
    border-radius: 14px;
    background: var(--accent-blue);
    color: #FFFFFF;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-modal-secondary {
    flex: 1;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================================
   APPLE DYNAMIC TOAST (BİLDİRİM HAPI)
========================================================= */
.dynamic-toast {
    position: fixed;
    top: max(72px, calc(env(safe-area-inset-top) + 58px));
    left: 50%;
    transform: translate(-50%, -120%);
    background: rgba(30, 30, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: 99px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999 !important;
    pointer-events: none !important;
    transition: transform var(--duration-ui) var(--ios-bounce), opacity var(--duration-ui);
    opacity: 0;
}

.dynamic-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: none !important;
}

.dynamic-toast .toast-action-btn,
.dynamic-toast button {
    pointer-events: auto !important;
}

.dynamic-toast.success {
    border-color: rgba(48, 209, 88, 0.4);
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}


/* =========================================================
   KİLİTLİ SET SEKMELERİ (1. SET TAMAMLANMADAN 2. SETE ERİŞİLEMEZ)
========================================================= */
.set-tab-pill.is-locked,
.set-tab-pill.locked {
    opacity: 0.38 !important;
    filter: grayscale(0.8) !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    pointer-events: auto !important;
}
.set-tab-pill.is-locked:active,
.set-tab-pill.locked:active {
    transform: none !important;
}

/* =========================================================
   STEPPER KUTU BAŞLIĞI & KALEMLE KİLO DÜZENLEME BUTONU
========================================================= */
.stepper-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
}

.stepper-edit-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.stepper-edit-btn:active {
    transform: scale(0.92);
    background: rgba(var(--theme-rgb, 10, 132, 255), 0.25);
    color: var(--theme-accent, #0A84FF);
    border-color: rgba(var(--theme-rgb, 10, 132, 255), 0.45);
}

/* El ile Sayı Girişi Inputu (Numara / Ondalık Klavye Açılır) */
.stepper-number-input {
    background: rgba(0, 0, 0, 0.55);
    border: 1.5px solid var(--theme-accent, var(--accent-blue));
    border-radius: 10px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1.65rem;
    font-weight: 900;
    width: 120px;
    text-align: center;
    padding: 2px 6px;
    outline: none;
    box-shadow: 0 0 14px rgba(var(--theme-rgb, 10, 132, 255), 0.4);
    -moz-appearance: textfield;
}

.stepper-number-input::-webkit-outer-spin-button,
.stepper-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================================================
   ALTIN PR ROZETİ & CANLI PR PARLAMA EFEKTLERİ (APPLE HIG)
========================================================= */
.plan-pr-gold-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFE066 0%, #F59F00 55%, #B8860B 100%);
    color: #1A1200;
    box-shadow: 0 2px 6px rgba(245, 159, 0, 0.4);
    letter-spacing: 0.02em;
    vertical-align: middle;
}

/* PC Versiyonu ile Birebir Altın Parıltılı PR Satır Tasarımı */
.exercise-row-mobile.is-pr-active,
.exercise-row-mobile.history-pr-row {
    background:
        radial-gradient(115% 100% at 96% 10%, rgba(249, 212, 35, 0.30) 0%, transparent 62%),
        linear-gradient(135deg, rgba(48, 37, 10, 0.94) 0%, rgba(24, 19, 8, 0.96) 100%) !important;
    border: 1px solid rgba(249, 212, 35, 0.65) !important;
    box-shadow: 0 4px 16px rgba(249, 212, 35, 0.22), 0 0 12px rgba(249, 212, 35, 0.12) inset !important;
}

.exercise-row-mobile.is-pr-active::before,
.exercise-row-mobile.history-pr-row::before {
    background: linear-gradient(135deg, #FFE066 0%, #F59F00 100%) !important;
    box-shadow: 0 0 0 3px rgba(249, 212, 35, 0.35), 0 0 8px rgba(249, 212, 35, 0.65) !important;
    opacity: 1 !important;
}

.exercise-row-mobile.is-pr-active .exercise-name,
.exercise-row-mobile.history-pr-row .exercise-name {
    color: #FFE699 !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

.exercise-row-mobile.is-pr-active .sets-badge,
.exercise-row-mobile.history-pr-row .sets-badge,
.sets-badge.pr-detail-badge {
    background: linear-gradient(145deg, rgba(249, 212, 35, 0.25), rgba(184, 134, 11, 0.12)) !important;
    border: 0.5px solid rgba(249, 212, 35, 0.6) !important;
    color: #F9D423 !important;
    box-shadow: 0 2px 8px rgba(249, 212, 35, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    font-weight: 800 !important;
}

/* Tamamlanmış Egzersiz Satırı (Akordiyon Açılabilir) */
.exercise-row-mobile.is-completed-row {
    user-select: none;
    cursor: pointer;
}
.exercise-row-mobile.is-completed-row:active {
    transform: none !important;
    background: inherit;
}


.sheet-pr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFE066 0%, #F59F00 55%, #B8860B 100%);
    color: #1A1200;
    box-shadow: 0 2px 10px rgba(245, 159, 0, 0.5);
    letter-spacing: 0.02em;
    animation: prLivePulsar 1.3s infinite alternate ease-in-out;
}

@keyframes prLivePulsar {
    0% { transform: scale(1); box-shadow: 0 2px 8px rgba(245, 159, 0, 0.4); }
    100% { transform: scale(1.06); box-shadow: 0 4px 16px rgba(245, 159, 0, 0.75); }
}

.dynamic-toast.is-pr {
    border-color: rgba(249, 212, 35, 0.6) !important;
    background: rgba(36, 28, 6, 0.94) !important;
    color: #FFE066 !important;
    box-shadow: 0 8px 30px rgba(245, 159, 0, 0.35) !important;
}

.dynamic-toast.is-pr .toast-dot {
    background: #FFD60A !important;
    box-shadow: 0 0 8px #FFD60A !important;
}

/* =========================================================
   A.7: BİTİRME MODALI DOLGUN TİK (✓) BUTONU
   ========================================================= */
.btn-modal-check {
    width: 100% !important;
    height: 54px !important;
    border-radius: 18px !important;
    background: #30D158 !important;
    color: #FFFFFF !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(48, 209, 88, 0.42) !important;
    transition: transform 0.15s var(--ios-spring), background 0.15s ease !important;
    margin-top: 6px !important;
}
.btn-modal-check:active {
    transform: scale(0.96) !important;
    background: #28CD41 !important;
}

/* =========================================================
   A.8: TAMAMLANMIŞ KARTTA TARİH YANINDA SÜRE ROZETİ
   ========================================================= */
.card-duration-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-orange, #FF9F0A);
    background: rgba(255, 159, 10, 0.16);
    border: 1px solid rgba(255, 159, 10, 0.35);
    border-radius: 999px;
    padding: 2.5px 8.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    letter-spacing: -0.2px;
}


/* Swipe comparison between today's target/editor and previous performance. */
.sheet-compare-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin: 8px 0 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    flex: 0 0 auto;
}
.sheet-compare-tab {
    min-width: 0;
    padding: 9px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sheet-compare-tab.is-active {
    color: var(--text-primary);
    background: rgba(var(--theme-rgb, 10, 132, 255), .20);
    box-shadow: inset 0 0 0 1px rgba(var(--theme-rgb, 10, 132, 255), .34), 0 2px 8px rgba(0, 0, 0, .14);
}
.sheet-compare-viewport {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-x;
    flex: 1 1 auto;
}
.sheet-compare-track {
    display: flex;
    align-items: stretch;
    width: 200%;
    min-height: 100%;
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}
.sheet-compare-panel {
    flex: 0 0 50%;
    width: 50%;
    min-width: 50%;
    max-width: 50%;
    max-height: calc(100dvh - 165px);
    padding: 0 4px 6px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.sheet-reference-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
    border: 1px solid rgba(var(--theme-rgb, 10, 132, 255), .22);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(var(--theme-rgb, 10, 132, 255), .11), rgba(255, 255, 255, .035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.sheet-reference-kicker {
    color: var(--theme-accent, #0A84FF);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .09em;
}
.sheet-reference-set-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sheet-reference-set {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 11px;
    background: rgba(0, 0, 0, .12);
    color: var(--text-secondary);
    font-size: .78rem;
}
.sheet-reference-set strong {
    min-width: 0;
    color: var(--text-primary);
    font-size: .82rem;
    text-align: right;
    overflow-wrap: anywhere;
}
.sheet-reference-set em {
    flex: 0 0 auto;
    color: var(--theme-accent, #0A84FF);
    font-style: normal;
    font-size: .72rem;
    font-weight: 800;
}
.sheet-reference-card > strong {
    color: var(--text-primary);
    font-size: 1rem;
}
.sheet-reference-card > span:last-child {
    color: var(--text-secondary);
    font-size: .8rem;
    line-height: 1.45;
}
.sheet-reference-empty {
    min-height: 140px;
    justify-content: center;
}
#sheetEditorControls {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
}
@media (prefers-reduced-motion: reduce) {
    .sheet-compare-track, .sheet-compare-tab {
        transition: none !important;
    }
}

/* Strive Prompt 2: Responsive Bottom Sheet Height & Smooth iOS Motion */
.bottom-sheet, #exerciseSheet.bottom-sheet {
    max-height: min(640px, calc(100dvh - 28px)) !important;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 6px;
    padding: 10px 16px max(18px, env(safe-area-inset-bottom)) 16px;
    transition: transform 0.40s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
/* Two-dot page indicator */
.sheet-page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 2px 0;
}
.sheet-page-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}
.sheet-page-dot.is-active {
    width: 18px;
    border-radius: 99px;
    background: var(--theme-accent, #0A84FF);
}
/* Hold button progress & feedback */
.mobile-action-btn, .btn-sheet-save {
    position: relative;
    overflow: hidden;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: none !important;
}
.hold-btn-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    pointer-events: none;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.24);
    z-index: 1;
    will-change: transform;
}
.sheet-plan-readonly {
    width: 100%;
    box-sizing: border-box;
}
.btn-sheet-save.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.hold-hint-text {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 4px;
}
/* Completed card set drawer (A3b) */
.exercise-item-container {
    list-style: none;
    margin: 0;
    padding: 0;
}
.exercise-row-mobile.is-completed-row {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 12px 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.exercise-drawer-mobile {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 0 0 14px 14px;
    margin: -4px 4px 6px 4px;
    box-sizing: border-box;
}
.exercise-drawer-mobile.is-open {
    max-height: 80px;
    opacity: 1;
    padding: 8px 12px;
}
@media (prefers-reduced-motion: reduce) {
    .exercise-drawer-mobile {
        transition: none !important;
    }
}
.drawer-pills-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.drawer-pills-scroll::-webkit-scrollbar {
    display: none;
}
.chevron-drawer-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--text-tertiary);
    margin-left: 6px;
}
.chevron-drawer-icon.is-open {
    transform: rotate(180deg);
    color: var(--theme-accent, #0A84FF);
}
/* Set Pills in mobile matching PC */
.hist-set-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.hist-set-pill .hsp-num {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
}
.hist-set-pill .hsp-reps {
    color: var(--text-primary);
    font-weight: 800;
}
.hist-set-pill.hist-set-pill-pr {
    background: rgba(245, 158, 11, 0.22) !important;
    border: 1.2px solid #F59E0B !important;
    color: #FBBF24 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35) !important;
}
.hist-set-pill.hist-set-pill-pr .hsp-reps {
    color: #FBBF24 !important;
}
.hist-set-pill.hist-set-pill-skipped {
    opacity: 0.7;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.2);
}
/* Edit mode buttons on Completed Card (A3a) */
.btn-edit-mode-done {
    background: var(--theme-accent, #0A84FF) !important;
    color: #FFFFFF !important;
}
.btn-edit-cancel-text {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    margin-top: 4px;
    width: 100%;
}
.btn-edit-cancel-text:active {
    color: var(--text-primary);
}
/* Symmetric Set Grid styling */
.set-tabs-scroll {
    display: grid;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
}
.set-tab-pill {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/* Confirmation Modals for Start / Finish */
.btn-modal-primary-start {
    background: var(--accent-orange, #FF9F0A) !important;
    color: #000000 !important;
    box-shadow: 0 4px 18px rgba(255, 159, 10, 0.35) !important;
}
.btn-modal-primary-finish {
    background: var(--accent-green, #30D158) !important;
    color: #000000 !important;
    box-shadow: 0 4px 18px rgba(48, 209, 88, 0.35) !important;
}
.btn-modal-primary-start:active, .btn-modal-primary-finish:active {
    transform: scale(0.97);
}


/* =========================================================
   STRIVE PROMPT 3: ERİŞİLEBİLİRLİK, KONTRAST VE DOKUNMA HEDEFLERİ
   ========================================================= */

/* Tabular sayılar: Rakam değişimlerinde genişlik oynamalarını engeller */
.stepper-number, .stepper-unit, .stat-value, .card-date-badge, .sets-badge,
.hist-set-pill, .set-tab-pill, .top-bar-date, .modal-title, .dynamic-toast,
.sheet-exercise-title, .hold-hint-text, .sync-status-dot + span {
    font-variant-numeric: tabular-nums !important;
    -webkit-font-feature-settings: "tnum" !important;
    font-feature-settings: "tnum" !important;
}

/* Görünür odak halkaları (Klavye & VoiceOver erişilebilirliği) */
button:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2.5px solid var(--accent-blue, #0A84FF) !important;
    outline-offset: 2.5px !important;
}

/* Minimum 48x48 CSS px Dokunma Hedefleri (Sheet içi kontroller hariç - v26.0 ergonomik boyutları korunur) */
.sheet-close-btn {
    min-width: 48px !important;
    min-height: 48px !important;
    width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.topbar-action-pill {
    min-height: 48px !important;
    min-width: 48px !important;
    padding: 6px 14px !important;
}

/* Stepper ve RIR butonları: v26.0 orijinal kompakt boyutları (Sheet taşmasını ve kaymasını önler) */
.stepper-pill-btn {
    height: 40px !important;
    min-height: 40px !important;
    min-width: 0 !important;
}

.rir-pill {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
}

.set-tab-pill {
    min-height: 34px !important;
}

.iih-close {
    min-width: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Sheet sayfa noktası geniş dokunma hedefi */
.sheet-page-dot {
    position: relative !important;
    min-width: 14px !important;
    min-height: 14px !important;
    width: 14px !important;
    height: 14px !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    background: transparent !important;
}
.sheet-page-dot::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 48px !important;
    height: 48px !important;
}
.sheet-page-dot::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.2s ease !important;
}
.sheet-page-dot.is-active::after {
    width: 20px !important;
    border-radius: 99px !important;
    background: var(--text-primary) !important;
}

/* Toast Eylem & Geri Al Butonu */
.toast-action-btn {
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    margin-left: 10px !important;
    padding: 6px 14px !important;
    min-height: 38px !important;
    border-radius: 99px !important;
    background: var(--accent-orange, #FF9F0A) !important;
    color: #000000 !important;
    border: none !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.12s ease !important;
}
.toast-action-btn:active {
    transform: scale(0.94) !important;
}

/* Reduced Motion: prefers-reduced-motion ve Sade Hareket ayarı */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
}
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
}

/* =========================================================
   STRIVE PROMPT 5: PROGRESSIVE OVERLOAD & ALTERNATİF EGZERSİZ
   ========================================================= */

/* Alternatif Egzersiz Butonu (Sheet Başlığı) */
.sheet-alt-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: var(--text-secondary, #8E8E93) !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 3.5px 9px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin-right: 6px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}
.sheet-alt-btn:hover,
.sheet-alt-btn:active {
    background: rgba(255, 255, 255, 0.16) !important;
    color: var(--text-primary, #FFFFFF) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Alternatif Egzersiz Çekmecesi */
.sheet-alt-drawer {
    margin: 4px 0 8px 0 !important;
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 14px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}
.sheet-alt-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    color: var(--text-secondary) !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.sheet-alt-close {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
}
.sheet-alt-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.sheet-alt-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: var(--text-primary) !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.sheet-alt-item:active {
    background: rgba(var(--theme-rgb, 10, 132, 255), 0.18) !important;
    border-color: var(--theme-accent, #0A84FF) !important;
    transform: scale(0.99) !important;
}
.sheet-alt-item-sub {
    font-size: 0.70rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

/* Strive Overload: Sol Sayfa (Bugün) Çipi */
.sheet-overload-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: rgba(var(--theme-rgb, 10, 132, 255), 0.09) !important;
    border: 1px solid rgba(var(--theme-rgb, 10, 132, 255), 0.22) !important;
    border-radius: 10px !important;
    padding: 4px 8px 4px 10px !important;
    margin: 2px 0 7px 0 !important;
    font-size: 0.74rem !important;
    box-sizing: border-box !important;
}
.soc-text-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}
.soc-badge {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: var(--theme-accent, #0A84FF) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    flex-shrink: 0 !important;
}
.soc-val {
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    font-variant-numeric: tabular-nums !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.soc-apply-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: var(--theme-accent, #0A84FF) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 0.70rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
}
.soc-apply-btn:active {
    transform: scale(0.95) !important;
    opacity: 0.85 !important;
}
.soc-apply-btn.is-applied {
    background: rgba(48, 209, 88, 0.25) !important;
    color: #30D158 !important;
    border: 1px solid rgba(48, 209, 88, 0.4) !important;
    pointer-events: none !important;
}

/* Strive Overload: Sağ Sayfa (Önceki Performans) Kartı */
.sheet-overload-card {
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 9px 12px !important;
    margin-top: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    box-sizing: border-box !important;
}
.soc-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.70rem !important;
    font-weight: 800 !important;
    color: var(--theme-accent, #0A84FF) !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
}
.soc-desc {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    color: var(--text-secondary) !important;
}
.soc-desc b {
    color: var(--text-primary) !important;
}
.soc-card-btn {
    margin-top: 4px !important;
    align-self: flex-start !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(var(--theme-rgb, 10, 132, 255), 0.15) !important;
    border: 1px solid rgba(var(--theme-rgb, 10, 132, 255), 0.3) !important;
    color: var(--theme-accent, #0A84FF) !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}
.soc-card-btn:active {
    background: var(--theme-accent, #0A84FF) !important;
    color: #FFFFFF !important;
}
