/* Sol alt köşe: kayıt + dil */
.home-corner-dock {
    position: fixed;
    left: max(14px, env(safe-area-inset-left, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.home-corner-dock > * {
    pointer-events: auto;
}

.home-corner-dock__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #5b4fe8;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 6px 18px rgba(15, 23, 42, 0.1);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.home-corner-dock__btn:hover {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(91, 79, 232, 0.25);
    color: #4a3fd4;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 10px 24px rgba(91, 79, 232, 0.18);
}

.home-corner-dock__btn:active {
    transform: translateY(0) scale(0.98);
}

.home-corner-dock__btn:focus-visible {
    outline: 2px solid #6d5dfc;
    outline-offset: 2px;
}

.home-corner-dock__btn i {
    font-size: 1.05rem;
}

.home-corner-dock .lang-switcher {
    position: static;
    pointer-events: auto;
}

.home-corner-dock .lang-switcher--main {
    left: auto;
    bottom: auto;
    top: auto;
    right: auto;
}

/* Modal */
.progress-backup-modal[hidden] {
    display: none !important;
}

.progress-backup-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.progress-backup-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.progress-backup-modal__panel {
    position: relative;
    width: min(100%, 440px);
    max-height: min(90vh, 640px);
    overflow: auto;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(15, 23, 42, 0.06);
}

.progress-backup-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.progress-backup-modal__head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.progress-backup-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.progress-backup-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.progress-backup-modal__desc {
    margin: 0 0 20px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #64748b;
}

.progress-backup-modal__section {
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.progress-backup-modal__section + .progress-backup-modal__section {
    margin-top: 12px;
}

.progress-backup-modal__section h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-backup-modal__section h3 i {
    color: #5b4fe8;
}

.progress-backup-modal__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.progress-backup-modal__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
}

.progress-backup-modal__input:focus {
    outline: 2px solid rgba(91, 79, 232, 0.35);
    border-color: #8b7cf8;
}

.progress-backup-modal__hint {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.45;
}

.progress-backup-modal__actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.progress-backup-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.progress-backup-modal__btn:hover {
    transform: translateY(-1px);
}

.progress-backup-modal__btn:active {
    transform: translateY(0);
}

.progress-backup-modal__btn--download {
    background: linear-gradient(145deg, #5b4fe8 0%, #7c6df0 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 79, 232, 0.35);
}

.progress-backup-modal__btn--upload {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.progress-backup-modal__message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.progress-backup-modal__message--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.progress-backup-modal__message--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

body.progress-backup-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .home-corner-dock {
        left: max(10px, env(safe-area-inset-left, 0px));
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
    }

    .home-corner-dock__btn {
        width: 38px;
        height: 38px;
    }

    .progress-backup-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .progress-backup-modal__panel {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        width: 100%;
        max-height: 88vh;
    }
}
