.theme-generator-container {
    width: 50%;
    min-width: 500px;
    border: 2px solid var(--base-border-color);
    border-radius: 12px;
    padding: 15px;
    background-color: var(--second-color);
    margin: 25px auto;
    color: var(--text-color);
}

.theme-generator-container h1 {
    text-align: center;
    margin-top: 10px;
    font-size: 1.75rem;
    color: white;
}

#theme-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

#theme-form div {
    display: flex;
    flex-direction: column;
    width: 90%;
    row-gap: 7px;
}

#theme-form label {
    font-size: 1.125rem;
}

#theme-form input, #theme-form select {
    height: 50px;
    font-size: 1.125rem;
    padding: 0 10px;
    border: 2px solid var(--second-border-color);
    border-radius: 8px;
    background-color: var(--second-color);
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}

#theme-form input:hover, #theme-form select:hover {
    border-color: var(--button-color);
    box-shadow: 0 0 12px 0 var(--button-color);
}

#theme-form input:focus, #theme-form select:focus {
    outline: none;
}

#theme-form select option {
    font-size: 1.125rem;
}

#send-request-theme {
    width: 90%;
    max-width: 240px;
    height: 50px;
    border-radius: 8px;
    border: none;
    background-color: var(--button-color);
    box-shadow: 0 0 12px 0 var(--button-color);
    color: black;
    font-size: 1.125rem;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s ease-in-out;
}

#send-request-theme:hover {
    background-color: #a7fffa;
}

#send-request-theme:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.generations-left-container {
    display: flex;
    justify-content: end;
    align-items: center;
    font-size: 1.125rem;
    column-gap: 8px;
}

.generations-left-container p {
    margin: 0;
}

.generations-left-container img {
    width: 27px;
}

.link-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row!important;
    justify-content: center;
    width: 100%;
    column-gap: 7px;
    margin-top: 5px;
}

.theme-catalog-link {
    width: 90%;
    max-width: 220px;
    height: 56px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #9573CC;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 11px 12px;
    transition: 0.3s ease-in-out;
}

.theme-catalog-link:hover {
    background-color: #9573CC;
}

.floating-generate-btn {
    max-width: 220px;
    height: 56px;
    width: 90%;
    padding: 15px 25px;
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.5);
}

.user-themes-container {
    width: 100%;
    margin: 0 auto 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    font-size: 1.1875rem;
}

.user-themes-container h2 {
    text-align: center;
    font-size: calc(1.125rem + 1vw);
    width: 100%;
    color: white;
    margin-bottom: 0;
}

.theme-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30%;
    border: 2px solid var(--base-border-color);
    background-color: var(--second-color);
    border-radius: 12px;
    min-width: 300px;
    padding: 15px;
    position: relative;
    color: var(--text-color);
}

.theme-container::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 30px;
    height: 30px;
    background-color: var(--button-color);
    border-top-right-radius: 12px;
    border-left: 12px solid transparent;
    border-bottom: 12px solid transparent;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.theme-name {
    margin: 0;
    align-self: start;
    font-weight: bold;
    color: white;
    font-size: 1.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
}

.theme-list {
    /*display: -webkit-box;*/
    /*-webkit-line-clamp: 8;*/
    /*-webkit-box-orient: vertical;*/
    /*overflow: hidden;*/
    margin-top: 50px;
    font-size: 1.0625rem;
    line-height: 1.3;
    padding: 0;
    list-style: none;
}

.theme-list li {
    cursor: pointer;
    border-bottom: 1px solid var(--base-border-color);
    padding-top: 6px;
    padding-bottom: 6px;
}

.theme-list li:hover {
    text-decoration: underline;
    color: var(--text-color);
}

.theme-list li a {
    text-decoration: none;
    color: var(--text-color);
}

.order-footer {
    width: 100%;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-self: end;
}

.order-footer p {
    font-size: 1.125rem;
    margin-bottom: 0;
    margin-top: 0;
    color: #bbb8c5;
}

.theme-features-container {
    max-width: 1400px;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 auto 12px;
    color: var(--text-color);
}

.theme-features-container h2 {
    margin-bottom: 0;
    margin-top: 0;
    font-size: calc(1.125rem + 1vw);
    color: white;
    width: 100%;
    text-align: center;
}

.theme-feature {
    padding: 15px;
    border: 2px solid var(--base-border-color);
    border-radius: 12px;
    background-color: var(--second-color);
    width: 40%;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-feature h3 {
    margin: 10px 0 0;
    font-size: 1.375rem;
    color: white;
}

.theme-feature img {
    height: 80px;
    margin-top: 10px;
    aspect-ratio: auto 1 / 1;
}

.theme-feature p {
    font-size: 1.25rem;
    margin-top: 12px;
    line-height: 1.3;
}

.promo-order-container {
    width: 50%;
    min-width: 500px;
    margin: 0 auto;
}

.bonus-invite-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 16px;
    margin: 20px auto;
    width: 90%;
    max-width: 500px;
    color: white;
}

.bonus-icon {
    font-size: 2rem;
}

.bonus-text {
    font-size: 1rem;
    line-height: 1.4;
    flex: 1;
}

.bonus-cta-btn {
    background-color: #FFD700;
    color: #000;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.2s;
}

.bonus-cta-btn:hover {
    background-color: #FFC400;
    transform: scale(1.03);
}

.for-tooltip {
    position: relative;
}

.tooltip-text {
    animation: moving 1.5s ease-out infinite;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: #fff;
    color: #000;
    font-size: 1rem!important;
    border-radius: 4px;
    /*white-space: nowrap;*/
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 1;
    visibility: visible;
    cursor: initial;
}

@keyframes moving {
    0% { transform: translateY(-2px); }
    50% { transform: translateY(0px); }
    100% { transform: translateY(2px); }
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.steps-guide-container {
    max-width: 1400px;
    padding: 0 15px;
    margin: 40px auto;
    color: var(--text-color);
}

.steps-guide-container h2 {
    text-align: center;
    font-size: calc(1.125rem + 1vw);
    color: white;
    margin-bottom: 20px;
    width: 100%;
}

.steps-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 30%;
    min-width: 280px;
    padding: 25px 20px;
    background-color: var(--second-color);
    border: 2px solid var(--base-border-color);
    border-radius: 12px;
    box-sizing: border-box;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--button-color);
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 0 12px 0 var(--button-color);
}

.step-card h3 {
    font-size: 1.375rem;
    color: white;
    margin: 0 0 12px;
}

.step-card p {
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0;
    color: var(--text-color);
}

.faq-container {
    width: 85%;
    margin: 30px auto 0;
}

.faq-container h2 {
    text-align: center;
    font-size: calc(1.125rem + 1vw);
    color: white;
    margin-bottom: 20px;
    width: 100%;
}

details {
	margin-bottom: 20px;
	background-color: var(--second-color);
    color: white;
    font-size: 1.25rem;
    border: 1px solid var(--base-border-color);
	border-radius: 15px;
	padding: 10px;
    transition: height 1s ease;
}

details[open]>p {
    animation-name: slideDown;
    animation-duration: 200ms;
    animation-timing-function: ease-in;
    overflow: hidden;
}

summary {
	cursor: pointer;
    padding: 10px;
}

summary::marker {
	content: none;
}

details p {
	padding-left: 15px;
    line-height: 1.3;
}

details p a {
    color: var(--button-color);
    text-decoration: none;
    border-bottom: 1px solid var(--button-color);
}

details[open] summary {
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
	padding-bottom: 10px;
    position: relative;
}

details[open] summary:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(91.2deg, #2dffb5 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
}

/* Адаптивность */
@media (max-width: 900px) {
    .step-card {
        width: 45%;
    }
}

@media (max-width: 550px) {
    .theme-generator-container {
        width: 97%;
        min-width: 280px;
        padding: 10px;
    }
    .theme-generator-container h1 {
        font-size: 1.375rem;
    }
    .theme-feature {
        min-width: 310px;
    }
    .theme-feature h3 {
        font-size: 1.25rem;
    }
    .theme-feature p {
        font-size: 1.0625rem;
    }
    .bonus-invite-card {
        width: 97%;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 10px;
        max-width: 350px;
    }
    .bonus-text {
        min-width: 230px;
        max-width: 300px;
    }
    .bonus-cta-btn {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }

    #theme-form input, #theme-form select, #theme-form label {
        height: 45px;
        font-size: 1rem;
    }
    #send-request-theme {
        height: 45px;
        max-width: 220px;
    }
    .link-wrapper a {
        max-width: 220px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }
    .floating-generate-btn, .theme-catalog-link {
        width: 100%;
    }
    .theme-catalog-link {
        margin-top: 10px;
    }
    .user-themes-container {
        margin-top: 0;
    }
    .user-themes-container h2 {
        font-size: 1.375rem;
    }
    .theme-container {
        padding: 10px;
    }
    .theme-name {
        font-size: 1.0625rem;
    }
    .theme-list {
        font-size: 1rem;
    }
    .steps-guide-container h2 {
        font-size: 1.375rem;
        margin-bottom: 20px;
    }
    .step-card {
        width: 100%;
        min-width: 280px;
        padding: 20px 15px;
    }
    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.375rem;
    }
    .step-card h3 {
        font-size: 1.25rem;
    }
    .step-card p {
        font-size: 1rem;
    }
    .faq-container {
        width: 93%;
    }
    .faq-container details {
        font-size: 1.0625rem;
    }
}