body {
    font-family: "Inter", system-ui, sans-serif;
}

.page-glow {
    position: fixed;
    inset: -20% auto auto 50%;
    z-index: 0;
    width: 60rem;
    height: 60rem;
    transform: translateX(-50%);
    border-radius: 9999px;
    background:
        radial-gradient(circle, rgba(217, 70, 239, 0.18), transparent 46%),
        radial-gradient(circle at 70% 35%, rgba(56, 189, 248, 0.1), transparent 24%);
    pointer-events: none;
    filter: blur(32px);
}

main,
header {
    position: relative;
    z-index: 1;
}

.nav-link {
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    opacity: 1;
}

.panel-card {
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.68);
    padding: 1.5rem;
    box-shadow: 0 20px 70px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(18px);
}

.glass-card,
.glass-subcard,
.glass-pill {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1.1rem;
    backdrop-filter: blur(16px);
}

.glass-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding-inline: 1rem;
    font-size: 0.95rem;
    color: rgb(226 232 240);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.glass-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 121, 249, 0.45);
}

.feature-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
}

.feature-title,
.subcard-title,
.panel-title,
.stat-value {
    color: #fff;
    font-weight: 600;
}

.panel-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.panel-label,
.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(244, 114, 182, 0.75);
}

.panel-copy {
    max-width: 21rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgb(148 163 184);
}

.form-input {
    width: 100%;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.75);
    padding: 0.9rem 1rem;
    color: #fff;
    outline: none;
}

.form-input:focus {
    border-color: rgba(217, 70, 239, 0.55);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.12);
}

.file-input::file-selector-button {
    margin-right: 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.55rem 0.95rem;
    color: #fff;
    cursor: pointer;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(168, 85, 247, 0.95));
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 35px rgba(168, 85, 247, 0.25);
}

.action-button:hover {
    transform: translateY(-1px);
}

/* Рабочая зона «Без движения»: колонка кнопок на всю высоту ячейки сетки */
.no-move-actions {
    align-self: stretch;
    height: 100%;
    min-height: 0;
}

.no-move-actions .action-button {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    width: 100%;
}

.processing-indicator {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.processing-indicator.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.processing-indicator__bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.95), rgba(244, 114, 182, 0.95), rgba(56, 189, 248, 0.95));
    background-size: 220% 100%;
    animation: processing-load 1.1s linear infinite;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
}

.processing-indicator__text {
    display: inline-block;
    margin: 0.5rem 1rem 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    color: rgb(226 232 240);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

body.is-processing .action-button {
    opacity: 0.7;
}

@keyframes processing-load {
    0% {
        background-position: 220% 50%;
    }

    100% {
        background-position: -20% 50%;
    }
}

@media (max-width: 767px) {
    .no-move-actions {
        height: auto;
        min-height: auto;
    }

    .no-move-actions .action-button {
        flex: 0 0 auto;
        min-height: 2.75rem;
        height: auto;
        white-space: normal;
        padding-block: 0.7rem;
    }
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(217, 70, 239, 0.16), transparent 24%),
        radial-gradient(circle at bottom center, rgba(59, 130, 246, 0.12), transparent 28%);
    filter: blur(12px);
}

pre {
    overflow-wrap: anywhere;
}
