/* Components: Buttons, Modals, Forms, Badges, Tabs */


.download-info-link {
    color: #6468FB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.download-info-link:hover {
    color: #7F82FF;
    border-bottom-color: #7F82FF;
}

/* Градиентная рамка - переиспользуемый класс */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;

    background: linear-gradient(
        171deg,
        #7D7D7D 0%,
        #212121 47%,
        #212121 75%,
        #343434 80%
    );

    /* вырезаем центр, чтобы осталась только рамка */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    z-index: -1;
    pointer-events: none;
}

/* Градиентная рамка фиолетовая - переиспользуемый класс */
.gradient-border-purple {
    position: relative;
}

.gradient-border-purple::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;

    background: linear-gradient(
        170deg,
        #B5B7FF 0%,
        #46469A 47%,
        #2C2D68 69%,
        #7F82FF 80%
    );

    /* вырезаем центр, чтобы осталась только рамка */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    z-index: 1;
    pointer-events: none;
}


.shadow-type-0 {
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
}

.shadow-type-button {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Градиентная рамка для карточек - переиспользуемый класс */
.gradient-border-feature {
    position: relative;
}

.gradient-border-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;

    background: linear-gradient(
        150deg,
        #7D7D7D 0%,
        #212121 47%,
        #212121 60%,
        #565656 80%
    );

    /* вырезаем центр, чтобы осталась только рамка */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    z-index: -1;
    pointer-events: none;
}

/* squircle поддержка для gradient-border-feature */
@supports (corner-shape: squircle) {
    .gradient-border-feature::before {
        corner-shape: squircle;  
        border-radius: 40px;
    }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 4px;
    background: rgba(21, 21, 21, 0.8);
    border-radius: 20px;
    padding: 6px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 
        inset 4px 5px 5.2px 0 rgba(0, 0, 0, 0.25);
    width: 140px;
    height: 55px;
    align-items: center;
    justify-content: center;
}

.lang-indicator {
    position: absolute;
    width: 60px;
    height: 40px;
    background: rgba(55, 55, 55, 0.9);
    border-radius: 14px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
    left: 6px;
    top: 8px;
    /* По умолчанию на RU */
    transform: translateX(0);
}

/* Десктоп: когда активен EN - сдвигаем вправо */
.lang-indicator.lang-en {
    transform: translateX(68px);
}

.lang-indicator::before {
    opacity: 0;
    transition: opacity 0.2s ease 0.2s;
}

.lang-indicator.gradient-border::before {
    z-index: -1;
    border-radius: 14px;
    opacity: 1;
}

.lang-btn {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-radius: 14px;
    transition: color 0.3s ease, font-weight 0.3s ease;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    z-index: 1;
    position: relative;
    line-height: 1;
    text-align: center;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.6);
}

.lang-btn.active {
    color: white;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.lang-btn.gradient-border::before {
    z-index: 0;
    border-radius: 14px;
}

/* Language Switcher Mobile Adaptation */
@media (max-width: 1023px) {
    .language-switcher {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 16px;
        flex-direction: column;
        width: 48px;
        height: 120px;
        padding: 4px;
        border-radius: 16px;
        gap: 4px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .language-switcher.mobile-collapsed {
        width: 44px;
        height: 44px;
        padding: 4px;
        border-radius: 14px;
        gap: 0;
    }

    .language-switcher.mobile-collapsed .lang-indicator {
        display: none;
    }

    .language-switcher.mobile-collapsed .lang-btn {
        display: none;
    }

    .language-switcher.mobile-collapsed .lang-btn.active {
        display: flex;
        width: 100%;
        height: 100%;
        font-size: 12px;
        border-radius: 10px;
    }
    
    .lang-indicator {
        width: 40px;
        height: 54px;
        border-radius: 12px;
        left: 4px;
        top: 4px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        /* На мобильных по умолчанию на RU (сверху) */
        transform: translateY(0);
    }
    
    /* Мобильная версия: когда активен EN - сдвигаем вниз */
    .lang-indicator.lang-en {
        transform: translateY(50px);
    }
    
    .lang-indicator.gradient-border::before {
        border-radius: 12px;
    }
    
    .lang-btn {
        width: 40px;
        height: 54px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    .lang-btn.gradient-border::before {
        border-radius: 12px;
    }
}

@media (max-width: 479px) {
    .language-switcher {
        width: 44px;
        height: 110px;
        bottom: 100px;
        right: 12px;
    }
    
    .lang-indicator {
        width: 36px;
        height: 50px;
        top: 4px;
        left: 4px;
    }
    
    .lang-btn {
        width: 36px;
        height: 50px;
        font-size: 12px;
    }
}

/* Section Navigation Dots */
.section-navigation {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.nav-dot.active {
    border-color: white;
    background: white;
}

.nav-dot.active::before {
    background: white;
    width: 6px;
    height: 6px;
}

.nav-dot-tooltip {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(21, 21, 21, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-dot-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(21, 21, 21, 0.95);
}

.nav-dot:hover .nav-dot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-4px);
}

/* Hide section navigation on mobile */
@media (max-width: 1023px) {
    .section-navigation {
        display: none !important;
    }
}

/* Footer */
.footer {
    width: 100%;
    padding: 40px;
    text-align: center;
}

.footer-text {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: rgba(186, 186, 186, 0.6);
    margin: 0;
}

/* Buttons */
.btn {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(5px);
    text-decoration: none;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #6468FB;
    color: white;
}

.btn-primary:hover {
    background: #5559E8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(38, 38, 38, 0.8);
    color: white;
}

.btn-secondary:hover {
    background: rgba(38, 38, 38, 1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-login {
    background: rgba(186, 186, 186, 0.04);
    color: white;
}

.btn-login:hover {
    background: rgba(186, 186, 186, 0.2);
    transform: translateY(-2px);
}

.btn-download {
    background: #6468FB;
    color: white;
    position: relative;
}

.btn-download:hover {
    background: #5559E8;
    transform: translateY(-2px);
}

.toggle-btn {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 32px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.toggle-btn.active {
    background: rgba(55, 55, 55, 1);
    border-radius: 13px;
    color: white;

    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.toggle-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}
.btn-pricing {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
}
.btn-pricing-primary {
    background: linear-gradient(90deg, #6468FB 0%, #7F82FF 100%);
    color: white;
}
.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 104, 251, 0.4);
}
.btn-group {
    background: #6468FB;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    width: 100%;
    justify-content: center;
    max-width: 300px;
}
.btn-group:hover {
    background: #5559E8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 104, 251, 0.4);
}
.btn-group i {
    font-size: 20px;
}
.btn-contact {
    background: #6468FB;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
}
.btn-contact:hover {
    background: #5559E8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 104, 251, 0.4);
}
.btn-contact i {
    font-size: 20px;
}
.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(100, 104, 251, 0.2);
    border: 1px solid rgba(100, 104, 251, 0.4);
    color: #6468FB;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}
.copy-code-btn:hover {
    background: rgba(100, 104, 251, 0.3);
    border-color: rgba(100, 104, 251, 0.6);
    transform: translateY(-2px);
}
.copy-code-btn.copied {
    background: rgba(90, 247, 90, 0.2);
    border-color: rgba(90, 247, 90, 0.4);
    color: #5AF75A;
}
.copy-code-btn i {
    font-size: 14px;
}
.copy-code-btn span {
    font-size: 14px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-label {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
}
.form-input {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    padding: 14px 20px;
    background: rgba(38, 38, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}
.form-input::placeholder {
    color: rgba(186, 186, 186, 0.5);
}
.form-input:focus {
    outline: none;
    border-color: #6468FB;
    background: rgba(38, 38, 38, 1);
    box-shadow: 0 0 0 3px rgba(100, 104, 251, 0.1);
}
.form-input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 107, 107, 0.5);
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: rgba(186, 186, 186, 1);
}
.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6468FB;
}
.checkbox-text {
    line-height: 1.4;
}
.btn-auth-primary {
    width: 100%;
    background: #6468FB;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    margin-top: 8px;
}
.btn-auth-primary:hover {
    background: #5559E8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 104, 251, 0.4);
}
.btn-social {
    width: 100%;
    background: rgba(38, 38, 38, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
}
.btn-social:hover {
    background: rgba(38, 38, 38, 1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.btn-google-auth {
    width: 100%;
    background: white;
    color: #3c4043;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-google-auth:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.btn-social i {
    font-size: 18px;
}
.form-error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: #FF6B6B;
    text-align: center;
}
.form-success-message {
    background: rgba(90, 247, 90, 0.1);
    border: 1px solid rgba(90, 247, 90, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: #5AF75A;
    text-align: center;
}
.form-hint {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 12px;
    color: rgba(186, 186, 186, 0.6);
    margin: 4px 0 0 0;
}
.form-section {
    margin-bottom: 32px;
    background: rgba(38, 38, 38, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.form-section:last-of-type {
    margin-bottom: 0;
}
.form-section:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(38, 38, 38, 0.4);
}
.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(100, 104, 251, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.form-section-header i {
    font-size: 18px;
    color: #6468FB;
    width: 20px;
    text-align: center;
}
.form-section-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    letter-spacing: 0.3px;
}
.form-section-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-section-content .form-group {
    margin-bottom: 0;
}
.form-section-content .form-label i {
    margin-right: 8px;
    color: rgba(100, 104, 251, 0.7);
    font-size: 14px;
}
.btn-resend {
    background: rgba(38, 38, 38, 0.8);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
}
.btn-resend:hover:not(:disabled) {
    background: rgba(38, 38, 38, 1);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-profile-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px 20px;
    color: white;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}
.btn-profile-action:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(100, 104, 251, 0.3);
}
.btn-profile-action i:first-child {
    font-size: 18px;
    color: #6468FB;
    width: 20px;
}
.btn-profile-action i:last-child {
    margin-left: auto;
    font-size: 12px;
    color: rgba(186, 186, 186, 0.6);
}
.btn-profile-action,
a.btn-profile-action {
    text-decoration: none;
    border: none;
}
.btn-logout {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
}
.btn-logout:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}
.btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}
.btn-profile i {
    font-size: 16px;
}
.btn-copy-id {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-copy-id:hover {
    background: rgba(100, 104, 251, 0.1);
    border-color: rgba(100, 104, 251, 0.3);
    color: #6468FB;
}
.btn-copy-id.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}
.btn-copy-id i {
    font-size: 12px;
}
.btn-edit-info {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    color: rgba(186, 186, 186, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-edit-info:hover {
    background: rgba(100, 104, 251, 0.1);
    border-color: rgba(100, 104, 251, 0.3);
    color: #6468FB;
}
.btn-upgrade-subscription {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: #fbbf24;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-upgrade-subscription:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.2));
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}
.btn-upgrade-subscription i {
    font-size: 16px;
}
.btn-upgrade-subscription-header {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 12px 24px;
    color: #fbbf24;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
    margin-top: 20px;
}
.btn-upgrade-subscription-header:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.2));
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}
.btn-upgrade-subscription-header i:first-child {
    font-size: 18px;
}
.btn-upgrade-subscription-header i:last-child {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.btn-upgrade-subscription-header:hover i:last-child {
    transform: translateX(4px);
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    /* Анимация убрана для производительности */
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    /* Анимация убрана для производительности */
}
.modal-content {
    background: rgba(21, 21, 21, 0.95);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* Анимация убрана для производительности */
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
    margin-right: 10px;
}
.modal-close {
    background: transparent;
    border: none;
    color: rgba(186, 186, 186, 0.6);
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}
.modal-body {
    padding: 32px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: rgba(38, 38, 38, 0.3);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(100, 104, 251, 0.5);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 104, 251, 0.7);
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}
.modal-actions .btn {
    min-width: 120px;
}
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-footer .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
}
.modal-footer .btn-secondary {
    background: rgba(38, 38, 38, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-footer .btn-secondary:hover {
    background: rgba(38, 38, 38, 1);
    border-color: rgba(255, 255, 255, 0.2);
}
.modal-footer .btn-primary {
    background: #6468FB;
    color: white;
}
.modal-footer .btn-primary:hover {
    background: #5559E8;
    transform: translateY(-2px);
}
.checkbox-label-large {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.checkbox-label-large input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6468FB;
    margin-top: 2px;
    flex-shrink: 0;
}
.checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.checkbox-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
}
.checkbox-description {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: rgba(186, 186, 186, 0.8);
    line-height: 1.4;
}
.btn-copy {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-copy:hover {
    background: rgba(100, 104, 251, 0.1);
    border-color: rgba(100, 104, 251, 0.3);
    color: #6468FB;
}
.btn-copy.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}
.btn-copy i {
    font-size: 12px;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.form-hint {
    display: block;
    margin-top: 4px;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-action {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}
.btn-action.btn-edit-file:hover {
    color: #4a9eff;
}
.btn-action.btn-delete-file:hover {
    color: #ff6b6b;
}
.btn-action {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}
.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}
.btn-action.btn-edit-file:hover {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}
.btn-action.btn-rename-file:hover {
    color: #6468FB;
    background: rgba(100, 104, 251, 0.1);
}
.btn-action.btn-delete-file:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}
.btn-danger {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}
.btn-danger:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 34px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #6468FB;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}
.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #6468FB;
}


.btn-icon {
    position: relative;
    left: 7px;
    top: 2px;
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) { 
    .footer {
        margin-bottom: 150px;
    }
}