main {

}

.work-info-main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
    margin: 40px auto;
    font-size: 1.125rem;
    align-items: flex-start;
    color: var(--text-color);
}

.work-info-container {
    width: 60%;
    max-width: 890px;
    padding: 30px;
    background-color: var(--second-color);
    border-radius: 15px;
    border: 2px solid var(--base-border-color);
}

.work-info-container .work-type {
    margin-top: 0;
}

.work-info-container h1, .work-info-container h2, .work-info-container h3,  .work-info-container h4 {
    color: white;
}

.work-info-container h1 {
    margin-top: 0;
    font-size: 1.625rem;
}

.work-info-container h2 {
    font-size: 1.5rem;
    text-align: start;
}

.work-info-container h3, .work-info-container h4 {
    margin-bottom: 0;
}

.warning-block {
    background: #181824;
    color: #f5f5fa;
    padding: 12px 12px;
    margin: 15px 0;
    border: 2px solid;
    border-image: linear-gradient(90deg, #6c63ff, #00e0d3) 1;
    font-size: 1.25rem;
}

.content-table ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.25rem;
}

.content-table ul li {
    margin-bottom: 7px;
}

.content-table ul li span:nth-child(1) {
    display: block;
    width: 100%;
}

.content-table ul li a:link, .content-table ul li a:visited {
    text-decoration: none;
    color: var(--text-color);
}

.content-table ul li a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.content-table ul li a:hover {
    border-bottom: 1px solid var(--text-color);
    transition: 0.3s ease-in-out;
}


.work-features-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(40, 40, 48, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.feature-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(30, 30, 38, 0.7);
    border-radius: 10px;
    border-left: 3px solid #6c63ff;
    transition: all 0.3s ease;
}

.feature-card h4 {
    margin-bottom: 3px;
}

.feature-card:hover {
    background: rgba(35, 35, 45, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(108, 99, 255, 0.3);
}

.feature-icon img {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 0 3px rgba(108, 99, 255, 0.5));
}

.feature-content {
    flex: 1;
}

.feature-title {
    color: #6c63ff;
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
}

.feature-tasks {
    margin: 0;
    padding-left: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    list-style: none;
}

.feature-tasks li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 12px;
}

.feature-tasks li:before {
    content: '•';
    color: #6c63ff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .work-features-container {
        padding: 10px;
    }

    .feature-card {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-title {
        font-size: 1.15rem;
    }

    .feature-content p,
    .feature-tasks {
        font-size: 1rem;
    }
}

/* Для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .work-features-container {
        padding: 18px;
    }

    .feature-card {
        padding: 18px;
    }
}


.content-wrapper {
    display: flex;
    flex-direction: column;
    column-gap: 30px;
    font-size: 1.25rem;
}

.content-wrapper h3 {
    font-size: 1.375rem;
}

.content-wrapper div {
    line-height: 1.3;
}

.content-wrapper p {
    margin-top: 8px;
}

.content-wrapper ol {
    padding-left: 20px;
    word-break: break-word;
}

.content-wrapper ol li {
    margin-bottom: 8px;
}

#edit-plan-button, #edit-work-button {
    display: block;
    cursor: pointer;
    padding: 12px 22px;
    background: none;
    border-radius: 6px;
    border: 2px solid var(--button-color);
    color: white;
    font-size: 1.125rem;
}

#edit-plan-with-ai-button {
    cursor: pointer;
    padding: 12px 27px;
    background: none;
    border-radius: 6px;
    border: 2px solid #9573CC;
    color: white;
    font-size: 1.125rem;
    margin-top: 13px;
    width: 220px;
    text-decoration: none;
    display: flex;
    justify-content: center;
}

#edit-plan-with-ai-button:hover {
    background-color: #9573CC;
    transition: 0.5s ease-in-out;
}

#edit-work-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 22px;
    margin: 18px 0 26px;
    text-decoration: none;
    color: white;
    background: linear-gradient(180deg, rgba(21, 29, 44, 0.98) 0%, rgba(11, 16, 27, 0.98) 100%);
    border: 1px solid rgba(167, 255, 250, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#edit-work-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(35, 255, 242, 0.2), transparent 36%),
        radial-gradient(circle at bottom right, rgba(186, 143, 255, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

#edit-work-button::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

#edit-plan-button:hover {
    background-color: var(--button-color);
    color: black;
    transition: 0.5s ease-in-out;
}

#edit-work-button:hover {
    color: white;
    transform: translateY(-3px);
    border-color: rgba(167, 255, 250, 0.28);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3);
}

#edit-work-button:hover .edit-work-button__icon {
    transform: translateX(4px) rotate(-6deg);
    background: linear-gradient(135deg, var(--button-color) 0%, #b5fffb 100%);
    color: #041018;
    box-shadow: 0 16px 30px rgba(35, 255, 242, 0.25);
}

#edit-work-button:hover .edit-work-button__badge {
    border-color: rgba(167, 255, 250, 0.34);
    color: #dffffd;
}

#edit-work-button:hover .edit-work-button__title {
    color: #ffffff;
}

#edit-work-button:hover .edit-work-button__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

#edit-work-button:focus-visible {
    outline: none;
    border-color: rgba(167, 255, 250, 0.34);
    box-shadow: 0 0 0 3px rgba(35, 255, 242, 0.16), 0 24px 46px rgba(0, 0, 0, 0.28);
}

.edit-work-button__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.edit-work-button__badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(167, 255, 250, 0.22);
    background: rgba(35, 255, 242, 0.08);
    color: var(--button-color);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.edit-work-button__title {
    color: #f8fbff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.edit-work-button__subtitle {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.0625rem;
    line-height: 1.45;
    max-width: 34ch;
    transition: color 0.3s ease;
}

.edit-work-button__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(25, 36, 54, 0.95) 0%, rgba(17, 25, 39, 0.95) 100%);
    border: 1px solid rgba(167, 255, 250, 0.14);
    color: var(--button-color);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateX(0);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.partition {
    padding-left: 20px;
    margin-bottom: 15px;
    margin-top: 8px;
    list-style: none;
}

#intro {
    margin-top: 20px;
    /*line-height: 1.3;*/
}

.tasks-promo-minimal {
    background: rgba(40, 40, 48, 0.8);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #6c63ff;
    margin: 25px 0 0;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.promo-header h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.25rem;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.minimal-button {
    display: block;
    text-align: center;
    padding: 12px;
    background: #6c63ff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.minimal-button:hover {
    background: #5a52d5;
    transform: translateY(-1px);
}

.aside-container {
    display: flex;
    width: 25%;
    min-width: 310px;
    max-width: 350px;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    position: sticky;
    top: 10px;
}

.aside-container-demo {
    border: 2px solid var(--base-border-color);
    background-color: var(--second-color);
    border-radius: 15px;
    padding: 20px;
    position: sticky;
    top: 10px;
    max-width: 330px;
}

.red {
    border-color: red;
}

.payment-info {
    width: 100%;
    background: linear-gradient(180deg, rgba(22, 29, 44, 0.98) 0%, rgba(14, 19, 30, 0.98) 100%);
    border-radius: 18px;
    border: 1px solid rgba(167, 255, 250, 0.16);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.payment-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(35, 255, 242, 0.16), transparent 38%),
        radial-gradient(circle at bottom right, rgba(108, 99, 255, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.payment-info::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.payment-info h2, .aside-container-demo h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
}

.payment-info h2 {
    width: 100%;
    margin: 0;
    text-align: left;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.payment-info h2::after {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--button-color) 0%, rgba(108, 99, 255, 0.9) 100%);
}

.features-full {
    list-style: none;
    padding-left: 0;
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.features-full li {
    margin-bottom: 15px;
    display: flex;
    justify-content: start;
    align-items: center;
    column-gap: 10px;
}

.features-full li img {
    width: 25px;
    aspect-ratio: auto 1 / 1;
}

.aside-container-demo a, #generate-button, #buy-button {
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    color: black;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: var(--button-color);
    padding: 12px 25px;
    border-radius: 12px;
    display: block;
    width: 100%;
}

.aside-container-demo a:hover, #generate-button:hover, #buy-button:hover {
    background-color: #a7fffa;
}

#generate-button:disabled {
    cursor: not-allowed;
    background-color: var(--base-border-color);
    border-color: var(--base-border-color);
}


.export-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.export-buttons button {
    cursor: pointer;
    flex: 1 1 138px;
    min-height: 60px;
    padding: 14px 18px;
    color: white;
    border: 1px solid rgba(167, 255, 250, 0.22);
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.export-buttons button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.export-buttons button::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

#word-export,
#speech-export-word {
    background: linear-gradient(135deg, rgba(35, 255, 242, 0.16) 0%, rgba(35, 255, 242, 0.05) 100%);
}

#pdf-export {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(108, 99, 255, 0.07) 100%);
    border-color: rgba(143, 136, 255, 0.28);
}

.export-buttons button:hover {
    transform: translateY(-2px);
}

#word-export:hover,
#speech-export-word:hover {
    color: #081018;
    border-color: transparent;
    background: linear-gradient(135deg, var(--button-color) 0%, #c0fffb 100%);
    box-shadow: 0 16px 30px rgba(35, 255, 242, 0.22);
}

#pdf-export:hover {
    color: #081018;
    border-color: transparent;
    background: linear-gradient(135deg, #8f88ff 0%, #d7c0ff 100%);
    box-shadow: 0 16px 30px rgba(108, 99, 255, 0.24);
}

.export-buttons button:focus-visible {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(35, 255, 242, 0.18);
}

.rating-container {
    width: 100%;
    background-color: var(--second-color);
    border-radius: 15px;
    border: 2px solid var(--base-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 18px;
}

.rating-container.colorized {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    align-items: flex-start;
    padding: 24px;
    gap: 14px;
    background: linear-gradient(155deg, #171d2e 0%, #101623 100%);
    border: 1px solid rgba(167, 255, 250, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.rating-container.colorized::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(35, 255, 242, 0.22), transparent 42%),
        radial-gradient(circle at bottom left, rgba(108, 99, 255, 0.22), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    background-size: 160% 160%;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    animation: gradient-border 14s ease infinite;
}

.rating-container.colorized::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
    pointer-events: none;
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.rating-container h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-top: 0;
    z-index: 2;
    color: white;
}

.rating-container.colorized h3 {
    font-size: 1.625rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
}

.rating-container a {
    text-decoration: none;
    color: var(--button-color);
    z-index: 2;
}

.rating-container.colorized a {
    color: #d9fffd;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(167, 255, 250, 0.45);
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.rating-container.colorized a:hover {
    color: white;
    text-decoration-color: rgba(255, 255, 255, 0.75);
}

.span-colorized {
    display: block;
    z-index: 2;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.0625rem;
    line-height: 1.55;
    max-width: 24ch;
}

#rating-open, #generate-speech {
    cursor: pointer;
    width: 100%;
    height: 50px;
    color: white;
    border: 2px solid var(--button-color);
    border-radius: 12px;
    font-size: 1.125rem;
    background: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

#rating-open {
    background: linear-gradient(135deg, var(--button-color) 0%, #7af7ee 100%);
    color: #081018;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(35, 255, 242, 0.22);
}

#rating-open:hover {
    background: linear-gradient(135deg, #c0fffb 0%, #85f8f0 100%);
    color: #041018;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(35, 255, 242, 0.32);
}

#generate-speech:hover {
    background-color: #a7fffa;
    color: black;
}

#generate-speech:disabled {
    cursor: not-allowed;
    background-color: #a7fffa;
    color: black;
    opacity: 0.6;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(35, 255, 242, 0.08), rgba(4, 8, 15, 0.92) 55%),
        rgba(3, 6, 12, 0.88);
    backdrop-filter: blur(10px);
    z-index: 40;
    animation: fadeIn 0.22s ease-out;
}

#myModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100vw - 32px), 470px);
    min-width: 0;
    max-width: 470px;
    padding: 30px 24px 24px;
    background: linear-gradient(180deg, rgba(20, 28, 43, 0.98) 0%, rgba(11, 17, 28, 0.98) 100%);
    border: 1px solid rgba(167, 255, 250, 0.18);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    z-index: 50;
    color: white;
    overflow: hidden;
    isolation: isolate;
    animation: modal-pop 0.28s ease-out;
}

#myModal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(35, 255, 242, 0.16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(186, 143, 255, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

#myModal::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.close-btn {
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #041018;
    background: linear-gradient(135deg, var(--button-color) 0%, #b9fffb 100%);
    border-color: transparent;
    transform: rotate(90deg);
    text-decoration: none;
    cursor: pointer;
}

#myModal > p {
    position: relative;
    z-index: 1;
    margin: 0 52px 18px 0;
    padding: 0;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.12;
    color: #f8fbff;
}

#myModal > p::after {
    content: '';
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--button-color) 0%, rgba(186, 143, 255, 0.95) 100%);
}

#review-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    align-items: stretch;
    font-size: 1.125rem;
}

#review-form label {
    align-self: start;
    padding-left: 2px;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: #ffb0bb;
}

#review-form label:empty {
    display: none;
}

#review-form textarea {
    width: 100%;
    height: 172px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 1.0625rem;
    line-height: 1.6;
    font-family: inherit;
    resize: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#review-form textarea:focus {
    outline: none;
    border-color: rgba(167, 255, 250, 0.55);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(35, 255, 242, 0.12);
}

#review-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
    font-style: normal;
}

#review-form button {
    width: 100%;
    min-height: 56px;
    max-width: none;
    color: #061018;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--button-color) 0%, #91fff7 48%, #d6c0ff 100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(35, 255, 242, 0.18);
    margin-top: 4px;
}

#review-form button:hover {
    background: linear-gradient(135deg, #c0fffb 0%, #97fff8 48%, #e1d0ff 100%);
    color: #041018;
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(35, 255, 242, 0.24);
    filter: saturate(1.03);
}

#review-form button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(35, 255, 242, 0.14), 0 20px 34px rgba(35, 255, 242, 0.2);
}

.star-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    cursor: pointer;
}

.star-rating span,
.star-rating .star {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.star-rating span:hover,
.star-rating .star:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(167, 255, 250, 0.2);
    background: linear-gradient(180deg, rgba(167, 255, 242, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.2);
}

.promocode-container div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    font-size: 1.125rem;
}

.promocode-container div label {
    align-self: start;
    padding-left: 4px;
}

.promocode-container div input {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: 2px solid var(--base-border-color);
    background: var(--second-color);
    padding: 0 10px;
    color: white;
    font-size: 1.125rem;
}

.promocode-container div input:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 10px var(--button-color);
    transition: 0.3s ease-in-out;
}

.promocode-container select {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: 2px solid var(--base-border-color);
    background: var(--second-color);
    padding: 0 10px;
    color: white;
    font-size: 1.125rem;
    margin-bottom: 15px;
}

.promocode-container select:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 10px var(--button-color);
    transition: 0.4s ease-in-out;
}

.promocode-container select:hover {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 10px var(--button-color);
    transition: 0.4s ease-in-out;
}

#promo-button {
    width: 100%;
    height: 50px;
    color: white;
    border: 2px solid var(--button-color);
    border-radius: 12px;
    font-size: 1.125rem;
    background: none;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    margin-top: 12px;
}

#promo-button:hover {
    background-color: #a7fffa;
    color: black;
}

.promo-info {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-align: center;
}

.promocode-container span {
    font-size: 1.125rem;
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 7px;
}

.generation-info-text {
    font-size: 1.1875rem;
    margin-bottom: 15px;
    margin-top: 10px;
}

.how-much-bonus-container {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 5px;
}

.how-much-bonus-container img {
    width: 27px;
    cursor: pointer;
}



.loader {
    display: inline-block;
    text-align: center;
    line-height: 80px;
    position: relative;
    padding: 0 48px;
    font-size: 1.75rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    width: 100%;
}

.loader:before, .loader:after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background: currentColor;
    position: absolute;
    animation: load .9s infinite alternate ease-in-out;
    top: 0;
    color: var(--button-color);
}

.loader:after {
    top: auto;
    bottom: 0;
}

.modal-by-ai {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.by-ai-modal-content {
    margin: 10% auto;
    width: 95%;
    position: relative;
    background-color: var(--second-color);
    border: 2px solid var(--base-border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    min-width: 320px;
    max-width: 650px;
    color: white;
}

.by-ai-modal-content h3 {
    text-align: center;
}

.close-by-ai-modal {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

#edit-by-ai-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#edit-by-ai-form label {
    justify-self: start;
    font-size: 1.0625rem;
    margin-bottom: 3px;
}

#edit-by-ai-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--base-border-color);
    border-radius: 8px;
    background-color: #2d2d2d;
    color: white;
    font-size: 1rem;
    margin-bottom: 12px;
}

#edit-by-ai-form textarea:focus {
    outline: none;
    border-color: var(--button-color);
}

#edit-by-ai-form::placeholder {
    font-family: Arial, Helvetica, sans-serif;
}

.form-group {
    margin-top: 12px;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--base-border-color);
    border-radius: 8px;
    background-color: #2d2d2d;
    color: white;
    font-size: 1rem;
}

.plan-type-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-type-options {
    display: flex;
    gap: 10px;
}

.form-control:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.plan-type-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plan-type-btn {
    padding: 8px 16px;
    border: 1px solid var(--button-color);
    border-radius: 6px;
    background-color: transparent;
    /*color: #4a90e2;*/
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.plan-type-options input[type="radio"]:checked + .plan-type-btn {
    background-color: var(--button-color);
    border-color: var(--button-color);
    color: black;
}

.plan-type-btn:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

#send-user-wishes {
    max-width: 200px;
    width: 100%;
    margin: 15px auto 0;
    color: white;
    font-size: 1.125rem;
    padding: 10px;
    border: 2px solid var(--button-color);
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

#send-user-wishes:hover {
    background-color: #a7fffa;
    color: black;
    transition: 0.3s ease-in-out;
}

#edit-plan-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-height: min(68vh, 760px);
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(35, 255, 242, 0.34) rgba(255, 255, 255, 0.04);
}

#edit-plan-form::-webkit-scrollbar {
    width: 8px;
}

#edit-plan-form::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

#edit-plan-form::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(35, 255, 242, 0.6) 0%, rgba(186, 143, 255, 0.55) 100%);
    border-radius: 999px;
}

.modal-plan {
    display: none;
    position: fixed;
    inset: 0;
    padding: 28px 16px;
    background:
        radial-gradient(circle at top, rgba(35, 255, 242, 0.08), rgba(4, 8, 15, 0.92) 55%),
        rgba(3, 6, 12, 0.88);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    z-index: 1000;
    animation: fadeIn 0.22s ease-out;
}

.plan-modal-content {
    margin: 4vh auto;
    width: min(calc(100vw - 32px), 720px);
    position: relative;
    background: linear-gradient(180deg, rgba(20, 28, 43, 0.98) 0%, rgba(11, 17, 28, 0.98) 100%);
    border: 1px solid rgba(167, 255, 250, 0.18);
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    z-index: 2;
    min-width: 0;
    max-width: 720px;
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.plan-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(35, 255, 242, 0.16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(186, 143, 255, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.plan-modal-content::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.plan-modal-content h3 {
    position: relative;
    z-index: 1;
    margin: 0 52px 22px 0;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.12;
    color: #f8fbff;
}

.plan-modal-content h3::after {
    content: '';
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--button-color) 0%, rgba(186, 143, 255, 0.95) 100%);
}

#plan-items,
#chapters-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#chapters-container span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--button-color);
    background: rgba(35, 255, 242, 0.08);
    border: 1px solid rgba(167, 255, 250, 0.16);
    border-radius: 999px;
    margin-bottom: 8px;
    align-self: start;
}

.plan-item, .chapter-item {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.plan-item:hover, .chapter-item:hover {
    border-color: rgba(167, 255, 250, 0.16);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.chapter-item {
    flex-direction: column;
    align-items: stretch;
}

.section-item {
    width: 100%;
    gap: 10px;
    display: flex;
    align-items: center;
}

.chapter-header, .sections-container {
    display: flex;
    width: 100%;
    margin-bottom: 0;
}

.chapter-header {
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.sections-container {
    flex-direction: column;
    gap: 10px;
}

.sections-container span {
    font-size: 1.125rem;
}

.plan-item input, .chapter-item input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 1.0625rem;
    font-family: inherit;
    color: white;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.plan-item input::placeholder, .chapter-item input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.chapter-header input {
    border-color: rgba(186, 143, 255, 0.28);
    background: linear-gradient(180deg, rgba(186, 143, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}


.plan-item input:focus, .chapter-item input:focus {
    border-color: rgba(35, 255, 242, 0.72);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(35, 255, 242, 0.12), 0 0 24px rgba(35, 255, 242, 0.14);
}

.remove-item, .remove-chapter, .remove-section {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 98, 128, 0.12);
    color: #ffb5c2;
    font-size: 1.5rem;
    line-height: 1;
    border: 1px solid rgba(255, 143, 163, 0.24);
    border-radius: 14px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#add-plan-item, #add-chapter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 48px;
    background: linear-gradient(91.2deg, #23fff2 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
    color: #041018;
    padding: 0 18px;
    border: 1px solid rgba(167, 255, 250, 0.16);
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 auto;
    margin-top: 6px;
    box-shadow: 0 14px 28px rgba(35, 255, 242, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

#add-plan-item:disabled, #add-chapter:disabled {
    background: linear-gradient(91.2deg, rgba(35, 255, 242, 0.35) 8.77%, rgba(0, 209, 255, 0.35) 54.81%, rgba(186, 143, 255, 0.35) 92.52%);
    color: rgba(4, 16, 24, 0.65);
    box-shadow: none;
    filter: saturate(0.4);
    cursor: not-allowed;
}

.add-section {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: rgba(35, 255, 242, 0.08);
    color: var(--button-color);
    padding: 0 16px;
    border: 1px solid rgba(167, 255, 250, 0.18);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    align-self: start;
    margin-top: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.modal-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-actions button {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(167, 255, 250, 0.18);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 0 18px;
    font-size: 1.0625rem;
    color: #eff6ff;
    outline: none;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.modal-actions button[type="submit"] {
    background: linear-gradient(91.2deg, #23fff2 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
    color: #041018;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 18px 30px rgba(35, 255, 242, 0.18);
}

.modal-actions .cancel {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.modal-actions button[type="submit"]:hover,
#add-plan-item:hover,
#add-chapter:hover {
    box-shadow: 0 20px 34px rgba(35, 255, 242, 0.24);
    filter: brightness(1.04);
}

.modal-actions .cancel:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(167, 255, 250, 0.22);
    color: white;
}

.add-section:hover {
    background: rgba(35, 255, 242, 0.14);
    border-color: rgba(167, 255, 250, 0.3);
    transform: translateY(-1px);
}

.remove-item:hover, .remove-chapter:hover, .remove-section:hover {
    background: linear-gradient(135deg, rgba(255, 126, 153, 0.22) 0%, rgba(255, 104, 138, 0.28) 100%);
    border-color: rgba(255, 154, 173, 0.44);
    color: #ffe2e7;
    transform: translateY(-1px);
}

.close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.close:hover,
.close:focus {
    color: #041018;
    background: linear-gradient(135deg, var(--button-color) 0%, #b9fffb 100%);
    border-color: transparent;
    transform: rotate(90deg);
    text-decoration: none;
    cursor: pointer;
}

.biblio-list li div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--base-border-color);
}

.external-link {
    display: inline-block;
    width: 35px;
    height: 35px;
}

.external-link img {
    width: 35px;
    height: 35px;
}

.generation-offer-container {
    border: 2px solid var(--base-border-color);
    background-color: var(--second-color);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
}

.generation-offer-container h2, .generation-offer-container-mobile h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
}

.generation-offer-container p {
    margin: 5px auto 20px;
}

.create-button {
    text-decoration: none;
    text-align: center;
    color: black;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: var(--button-color);
    padding: 12px 25px;
    border-radius: 12px;
    display: block;
    width: 100%;
}

.create-button:hover {
    background-color: #a7fffa;
}

.demo {
    border: none;
    padding-left: 0;
    padding-right: 0;
    margin-top: 20px;
    border-top: 2px solid var(--base-border-color);
}

.table-chapter-container {
    overflow-x: auto;
}

.research-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Georgia', serif;
    color: #f5f5f5;
    background-color: #0d0d0d;
    border: 1px solid #333;
    font-size: 1.0625rem;
}

.research-table caption {
    font-size: 1.0625rem;
    font-style: italic;
    color: #a0d2eb;
    padding: 0.8rem;
    text-align: center;
}

.research-table th {
    background-color: #1a1a1a;
    color: #c5e1a5;
    padding: 0.9rem;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #333;
}

.research-table td {
    padding: 0.9rem;
    border-bottom: 1px dashed #2a2a2a;
}

.research-table tbody tr:nth-child(even) {
    background-color: rgba(30, 30, 30, 0.4);
}

.speech-loader {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px solid var(--button-color);
    border-radius: 12px;
    animation: fadeIn 0.3s ease-in-out;
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: white;
    font-size: 1.0625rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.humanize-text-offer {
    margin: 25px 0 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(35, 255, 242, 0.12), rgba(186, 143, 255, 0.12));
    border: 2px solid rgba(35, 255, 242, 0.45);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.humanize-text-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.humanize-text-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(35, 255, 242, 0.15);
    color: var(--button-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.humanize-text-offer h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
}

.humanize-text-offer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.0625rem;
    line-height: 1.4;
}

#humanize-text-button {
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    background-color: var(--button-color);
    color: black;
    font-size: 1.125rem;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.humanize-button-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.25);
    border-top-color: black;
    border-radius: 50%;
    animation: humanize-spinner-rotate 0.8s linear infinite;
}

#humanize-text-button.is-loading .humanize-button-spinner {
    display: inline-block;
}

#humanize-text-button.is-loading {
    cursor: wait;
    opacity: 0.85;
}

@keyframes humanize-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

#humanize-text-button:hover {
    background-color: #a7fffa;
    transform: translateY(-1px);
}

#humanize-text-button:disabled {
    cursor: not-allowed;
    background-color: var(--base-border-color);
    color: rgba(255, 255, 255, 0.6);
    transform: none;
}

#humanize-text-button.is-success {
    background: linear-gradient(135deg, #23fff2, #2dffb5, #ba8fff);
    color: black;
    box-shadow: 0 0 18px rgba(35, 255, 242, 0.7);
    animation: humanize-success-pulse 1.4s ease-in-out infinite;
}

#humanize-text-button.is-success:hover {
    background: linear-gradient(135deg, #a7fffa, #2dffb5, #d7c0ff);
    transform: translateY(-2px);
}

#humanize-text-button.is-success .humanize-button-spinner {
    display: none;
}

@keyframes humanize-success-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(35, 255, 242, 0.65);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(35, 255, 242, 0);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(35, 255, 242, 0);
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes load {
    0% {
        left: 0;
        height: 43px;
        width: 15px;
        transform: translateX(0)
    }
    50% {
        height: 10px;
        width: 40px
    }
    100% {
        left: 100%;
        height: 43px;
        width: 15px;
        transform: translateX(-100%)
    }
}

@media screen and (max-width: 1023px) {
    .work-info-container {
        width: 90%;
    }
    .aside-container-demo, .aside-container {
        width: 90%;
        max-width: none;
        margin-top: 15px;
    }
}

@media screen and (max-width: 768px) {
    .work-info-container {
        width: 95%;
        padding: 12px;
    }
    .work-info-container h1 {
        font-size: 1.5rem;
    }
    .work-info-container h2 {
        font-size: 1.25rem;
    }
    .content-wrapper {
        font-size: 1.125rem;
    }
    .partition {
        padding-left: 5px;
        font-size: 1.1875rem;
    }
    .aside-container-demo, .aside-container {
        width: 95%;
    }
    .research-table {
        font-size: 1rem;
    }
    .payment-info {
        padding: 18px;
    }

    .payment-info h2 {
        font-size: 1.375rem;
    }

    #edit-work-button {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 22px;
    }

    .edit-work-button__subtitle {
        max-width: none;
    }

    .edit-work-button__icon {
        width: 52px;
        height: 52px;
    }

    #myModal {
        padding: 26px 18px 20px;
        border-radius: 20px;
    }

    #myModal > p {
        font-size: 1.375rem;
        margin-right: 44px;
    }

    .star-rating {
        gap: 8px;
        padding: 10px;
    }

    .star-rating span,
    .star-rating .star {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }

    .humanize-text-offer {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .rating-container.colorized {
        padding: 20px 18px;
    }

    .rating-container.colorized h3 {
        font-size: 1.375rem;
    }

    .span-colorized {
        max-width: none;
        font-size: 1rem;
    }

    #humanize-text-button {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .work-info-container .work-type {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .plan-modal-content {
        width: 100%;
        padding: 22px 16px 18px;
        border-radius: 20px;
    }
    .plan-modal-content h3 {
        margin-right: 44px;
        margin-bottom: 18px;
        font-size: 1.375rem;
    }
    .plan-item,
    .section-item,
    .chapter-header,
    .modal-actions {
        flex-direction: column;
    }
    .plan-item,
    .chapter-item {
        padding: 12px;
        border-radius: 16px;
    }
    .plan-item input, .chapter-item input {
        font-size: 1rem;
        min-height: 46px;
    }
    .remove-item, .remove-chapter, .remove-section,
    .add-section,
    #add-plan-item,
    #add-chapter,
    .modal-actions button {
        width: 100%;
    }
    .remove-item, .remove-chapter, .remove-section {
        height: 42px;
        font-size: 1.25rem;
    }
    .content-table ul {
        font-size: 1.125rem;
    }
    .work-info-container h1 {
        font-size: 1.25rem;
    }
    .payment-info h2 {
        font-size: 1.25rem;
    }

    .export-buttons button {
        flex-basis: 100%;
        min-height: 56px;
        font-size: 1rem;
    }

    .rating-container.colorized h3 {
        font-size: 1.25rem;
    }

    #rating-open {
        font-size: 1rem;
    }
    .work-info-container h2 {
        font-size: 1.125rem;
    }
    .warning-block {
        font-size: 1.125rem;
        padding: 10px;
    }
    .biblio-list li {
        font-size: 1.0625rem;
    }
    .tasks-promo-minimal {
        padding: 15px;
    }
    .feature span {
        font-size: 1rem;
    }
    .minimal-button {
        padding: 10px;
    }
    .content-wrapper {
        font-size: 1rem;
    }
    .research-table td {
        padding: 10px;
    }
    .research-table th {
        padding: 10px;
    }
    #edit-plan-with-ai-button, #edit-plan-button {
        font-size: 1rem;
    }
    #edit-work-button {
        padding: 18px;
        border-radius: 14px;
    }
    #myModal {
        width: min(calc(100vw - 20px), 470px);
        padding: 24px 16px 18px;
        border-radius: 18px;
    }
    .close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    #myModal > p {
        font-size: 1.25rem;
        margin-right: 38px;
        margin-bottom: 16px;
    }
    #review-form {
        row-gap: 10px;
    }
    #review-form textarea {
        height: 148px;
        padding: 14px 15px;
        font-size: 1rem;
        border-radius: 16px;
    }
    .star-rating {
        gap: 6px;
        padding: 8px;
        border-radius: 16px;
    }
    .star-rating span,
    .star-rating .star {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
        border-radius: 12px;
    }
    #review-form button {
        min-height: 52px;
        font-size: 1rem;
        border-radius: 14px;
    }
    .edit-work-button__title {
        font-size: 1.3125rem;
    }
    .edit-work-button__subtitle {
        font-size: 1rem;
    }
    .edit-work-button__icon {
        width: 48px;
        height: 48px;
        font-size: 1.3125rem;
        border-radius: 14px;
    }
    .humanize-text-offer h3 {
        font-size: 1.125rem;
    }
    .humanize-text-offer p {
        font-size: 1rem;
    }

    #humanize-text-button {
        font-size: 1rem;
        padding: 12px 18px;
    }
}
