/* Page styles: fileunlocker.php - uses tokens from theme.css */
.fu-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid rgba(var(--color-accent-rgb), 0.4);
        color: var(--color-accent-hover);
        font-weight: 600;
        font-size: 13px;
        margin-left: 8px;
        vertical-align: middle;
    }

    .fu-step {
        display: flex;
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .fu-step-number {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--color-accent-hover);
        color: #fff;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        flex: 0 0 auto;
    }

    .download-highlight {
        box-shadow: 0 0 0 3px rgba(var(--color-accent-hover-rgb), 0.3);
        transform: scale(1.02);
    }

    #app-version {
        display: inline-block;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.6px;
        min-width: 60px;
    }

    .fu-feature-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex: 0 0 auto;
        margin-right: 16px;
    }

    .fu-feature-card {
        display: flex;
        align-items: flex-start;
        padding: 18px;
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        margin-bottom: 12px;
        box-shadow: var(--shadow-sm);
        transition: box-shadow 0.2s ease;
    }

    .fu-feature-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    .fu-feature-card h4 {
        margin: 0 0 4px;
        font-size: 15px;
        font-weight: 700;
        color: var(--color-text);
    }

    .fu-feature-card p {
        margin: 0;
        font-size: 14px;
        color: var(--color-text-muted);
        line-height: 1.6;
    }

    /* История изменений и ссылки на версии. */
    .version-history {
        margin-top: 16px;
        color: #555;
        font-size: 14px;
    }

    .version-history-title {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .version-history-item {
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: #fff;
        margin-bottom: 12px;
    }

    .version-history-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 16px;
    }

    .version-history-version {
        font-weight: 700;
        color: #444;
    }

    .version-history-links {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .version-history-links button {
        background: transparent;
        border: none;
        padding: 0;
        color: var(--color-accent-hover);
        text-decoration: none;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
    }

    .version-history-links button:hover {
        text-decoration: underline;
    }

    .version-history-list {
        margin: 8px 0 0 18px;
        padding: 0;
        color: #555;
        font-size: 14px;
    }

    .version-history-empty {
        margin-top: 8px;
        font-size: 13px;
        color: #777;
    }

    /* Модальное окно скачивания. */
    .download-modal {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }

    .download-modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .download-modal-dialog {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 12px;
        padding: 20px 22px;
        width: min(520px, 92vw);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    .download-modal-title {
        font-weight: 700;
        font-size: 18px;
        color: #333;
        margin-bottom: 6px;
    }

    .download-modal-version {
        font-size: 14px;
        color: #777;
        margin-bottom: 12px;
    }

    .download-modal-actions {
        display: grid;
        gap: 10px;
    }

    .download-modal-actions .btn {
        padding: 14px;
        border: none;
    }

    #download-modal-normal {
        background-color: var(--color-accent-hover);
        color: #fff;
    }

    #download-modal-portable {
        background-color: var(--color-brand);
        color: #fff;
    }

    .download-modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        border: none;
        background: transparent;
        font-size: 22px;
        line-height: 1;
        color: #777;
        cursor: pointer;
    }

    .download-modal-close:hover {
        color: #333;
    }

    body.download-modal-open {
        overflow: hidden;
    }

    /* Якорная навигация по разделам. */
    .fu-section-nav-wrapper {
        margin-top: 25px;
        margin-bottom: 30px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-left-width: 5px;
        border-left-color: var(--color-accent);
        border-radius: var(--radius-md);
        padding: 16px;
        box-shadow: var(--shadow-sm);
    }

    .fu-section-nav-title {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 12px;
        color: var(--color-text);
    }

    .fu-section-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .fu-section-nav a {
        display: inline-flex;
        align-items: center;
        padding: 7px 12px;
        border-radius: 999px;
        border: 1px solid rgba(var(--color-accent-rgb), 0.4);
        background: #fff;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
    }

    .fu-section-nav a:hover,
    .fu-section-nav a:focus {
        background: rgba(var(--color-accent-rgb), 0.12);
        box-shadow: 0 0 0 3px rgba(var(--color-accent-hover-rgb), 0.2);
        outline: none;
    }

    /* Якорные ссылки. */
    .section-anchor {
        position: relative;
    }

    .section-anchor .anchor-link {
        position: absolute;
        left: -30px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
        color: var(--color-accent);
        font-size: 18px;
        text-decoration: none;
        cursor: pointer;
    }

    .section-anchor:hover .anchor-link {
        opacity: 1;
    }

    .section-anchor .anchor-link:hover {
        color: var(--color-accent-hover);
    }

    .anchor-copied {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
        color: white;
        padding: 12px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.4);
        z-index: 10000;
        animation: slideInRight 0.3s ease-out;
        font-size: 14px;
        font-weight: bold;
    }

    @keyframes slideInRight {
        0% { transform: translateX(400px); opacity: 0; }
        100% { transform: translateX(0); opacity: 1; }
    }

    @keyframes slideOutRight {
        0% { transform: translateX(0); opacity: 1; }
        100% { transform: translateX(400px); opacity: 0; }
    }