/* theme/css/privileges.css */
/* Стили для страницы привилегий */

body.privileges-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.card-header {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.card-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-header p {
    margin: 15px 0 0;
    opacity: 0.9;
    font-size: 18px;
    font-weight: 300;
}

.card-body {
    padding: 40px;
}

/* Блок инструкций */
.instructions-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid #2196f3;
    position: relative;
    overflow: hidden;
}

.instructions-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #2196f3;
}

.instructions-box h3 {
    color: #1565c0;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-box h3 i {
    font-size: 24px;
}

.instructions-box ol {
    margin: 0;
    padding-left: 25px;
    font-size: 16px;
    line-height: 1.7;
}

.instructions-box li {
    margin: 12px 0;
    padding-left: 10px;
    position: relative;
}

.instructions-box li strong {
    color: #0d47a1;
}

.instructions-box code {
    background: rgba(33, 150, 243, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 15px;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* Контейнеры товаров */
.privilege-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.privilege-item {
    border: 3px solid #2196f3;
    border-radius: 12px;
    padding: 30px;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.privilege-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(33, 150, 243, 0.15);
    border-color: #1976d2;
}

.privilege-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #2196f3;
}

.privilege-item.popular {
    border-color: #ff9800;
    border-width: 3px;
}

.privilege-item.popular:before {
    background: #ff9800;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #ff9800;
    color: white;
    padding: 8px 40px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.privilege-info {
    flex: 1;
    min-width: 300px;
}

.privilege-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privilege-title i {
    color: #2196f3;
    font-size: 24px;
}

.privilege-price {
    font-size: 42px;
    color: #4caf50;
    font-weight: bold;
    margin: 20px 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.privilege-price sub {
    font-size: 18px;
    color: #777;
    font-weight: normal;
}

.privilege-features {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
}

.privilege-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.privilege-features li:last-child {
    border-bottom: none;
}

.privilege-features li:before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
}

.privilege-features li strong {
    color: #333;
    font-weight: 600;
}

.privilege-action {
    min-width: 250px;
    text-align: center;
    padding: 20px;
    background: #f8fdff;
    border-radius: 8px;
    border: 2px solid #e3f2fd;
}

.buy-btn {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.buy-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.buy-btn:active {
    transform: translateY(0);
}

.buy-btn i {
    font-size: 20px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.3s ease;
    border: 3px solid #2196f3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #777;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    background: #f5f5f5;
}

.close-modal:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8fdff 0%, #e3f2fd 100%);
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    color: #1565c0;
    font-size: 26px;
    font-weight: 500;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.form-group label.required:after {
    content: " *";
    color: #f44336;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-control.email-field {
    border-color: #ff9800;
    background: #fff8e1;
}

.form-control.email-field:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.email-notice {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffd54f;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #5d4037;
    font-size: 15px;
    line-height: 1.6;
}

.email-notice i {
    color: #ff9800;
    font-size: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.email-notice strong {
    color: #e65100;
}

.robokassa-info {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #9c27b0;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.robokassa-info i {
    color: #9c27b0;
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.robokassa-info h4 {
    color: #7b1fa2;
    margin: 10px 0;
    font-size: 18px;
}

.robokassa-info p {
    color: #6a1b9a;
    margin: 5px 0;
    font-size: 14px;
}

.submit-btn {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #43a047 0%, #1b5e20 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
    box-shadow: none !important;
}

/* Страница подтверждения */
.confirmation-page {
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    border: 3px solid #4caf50;
    text-align: center;
}

.confirmation-box i {
    color: #4caf50;
    font-size: 60px;
    margin-bottom: 25px;
    display: block;
}

.confirmation-box h2 {
    color: #2e7d32;
    margin: 0 0 20px;
    font-size: 28px;
}

.confirmation-details {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid #e0e0e0;
}

.confirmation-details h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

.detail-value {
    color: #333;
    font-weight: 600;
}

.detail-value.code {
    color: #2196f3;
    font-family: 'Consolas', monospace;
    font-size: 18px;
    letter-spacing: 1px;
}

.alert {
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 5px solid;
    font-size: 16px;
    line-height: 1.6;
}

.alert-success {
    background: linear-gradient(135deg, #dff0d8 0%, #d0e9c6 100%);
    border-color: #4caf50;
    color: #3c763d;
}

.alert-warning {
    background: linear-gradient(135deg, #fcf8e3 0%, #faf2cc 100%);
    border-color: #ff9800;
    color: #8a6d3b;
}

.alert-danger {
    background: linear-gradient(135deg, #f2dede 0%, #ebcccc 100%);
    border-color: #f44336;
    color: #a94442;
}

.alert-info {
    background: linear-gradient(135deg, #d9edf7 0%, #c4e3f3 100%);
    border-color: #2196f3;
    color: #31708f;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .privilege-item {
        flex-direction: column;
        gap: 30px;
    }
    
    .privilege-info {
        min-width: 100%;
    }
    
    .privilege-action {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .card-header {
        padding: 25px 20px;
    }
    
    .card-header h1 {
        font-size: 26px;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .privilege-item {
        padding: 25px;
    }
    
    .privilege-title {
        font-size: 24px;
    }
    
    .privilege-price {
        font-size: 36px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .card-header h1 {
        font-size: 22px;
    }
    
    .card-header p {
        font-size: 16px;
    }
    
    .instructions-box {
        padding: 20px;
    }
    
    .privilege-item {
        padding: 20px;
    }
    
    .buy-btn {
        padding: 16px;
        font-size: 16px;
    }
}