/* Стили для секции проверки лицензии */
.license-check-section {
    margin: 1rem auto 2rem;
    max-width: 800px;
    width: 100%;
}

.license-check-accordion {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.license-header:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2) 0%, transparent 100%);
}

.license-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.license-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.license-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.license-header h3 {
    color: #ffd700;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.license-subtitle {
    color: #ccc;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
}

.license-toggle-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: #000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.license-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.license-toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.license-form-container {
    padding: 0 2rem 2rem;
}

.license-description {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.license-form {
    margin-bottom: 2rem;
}

.license-input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.license-key-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.license-key-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.license-key-input::placeholder {
    color: #888;
    text-transform: none;
    letter-spacing: normal;
}

.license-verify-btn {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: none;
    border-radius: 12px;
    padding: 0 2rem;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.license-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Всплывающее окно результатов */
.license-result-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 25, 0.95);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.popup-content {
    position: relative;
}

.popup-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: rgba(255, 215, 0, 0.9);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.popup-close svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

.license-result-popup .result-success,
.license-result-popup .result-error {
    border-left: none;
    background: transparent;
    padding: 0;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.success-icon, .error-icon {
    font-size: 2rem;
}

.result-header h4 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
}

.certificate-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.certificate-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.certificate-label {
    color: #ffd700;
    font-weight: 600;
    min-width: 100px;
    flex-shrink: 0;
}

.certificate-value {
    color: #fff;
    flex: 1;
    line-height: 1.5;
}

.certificate-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #ffd700;
    margin-top: 1.5rem;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.certificate-warning p {
    margin: 0;
    color: #ccc;
    line-height: 1.5;
}

.error-list {
    color: #fff;
    margin: 1rem 0 0 1rem;
    padding: 0;
}

.error-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Анимации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.license-form-container[aria-hidden="false"] {
    animation: slideDown 0.5s ease forwards;
}

.license-result-popup {
    animation: fadeIn 0.3s ease forwards;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .license-check-section {
        margin: 1rem;
        max-width: none;
    }
    
    .license-check-accordion {
        border-radius: 12px;
    }
    
    .license-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .license-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .license-header h3 {
        font-size: 1.3rem;
    }
    
    .license-subtitle {
        font-size: 0.75rem;
    }
    
    .license-input-group {
        flex-direction: column;
    }
    
    .license-key-input {
        font-size: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .license-verify-btn {
        justify-content: center;
        padding: 1rem;
    }
    
    .certificate-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .certificate-label {
        min-width: auto;
        text-align: center;
    }
    
    .certificate-value {
        text-align: center;
    }
    
    .license-description.desktop-only {
        display: none;
    }
    
    .license-result-popup {
        width: 95%;
        padding: 1.5rem;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-header h4 {
        font-size: 1.3rem;
    }
    
    .popup-close {
        top: -0.5rem;
        right: -0.5rem;
        width: 2rem;
        height: 2rem;
    }
}

/* Анимация для успешной проверки */
@keyframes successPulse {
    0%, 100% { background-color: rgba(0, 255, 0, 0.1); }
    50% { background-color: rgba(0, 255, 0, 0.2); }
}

.result-success {
    animation: successPulse 2s ease;
}

/* Эффект "вау" для ввода */
.license-key-input:focus {
    animation: inputFocus 0.5s ease;
}

@keyframes inputFocus {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Оверлей для всплывающего окна */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}