/* ПОЧАТОК СТИЛЬ ІЗ beta_payments/index.php */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.payment-method {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.payment-method:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.payment-method.selected {
    border-color: #28a745;
    background-color: #e8f5e9;
}

.payment-method-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.payment-method-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.payment-method-currency {
    color: #666;
    font-size: 14px;
}

.payment-method-limits {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.order-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-table {
    width: 100%;
    margin-top: 10px;
}

.summary-table td {
    padding: 8px 0;
}

.summary-table .total td {
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
    font-size: 18px;
}

.download-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    background: #F25440;
    color: #FFF !important;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    background: #E34F3C;
    transform: translateY(-2px);
}

.download-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.price-block {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
}

.price-block .big-price {
    font-size: 25px;
    font-weight: bold;
}

.course_block1 {
    background-color: var(--bg);
    padding: 20px 25px;
    margin: 0 auto 20px auto; /* Рівномірний відступ 20px знизу */
    border-radius: 25px;
    position: relative;
    border: 1px solid var(--border);
    color: var(--text-color);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

/* Додаємо відступи для заголовка */
.container > center {
    margin-bottom: 20px;
}

.payment-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px; /* Рівномірний відступ між групами форми */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background-color: var(--bg);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #F25440;
}

/* КІНЕЦЬ СТИЛЮ ІЗ beta_payments/index.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/category.php */
.create-category-button-container {
    margin: 20px 0;
    text-align: right;
}

.create-category-button {
    display: inline-block;
    background-color:rgb(51, 26, 194); /* Зелений колір для відмінності від "Створити тему" */
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.create-category-button:hover {
    background-color: #388E3C;
    text-decoration: none;
    color: white;
}
/* Кінець СТИЛЬ ІЗ forum/category.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/create_category.php */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.create-category-form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #d32f2f;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control-file {
    display: block;
    margin-top: 5px;
}

.form-control:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

textarea.form-control {
    resize: vertical;
}

.form-hint {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #4CAF50; /* Зелений колір для узгодження з кнопкою "Создать категорию" */
    color: white;
}

.btn-primary:hover {
    background-color: #388E3C;
}

.btn-secondary {
    background-color: #f1f3f4;
    color: #5f6368;
}

.btn-secondary:hover {
    background-color: #e8eaed;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}
/* КІНЕЦЬ СТИЛЬ ІЗ forum/create_category.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/create_subcategory.php */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.create-subcategory-form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #d32f2f;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control-file {
    display: block;
    margin-top: 5px;
}

.form-control:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

textarea.form-control {
    resize: vertical;
}

.form-hint {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #FF9800; /* Оранжевий колір для узгодження з кнопкою "Создать подкатегорию" */
    color: white;
}

.btn-primary:hover {
    background-color: #F57C00;
}

.btn-secondary {
    background-color: #f1f3f4;
    color: #5f6368;
}

.btn-secondary:hover {
    background-color: #e8eaed;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}
/* КІНЕЦЬ СТИЛЬ ІЗ forum/create_subcategory.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/create_topic.php */

.clipboard-paste-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

.clipboard-paste-area.active {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.clipboard-preview {
    margin-top: 10px;
    max-width: 100%;
    display: none;
}

.clipboard-preview img {
    max-width: 300px;
    max-height: 200px;
    border: 1px solid #ddd;
}



.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.create-topic-form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #d32f2f;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control-file {
    display: block;
    margin-top: 5px;
}

.form-control:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

textarea.form-control {
    resize: vertical;
}

.form-hint {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background-color: #0d47a1;
}

.btn-secondary {
    background-color: #f1f3f4;
    color: #5f6368;
}

.btn-secondary:hover {
    background-color: #e8eaed;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* КІНЕЦЬ СТИЛЬ ІЗ forum/create_topic.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/delete_category.php */
 .delete-confirmation {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin-top: 20px;
    }
    
    .alert-danger {
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .alert-danger ul {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .category-preview {
        background-color: #f8f9fa;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .category-preview h3 {
        margin-top: 0;
        color: #495057;
        font-size: 18px;
    }
    
    .category-info {
        padding: 10px;
        background-color: #fff;
        border: 1px solid #ced4da;
        border-radius: 4px;
    }
    
    .category-info p {
        margin: 10px 0;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        text-decoration: none;
    }
    
    .btn-danger {
        background-color: #dc3545;
        color: white;
    }
    
    .btn-danger:hover {
        background-color: #c82333;
        color: white;
    }
    
    .btn-secondary {
        background-color: #6c757d;
        color: white;
    }
    
    .btn-secondary:hover {
        background-color: #5a6268;
        color: white;
    }


/* КІНЕЦЬ СТИЛЬ ІЗ forum/delete_category.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/delete_comment.php */
.delete-confirmation {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin-top: 20px;
    }
    
    .alert-warning {
        background-color: #fff3cd;
        border: 1px solid #ffeeba;
        color: #856404;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .comment-preview {
        background-color: #f8f9fa;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .comment-preview h3 {
        margin-top: 0;
        color: #495057;
        font-size: 18px;
    }
    
    .comment-text {
        padding: 10px;
        background-color: #fff;
        border: 1px solid #ced4da;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .comment-meta {
        font-size: 14px;
        color: #6c757d;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        text-decoration: none;
    }
    
    .btn-danger {
        background-color: #dc3545;
        color: white;
    }
    
    .btn-danger:hover {
        background-color: #c82333;
        color: white;
    }
    
    .btn-secondary {
        background-color: #6c757d;
        color: white;
    }
    
    .btn-secondary:hover {
        background-color: #5a6268;
        color: white;
    }


/* КІНЕЦЬ СТИЛЬ ІЗ forum/delete_comment.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/delete_subcategory.php */
.delete-confirmation {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin-top: 20px;
    }
    
    .alert-danger {
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .alert-danger ul {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .subcategory-preview {
        background-color: #f8f9fa;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .subcategory-preview h3 {
        margin-top: 0;
        color: #495057;
        font-size: 18px;
    }
    
    .subcategory-info {
        padding: 10px;
        background-color: #fff;
        border: 1px solid #ced4da;
        border-radius: 4px;
    }
    
    .subcategory-info p {
        margin: 10px 0;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        text-decoration: none;
    }
    
    .btn-danger {
        background-color: #dc3545;
        color: white;
    }
    
    .btn-danger:hover {
        background-color: #c82333;
        color: white;
    }
    
    .btn-secondary {
        background-color: #6c757d;
        color: white;
    }
    
    .btn-secondary:hover {
        background-color: #5a6268;
        color: white;
    }

/* КІНЕЦЬ СТИЛЬ ІЗ forum/delete_subcategory.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/edit_comment.php */
.edit-comment-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

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

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.form-hint {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

.required {
    color: #dc3545;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background-color: #0d47a1;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.original-comment-info {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #495057;
}

.original-comment-info p {
    margin: 5px 0;
}

/* КІНЕЦЬ СТИЛЬ ІЗ forum/edit_comment.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/edit_topic.php */
    
.current-image {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.form-hint {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

.required {
    color: #dc3545;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.form-check {
    margin-bottom: 10px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}


.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.create-topic-form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #d32f2f;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control-file {
    display: block;
    margin-top: 5px;
}

.form-control:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

textarea.form-control {
    resize: vertical;
}

.form-hint {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background-color: #0d47a1;
}

.btn-secondary {
    background-color: #f1f3f4;
    color: #5f6368;
}

.btn-secondary:hover {
    background-color: #e8eaed;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* КІНЕЦЬ СТИЛЬ ІЗ forum/edit_topic.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/view_cat.php */

/* Стилі для фільтра за роками */
.year-filter-section {
    margin: 10px 0 15px 0;
    display: flex;
    align-items: center;
}

.year-filter-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    color: #3498db;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 15px;
}

.year-filter-toggle:hover {
    color: #2980b9;
}

.year-filter-container {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 5px;
    z-index: 100;
}

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.year-filter-form select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.year-filter-form button, .reset-filter-btn {
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.filter-btn {
    background-color: #4CAF50;
    color: white;
}

.filter-btn:hover {
    background-color: #45a049;
}

.reset-filter-btn {
    background-color: #f44336;
    color: white;
    margin-left: 5px;
    text-decoration: none;
    display: inline-block;
}

.reset-filter-btn:hover {
    background-color: #d32f2f;
}


/* Стилі для секції фільтра за роками */
.year-filter-section {
    margin: 10px 0 15px 0;
    display: flex;
    align-items: center;
}

.year-filter-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    color: #3498db;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 15px;
}

.year-filter-toggle:hover {
    color: #2980b9;
}

.year-filter-container {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 5px;
    z-index: 100;
}

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.year-filter-form select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.year-filter-form button, .reset-filter-btn {
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.filter-btn {
    background-color: #4CAF50;
    color: white;
}

.filter-btn:hover {
    background-color: #45a049;
}

.reset-filter-btn {
    background-color: #f44336;
    color: white;
    margin-left: 5px;
    text-decoration: none;
    display: inline-block;
}

.reset-filter-btn:hover {
    background-color: #d32f2f;
}

/* Стилі для підсвічування активного фільтра */
.year-filter-toggle.active {
    background-color: #e3f2fd;
    border-color: #2196F3;
    color: #0d47a1;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 576px) {
    .year-filter-container {
        position: static;
        width: 100%;
        min-width: auto;
        margin-top: 10px;
    }
    
    .year-filter-form {
        flex-direction: column;
    }
    
    .year-filter-form select, 
    .year-filter-form button, 
    .reset-filter-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Стиль для зірочки */
.favorite-star {
    transition: transform 0.2s ease;
}

.favorite-star:hover {
    transform: scale(1.2);
}

/* Модальне вікно для повідомлень */
.notification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 20px;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 14px;
    text-align: center;
    width: 250px; /* Фіксована ширина для всіх повідомлень */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Зелений для додавання в обране */
.notification-modal.success {
    background-color: #4CAF50;
}

/* Червоний для видалення з обраного */
.notification-modal.removed {
    background-color: #f44336;
}

/* Червоний для помилок */
.notification-modal.error {
    background-color: #f44336;
}

.notification-modal.show {
    opacity: 1;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .notification-modal {
        width: 220px; /* Трохи менша ширина на мобільних */
    }
}


/* Унікальні стилі для кнопок форуму - мобільна версія */
.forum-action-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  justify-content: center;
}

.forum-btn-new-topic,
.forum-btn-new-subcategory,
.forum-btn-delete-cat {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
}

.forum-btn-new-topic {
  background-color: #4d90fe;
  color: white;
}

.forum-btn-new-subcategory {
  background-color: #ff9800;
  color: white;
}

.forum-btn-delete-cat {
  background-color: #f44336;
  color: white;
}

/* Медіа-запит для мобільних пристроїв */
@media (max-width: 767px) {
  .forum-action-container {
    flex-direction: column;
    width: 100%;
  }
  
  .forum-btn-new-topic,
  .forum-btn-new-subcategory,
  .forum-btn-delete-cat {
    width: 100%;
    margin-bottom: 8px;
    padding: 12px 10px;
    font-size: 16px;
  }
}




/* Стилі для хлібних крихт */
.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Заголовок категорії */
.category-view-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Кнопка створення нової теми */
.new-topic-button {
    margin-bottom: 30px;
}

.new-topic-button a {
    display: inline-block;
    background-color: #1a73e8;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.new-topic-button a:hover {
    background-color: #0d47a1;
}

/* Секція підкатегорій */
.subcategories-section {
    margin-bottom: 30px;
}

.subcategories-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Секція тем */
.topics-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Список тем */
.topics-list {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.topics-header {
    display: flex;
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.topic-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: white;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background-color: #f9f9f9;
}

.topic-title-col {
    flex: 3;
   
}

.topic-title-col a {
    font-weight: 500;
    color: #1a73e8;
    text-decoration: none;
}

.topic-title-col a:hover {
    text-decoration: underline;
}

.topic-author {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.topic-stats-col {
    flex: 1;
    text-align: center;
}

.topic-last-post-col {
    flex: 2;
    font-size: 15px;
}

.topic-last-post-date {
    color: #666;
}

.topic-last-post-author {
    margin-top: 3px;
}

.no-topics {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .topics-header {
        display: none;
    }
    
    .topic-item {
        flex-wrap: wrap;
		color: #666 !important;
    }
    
    .topic-title-col {
        flex: 1 0 100%;
        margin-bottom: 10px;
    }
    
    .topic-stats-col, .topic-last-post-col {
        flex: 1 0 50%;
        font-size: 12px;
    }
}
/* КІНЕЦЬ СТИЛЬ ІЗ forum/view_cat.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/view_subcat.php */

.admin-subcategory-controls {
    text-align: right;
    margin: 10px 0;
}

/* Стилі для фільтра за роками */
.year-filter-section {
    margin: 10px 0 15px 0;
    display: flex;
    align-items: center;
}

.year-filter-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    color: #3498db;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 15px;
}

.year-filter-toggle:hover {
    color: #2980b9;
}

.year-filter-container {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 5px;
    z-index: 100;
}

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.year-filter-form select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.year-filter-form button, .reset-filter-btn {
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.filter-btn {
    background-color: #4CAF50;
    color: white;
}

.filter-btn:hover {
    background-color: #45a049;
}

.reset-filter-btn {
    background-color: #f44336;
    color: white;
    margin-left: 5px;
    text-decoration: none;
    display: inline-block;
}

.reset-filter-btn:hover {
    background-color: #d32f2f;
}


/* Стиль для зірочки */
.favorite-star {
    transition: transform 0.2s ease;
}

.favorite-star:hover {
    transform: scale(1.2);
}

/* Модальне вікно для повідомлень */
.notification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 20px;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 14px;
    text-align: center;
    width: 250px; /* Фіксована ширина для всіх повідомлень */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Зелений для додавання в обране */
.notification-modal.success {
    background-color: #4CAF50;
}

/* Червоний для видалення з обраного */
.notification-modal.removed {
    background-color: #f44336;
}

/* Червоний для помилок */
.notification-modal.error {
    background-color: #f44336;
}

.notification-modal.show {
    opacity: 1;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .notification-modal {
        width: 220px; /* Трохи менша ширина на мобільних */
    }
}


/* Стилі для хлібних крихт */
.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Заголовок категорії */
.category-view-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Кнопка створення нової теми */
.new-topic-button {
    margin-bottom: 30px;
}

.new-topic-button a {
    display: inline-block;
    background-color: #1a73e8;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.new-topic-button a:hover {
    background-color: #0d47a1;
}

/* Секція тем */
.topics-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Список тем */
.topics-list {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.topics-header {
    display: flex;
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.topic-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: white;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background-color: #f9f9f9;
}

.topic-title-col {
    flex: 3;
    padding-right: 15px;
}

.topic-title-col a {
    font-weight: 500;
    color: #1a73e8;
    text-decoration: none;
}

.topic-title-col a:hover {
    text-decoration: underline;
}

.topic-author {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.topic-stats-col {
    flex: 1;
    text-align: center;
}

.topic-last-post-col {
    flex: 2;
    font-size: 13px;
}

.topic-last-post-date {
    color: #666;
}

.topic-last-post-author {
    margin-top: 3px;
}

.no-topics {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .topics-header {
        display: none;
    }
    
    .topic-item {
        flex-wrap: wrap;
    }
    
    .topic-title-col {
        flex: 1 0 100%;
        margin-bottom: 10px;
    }
    
    .topic-stats-col, .topic-last-post-col {
        flex: 1 0 50%;
        font-size: 12px;
    }
}

/* КІНЕЦЬ СТИЛЬ ІЗ forum/view_subcat.php */

/* ПОЧАТОК СТИЛЬ ІЗ forum/view_topic.php */

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* Стилі для кнопок обраного */
.favorite-control {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.favorite-button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

.favorite-button:hover {
    background-color: #e8e8e8;
}

.favorite-button.add-favorite i, 
.favorite-button.remove-favorite i {
    color: #f1c40f;
    margin-right: 5px;
}

/* Стилі для кнопок лайків */
.like-button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.like-button.like-button {
    background-color: #e74c3c;
    color: white;
    border: 1px solid #e74c3c;
}

.like-button.like-button:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.like-button i {
    margin-right: 5px;
}

.like-message {
    color: #8a6d3b;
    margin: 10px 0;
}

.liked-message {
    display: inline-block;
    padding: 8px 15px;
    color: #e74c3c;
    font-weight: 500;
}

.liked-message i {
    margin-right: 5px;
}


/* Стилі для кнопок керування темою */
.topic-control-panel {
    display: flex;
    gap: 10px;
    margin: 10px 0 20px 0;
    flex-wrap: wrap;
}

.like-required {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.like-message {
    color: #8a6d3b;
    margin-bottom: 10px;
}

.like-button.like-to-access {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.like-button.like-to-access:hover {
    background-color: #c0392b;
}

.like-limit-reached {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 10px;
}

.topic-control-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s;
}

.topic-control-button i {
    margin-right: 5px;
}

.edit-button {
    background-color: #4caf50;
}

.edit-button:hover {
    background-color: #388e3c;
    color: white;
    text-decoration: none;
}

.close-button {
    background-color: #f57c00;
}

.close-button:hover {
    background-color: #ef6c00;
    color: white;
    text-decoration: none;
}

.open-button {
    background-color: #00bcd4;
}

.open-button:hover {
    background-color: #0097a7;
    color: white;
    text-decoration: none;
}

.delete-button {
    background-color: #f44336;
}

.delete-button:hover {
    background-color: #d32f2f;
    color: white;
    text-decoration: none;
}

.topic-closed-notice {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: #e65100;
    font-weight: 500;
}

/* Стилі для керування коментарями */
.comment-controls {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    font-size: 12px;
}

.comment-control-link {
    color: #666;
    text-decoration: none;
}

.comment-control-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* Стиль для лічильника коментарів */
.comments-count {
    font-size: 0.8em;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Забезпечуємо, що текст коментарів не буде жирним */
.comment-text {
    line-height: 1.5;
    font-weight: normal;
}


.comments-closed {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #dc3545;
    margin-top: 20px;
    color: #666;
    font-weight: 500;
}


/* Стилі для сторінки перегляду теми */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Хлібні крихти */
.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Заголовок теми */
.topic-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Інформація про тему */
.topic-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.topic-author-info a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.topic-author-info a:hover {
    text-decoration: underline;
}

/* Контент теми */
.topic-content {
    background-color: var(--bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.topic-image {
    margin-bottom: 20px;
    text-align: center;
}

.topic-image img {
    max-width: 100%;
    border-radius: 4px;
}

.topic-text {
    line-height: 1.6;
    margin-bottom: 20px;
}

.topic-detail {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.topic-detail h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.topic-download {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.topic-download h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.download-button {
    display: inline-block;
    background-color: #1a73e8;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #0d47a1;
}

/* Коментарі */
.topic-comments {
    margin-top: 30px;
}

.topic-comments h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.comment-item {
    background-color: var(--bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-author a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.comment-author a:hover {
    text-decoration: underline;
}

.comment-date {
    color: #666;
    font-size: 14px;
}

.comment-text {
    line-height: 1.5;
    font-weight: normal !important; /* !important для пріоритету над іншими стилями */
}
.no-comments {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Форма коментаря */
.comment-form {
    margin-top: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.comment-form h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
}

.submit-comment {
    background-color: #1a73e8;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.submit-comment:hover {
    background-color: #0d47a1;
}

.login-to-comment {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.login-to-comment a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.login-to-comment a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .topic-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
    }
}

.auth-required .auth-message {
    background-color: #f8f9fa;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 10px;
    color: #666;
    font-weight: 500;
}

.auth-required .auth-message a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.auth-required .auth-message a:hover {
    text-decoration: underline;
}

.payment-button {
    display: inline-block;
    background-color: #4caf50; /* Зелений колір для кнопки оплати */
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.payment-button:hover {
    background-color: #388e3c;
}

.payment-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    padding: 10px;
    background-color: #f1f8e9; /* Легкий зелений фон */
    border-radius: 4px;
    border-left: 3px solid #4caf50;
}


/* КІНЕЦЬ СТИЛЬ ІЗ forum/view_topic.php */

/* ПОЧАТОК СТИЛЬ ІЗ modules/collections/collections.php */


.favorite-control {
    pointer-events: auto;
    z-index: 10;
}
.favorite-control a, .favorite-control span {
    display: inline-flex;
    align-items: center;
}    
.collection-form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.collection-form input[type="text"] {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    max-width: 100%;
    box-sizing: border-box;
}
.download-button {
    background: #F25440;
    color: #FFF !important;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.download-button:hover {
    background: #E34F3C;
    transform: translateY(-2px);
}
@media (max-width: 620px) {
    .collection-form {
        flex-direction: column;
        align-items: stretch;
    }
    .collection-form input[type="text"],
    .download-button {
        width: 100%;
    }
    .download-button {
        margin-top: 10px;
    }
}
/* Кінець СТИЛЬ ІЗ modules/collections/collections.php */

/* Початок СТИЛЬ ІЗ modules/collections/del.php */

.layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.main-content { background: var(--bg); border-radius: 16px; padding: 30px; }
.sidebar { background: var(--bg); border-radius: 16px; padding: 20px; }
.sidebar-section h3 { font-size: 18px; margin-bottom: 15px; color: var(--text-color); }
.sidebar-section ul { padding-left: 20px; margin: 0; }
.sidebar-section ul li { margin-bottom: 10px; color: var(--text-color); font-size: 14px; }

/* Стили формы */
.create-topic-form { background: var(--bg); border-radius: 16px; padding: 0; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--border); color: var(--text-color) !important; }
.form-section-title { font-size: 20px; font-weight: 600; color: var(--text-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f25440; display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }
.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: var(--bg_hover); color: #7f8c8d; }
.btn-secondary:hover { background: var(--bg); color: #2d3436; }

/* Адаптив */
@media(max-width: 900px){
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { margin-top: 20px; }
}
/* КІНЕЦЬ СТИЛЬ ІЗ modules/collections/del.php */


/* ПОЧАТОК СТИЛЬ ІЗ modules/collections/edit.php */
.layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.main-content { background: var(--bg); border-radius: 16px; padding: 30px; }
.sidebar { background: var(--bg); border-radius: 16px; padding: 20px; }
.sidebar-section h3 { font-size: 18px; margin-bottom: 15px; color: var(--text-color); }
.sidebar-section ul { padding-left: 20px; margin: 0; }
.sidebar-section ul li { margin-bottom: 10px; color: var(--text-color); font-size: 14px; }

/* Стили формы */
.create-topic-form { background: var(--bg); border-radius: 16px; padding: 0; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--border); color: var(--text-color) !important; }
.form-section-title { font-size: 20px; font-weight: 600; color: var(--text-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f25440; display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }
.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: var(--bg_hover); color: #7f8c8d; }
.btn-secondary:hover { background: var(--bg); color: #2d3436; }

/* Адаптив */
@media(max-width: 900px){
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { margin-top: 20px; }
}
/* КІНЕЦЬ СТИЛЬ ІЗ modules/collections/edit.php */


/* Початок СТИЛЬ ІЗ modules/collections/view.php */
.favorite-control {
    pointer-events: auto;
    z-index: 10;
}
.favorite-control a, .favorite-control span {
    display: inline-flex;
    align-items: center;
}

/* КІНЕЦЬ СТИЛЬ ІЗ modules/collections/view.php */

/* ПОЧАТОК СТИЛЬ ІЗ modules/forum/collections.php */
  .alert {
        padding: 12px 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        font-size: 14px;
    }
    
    .alert.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    
    .alert.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    
    .collections-container {
        max-width: 1000px;
        margin: 20px auto;
        padding: 0 20px;
    }
    
    .create-form {
        background: white;
        padding: 25px;
        border-radius: 15px;
        margin-bottom: 30px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .create-form h2 {
        margin: 0 0 20px 0;
        color: #333;
    }
    
    .form-group {
        display: flex;
        gap: 15px;
        align-items: center;
    }
    
    .form-group input {
        flex: 1;
        padding: 12px;
        border: 2px solid #e1e5e9;
        border-radius: 8px;
        font-size: 14px;
    }
    
    .form-group input:focus {
        outline: none;
        border-color: #007bff;
    }
    
    .form-group button {
        padding: 12px 20px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .form-group button:hover {
        background: #0056b3;
    }
    
    .collections-list h2 {
        margin-bottom: 20px;
        color: #333;
    }
    
    .collections-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .collection-card {
        background: white;
        border: 2px solid #e1e5e9;
        border-radius: 15px;
        padding: 20px;
        transition: all 0.3s ease;
    }
    
    .collection-card.active {
        border-color: #28a745;
        background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    }
    
    .collection-card h3 {
        margin: 0 0 15px 0;
        color: #333;
        font-size: 18px;
    }
    
    .collection-meta {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #666;
        margin-bottom: 20px;
    }
    
    .collection-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.3s ease;
    }
    
    .btn.add {
        background: #28a745;
        color: white;
    }
    
    .btn.add:hover {
        background: #218838;
    }
    
    .btn.remove {
        background: #6c757d;
        color: white;
    }
    
    .btn.remove:hover {
        background: #545b62;
    }
    
    .btn.delete {
        background: #dc3545;
        color: white;
    }
    
    .btn.delete:hover {
        background: #c82333;
    }
    
    .empty-state {
        text-align: center;
        padding: 60px 20px;
        background: white;
        border-radius: 15px;
        color: #666;
        border: 2px dashed #e1e5e9;
    }
    
    .back-link {
        text-align: center;
        margin-top: 30px;
    }
    
    .back-link a {
        color: #007bff;
        text-decoration: none;
        font-size: 16px;
    }
    
    .back-link a:hover {
        text-decoration: underline;
    }
    
    @media (max-width: 768px) {
        .collections-container {
            padding: 0 15px;
        }
        
        .form-group {
            flex-direction: column;
            align-items: stretch;
        }
        
        .collections-grid {
            grid-template-columns: 1fr;
        }
        
        .collection-actions {
            justify-content: space-between;
        }
    }
/* КІНЕЦЬ СТИЛЬ ІЗ modules/forum/collections.php */


/* ПОЧАТОК СТИЛЬ ІЗ modules/forum/create_subcategory.php */

/* Основні стилі форми */
.create-topic-form { background: #fff; border-radius: 16px; padding: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; }
.form-section-title { font-size: 20px; font-weight: 600; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f25440; display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid #e1e8ed; border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: #ecf0f1; color: #7f8c8d; }
.btn-secondary:hover { background: #dfe6e9; color: #2d3436; }

/* Flex layout */
.course-page-layout { display: flex; gap: 20px; align-items: flex-start; }
.course-main-content { flex: 1; }
.course-sidebar { width: 300px; flex-shrink: 0; }

/* Адаптивність для мобільних */
@media (max-width: 920px) {
    .course-page-layout { flex-direction: column; }
    .course-main-content { width: 100%; } /* Займає весь екран */
    .course-sidebar { width: 100%; margin-top: 20px; }
}

/* Сайдбар */
.course-sidebar {
    width: 300px; /* ширина на ПК */
    max-width: 100%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box; /* важливо для адаптивності */
    transition: all 0.3s ease;
}

/* Заголовок сайдбару */
.course-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f25440;
}

/* Списки порад */
.tips-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li, .requirements-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #34495e;
    border-bottom: 1px solid #f0f0f0;
}

.tips-list li:last-child, .requirements-list li:last-child {
    border-bottom: none;
}

.course-sidebar li:hover {
    background: #f9f9f9;
    border-radius: 8px;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Адаптивність */
@media (max-width: 920px) {
    .course-page-layout {
        flex-direction: column;
    }
    .course-main-content, .course-sidebar {
        width: 100%;
    }
    .course-sidebar {
        margin-top: 20px;
        padding: 20px;
        position: relative; /* щоб не з’їжджав вправо */
        left: 0; /* скидання можливого зсуву */
    }
}

/* КІНЕЦЬ СТИЛЬ ІЗ modules/forum/create_subcategory.php */

/* ПОЧАТОК СТИЛЬ ІЗ modules/forum/create_topic.php */

/* Основні стилі форми */
.create-topic-form { background: #fff; border-radius: 16px; padding: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; }
.form-section-title { font-size: 20px; font-weight: 600; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f25440; display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid #e1e8ed; border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: #ecf0f1; color: #7f8c8d; }
.btn-secondary:hover { background: #dfe6e9; color: #2d3436; }

/* Flex layout */
.course-page-layout { display: flex; gap: 20px; align-items: flex-start; }
.course-main-content { flex: 1; }
.course-sidebar { width: 300px; flex-shrink: 0; }

/* Адаптивність для мобільних */
@media (max-width: 920px) {
    .course-page-layout { flex-direction: column; }
    .course-main-content { width: 100%; } /* Займає весь екран */
    .course-sidebar { width: 100%; margin-top: 20px; }
}

/* Сайдбар */
.course-sidebar {
    width: 300px; /* ширина на ПК */
    max-width: 100%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box; /* важливо для адаптивності */
    transition: all 0.3s ease;
}

/* Заголовок сайдбару */
.course-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f25440;
}

/* Списки порад */
.tips-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li, .requirements-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #34495e;
    border-bottom: 1px solid #f0f0f0;
}

.tips-list li:last-child, .requirements-list li:last-child {
    border-bottom: none;
}

.course-sidebar li:hover {
    background: #f9f9f9;
    border-radius: 8px;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Адаптивність */
@media (max-width: 920px) {
    .course-page-layout {
        flex-direction: column;
    }
    .course-main-content, .course-sidebar {
        width: 100%;
    }
    .course-sidebar {
        margin-top: 20px;
        padding: 20px;
        position: relative; /* щоб не з’їжджав вправо */
        left: 0; /* скидання можливого зсуву */
    }
}


/* Стили для загрузки файлов */
.file-upload-wrapper {
    position: relative;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 2px dashed #e1e8ed;
    border-radius: 10px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #f25440;
    background: #fff;
}

.file-upload-icon {
    font-size: 20px;
}

.file-upload-text {
    color: #7f8c8d;
}

/* Стили для области вставки из буфера */
.clipboard-paste-area {
    border: 2px dashed #e1e8ed;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clipboard-paste-area:hover {
    border-color: #f25440;
    background: #fff;
}

.clipboard-placeholder p {
    margin: 0;
    color: #7f8c8d;
    font-size: 15px;
}

.clipboard-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.clipboard-preview {
    display: none;
}

/* Предпросмотр изображения */
.image-preview-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    background: #fafbfc;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}
/* КІНЕЦЬ СТИЛЬ ІЗ modules/forum/create_topic.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/delete_reviews.php */

.course-page-layout { display: flex; gap: 20px; align-items: flex-start; }
.course-main-content { flex: 1; }
.course-sidebar {
    width: 300px; 
    max-width: 100%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.course-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f25440;
}
.tips-list { list-style: none; padding: 0; margin: 0; }
.tips-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #34495e;
    border-bottom: 1px solid #f0f0f0;
}
.tips-list li:last-child { border-bottom: none; }
.course-sidebar li:hover {
    background: #f9f9f9;
    border-radius: 8px;
    padding-left: 5px;
    transition: all 0.2s ease;
}
@media (max-width: 920px) {
    .course-page-layout { flex-direction: column; }
    .course-main-content, .course-sidebar { width: 100%; }
    .course-sidebar { margin-top: 20px; padding: 20px; }
}
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.3s ease; }
.btn-danger { background: #f25440; color: #fff; }
.btn-danger:hover { background: #e74c3c; }
.btn-secondary { background: #ecf0f1; color: #7f8c8d; }
.btn-secondary:hover { background: #dfe6e9; color: #2d3436; }
.create-topic-form { background: #fff; border-radius: 16px; padding: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; }
.form-section-title { font-size: 20px; font-weight: 600; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f25440; display: inline-block; }


/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/delete_reviews.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/delete_subcategory.php */

/* Основні стилі форми */
.create-topic-form { background: var(--bg); color: var(--text-color) !important; border-radius: 16px; padding: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; background: var(--bg); border-bottom: 1px solid var(--border); }
.form-section-title { font-size: 20px; font-weight: 600; color: var(--text-color) !important; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: var(--bg_hover); color: #7f8c8d; }
.btn-secondary:hover { background: var(--bg); color: #2d3436; }

/* Flex layout */
.course-page-layout { display: flex; gap: 20px; align-items: flex-start; }
.course-main-content { flex: 1; }
.course-sidebar { width: 300px; flex-shrink: 0; }

/* Адаптивність для мобільних */
@media (max-width: 920px) {
    .course-page-layout { flex-direction: column; }
    .course-main-content { width: 100%; } /* Займає весь екран */
    .course-sidebar { width: 100%; margin-top: 20px; }
}

/* Сайдбар */
.course-sidebar {
    width: 300px; /* ширина на ПК */
    max-width: 100%;
    flex-shrink: 0;
    background: var(--bg);
	color: var(--text-color) !important;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box; /* важливо для адаптивності */
    transition: all 0.3s ease;
}

/* Заголовок сайдбару */
.course-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color) !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f25440;
}

/* Списки порад */
.tips-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li, .requirements-list li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color) !important;
    border-bottom: 1px solid var(--border);
}

.tips-list li:last-child, .requirements-list li:last-child {
    border-bottom: none;
}

.course-sidebar li:hover {
    background: var(--bg_hover);
    border-radius: 8px;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Адаптивність */
@media (max-width: 920px) {
    .course-page-layout {
        flex-direction: column;
    }
    .course-main-content, .course-sidebar {
        width: 100%;
    }
    .course-sidebar {
        margin-top: 20px;
        padding: 20px;
        position: relative; /* щоб не з’їжджав вправо */
        left: 0; /* скидання можливого зсуву */
    }
}
/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/delete_subcategory.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/delete_topic.php */


/* Основні стилі форми */
.create-topic-form { background: var(--bg); color: var(--text-color) !important; border-radius: 16px; padding: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; background: var(--bg); border-bottom: 1px solid var(--border); }
.form-section-title { font-size: 20px; font-weight: 600; color: var(--text-color) !important; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: var(--bg_hover); color: #7f8c8d; }
.btn-secondary:hover { background: var(--bg); color: #2d3436; }

/* Flex layout */
.course-page-layout { display: flex; gap: 20px; align-items: flex-start; }
.course-main-content { flex: 1; }
.course-sidebar { width: 300px; flex-shrink: 0; }

/* Адаптивність для мобільних */
@media (max-width: 920px) {
    .course-page-layout { flex-direction: column; }
    .course-main-content { width: 100%; } /* Займає весь екран */
    .course-sidebar { width: 100%; margin-top: 20px; }
}

/* Сайдбар */
.course-sidebar {
    width: 300px; /* ширина на ПК */
    max-width: 100%;
    flex-shrink: 0;
    background: var(--bg);
	color: var(--text-color) !important;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box; /* важливо для адаптивності */
    transition: all 0.3s ease;
}

/* Заголовок сайдбару */
.course-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color) !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f25440;
}

/* Списки порад */
.tips-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li, .requirements-list li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color) !important;
    border-bottom: 1px solid var(--border);
}

.tips-list li:last-child, .requirements-list li:last-child {
    border-bottom: none;
}

.course-sidebar li:hover {
    background: var(--bg_hover);
    border-radius: 8px;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Адаптивність */
@media (max-width: 920px) {
    .course-page-layout {
        flex-direction: column;
    }
    .course-main-content, .course-sidebar {
        width: 100%;
    }
    .course-sidebar {
        margin-top: 20px;
        padding: 20px;
        position: relative; /* щоб не з’їжджав вправо */
        left: 0; /* скидання можливого зсуву */
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/delete_topic.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/edit_reviews.php */

/* Основные стили формы */
.create-topic-form { background: #fff; border-radius: 16px; padding: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; }
.form-section-title { font-size: 20px; font-weight: 600; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f25440; display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid #e1e8ed; border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: #ecf0f1; color: #7f8c8d; }
.btn-secondary:hover { background: #dfe6e9; color: #2d3436; }

/* Flex layout */
.course-page-layout { display: flex; gap: 20px; align-items: flex-start; }
.course-main-content { flex: 1; }
.course-sidebar { width: 300px; flex-shrink: 0; }

/* Адаптивность для мобильных */
@media (max-width: 920px) {
    .course-page-layout { flex-direction: column; }
    .course-main-content { width: 100%; } /* Занимает весь экран */
    .course-sidebar { width: 100%; margin-top: 20px; }
}

/* Sidebar */
.course-sidebar {
    width: 300px; /* ширина на ПК */
    max-width: 100%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box; /* важно для адаптивности */
    transition: all 0.3s ease;
}

/* Заголовок sidebar */
.course-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f25440;
}

/* Списки советов */
.tips-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li, .requirements-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #34495e;
    border-bottom: 1px solid #f0f0f0;
}

.tips-list li:last-child, .requirements-list li:last-child {
    border-bottom: none;
}

.course-sidebar li:hover {
    background: #f9f9f9;
    border-radius: 8px;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Адаптивность */
@media (max-width: 920px) {
    .course-page-layout {
        flex-direction: column;
    }
    .course-main-content, .course-sidebar {
        width: 100%;
    }
    .course-sidebar {
        margin-top: 20px;
        padding: 20px;
        position: relative;
        left: 0;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/edit_reviews.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/edit_subcategory.php */


/* Основні стилі форми */
.create-topic-form { background: var(--bg); color: var(--text-color) !important; border-radius: 16px; padding: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; background: var(--bg); border-bottom: 1px solid var(--border); }
.form-section-title { font-size: 20px; font-weight: 600; color: var(--text-color) !important; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: var(--bg_hover); color: #7f8c8d; }
.btn-secondary:hover { background: var(--bg); color: #2d3436; }

/* Flex layout */
.course-page-layout { display: flex; gap: 20px; align-items: flex-start; }
.course-main-content { flex: 1; }
.course-sidebar { width: 300px; flex-shrink: 0; }

/* Адаптивність для мобільних */
@media (max-width: 920px) {
    .course-page-layout { flex-direction: column; }
    .course-main-content { width: 100%; } /* Займає весь екран */
    .course-sidebar { width: 100%; margin-top: 20px; }
}

/* Сайдбар */
.course-sidebar {
    width: 300px; /* ширина на ПК */
    max-width: 100%;
    flex-shrink: 0;
    background: var(--bg);
	color: var(--text-color) !important;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box; /* важливо для адаптивності */
    transition: all 0.3s ease;
}

/* Заголовок сайдбару */
.course-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color) !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f25440;
}

/* Списки порад */
.tips-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li, .requirements-list li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color) !important;
    border-bottom: 1px solid var(--border);
}

.tips-list li:last-child, .requirements-list li:last-child {
    border-bottom: none;
}

.course-sidebar li:hover {
    background: var(--bg_hover);
    border-radius: 8px;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Адаптивність */
@media (max-width: 920px) {
    .course-page-layout {
        flex-direction: column;
    }
    .course-main-content, .course-sidebar {
        width: 100%;
    }
    .course-sidebar {
        margin-top: 20px;
        padding: 20px;
        position: relative; /* щоб не з’їжджав вправо */
        left: 0; /* скидання можливого зсуву */
    }
}


/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/edit_subcategory.php */



/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/edit_topic.php */


/* Основні стилі форми */
.create-topic-form { background: var(--bg); color: var(--text-color) !important; border-radius: 16px; padding: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 25px; background: var(--bg); border-bottom: 1px solid var(--border); }
.form-section-title { font-size: 20px; font-weight: 600; color: var(--text-color) !important; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: inline-block; }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-control:focus { border-color: #f25440; box-shadow: 0 0 0 3px rgba(242, 84, 64, 0.1); outline: none; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #f25440 0%, #e74c3c 100%); color: white; box-shadow: 0 4px 15px rgba(242, 84, 64, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 84, 64, 0.4); }
.btn-secondary { background: var(--bg_hover); color: #7f8c8d; }
.btn-secondary:hover { background: var(--bg); color: #2d3436; }

/* Flex layout */
.course-page-layout { display: flex; gap: 20px; align-items: flex-start; }
.course-main-content { flex: 1; }
.course-sidebar { width: 300px; flex-shrink: 0; }

/* Адаптивність для мобільних */
@media (max-width: 920px) {
    .course-page-layout { flex-direction: column; }
    .course-main-content { width: 100%; } /* Займає весь екран */
    .course-sidebar { width: 100%; margin-top: 20px; }
}

/* Сайдбар */
.course-sidebar {
    width: 300px; /* ширина на ПК */
    max-width: 100%;
    flex-shrink: 0;
    background: var(--bg);
	color: var(--text-color) !important;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box; /* важливо для адаптивності */
    transition: all 0.3s ease;
}

/* Заголовок сайдбару */
.course-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color) !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f25440;
}

/* Списки порад */
.tips-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li, .requirements-list li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color) !important;
    border-bottom: 1px solid var(--border);
}

.tips-list li:last-child, .requirements-list li:last-child {
    border-bottom: none;
}

.course-sidebar li:hover {
    background: var(--bg_hover);
    border-radius: 8px;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Адаптивність */
@media (max-width: 920px) {
    .course-page-layout {
        flex-direction: column;
    }
    .course-main-content, .course-sidebar {
        width: 100%;
    }
    .course-sidebar {
        margin-top: 20px;
        padding: 20px;
        position: relative; /* щоб не з’їжджав вправо */
        left: 0; /* скидання можливого зсуву */
    }
}


/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/edit_topic.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/search.php */


/* Контейнер для поля та кнопки */
.search-input-wrapper {
    display: flex;
    width: 100%; /* на всю ширину екрану */
    margin: 20px 0;
}

/* Поле вводу */
.search-input-wrapper input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    box-sizing: border-box;
}

/* Кнопка пошуку */
.search-input-wrapper button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50;
    border: 1px solid #4CAF50;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* При наведенні на кнопку */
.search-input-wrapper button:hover {
    background-color: #45a049;
}

/* Адаптивність для маленьких екранів */
@media (max-width: 480px) {
    .search-input-wrapper {
        flex-direction: column;
    }
    .search-input-wrapper input[type="text"] {
        border-radius: 4px 4px 0 0;
        border-right: 1px solid #ddd;
    }
    .search-input-wrapper button {
        border-radius: 0 0 4px 4px;
        border-top: none;
    }
}

 .course-img::before {
                content: '';
                display: block;
                width: 100%;
                height: 150px;
                background-image: var(--bg-url);
                background-size: cover;
                background-position: center;
                border-radius: 8px 8px 0 0;
            }



/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/search.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/view_cat.php */


#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
}
.favorite-control {
    pointer-events: auto;
    z-index: 10;
}
.favorite-control a, 
.favorite-control span {
    display: inline-flex;
    align-items: center;
}
.course-img {
    background-size: cover;
    background-position: center;
}

.filter-section:last-child {
    border-bottom: none;
}


/* Панель фільтра */
#filter-panel {
    display: none;
    position: absolute;
    top: 20%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    max-width: 1000px;
    margin-top: 8px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: filterSlideIn 0.3s ease-out;
}

@keyframes filterSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#filter-panel h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

/* Секції фільтра */
.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Контейнери з прокруткою */
.filter-categories,
.filter-subcategories,
.filter-years {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 8px;
}

/* Кастомний скролбар */
.filter-categories::-webkit-scrollbar,
.filter-subcategories::-webkit-scrollbar,
.filter-years::-webkit-scrollbar {
    width: 6px;
}

.filter-categories::-webkit-scrollbar-track,
.filter-subcategories::-webkit-scrollbar-track,
.filter-years::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-categories::-webkit-scrollbar-thumb,
.filter-subcategories::-webkit-scrollbar-thumb,
.filter-years::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-categories::-webkit-scrollbar-thumb:hover,
.filter-subcategories::-webkit-scrollbar-thumb:hover,
.filter-years::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Лейбли та радіо кнопки */
.filter-section label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.2s ease;
    margin-left: 8px;
}

.filter-section label:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-section label input[type="radio"] {
    margin: 0 8px 0 0;
    width: 16px;
    height: 16px;
    accent-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.filter-section label input[type="radio"]:checked + * {
    font-weight: 500;
}

/* Активний лейбл */
.filter-section label:has(input[type="radio"]:checked) {
    background: rgba(255, 255, 255, 0.3);
    color: var(--button);
}

/* Для браузерів що не підтримують :has */
.filter-section label.active {
    background: rgba(255, 255, 255, 0.3);
    color: var(--button);
}

/* Кнопка застосування */
#apply-filters {
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--button);
    color: var(--button-red-text);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

}

#apply-filters:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

#apply-filters:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Оверлей */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    animation: overlayFadeIn 0.3s ease-out;
}

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

/* Результати фільтрації */
.filter-results {
    margin: 15px 0;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.filter-results strong {
    color: var(--text-color);
    margin-right: 10px;
}

.filter-results a {
    color: var(--button);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.filter-results a:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    #filter-panel {
        width: 280px;
        padding: 15px;
    }
    
    .filter-categories,
    .filter-subcategories,
    .filter-years {
        max-height: 120px;
    }
    
    .filter-section label {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #filter-panel {
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Додаткові покращення UX */
.filter-section label span.count {
    opacity: 0.7;
    font-size: 12px;
    margin-left: auto;
}

.filter-section label:hover span.count {
    opacity: 1;
}

/* Анімація для радіо кнопок */
.filter-section label input[type="radio"] {
    position: relative;
    transition: transform 0.2s ease;
}

.filter-section label input[type="radio"]:checked {
    transform: scale(1.1);
}

/* Стилі для пустого стану */
.filter-empty {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
}

/* Покращення доступності */
.filter-section label:focus-within {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Анімація при завантаженні */
.filter-section {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/view_subcat.php */


#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
}
.favorite-control {
    pointer-events: auto;
    z-index: 10;
}
.favorite-control a, 
.favorite-control span {
    display: inline-flex;
    align-items: center;
}
.course-img {
    background-size: cover;
    background-position: center;
}




@keyframes filterSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* Контейнери з прокруткою */
.filter-categories,
.filter-subcategories,
.filter-years {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 8px;
}

/* Кастомний скролбар */
.filter-categories::-webkit-scrollbar,
.filter-subcategories::-webkit-scrollbar,
.filter-years::-webkit-scrollbar {
    width: 6px;
}

.filter-categories::-webkit-scrollbar-track,
.filter-subcategories::-webkit-scrollbar-track,
.filter-years::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-categories::-webkit-scrollbar-thumb,
.filter-subcategories::-webkit-scrollbar-thumb,
.filter-years::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-categories::-webkit-scrollbar-thumb:hover,
.filter-subcategories::-webkit-scrollbar-thumb:hover,
.filter-years::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}







label input[type="radio"]:checked + * {
    font-weight: 500;
}





/* Оверлей */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    animation: overlayFadeIn 0.3s ease-out;
}

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


/* Адаптивність для мобільних */
@media (max-width: 768px) {
    #filter-panel {
        width: 280px;
        padding: 15px;
    }
    
    .filter-categories,
    .filter-subcategories,
    .filter-years {
        max-height: 120px;
    }
    
    .filter-section label {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #filter-panel {
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}



/* Стилі для пустого стану */
.filter-empty {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
}

/* Покращення доступності */
.filter-section label:focus-within {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Анімація при завантаженні */
.filter-section {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/view_subcat.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/forum/view_topic.php */

.review-action-btn {
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-action-btn:hover {
    background: var(--button);
    border-color: rgba(0,123,255,0.2);
    color: #333;
    transform: translateY(-1px);
}

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

.action-count {
    font-weight: 500;
}

.no-reviews {
    text-align: center;
    color: var(--text-color);
    font-style: italic;
    padding: 50px 30px;
    background: var(--bg);
    border-radius: 15px;
    border: 2px dashed #e0e6ed;
    font-size: 16px;
}

.review-form {
    background: var(--bg);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.review-form h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.rating-input {
    margin-bottom: 25px;
    text-align: center;
}

.rating-input span {
    display: block;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    justify-content: left;
    margin-bottom: 10px;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: #ffc107;
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(255,193,7,0.4);
}

.review-form textarea {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border: 2px solid #e8edff;
    border-radius: 15px;
    resize: vertical;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
    line-height: 1.6;
    transition: border-color 0.3s ease;
}

.review-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.submit-review {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.submit-review:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.submit-review:active {
    transform: translateY(0);
}

.reviews-closed, 
.login-to-review, 
.reviews-disabled {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg_hover) 100%);
    border-radius: 15px;
    color: #666;
    margin-top: 20px;
    border: 2px solid #e8edff;
    font-size: 16px;
}

.login-to-review a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.login-to-review a:hover {
    text-decoration: underline;
}

.topic-comments {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 768px) {
    .topic-comments {
        padding: 20px;
        margin-top: 15px;
    }
    
    .review-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .review-header {
         flex-direction: row !important;
        align-items: left;
        gap: 12px !important; 
    }
    
    .review-avatar {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
    
    .review-controls {
        position: static;
        margin-top: 10px;
        justify-content: flex-start;
    }
    
    .rating-stars label {
        font-size: 28px;
    }
    
    .review-form {
        padding: 25px 20px;
    }
    
    .review-form textarea {
        padding: 15px;
        min-height: 120px;
    }
    
    .review-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .review-action-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 540px) {
    .topic-comments {
        padding: 15px;
        border-radius: 20px;
    }
    
    .topic-comments h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .review-item {
        padding: 15px;
        border-radius: 12px;
    }
    
    .review-form {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .submit-review {
        padding: 12px 25px;
        font-size: 15px;
    }
}

.submit-review:hover {
    background: #0056b3;
}

.reviews-closed, 
.login-to-review, 
.reviews-disabled {
    text-align: center;
    padding: 25px;
    background: var(--bg);
    border-radius: 15px;
    color: #666;
    margin-top: 20px;
}

.login-to-review a {
    color: #007bff;
    text-decoration: none;
}

.login-to-review a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .review-controls {
        position: static;
        margin-top: 10px;
    }
    
    .rating-stars label {
        font-size: 20px;
    }
}    



textarea {
    width: 100%;    
    min-height: 80px;       
    padding: 12px 15px;       
    border: 1px solid var(--border);     
    border-radius: 10px;       
    font-size: 15px;          
    font-family: inherit;   
    resize: vertical;         
    outline: none;            
    box-sizing: border-box;    
    transition: border 0.3s ease, box-shadow 0.3s ease;
	margin-bottom: 10px;
	
}

textarea:focus {
    border-color: #F25440;   
    box-shadow: 0 0 5px rgba(242, 84, 64, 0.5);
}



.rating-overall {
  text-align: center;
  background: var(--button);
  color: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.rating-score {
  font-size: 42px;
  font-weight: bold;
}

.stars {
  font-size: 20px;
  margin: 5px 0;
}

.reviews {
  font-size: 14px;
  opacity: 0.9;
}

.rating-bars .bar {
  display: flex;
  align-items: center;
  margin: 6px 0;
  font-size: 14px;
}

.rating-bars .bar span:first-child {
  width: 40px;
}

.progress {
  flex: 1;
  background: #e6e6e6;
  border-radius: 8px;
  margin: 0 10px;
  height: 8px;
  overflow: hidden;
}

.progress div {
  background: #ffb400;
  height: 100%;
  border-radius: 8px;
}



.payment-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.icon_button {
    width: 18px;
    height: 18px;
	vertical-align: middle;
}

.download-button {
    display: block;              /* щоб кнопка розтягувалась */
    width: 100%;                 /* по ширині контейнера */
    max-width: 220px;            /* але не більше */
    margin: 0 auto;              /* центрування */
    background: #F25440;
    color: #FFF !important;
    padding: 12px 20px;          /* трохи зменшив padding */
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    background: #E34F3C;
    transform: translateY(-2px);
}


/* Стилі для кнопки купівлі */
.payment-button {
    display: inline-block;
    background: #F25440;
    color: white;
    padding: 12px 38px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
	color: #FFF !important;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
}

.payment-button:hover {
    background: #E34F3C;
    transform: translateY(-2px);
}

/* Стилі для інформаційних повідомлень */
.payment-info,
.like-message {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.payment-info {
    border-left: 4px solid #F25440;
}

.like-message {
    border-left: 4px solid #F25440;
}

/* Контейнер для кнопок та повідомлень */
.download-container {
    margin: 20px 0;
    text-align: center;
}

/* Адаптивність */
@media (max-width: 768px) {
    .download-button,
    .payment-button {
        width: 100%;
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .payment-info,
    .like-message {
        font-size: 13px;
        padding: 12px;
    }
}



.favorite-control {
    display: flex;
    gap: 8px; /* відстань між іконками */
    align-items: center;
}

.favorite-control a, 
.favorite-control span {
    display: inline-flex;
    align-items: center;
}

.topic-image {
    max-width: 100%;       /* контейнер не ширший за батька */
    max-height: 400px;     /* можна задати обмеження по висоті */
    overflow: hidden;      /* приховує все, що вилазить */
    border-radius: 15px;
}

.topic-image img {
    width: 100%;           /* підганяє під ширину контейнера */
    height: auto;          /* пропорції не ламаються */
    object-fit: cover;     /* підрізає, щоб повністю зайняти контейнер */
    display: block;
}

.topic-content {
    background: var(--bg);
	color: var(--text-color);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
}

.course-page-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* вирівнюємо блоки по верхньому краю */
	margin-top: 20px;
}

.course-main-content {
    flex: 1;
}

.course-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky; /* робить правий блок "липким" */
    top: 20px; /* відступ від верху вікна */
}

.course-info-box {
    background: var(--bg);
	color: var(--text-color);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
}

.course-info-box h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.course-rating {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.rating-value {
    font-weight: bold;
    margin-right: 5px;
}

.votes-count {
    color: #666;
    font-size: 0.9em;
}

.course-meta {
    margin: 15px 0;
}

.meta-item {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.meta-item strong {
    color: #555;
}

.course-actions {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.course-actions a {
    display: block;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.course-actions a:hover {
    text-decoration: underline;
}

.course-target-audience {
    background: var(--bg);
	color: var(--text-color);
    border-radius: 25px;
    padding: 20px;
	
}

/* Додатковий трюк, щоб починалося по заголовку */
.course-target-audience::before {
    content: "";
    display: block;
    height: var(--desktop-comments); /* висота заголовка */
}

.course-target-audience h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.audience-item {
    margin-top: 15px;
}

.audience-item h4 {
    margin: 0 0 10px 0;
    color: #444;
}

.audience-item p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #666;
}

/* Показуємо десктопні коментарі тільки на десктопі */
.desktop-comments {
    display: block;
}

/* Приховуємо мобільні коментарі на десктопі */
.mobile-comments {
    display: none;
}

/* Медіа-запити для мобільного */
@media (max-width: 920px) {
    .course-page-layout {
        flex-direction: column;
    }
    
    .course-sidebar {
        width: 100%;
    }
    
    /* Приховуємо десктопні коментарі на мобільних */
    .desktop-comments {
        display: none;
    }
    
    /* Показуємо мобільні коментарі на мобільних */
    .mobile-comments {
        display: block;
        margin-top: 20px;
    }
}










/* Оновлені стилі для блоку відгуків - щоб відповідали ширині тексту теми */
.topic-comments {
    background: #f8f9ff;
    border-radius: 25px;
    padding: 30px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.topic-comments h2 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.review-item {
    background: var(--bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow 0.3s ease;
}



.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    position: relative;
}

.review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 18px;
    flex-shrink: 0;
    border: 2px solid #f0f2f8;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info {
    flex-grow: 1;
}

.review-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.review-date {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    background: #f8f9ff;
    padding: 4px 10px;
    border-radius: 12px;
}

.review-stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 20px;
    margin-right: 2px;
}

.star.filled {
    color: gold;
}

.star:not(.filled) {
    color: #ccc;
}

.review-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;

}

.control-link {
    font-size: 16px;
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.control-link:hover {
    background: #e8edff;
    color: #333;
}

.review-text {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 10px;
	margin-left: 10px;
    font-size: 15px;
    padding: 15px 0;
}

.review-actions {
    display: flex;
    justify-content: flex-end; /* замість float */
    padding-top: 10px;
    flex-wrap: wrap; /* щоб на маленьких екранах не вилазило */
    box-sizing: border-box;
}


.review-action-btn {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-action-btn:hover {
    background: #e8edff;
    border-color: rgba(0,123,255,0.2);
    color: #333;
    transform: translateY(-1px);
}

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

.action-count {
    font-weight: 500;
}

.no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 50px 30px;
    background: var(--bg);
    border-radius: 15px;
    border: 2px dashed #e0e6ed;
    font-size: 16px;
}

.review-form {
    background: var(--bg);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.review-form h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.rating-input {
    margin-bottom: 25px;
    text-align: center;
}

.rating-input span {
    display: block;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    justify-content: left;
	margin-bottom: 10px;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: #ffc107;
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(255,193,7,0.4);
}

.review-form textarea {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border: 2px solid #e8edff;
    border-radius: 15px;
    resize: vertical;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
    line-height: 1.6;
    transition: border-color 0.3s ease;
}

.review-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.submit-review {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.submit-review:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.submit-review:active {
    transform: translateY(0);
}

.reviews-closed, 
.login-to-review, 
.reviews-disabled {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg_hover) 100%);
    border-radius: 15px;
    color: #666;
    margin-top: 20px;
    border: 2px solid #e8edff;
    font-size: 16px;
}

.login-to-review a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.login-to-review a:hover {
    text-decoration: underline;
}

/* Забезпечуємо однакову ширину з текстом теми */

.topic-comments {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Адаптивність */
@media (max-width: 768px) {
    .topic-comments {
        padding: 20px;
        margin-top: 15px;
    }
    
    .review-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .review-header {
         flex-direction: row !important; /* зберігаємо рядок */
        align-items: left;            /* вирівнюємо по центру аватара */
        gap: 12px !important; 
    }
    
    .review-avatar {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
    
    .review-controls {
        position: static;
        margin-top: 10px;
        justify-content: flex-start;
    }
    
    .rating-stars label {
        font-size: 28px;
    }
    
    .review-form {
        padding: 25px 20px;
    }
    
    .review-form textarea {
        padding: 15px;
        min-height: 120px;
    }
    
    .review-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .review-action-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 540px) {
    .topic-comments {
        padding: 15px;
        border-radius: 20px;
    }
    
    .topic-comments h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .review-item {
        padding: 15px;
        border-radius: 12px;
    }
    
    .review-form {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .submit-review {
        padding: 12px 25px;
        font-size: 15px;
    }
}

.submit-review:hover {
    background: #0056b3;
}

.reviews-closed, 
.login-to-review, 
.reviews-disabled {
    text-align: center;
    padding: 25px;
    background: var(--bg);
    border-radius: 15px;
    color: #666;
    margin-top: 20px;
}

.login-to-review a {
    color: #007bff;
    text-decoration: none;
}

.login-to-review a:hover {
    text-decoration: underline;
}

/* Адаптивність */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .review-controls {
        position: static;
        margin-top: 10px;
    }
    
    .rating-stars label {
        font-size: 20px;
    }
}    


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

.share-modal-content {
    background: var(--bg);
	color: var(--text-color) !important;
    border-radius: 12px;
    width: 90%; max-width: 320px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.share-modal-header h3 { margin: 0; font-size: 18px; color: var(--text-color) !important; }
.share-modal-close {
	color: var(--text-color) !important;
    font-size: 24px; cursor: pointer;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
}
.share-modal-close:hover { background: var(--bg_hover); }

.share-modal-body { padding: 20px; }

.share-social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.share-social-btn {
    display: flex; flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 1px solid var(--border);
	color: var(--text-color);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.share-social-btn img { margin-bottom: 5px; }

.share-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-link-container input {
    flex: 1;
    padding: 8px 12px;
	background: var(--bg);
    border: 1px solid var(--border);
	color: var(--text-color);
    border-radius: 6px;
    font-size: 14px;
}
.copy-link-btn {
    padding: 8px;
    background: var(--button);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.copy-link-btn:hover { background: var(--button_hover); }



/* Стиль для блокування скролу з фіксацією позиції (тільки для мобільних) */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
}

/* Стили для коллекций popup */
.collections-wrapper {
    position: relative;
    display: inline-block;
}

.collections-popup {
    position: absolute;
    bottom: 35px;
    left: 0;
    width: 280px;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    z-index: 99999;
}

.collections-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color) !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.popup-close:hover {
    background: var(--bg_hover);
}

.popup-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    flex: 1;
    min-height: 0;
}

.collection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
	color: var(--text-color);
    transition: background 0.2s ease;
}

.collection-item:hover {
    background: var(--bg_hover);
}

.collection-item.active {
    background: var(--bg_hover);
}

.collection-info {
    flex: 1;
    min-width: 0;
}

.collection-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color) !important;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-count {
    font-size: 12px;
    color: #666;
}

.collection-toggle {
    margin-left: 10px;
}

.checkbox-btn {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.checkbox-btn:hover:not(:disabled) {
    border-color: var(--button);
}

.checkbox-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-btn.active {
    background: var(--button);
    border-color: var(--button);
    color: white;
}

.popup-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.new-collection-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.new-collection-form input[type="text"] {
	background: var(--bg);
	color: var(--text-color) !important;
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.new-collection-form input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
}

.new-collection-form button {
    width: 32px;
    height: 32px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.new-collection-form button:hover:not(:disabled) {
    background: #0056b3;
}

.new-collection-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.manage-link {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    display: block;
    text-align: center;
}

.manage-link:hover {
    text-decoration: underline;
}

.empty {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* Стили для уведомлений */
.notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 920px) {
    html, body {
        overflow-x: hidden;
    }

    .container {
        max-width: 100% !important;
    }	
    
    .collections-popup {
        position: fixed;
        top: 75px;
        left: 10px;
        right: 10px;
        bottom: auto;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 100px);
        transform: none;
        overflow: hidden;
    }
    
    .collections-popup.active {
        transform: none;
    }
    
    .popup-content {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Для дуже малих екранів */
@media (max-width: 480px) {
    .collections-popup {
        top: 75px;
        left: 12px;
        right: 12px;
        max-height: calc(100vh - 50px);
    }
    
    .popup-header {
        padding: 12px;
    }
    
    .popup-content {
        padding: 8px;
        max-height: calc(100vh - 180px);
    }
    
    .popup-footer {
        padding: 12px;
    }
    
    .collection-item {
        padding: 8px;
    }
    
    .collection-name {
        font-size: 13px;
    }
    
    .collection-count {
        font-size: 11px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/forum/view_topic.php */



/* ПОЧАТОК ІЗ СТИЛЬ modules/notifications/index.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: white;
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid #e2e8f0;
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: #f1f5f9;
}

.sidebar-menu a.active {
    background: #eff6ff;
    font-weight: 600;
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: white;
    border-radius: 25px;
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.content-header h1 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
}

.control-icon.mark-all {
    background: #10b981;
    color: white;
}

.control-icon.mark-all:hover {
    background: #059669;
    transform: translateY(-1px);
}

.control-icon.clear-all {
    background: #ef4444;
    color: white;
}

.control-icon.clear-all:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.control-icon .tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.control-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

.control-icon .unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #fff;
    color: #10b981;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #10b981;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid #E4E8EB;
    border-radius: 25px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-dropdown ul li a:hover {
    background: #f1f5f9;
}

.mobile-dropdown ul li a.active {
    background: #eff6ff;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: white;
    border-radius: 25px;
    padding: 32px;
    margin-bottom: 12px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.save-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Стили для сообщений об ошибках и успехе */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .control-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .control-icon .unread-badge {
        font-size: 9px;
        min-width: 14px;
        height: 14px;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* Стили для уведомлений */
.notifications-list {
    margin-bottom: 20px;
}

.notification-item {
    background: #fff;
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item.unread {
    background: #f0f8ff;
    border-color: #4a90e2;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
}

.notification-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.notification-from {
    font-weight: 600;
    color: #4a90e2;
}

.notification-time {
    color: #999;
}

.notification-message {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.notification-content {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #555;
}

.notification-link {
    margin-top: 12px;
	display: flex;
}

.notification-actions {
    display: flex;
    gap: 10px; /* відстань між кнопками */
    align-items: center; /* вирівнювання по центру */
}

.action-link {
    display: inline-block;
    padding: 4px 8px;
    text-decoration: none;
}



.action-link:hover {
    background: #f0f8ff;
}

.action-link.delete {
	background: #fef2f2;
	border-radius: 25px;
    color: #ef4444;
}

.action-link.delete:hover {
    background: #FADEDE;
}

.action-link.ok {
	background: #F2FBFE;
	border-radius: 25px;
    color: var(--text-color);
}

.action-link.ok:hover {
    background: #E5F0F4;
}

.no-notifications {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    background: white;
    border-radius: 25px;
}

.no-notifications-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}



.page-link, .page-current {
    padding: 10px 16px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.page-link:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    transform: translateY(-1px);
}

.page-current {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    font-weight: 600;
}

.page-dots {
    padding: 10px 8px;
    color: #999;
    font-weight: 500;
}

.page-link.prev, .page-link.next {
    background: #f8f9fa;
    font-weight: 600;
    border-color: #dee2e6;
}

.page-link.prev:hover, .page-link.next:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* Подтверждение удаления */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.confirm-dialog.show {
    display: flex;
}

.confirm-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.confirm-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.confirm-message {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.confirm-btn.cancel {
    background: #f1f5f9;
    color: #64748b;
}

.confirm-btn.cancel:hover {
    background: #e2e8f0;
}

.confirm-btn.confirm {
    background: #ef4444;
    color: white;
}

.confirm-btn.confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .confirm-content {
        margin: 20px;
        padding: 20px;
    }
    
    .confirm-buttons {
        flex-direction: column;
    }
}



/* КІНЕЦЬ ІЗ СТИЛЬ modules/notifications/index.php */



/* ПОЧАТОК ІЗ СТИЛЬ modules/partners/advertising_materials.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
    opacity: 1;
    color: var(--line);
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 1px solid var(--border);
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    z-index: 10000000;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-menu-btn:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-dropdown ul li a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown ul li a.active {
    background: var(--bg_hover);
    color: var(--line);
    opacity: 1;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* Card styles */
.card {
    background-color: var(--bg);
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 32px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.card-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
}

/* Referral link styles */
.link-input-group {
    display: flex;
    margin-bottom: 15px;
}

.link-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    background-color: var(--bg_hover);
    color: var(--text-color);
}

.btn-copy {
    padding: 0 15px;
    background-color: var(--button);
    color: var(--bg);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-copy i {
    margin-right: 5px;
}

.btn-copy:hover {
    background-color: var(--button_hover);
}

.btn-copy.copied {
    background-color: var(--line);
}

.link-description {
    color: var(--text-color);
    font-size: 14px;
    margin: 0;
    opacity: 0.7;
}

/* Promo materials table */
.promo-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.promo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.promo-table th {
    background-color: var(--bg_hover);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border);
}

.promo-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-color);
}

.promo-table tr:hover {
    background-color: var(--bg_hover);
}

.promo-title {
    font-weight: 500;
    color: var(--text-color);
}

.promo-preview {
    text-align: center;
}

.promo-preview img {
    max-width: 150px;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.promo-dimensions {
    text-align: center;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0.7;
}

.promo-code-container {
    max-width: 350px;
}

.promo-code-input-group {
    display: flex;
}

.promo-code {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    font-size: 12px;
    font-family: monospace;
    background-color: var(--bg_hover);
    color: var(--text-color);
    resize: vertical;
}

.promo-code:focus {
    outline: none;
    border-color: var(--line);
    background-color: var(--bg);
}

.no-referrals {
    padding: 30px;
    text-align: center;
    color: var(--text-color);
    background-color: var(--bg_hover);
    border-radius: 4px;
    opacity: 0.7;
}

/* Responsive styles */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .card {
        padding: 24px 20px;
    }
    
    .link-input-group {
        flex-direction: column;
    }
    
    .link-input-group input {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .btn-copy {
        width: 100%;
        border-radius: 4px;
        padding: 10px;
    }
    
    .promo-code-input-group {
        flex-direction: column;
    }
    
    .promo-code {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .promo-code-input-group .btn-copy {
        width: 100%;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .promo-table, .promo-table thead, .promo-table tbody, .promo-table th, .promo-table td, .promo-table tr {
        display: block;
    }
    
    .promo-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .promo-table tr {
        margin-bottom: 20px;
        border: 1px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .promo-table td {
        border: none;
        border-bottom: 1px solid var(--border);
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    .promo-table td:before {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-color);
    }
    
    .promo-table td:nth-of-type(1):before { content: "Название"; }
    .promo-table td:nth-of-type(2):before { content: "Изображение"; }
    .promo-table td:nth-of-type(3):before { content: "Размеры"; }
    .promo-table td:nth-of-type(4):before { content: "Код для вставки"; }
    
    .promo-preview {
        text-align: left;
        padding-top: 30px;
    }
    
    .promo-dimensions {
        text-align: left;
    }
    
    .promo-code-container {
        max-width: 100%;
    }
}


/* КІНЕЦЬ ІЗ СТИЛЬ modules/partners/advertising_materials.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/partners/index.php */

/* Partner landing page styles */
.price-block {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 15px auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
}

.price-block .big-price {
    font-size: 25px;
    font-weight: bold;
}

.course_block1 {
    background-color: var(--bg);
    padding: 10px 15px;
    margin: 0 auto 5px auto;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border);
    color: var(--text-color);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.course_block1:hover {
    background-color: var(--bg_hover);
}

.course_block1 span.toggle {
    background-color: var(--bg_hover);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 2px 10px;
    cursor: pointer;
    float: right;
    color: var(--line);
    font-weight: bold;
    transition: all 0.2s ease;
}

.course_block1 span.toggle:hover {
    background-color: var(--line);
    color: var(--bg);
}

.course_block1 .spoiler-text {
    display: none;
    margin-top: 10px;
    padding-top: 5px;
    color: var(--text-color);
    opacity: 0.9;
}

.course_block1 .spoiler-text img {
    filter: var(--img, none);
}

.buy-block {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 15px auto;
    text-align: center;
    box-sizing: border-box;
}

.download-button {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    background: var(--button-red);
    color: var(--button-red-text) !important;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.download-button:hover {
    background: var(--button-red_hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg);
    padding: 20px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: var(--text-color);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.modal-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.modal-buttons input {
    padding: 8px 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-buttons .yes {
    background: var(--line);
    color: var(--bg);
}

.modal-buttons .yes:hover {
    background: var(--button);
    transform: translateY(-1px);
}

.modal-buttons .no {
    background: var(--button-red);
    color: var(--bg);
}

.modal-buttons .no:hover {
    background: var(--button-red_hover);
    transform: translateY(-1px);
}

/* Center content styling */
.main-content center {
    color: var(--text-color);
    margin-bottom: 20px;
}

.main-content center span {
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course_block1 {
        margin: 0 auto 10px auto;
        padding: 15px;
    }
    
    .course_block1 span.toggle {
        float: none;
        display: inline-block;
        margin-left: 10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-buttons input {
        width: 100%;
        padding: 12px 16px;
    }
    
    .download-button {
        font-size: 16px;
        padding: 14px 20px;
    }
}



/* КІНЕЦЬ ІЗ СТИЛЬ modules/partners/index.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/partners/main.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
    opacity: 1;
    color: var(--line);
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 1px solid var(--border);
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    z-index: 10000000;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-menu-btn:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-dropdown ul li a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown ul li a.active {
    background: var(--bg_hover);
    color: var(--line);
    opacity: 1;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
    border: 1px solid var(--border);
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--bg);
    color: var(--text-color);
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--line);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.save-button {
    background: var(--button-red);
    color: var(--button-red-text);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: var(--button-red_hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Стили для текущего имени */
.current-name-section {
    background: var(--bg_hover);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.current-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.current-name-info {
    color: var(--text-color);
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Сообщения об ошибках и успехе */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: var(--success);
    color: var(--text-color);
    border: 1px solid var(--border);
}

.message.error {
    background: var(--error);
    color: var(--text-color);
    border: 1px solid var(--border);
}

/* Карточки статистики */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.card {
    background: var(--bg);
    border-radius: 25px;
    padding: 24px;
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    opacity: 0.7;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg_hover);
    color: var(--line);
    font-size: 18px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1;
}

.card-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.trend-up { 
    color: var(--line);
    opacity: 1;
}
.trend-down { 
    color: var(--button-red);
    opacity: 1;
}

/* Графік контейнер */
.chart-container {
    background: var(--bg);
    border-radius: 25px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.chart-filters {
    display: flex;
    gap: 4px;
    background: var(--bg_hover);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-color);
    opacity: 0.7;
}

.filter-btn:hover {
    background: var(--border);
    color: var(--text-color);
    opacity: 1;
}

.filter-btn.active {
    background: var(--line);
    color: var(--bg);
    opacity: 1;
}

.chart-wrapper {
    height: 350px;
    position: relative;
}

/* Партнерське посилання */
.affiliate-link-container {
    background: var(--bg);
    border-radius: 25px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.link-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.link-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.link-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    background: var(--bg_hover);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.link-input:focus {
    outline: none;
    border-color: var(--line);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.copy-btn {
    padding: 12px 20px;
    background: var(--button);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--button_hover);
}

/* Промокод секція */
.promo-container {
    background: var(--bg_hover);
    border: 1px solid var(--border);
}

.promo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.promo-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-label {
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.7;
}

.promo-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--line);
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: monospace;
    border: 1px solid var(--border);
}

.promo-discount {
    color: var(--line);
    font-weight: 600;
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.promo-description {
    color: var(--text-color);
    font-size: 14px;
    margin-top: 12px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }

    .current-name {
        font-size: 20px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .chart-header {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-filters {
        justify-content: center;
    }

    .link-input-group {
        flex-direction: column;
    }

    .promo-info {
        flex-direction: column;
        align-items: stretch;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/partners/main.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/partners/payments.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
    opacity: 1;
    color: var(--line);
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 1px solid var(--border);
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    z-index: 10000000;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-menu-btn:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-dropdown ul li a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown ul li a.active {
    background: var(--bg_hover);
    color: var(--line);
    opacity: 1;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
    border: 1px solid var(--border);
}

/* Payment specific styles */
.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.payment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-container {
    display: flex;
    justify-content: flex-end;
}

.btn-request-payment {
    background-color: var(--button);
    color: var(--bg);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-request-payment:hover {
    background-color: var(--button_hover);
    transform: translateY(-2px);
}

.btn-request-payment i {
    margin-right: 8px;
}

/* Modal styles */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.payment-modal-content {
    background-color: var(--bg);
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--border);
}

.close-modal {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
}

.close-modal:hover {
    opacity: 1;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: var(--bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--line);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.form-group small {
    color: var(--text-color);
    font-size: 12px;
    margin-top: 4px;
    display: block;
    opacity: 0.7;
}

.text-danger {
    color: var(--button-red);
    opacity: 1 !important;
}

.btn-primary {
    background-color: var(--button);
    color: var(--bg);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--button_hover);
}

.btn-primary:disabled {
    background-color: var(--text-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.payment-fields {
    display: none;
}

.wallet-field {
    display: none;
}

/* Payment list styles */
.payments-list {
    margin-top: 20px;
}

.payment-item {
    background-color: var(--bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.payment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-item-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.payment-date {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.payment-amount {
    font-weight: 600;
    color: var(--line);
    font-size: 16px;
}

.payment-item-body {
    padding: 15px;
}

.payment-info {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.payment-info:last-child {
    margin-bottom: 0;
}

.payment-info-label {
    font-weight: 500;
    color: var(--text-color);
    width: 80px;
    flex-shrink: 0;
    opacity: 0.7;
}

.payment-info-value {
    flex: 1;
    color: var(--text-color);
}

.address-value {
    font-family: monospace;
    word-break: break-all;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-completed {
    background-color: var(--line);
    color: var(--bg);
}

.status-wait {
    background-color: var(--button);
    color: var(--bg);
}

.status-cancel {
    background-color: var(--button-red);
    color: var(--bg);
}

/* Payment badges */
.payment-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.payment-paypal {
    background-color: var(--blok);
    color: var(--bg);
}

.payment-crypto {
    background-color: var(--line);
    color: var(--bg);
}

.payment-details {
    font-size: 12px;
    color: var(--text-color);
    margin-left: 5px;
    opacity: 0.7;
}

/* Cancel button */
.btn-cancel {
    background-color: var(--button-red);
    color: var(--bg);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background-color: var(--button-red_hover);
}

.cancel-form {
    display: inline-block;
}

/* Alert messages */
.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid var(--border);
}

.alert-error {
    background-color: var(--error);
    color: var(--text-color);
}

.alert-success {
    background-color: var(--success);
    color: var(--text-color);
}

.no-payments {
    padding: 20px;
    text-align: center;
    color: var(--text-color);
    background-color: var(--bg_hover);
    border-radius: 5px;
    opacity: 0.7;
    border: 1px solid var(--border);
}


.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 920px) {
    .none1 {
        display: none;
    }
    
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }

    .payment-item-header {
        padding: 12px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border);
    }
    
    .payment-amount {
        margin-top: 5px;
    }
    
    .payment-info {
        flex-direction: column;
    }
    
    .payment-info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .payment-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .payment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/partners/payments.php */

/* КІНЕЦЬ ІЗ СТИЛЬ modules/partners/referals.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
    opacity: 1;
    color: var(--line);
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 1px solid var(--border);
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    z-index: 10000000;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-menu-btn:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-dropdown ul li a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown ul li a.active {
    background: var(--bg_hover);
    color: var(--line);
    opacity: 1;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
    border: 1px solid var(--border);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

.card {
    background-color: var(--bg);
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.card-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.link-input-group {
    display: flex;
    margin-bottom: 15px;
}

.link-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    background-color: var(--bg_hover);
    color: var(--text-color);
}

.btn-copy {
    padding: 0 15px;
    background-color: var(--button);
    color: var(--bg);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-copy i {
    margin-right: 5px;
}

.btn-copy:hover {
    background-color: var(--button_hover);
}

.btn-copy.copied {
    background-color: var(--line);
}

.link-description {
    color: var(--text-color);
    font-size: 14px;
    margin: 0;
    opacity: 0.7;
}

.reward-percentages {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg_hover);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.reward-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.individual-badge {
    background: var(--line);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.standard-badge {
    background: var(--text-color);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
}

.percentage-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.percentage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    flex: 1;
    min-width: 120px;
}

.level-number {
    width: 30px;
    height: 30px;
    background: var(--line);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.level-info {
    display: flex;
    flex-direction: column;
}

.level-title {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 2px;
    opacity: 0.7;
}

.level-percent {
    font-size: 16px;
    font-weight: bold;
    color: var(--line);
}

.reward-explanation {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    opacity: 0.7;
}

.referral-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.stats-card {
    flex: 1;
    min-width: 200px;
    background-color: var(--bg);
    border-radius: 25px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: var(--bg);
}

.level1 .stats-icon {
    background-color: var(--button);
}

.level2 .stats-icon {
    background-color: var(--blok);
}

.level3 .stats-icon {
    background-color: var(--line);
}

.stats-info {
    flex: 1;
}

.stats-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--text-color);
}

.stats-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stats-desc {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
}

.referral-filter {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.referral-filter label {
    margin-right: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.referral-filter select {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg);
    color: var(--text-color);
}

.referral-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.referral-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.referral-table th {
    background-color: var(--bg_hover);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border);
}

.referral-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-color);
}

.referral-table tr:hover {
    background-color: var(--bg_hover);
}

.no-referrals {
    padding: 30px;
    text-align: center;
    color: var(--text-color);
    background-color: var(--bg_hover);
    border-radius: 4px;
    opacity: 0.7;
}


/* Level badge styles */
.level-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bg);
}

.level-badge.level-1 {
    background-color: var(--button);
}

.level-badge.level-2 {
    background-color: var(--blok);
}

.level-badge.level-3 {
    background-color: var(--line);
}

/* Responsive */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }

    .referral-stats {
        flex-direction: column;
    }
    
    .stats-card {
        max-width: 100%;
    }
    
    .link-input-group {
        flex-direction: column;
    }
    
    .link-input-group input {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .btn-copy {
        width: 100%;
        border-radius: 4px;
        padding: 10px;
    }
    
    .percentage-grid {
        flex-direction: column;
    }
    
    .percentage-item {
        min-width: auto;
    }
}


/* КІНЕЦЬ ІЗ СТИЛЬ modules/partners/referals.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/partners/sales..php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
    opacity: 1;
    color: var(--line);
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 1px solid var(--border);
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    z-index: 10000000;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-menu-btn:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-dropdown ul li a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown ul li a.active {
    background: var(--bg_hover);
    color: var(--line);
    opacity: 1;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
    border: 1px solid var(--border);
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--bg);
    color: var(--text-color);
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--line);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.save-button {
    background: var(--button-red);
    color: var(--button-red-text);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: var(--button-red_hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Стили для текущего имени */
.current-name-section {
    background: var(--bg_hover);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.current-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.current-name-info {
    color: var(--text-color);
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Сообщения об ошибках и успехе */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: var(--success);
    color: var(--text-color);
    border: 1px solid var(--border);
}

.message.error {
    background: var(--error);
    color: var(--text-color);
    border: 1px solid var(--border);
}

/* Sales Items - новые стили */
.sales-item {
    background-color: var(--bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.sales-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sales-item-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.sales-date {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.sales-amount {
    font-weight: 600;
    color: var(--line);
    font-size: 16px;
}

.sales-item-body {
    padding: 15px;
}

.sales-info {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.sales-info:last-child {
    margin-bottom: 0;
}

.sales-info-label {
    font-weight: 500;
    color: var(--text-color);
    width: 80px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sales-info-value {
    flex: 1;
    color: var(--text-color);
}

/* Бейджи */
.promocode-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--line);
    color: var(--bg);
}

.referral-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--line);
    color: var(--bg);
}

.level-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    background-color: var(--bg_hover);
    color: var(--text-color);
    border: 1px solid var(--border);
}

.level-1 {
    background-color: var(--line);
    color: var(--bg);
    border: none;
}

.level-2 {
    background-color: var(--button);
    color: var(--bg);
    border: none;
}

.level-3 {
    background-color: var(--blok);
    color: var(--bg);
    border: none;
}


.no-courses {
    padding: 20px;
    text-align: center;
    color: var(--text-color);
    background-color: var(--bg_hover);
    border-radius: 5px;
    opacity: 0.7;
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }

    .current-name {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .sales-item-header {
        padding: 12px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border);
    }
    
    .sales-amount {
        margin-top: 5px;
    }
    
    .sales-info {
        flex-direction: column;
    }
    
    .sales-info-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/partners/sales..php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/partners/settings.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
    opacity: 1;
    color: var(--line);
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 1px solid var(--border);
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    z-index: 10000000;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-menu-btn:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mobile-dropdown ul li a:hover {
    background: var(--bg_hover);
    opacity: 1;
}

.mobile-dropdown ul li a.active {
    background: var(--bg_hover);
    color: var(--line);
    opacity: 1;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* Settings form styles */
.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
    border: 1px solid var(--border);
}

.card-title {
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: var(--bg);
    color: var(--text-color);
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    border-color: var(--line);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-color);
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.7;
}

.wallet-selector {
    background-color: var(--bg_hover);
    border: 2px solid var(--border);
    font-weight: 500;
}

.wallet-section {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--bg_hover);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Crypto info box */
.crypto-info-box {
    background-color: var(--bg_hover);
    border-left: 4px solid var(--line);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.crypto-info-icon {
    font-size: 20px;
    color: var(--line);
    flex-shrink: 0;
    margin-top: 2px;
}

.crypto-info-text {
    flex: 1;
    color: var(--text-color);
}

.crypto-info-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.crypto-info-text p:last-child {
    margin-bottom: 0;
}

.crypto-info-text ul {
    margin: 8px 0 10px 0;
    padding-left: 20px;
}

.crypto-info-text li {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
}

/* Form actions */
.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-save {
    background-color: var(--button);
    color: var(--bg);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    background-color: var(--button_hover);
}

.btn-save:active {
    transform: none;
}

/* Alert styles */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid var(--border);
}

.alert-error {
    background-color: var(--error);
    color: var(--text-color);
}

.alert-success {
    background-color: var(--success);
    color: var(--text-color);
}

.alert ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.alert li {
    margin-bottom: 4px;
}

/* Responsive styles */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }
    
    .crypto-info-box {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .form-section h4 {
        font-size: 16px;
    }
    
    .card-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .settings-form {
        padding: 20px 16px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group select {
        padding: 10px 12px;
    }
    
    .crypto-info-box {
        padding: 20px;
    }
    
    .btn-save {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}


/* КІНЕЦЬ ІЗ СТИЛЬ modules/partners/settings.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/pro/index.php */

.price-block {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 15px auto; /* по центру */
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
}
.price-block .big-price {
    font-size: 25px;
    font-weight: bold;
}


.course_block1 {
    background-color: var(--bg);
    padding: 10px 15px;
    margin: 0 auto 5px auto; /* центрування */
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border);
    color: var(--text-color);
    max-width: 800px; /* обмеження ширини */
    width: 100%;      /* щоб підлаштовувалось під менші екрани */
    box-sizing: border-box; /* щоб padding не виходив за межі */
}


.course_block1 span.toggle {
    background-color: var(--bg_hover);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 2px 10px;
    cursor: pointer;
    float: right;
    color: var(--text-color);
    font-weight: bold;
}

.course_block1 .spoiler-text {
    display: none;
    margin-top: 10px;
    padding-top: 5px;
    color: var(--text-color);
}

.buy-block {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 15px auto; /* по центру */
    text-align: center;
    box-sizing: border-box;
}

.download-button {
    display: block;
    max-width: 100%;           /* ніколи не більше ніж .buy-block */
    margin: 0 auto;
    background: #F25440;
    color: #FFF !important;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;     /* щоб padding не додавав ширину */
}

.download-button:hover {
    background: #E34F3C;
    transform: translateY(-2px);
}



/* КІНЕЦЬ ІЗ СТИЛЬ modules/pro/index.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/pro/payment.php */


.price-block {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
}

.price-block .big-price {
    font-size: 25px;
    font-weight: bold;
}

.course_block1 {
    background-color: var(--bg);
    padding: 20px 25px;
    margin: 0 auto 20px auto; /* Рівномірний відступ 20px знизу */
    border-radius: 25px;
    position: relative;
    border: 1px solid var(--border);
    color: var(--text-color);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

/* Додаємо відступи для заголовка */
.container > center {
    margin-bottom: 20px;
}

.payment-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px; /* Рівномірний відступ між групами форми */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background-color: var(--bg);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #F25440;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg);
}

.payment-method:hover {
    border-color: #F25440;
    background-color: var(--bg_hover);
}

.payment-method.selected {
    border-color: #F25440;
    background-color: var(--bg_hover);
}

.payment-method input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.payment-method-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.payment-method-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.payment-method-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.payment-method-details p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color-light);
}

.balance-info {
    background-color: #e8f5e8;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #2e7d32;
}

.balance-insufficient {
    background-color: #ffebee;
    color: #c62828;
}

.price-info {
    background-color: var(--bg_hover);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-row:last-child {
    margin-bottom: 0;
    font-weight: bold;
    font-size: 18px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.download-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    background: #F25440;
    color: #FFF !important;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    background: #E34F3C;
    transform: translateY(-2px);
}

.download-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.error {
    background-color: #ffebee;
    border: 1px solid #e57373;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px; /* Рівномірний відступ */
}

.success {
    background-color: #e8f5e8;
    border: 1px solid #66bb6a;
    color: #2e7d32;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px; /* Рівномірний відступ */
}

.info {
    background-color: #e3f2fd;
    border: 1px solid #64b5f6;
    color: #1976d2;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px; /* Рівномірний відступ */
}

.add-balance-button {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 15px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.add-balance-button:hover {
    background: #45a049;
}

/* Додаємо відступи для повідомлень */
#promo-message {
    margin-top: 10px;
    margin-bottom: 10px;
}

#discount-info {
    margin-bottom: 15px;
}

/* Відступи для мобільних пристроїв */
@media (max-width: 768px) {
    .course_block1 {
        padding: 15px;
        margin: 20px 10px; /* Зберігаємо рівномірний відступ 20px зверху і знизу */
    }
    
    .price-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .download-button {
        max-width: 100%;
    }
    
    .payment-method {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .payment-method-info {
        width: 100%;
        margin-top: 8px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/pro/payment.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/profile/edit_email.php */

.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
	color: var(--text-color);
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid #E4E8EB;
    border-radius: 25px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-dropdown ul li a:hover {
    background: #f1f5f9;
}

.mobile-dropdown ul li a.active {
    background: #eff6ff;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-color) !important;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.save-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.delete-button {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.delete-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.delete-button:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Стили для аватара */
.avatar-section {
    text-align: center;
    margin-bottom: 32px;
}

.current-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
    margin-bottom: 20px;
    display: inline-block;
    background: #f8fafc;
}

.avatar-info {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Сообщения об ошибках и успехе */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }

    .current-avatar {
        width: 120px;
        height: 120px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-button {
        margin-left: 0;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* Warning для смены email */
.warning-section {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.warning-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.warning-text {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/profile/edit_email.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/profile/edit_name.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
	color: var(--text-color);
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid #E4E8EB;
    border-radius: 25px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-dropdown ul li a:hover {
    background: #f1f5f9;
}

.mobile-dropdown ul li a.active {
    background: #eff6ff;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-color) !important;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.save-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.delete-button {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.delete-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.delete-button:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Стили для аватара */
.avatar-section {
    text-align: center;
    margin-bottom: 32px;
}

.current-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
    margin-bottom: 20px;
    display: inline-block;
    background: #f8fafc;
}

.avatar-info {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Сообщения об ошибках и успехе */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }

    .current-avatar {
        width: 120px;
        height: 120px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-button {
        margin-left: 0;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/profile/edit_name.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/profile/edit_pass.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
	color: var(--text-color);
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid #E4E8EB;
    border-radius: 25px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-dropdown ul li a:hover {
    background: #f1f5f9;
}

.mobile-dropdown ul li a.active {
    background: #eff6ff;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-color) !important;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.save-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.delete-button {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.delete-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.delete-button:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Стили для аватара */
.avatar-section {
    text-align: center;
    margin-bottom: 32px;
}

.current-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
    margin-bottom: 20px;
    display: inline-block;
    background: #f8fafc;
}

.avatar-info {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Сообщения об ошибках и успехе */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }

    .current-avatar {
        width: 120px;
        height: 120px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-button {
        margin-left: 0;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* Warning для смены email */
.warning-section {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.warning-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.warning-text {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/profile/edit_pass.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/profile/profile.php */


    .saved-courses {
        margin-top: 20px;
    }
    
    .course-item {
        display: flex;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    
    .course-image {
        width: 50px;
        height: 50px;
        margin-right: 20px;
        overflow: hidden;
        border-radius: 5px;
    }
    
    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .no-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        color: #999;
        font-size: 14px;
    }
    
    .course-info {
        flex: 1;
    }
    
    .course-title {
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .course-title a {
        color: #333;
        text-decoration: none;
    }
    
    .course-title a:hover {
        color: #007bff;
    }
    
    .course-actions {
        margin-top: 10px;
    }
    
    .remove-favorite-btn {
        display: inline-block;
        padding: 5px 10px;
        background-color: #f44336;
        color: white;
        border-radius: 3px;
        text-decoration: none;
        font-size: 14px;
    }
    
    .remove-favorite-btn:hover {
        background-color: #d32f2f;
    }
    
    .no-courses {
        padding: 20px;
        text-align: center;
        color: #666;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

/* КІНЕЦЬ ІЗ СТИЛЬ modules/profile/profile.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/profile/settings.php */


.settings-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.sidebar {
    width: 280px;
    background: var(--bg);
    border-radius: 25px;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 12px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: var(--bg_hover);
}

.sidebar-menu a.active {
    background: var(--bg_hover);
    font-weight: 600;
}

.sidebar-menu .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.main-content {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
}

.content-header {
    background: var(--bg);
    border-radius: 25px;
	color: var(--text-color);
    padding: 22px;
    margin-bottom: 12px;
    font-size: 20px;      
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.content-header h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid #E4E8EB;
    border-radius: 25px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    margin-top: 8px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-dropdown ul li a:hover {
    background: #f1f5f9;
}

.mobile-dropdown ul li a.active {
    background: #eff6ff;
}

.mobile-dropdown ul li a .icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.settings-form {
    background: var(--bg);
    border-radius: 25px;
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-color) !important;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.save-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.delete-button {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.delete-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.delete-button:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Стили для аватара */
.avatar-section {
    text-align: center;
    margin-bottom: 32px;
}

.current-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
    margin-bottom: 20px;
    display: inline-block;
    background: #f8fafc;
}

.avatar-info {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Сообщения об ошибках и успехе */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 920px) {
    .settings-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .settings-form {
        padding: 24px 20px;
    }

    .current-avatar {
        width: 120px;
        height: 120px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-button {
        margin-left: 0;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-menu-overlay.show {
    display: block;
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/profile/settings.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/faq.php */


/* Стили для страницы FAQ */
.whats-new-content {
    padding: 20px;
    background-color: var(--bg);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.whats-new-content h2 {
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}
.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}
.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color);
}
.whats-new-content strong,
.whats-new-content b {
    font-weight: 600;
    color: var(--line);
}
.reviews-title {
    text-align: center;
    margin: 12px 0;
    color: var(--text-color);
    font-size: 2em;
    font-weight: 600;
}
.faq-item {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: var(--line);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.faq-question {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--line);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-answer {
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.faq-number {
    background-color: var(--line);
    color: var(--bg);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 0.9em;
}
.search-box {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}
.contact-info {
    background-color: var(--bg);
    border-left: 4px solid var(--line);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
    
    .faq-item, .search-box, .contact-info {
        padding: 15px;
    }
    
    .faq-question {
        font-size: 1.1em;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .faq-number {
        margin-bottom: 10px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/faq.php */


/* ПОЧАТОК ІЗ СТИЛЬ modules/privacy_policy.php */


/* Стили для страницы политики конфиденциальности */
.whats-new-content {
    padding: 20px;
    background-color: var(--bg);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.whats-new-content h2 {
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}
.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}
.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color);
}
.whats-new-content strong,
.whats-new-content b {
    font-weight: 600;
    color: var(--line);
}
.reviews-title {
    text-align: center;
    margin: 12px 0;
    color: var(--text-color);
    font-size: 2em;
    font-weight: 600;
}
.data-table {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}
.contact-section {
    background-color: var(--bg);
    border-left: 4px solid var(--line);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
    
    .data-table, .contact-section {
        padding: 12px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/privacy_policy.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/rules.php */


/* Стили для страницы правил */
.whats-new-content {
    padding: 20px;
    background-color: var(--bg);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.whats-new-content h2 {
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}
.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}
.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color);
}
.whats-new-content strong,
.whats-new-content b {
    font-weight: 600;
    color: var(--line);
}
.reviews-title {
    text-align: center;
    margin: 12px 0;
    color: var(--text-color);
    font-size: 2em;
    font-weight: 600;
}
.rule-section {
    background-color: var(--bg);
    border-left: 4px solid var(--line);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}
.warning-box {
    background-color: var(--bg);
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #e74c3c;
}
.info-box {
    background-color: var(--bg);
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
    
    .rule-section, .warning-box, .info-box {
        padding: 12px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/rules.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/сooperation.php */


/* Стили для страницы сотрудничества */
.whats-new-content {
    padding: 20px;
    background-color: var(--bg);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.whats-new-content h2 {
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}
.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}
.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color);
}
.whats-new-content strong,
.whats-new-content b {
    font-weight: 600;
    color: var(--line);
}
.reviews-title {
    text-align: center;
    margin: 12px 0;
    color: var(--text-color);
    font-size: 2em;
    font-weight: 600;
}
.collaboration-type {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--line);
}
.contact-form {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
    
    .collaboration-type, .contact-form {
        padding: 15px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/сooperation.php */

/* ПОЧАТОК ІЗ СТИЛЬ modules/сopyright_holders.php */


/* Стили для страницы правообладателей */
.copyright-content {
    padding: 20px;
    background-color: var(--bg);
    border-radius: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.copyright-content h2 {
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.copyright-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.copyright-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.copyright-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color);
}

.copyright-content strong {
    font-weight: 600;
    color: var(--line);
}

.copyright-title {
    text-align: center;
    margin: 12px 0;
    color: var(--text-color);
    font-size: 2em;
    font-weight: 600;
}

.notice-form {
    background-color: var(--bg_hover);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--line);
    margin: 20px 0;
    border: 1px solid var(--border);
}

.notice-form h2 {
    color: var(--text-color);
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.notice-form p,
.notice-form em {
    color: var(--text-color);
}

.contact-info {
    background-color: var(--bg_hover);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid var(--border);
}

.contact-info h2 {
    color: var(--text-color);
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info p {
    color: var(--text-color);
}

.contact-info em {
    color: var(--text-color);
    opacity: 0.8;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .copyright-content {
        padding: 15px;
    }
    
    .copyright-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .copyright-content h2 {
        font-size: 1.3em;
    }
    
    .notice-form, .contact-info {
        padding: 12px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ modules/сopyright_holders.php */

/* ПОЧАТОК ІЗ СТИЛЬ page/affiliate-terms.php */


    /* Стилі для сторінки політики конфіденціальності */
.whats-new-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.whats-new-content h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.whats-new-content strong {
    font-weight: 600;
    color: #1a5276;
}

.reviews-title {
    text-align: center;
    margin: 30px 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
}
/* КІНЕЦЬ ІЗ СТИЛЬ page/affiliate-terms.php */



/* ПОЧАТОК ІЗ СТИЛЬ page/contact_us.php */


/* Стили для страницы контактов */
.whats-new-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.whats-new-content h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.whats-new-content h3 {
    color: #1a5276;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.whats-new-content a {
    color: #3498db;
    text-decoration: none;
}

.whats-new-content a:hover {
    text-decoration: underline;
}

.reviews-title {
    text-align: center;
    margin: 30px 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
    
    .whats-new-content h3 {
        font-size: 1.1em;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ page/contact_us.php */

/* ПОЧАТОК ІЗ СТИЛЬ page/payment-terms.php */


    /* Стилі для сторінки політики конфіденціальності */
.whats-new-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.whats-new-content h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.whats-new-content strong {
    font-weight: 600;
    color: #1a5276;
}

.reviews-title {
    text-align: center;
    margin: 30px 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ page/payment-terms.php */

/* ПОЧАТОК ІЗ СТИЛЬ page/privacy-policy.php */


    
    /* Стилі для сторінки політики конфіденціальності */
.whats-new-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.whats-new-content h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.whats-new-content strong {
    font-weight: 600;
    color: #1a5276;
}

.reviews-title {
    text-align: center;
    margin: 30px 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
}


/* КІНЕЦЬ ІЗ СТИЛЬ page/privacy-policy.php */

/* ПОЧАТОК ІЗ СТИЛЬ page/profile.php */


    .saved-courses {
        margin-top: 20px;
    }
    
    .course-item {
        display: flex;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    
    .course-image {
        width: 50px;
        height: 50px;
        margin-right: 20px;
        overflow: hidden;
        border-radius: 5px;
    }
    
    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .no-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        color: #999;
        font-size: 14px;
    }
    
    .course-info {
        flex: 1;
    }
    
    .course-title {
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .course-title a {
        color: #333;
        text-decoration: none;
    }
    
    .course-title a:hover {
        color: #007bff;
    }
    
    .course-actions {
        margin-top: 10px;
    }
    
    .remove-favorite-btn {
        display: inline-block;
        padding: 5px 10px;
        background-color: #f44336;
        color: white;
        border-radius: 3px;
        text-decoration: none;
        font-size: 14px;
    }
    
    .remove-favorite-btn:hover {
        background-color: #d32f2f;
    }
    
    .no-courses {
        padding: 20px;
        text-align: center;
        color: #666;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

/* КІНЕЦЬ ІЗ СТИЛЬ page/profile.php */

/* ПОЧАТОК ІЗ СТИЛЬ page/refund-policy.php */


/* Стилі для сторінки політики конфіденціальності */
.whats-new-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.whats-new-content h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.whats-new-content strong {
    font-weight: 600;
    color: #1a5276;
}

.reviews-title {
    text-align: center;
    margin: 30px 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ page/refund-policy.php */

/* ПОЧАТОК ІЗ СТИЛЬ page/reviews.php */


/* Стилі для відгуків */
.site-reviews {
    margin-top: 30px;
}

.reviews-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.reviews-description {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.5;
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.review-author a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.review-author a:hover {
    text-decoration: underline;
}

.review-date {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-text {
    line-height: 1.5;
}

.no-reviews {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Форма відгуку */
.review-form {
    margin-top: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.review-form h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.review-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
}

.submit-review {
    background-color: #1a73e8;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.submit-review:hover {
    background-color: #0d47a1;
}

.login-to-review {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.login-to-review a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.login-to-review a:hover {
    text-decoration: underline;
}

.review-already-left {
    text-align: center;
    padding: 15px;
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    margin-top: 20px;
    color: #333;
}

.error-message {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #b71c1c;
}

.success-message {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #1b5e20;
}

/* Стилі для кнопки видалення (тільки для адміна) */
.admin-controls {
    margin-left: 15px;
}

.delete-review-link {
    color: #f44336;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.delete-review-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.delete-review-link i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .review-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .admin-controls {
        margin-left: 0;
        margin-top: 5px;
    }
}


/* КІНЕЦЬ ІЗ СТИЛЬ page/reviews.php */


/* ПОЧАТОК ІЗ СТИЛЬ page/search.php */

 .search-form-container {
        margin: 20px 0;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input-wrapper {
        display: flex;
    }
    
    .search-input-wrapper input[type="text"] {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px 0 0 4px;
        font-size: 16px;
    }
    
    .search-input-wrapper button {
        padding: 10px 20px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        font-size: 16px;
    }
    
    .search-input-wrapper button:hover {
        background-color: #45a049;
    }
    
    .search-results-count {
        margin: 20px 0;
        font-size: 16px;
        color: #666;
    }
    
    .search-result-item {
        padding: 15px;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .result-title {
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .result-title a {
        color: #333;
        text-decoration: none;
    }
    
    .result-title a:hover {
        color: #4CAF50;
    }
    
    .result-meta {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 14px;
        color: #777;
    }
    
    .result-category a {
        color: #777;
        text-decoration: none;
    }
    
    .result-category a:hover {
        text-decoration: underline;
    }
    
    .result-text {
        color: #555;
        line-height: 1.5;
    }
    
    .highlight {
        background-color: #ffeb3b;
        padding: 2px 0;
    }
    
    .no-results, .search-instructions {
        padding: 30px;
        text-align: center;
        background-color: #f9f9f9;
        border-radius: 4px;
        color: #666;
    }
    
    .search-instructions p {
        margin-bottom: 15px;
    }
    
    


/* Стилі для сторінки політики конфіденціальності */
.whats-new-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.whats-new-content h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.whats-new-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.whats-new-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.whats-new-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.whats-new-content strong {
    font-weight: 600;
    color: #1a5276;
}

.reviews-title {
    text-align: center;
    margin: 30px 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .whats-new-content {
        padding: 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
        margin: 20px 0;
    }
    
    .whats-new-content h2 {
        font-size: 1.3em;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ page/terms.php */


/* ПОЧАТОК ІЗ СТИЛЬ page/whats-new.php */


/* Унікальні стилі для кнопок форуму - мобільна версія */
.forum-action-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  justify-content: center;
}

.forum-btn-new-topic,
.forum-btn-new-subcategory,
.forum-btn-delete-cat {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
}

.forum-btn-new-topic {
  background-color: #4d90fe;
  color: white;
}

.forum-btn-new-subcategory {
  background-color: #ff9800;
  color: white;
}

.forum-btn-delete-cat {
  background-color: #f44336;
  color: white;
}

/* Медіа-запит для мобільних пристроїв */
@media (max-width: 767px) {
  .forum-action-container {
    flex-direction: column;
    width: 100%;
  }
  
  .forum-btn-new-topic,
  .forum-btn-new-subcategory,
  .forum-btn-delete-cat {
    width: 100%;
    margin-bottom: 8px;
    padding: 12px 10px;
    font-size: 16px;
  }
}




/* Стилі для хлібних крихт */
.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Заголовок категорії */
.category-view-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Кнопка створення нової теми */
.new-topic-button {
    margin-bottom: 30px;
}

.new-topic-button a {
    display: inline-block;
    background-color: #1a73e8;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.new-topic-button a:hover {
    background-color: #0d47a1;
}

/* Секція підкатегорій */
.subcategories-section {
    margin-bottom: 30px;
}

.subcategories-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Секція тем */
.topics-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Список тем */
.topics-list {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.topics-header {
    display: flex;
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.topic-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: white;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background-color: #f9f9f9;
}

.topic-title-col {
    flex: 3;
   
}

.topic-title-col a {
    font-weight: 500;
    color: #1a73e8;
    text-decoration: none;
}

.topic-title-col a:hover {
    text-decoration: underline;
}

.topic-author {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.topic-stats-col {
    flex: 1;
    text-align: center;
}

.topic-last-post-col {
    flex: 2;
    font-size: 15px;
}

.topic-last-post-date {
    color: #666;
}

.topic-last-post-author {
    margin-top: 3px;
}

.no-topics {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .topics-header {
        display: none;
    }
    
    .topic-item {
        flex-wrap: wrap;
		color: #666 !important;
    }
    
    .topic-title-col {
        flex: 1 0 100%;
        margin-bottom: 10px;
    }
    
    .topic-stats-col, .topic-last-post-col {
        flex: 1 0 50%;
        font-size: 12px;
    }
}

/* КІНЕЦЬ ІЗ СТИЛЬ page/whats-new.php */

/* ПОЧАТОК ІЗ СТИЛЬ support/index.php */

.form-container {
        background-color: #fff;
        border-radius: 8px;
        padding: 30px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }
    
    .support-info {
        margin-bottom: 20px;
        color: #555;
        line-height: 1.6;
    }
    
    .support-info a {
        color: #4CAF50;
        text-decoration: none;
    }
    
    .support-info a:hover {
        text-decoration: underline;
    }
    
    .support-form .form-group {
        margin-bottom: 20px;
    }
    
    .support-form label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #333;
    }
    
    .support-form input[type="email"],
    .support-form select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
    }
    
    .support-form textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        resize: vertical;
    }
    
    .support-form .submit-button {
        padding: 12px 25px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        cursor: pointer;
    }
    
    .support-form .submit-button:hover {
        background-color: #45a049;
    }
    
    .success-message {
        background-color: #dff0d8;
        color: #3c763d;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .error-message {
        background-color: #f2dede;
        color: #a94442;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .support-contacts {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    
    .support-contacts h3 {
        margin-top: 0;
        color: #333;
    }
    
    .ticket-history h2 {
        margin-top: 0;
        margin-bottom: 20px;
        color: #333;
    }
    
    .tickets-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .tickets-table th,
    .tickets-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    
    .tickets-table th {
        background-color: #f9f9f9;
        font-weight: 500;
        color: #333;
    }
    
    .status-open {
        color: #f39c12;
        font-weight: 500;
    }
    
    .status-in_progress {
        color: #3498db;
        font-weight: 500;
    }
    
    .status-closed {
        color: #2ecc71;
        font-weight: 500;
    }
    
    .view-ticket-button {
        display: inline-block;
        padding: 5px 10px;
        background-color: #4CAF50;
        color: white;
        text-decoration: none;
        border-radius: 3px;
        font-size: 14px;
    }
    
    .view-ticket-button:hover {
        background-color: #45a049;
    }
    
    .all-tickets-link {
        margin-top: 15px;
        text-align: right;
    }
    
    .all-tickets-link a {
        color: #4CAF50;
        text-decoration: none;
    }
    
    .all-tickets-link a:hover {
        text-decoration: underline;
    }
    
    .no-tickets {
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 4px;
        color: #666;
        text-align: center;
    }

/* КІНЕЦЬ ІЗ СТИЛЬ support/index.php/ */



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

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .status-message {
        padding: 12px 16px;
        border-radius: var(--radius);
        margin-bottom: 16px;
        font-weight: 500;
    }

    .status-success {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .status-error {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    .hidden {
        display: none;
    }

    @media (max-width: 768px) {
        .container {
            padding: 16px;
        }

        .categories-grid {
            grid-template-columns: 1fr;
        }

        .actions-bar {
            flex-direction: column;
            gap: 12px;
            align-items: stretch;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .category-stats {
            flex-direction: column;
            gap: 4px;
        }

        .subcategory-counts {
            flex-direction: column;
            gap: 4px;
            align-items: flex-end;
        }
    }

    @media (max-width: 480px) {
        .stats-grid {
            grid-template-columns: 1fr;
        }
        
        .subcategory-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        
        .subcategory-counts {
            flex-direction: row;
            align-self: flex-end;
        }
    }


/* КІНЕЦЬ ІЗ СТИЛЬ корінь сайта/count.php */

/* ПОЧАТОК ІЗ СТИЛЬ корінь сайта/list_kurs.php */



h2 { text-align:center; margin-bottom:20px; }
.category-title { text-align:center; color:#666; font-size:14px; margin-top:-10px; margin-bottom:20px; }
.list { display:flex; flex-direction:column; gap:12px; max-width:600px; margin:0 auto; }
.card { display:flex; justify-content:space-between; align-items:center; background:#fff; padding:12px 16px; border-radius:10px; box-shadow:0 2px 6px rgba(0,0,0,0.1); transition: transform 0.1s; word-break:break-word; text-decoration:none; color:inherit; }
.card:hover { transform:translateY(-2px); background:#e0f7ff; }
.card-info { font-size:16px; flex:1; margin-right:10px; }
.copy-btn { background:#28a745; border:none; color:#fff; width:36px; height:36px; border-radius:50%; cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center; transition: background 0.2s; flex-shrink:0; }
.copy-btn:hover { background:#218838; }
.back-link { display:inline-block; margin:20px auto; padding:10px 20px; background:#007bff; color:white; text-decoration:none; border-radius:5px; text-align:center; max-width:200px; }
.back-link:hover { background:#0056b3; }
.page-btn { padding:8px 12px; margin:2px; border:none; background:#007bff; color:white; cursor:pointer; border-radius:5px; }
.page-btn.active { background:#0056b3; }
@media (max-width:480px) { .card { flex-direction:column; align-items:flex-start; gap:8px; padding:10px 12px; } .card-info { margin-right:0; } .copy-btn { align-self:flex-end; width:32px; height:32px; font-size:16px; } }
.copy-btn-all {
    background: #ff9800;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    display: block;
    margin: 0 auto 10px auto; /* по центру і невеликий відступ знизу */
}
.copy-btn-all:hover { 
    background: #e68900; 
}


/* КІНЕЦЬ ІЗ СТИЛЬ корінь сайта/list_kurs.php */

/* ПОЧАТОК ІЗ СТИЛЬ корінь сайта/payment-failed.php */

<style>
.price-block {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
}

.price-block .big-price {
    font-size: 25px;
    font-weight: bold;
}

.course_block1 {
    background-color: var(--bg);
    padding: 20px 25px;
    margin: 0 auto 20px auto; /* Рівномірний відступ 20px знизу */
    border-radius: 25px;
    position: relative;
    border: 1px solid var(--border);
    color: var(--text-color);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    text-align: center; /* центр тексту */
}

/* Додаємо відступи для заголовка */
.container > center {
    margin-bottom: 20px;
}

        .fail-icon {
            font-size: 64px;
            color: #dc3545;
            margin-bottom: 20px;
        }
        h1 {
            color: #dc3545;
            margin-bottom: 20px;
        }
        .info-text {
            color: #666;
            margin-bottom: 10px;
        }
       .download-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    background: #F25440;
    color: #FFF !important;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    background: #E34F3C;
    transform: translateY(-2px);
}

.download-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
        .order-info {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            font-family: monospace;
        }
        .reasons {
            text-align: left;
            margin: 20px 0;
            padding: 15px;
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 5px;
        }
        .reasons h3 {
            color: #856404;
            margin-top: 0;
        }
        .reasons ul {
            color: #856404;
        }

/* КІНЕЦЬ ІЗ СТИЛЬ корінь сайта/payment-failed.php */

/* ПОЧАТОК ІЗ СТИЛЬ корінь сайта/ */


.price-block {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
}

.price-block .big-price {
    font-size: 25px;
    font-weight: bold;
}

.course_block1 {
    background-color: var(--bg);
    padding: 20px 25px;
    margin: 0 auto 20px auto; /* Рівномірний відступ 20px знизу */
    border-radius: 25px;
    position: relative;
    border: 1px solid var(--border);
    color: var(--text-color);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    text-align: center; /* центр тексту */
}

/* Додаємо відступи для заголовка */
.container > center {
    margin-bottom: 20px;
}

	
	
        .success-container {
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .success-icon {
            font-size: 64px;
            color: #28a745;
            margin-bottom: 20px;
        }
        h1 {
            color: #28a745;
            margin-bottom: 20px;
        }
        .info-text {
            color: #666;
            margin-bottom: 10px;
        }
.download-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    background: #F25440;
    color: #FFF !important;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    background: #E34F3C;
    transform: translateY(-2px);
}

.download-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
        .order-info {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            font-family: monospace;
        }

/* КІНЕЦЬ ІЗ СТИЛЬ корінь сайта/ */

        :root {
            --cp-brand-primary: #6366f1;
            --cp-brand-secondary: #8b5cf6;
            --cp-brand-accent: #06b6d4;
            --cp-brand-gradient: linear-gradient(145deg, rgb(139, 92, 246), rgb(124, 58, 237));
            
            /* Light Theme Colors */
            --cp-bg-primary: #ffffff;
            --cp-bg-secondary: #f8fafc;
            --cp-bg-card: rgba(255, 255, 255, 0.9);
            --cp-bg-overlay: rgba(248, 250, 252, 0.95);
            --cp-text-primary: #1e293b;
            --cp-text-secondary: #64748b;
            --cp-text-muted: #94a3b8;
            --cp-border: rgba(148, 163, 184, 0.3);
            --cp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --cp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --cp-radius: 12px;
            --cp-radius-sm: 8px;
            --cp-textlink-primary: #fff;
        }

        /* Dark Theme */
        .dark-mode {
            --cp-brand-primary: #dbfb53;
            --cp-brand-secondary: #dbfb53;
            --cp-brand-accent: #22c55e;
            --cp-brand-gradient: linear-gradient(135deg, #dbfb53 0%, #dbfb53 50%, #dbfb53 100%);
            
            --cp-bg-primary: #0f172a;
            --cp-bg-secondary: #1e293b;
            --cp-bg-card: rgba(30, 41, 59, 0.8);
            --cp-bg-overlay: rgba(15, 23, 42, 0.95);
            --cp-text-primary: #f1f5f9;
            --cp-text-secondary: #94a3b8;
            --cp-text-muted: #64748b;
            --cp-border: rgba(148, 163, 184, 0.2);
            --cp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
            --cp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
             --cp-textlink-primary: #212121;
        }

        body.cp-theme {
      
            color: var(--cp-text-primary);
            transition: all 0.3s ease;
        }

        .cp-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 24px;
        }

        /* Breadcrumb */
        .cp-breadcrumb {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: var(--cp-text-secondary);
            margin-bottom: 16px;
            padding: 12px 16px;
            background: var(--cp-bg-card);
            border-radius: var(--cp-radius-sm);
            backdrop-filter: blur(10px);
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            white-space: nowrap;
        }

        .cp-breadcrumb::-webkit-scrollbar {
            display: none;
        }

        .cp-breadcrumb a {
            color: var(--cp-brand-primary);
            text-decoration: none;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }

        .cp-breadcrumb a:hover {
            color: var(--cp-brand-secondary);
        }

        .cp-breadcrumb .material-icons {
            font-size: 16px;
        }

        .cp-breadcrumb-separator {
            color: var(--cp-text-muted);
            display: flex;
            align-items: center;
        }

        /* Main Content */
        .cp-main {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .cp-hero {
            position: relative;
            border-radius: var(--cp-radius);
            overflow: hidden;
            aspect-ratio: 16/9;
            background: var(--cp-bg-card);
            backdrop-filter: blur(10px);
            box-shadow: var(--cp-shadow-lg);
        }

        .cp-hero img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .cp-hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .cp-hero:hover .cp-hero-overlay {
            opacity: 1;
        }

        .cp-play-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            color: var(--cp-brand-primary);
            font-size: 20px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .cp-play-btn:hover {
            transform: scale(1.1);
        }

        /* Course Info */
        .cp-info {
            background: var(--cp-bg-card);
            border-radius: var(--cp-radius);
            padding: 20px;
            backdrop-filter: blur(10px);
            box-shadow: var(--cp-shadow);
        }

        .cp-title {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 12px;
            line-height: 1.3;
            color: var(--cp-text-primary);
        }

        .cp-author {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--cp-border);
        }

        .cp-author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--cp-brand-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 14px;
        }

        .cp-author-info h4 {
            font-size: 15px;
            margin-bottom: 2px;
            color: var(--cp-text-primary);
        }

        .cp-author-meta {
            color: var(--cp-text-secondary);
            font-size: 13px;
        }

        .cp-description {
            color: var(--cp-text-secondary);
            line-height: 1.6;
            font-size: 14px;
            margin-bottom: 16px;
        }

        .cp-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            padding-top: 16px;
            border-top: 1px solid var(--cp-border);
        }

        .cp-action-btns {
            display: flex;
            gap: 8px;
        }

        .cp-btn {
            padding: 8px 16px;
            border-radius: var(--cp-radius-sm);
            border: none;
            cursor: pointer;
            font-weight: 500;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cp-btn .material-icons {
            font-size: 16px;
        }

        .cp-btn-primary {
            width: none;
            background: var(--cp-brand-gradient);
            color: var(--cp-textlink-primary);;
            font-weight: bold;
        }

        a.cp-btn-primary {

            color: var(--cp-textlink-primary);;

        }

        .cp-btn-primary:hover {
            transform: translateY(-1px);
        }

        .cp-btn-secondary {
            background: rgba(148, 163, 184, 0.1);
            color: var(--cp-text-primary);
        }

        .cp-btn-liked {
            background: #22c55e;
            color: white;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cp-btn-liked:hover {
            background: #16a34a;
            transform: translateY(-1px);
        }

        .cp-btn-secondary {
            background: rgba(148, 163, 184, 0.1);
            color: var(--cp-text-primary);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cp-btn-secondary:hover {
            background: rgba(148, 163, 184, 0.2);
        }

        .cp-stats {
            display: flex;
            gap: 16px;
            color: var(--cp-text-secondary);
            font-size: 13px;
            align-items: center;
        }

        .cp-stat-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .cp-stat-item .material-icons {
            font-size: 16px;
        }

        /* Reviews */
        .cp-reviews {
            background: var(--cp-bg-card);
            border-radius: var(--cp-radius);
            padding: 24px;
            backdrop-filter: blur(10px);
            box-shadow: var(--cp-shadow);
        }

        .cp-reviews-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--cp-border);
        }

        .cp-reviews-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--cp-text-primary);
        }

        .cp-review-item {
            padding: 20px;
            margin-bottom: 16px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: var(--cp-radius-sm);
            border: 1px solid var(--cp-border);
            transition: all 0.3s ease;
        }

        .cp-review-item:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateY(-2px);
            box-shadow: var(--cp-shadow-lg);
        }

        .cp-review-item:last-child {
            margin-bottom: 0;
        }

        .cp-review-header {
            display: flex;
            gap: 12px;
            margin-bottom: 8px;
        }

        .cp-review-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--cp-brand-gradient);
            flex-shrink: 0;
        }

        .cp-review-info {
            flex: 1;
        }

        .cp-review-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .cp-review-author {
            font-weight: 600;
            font-size: 14px;
            color: var(--cp-text-primary);
        }

        .cp-review-date {
            color: var(--cp-text-muted);
            font-size: 12px;
        }

        .cp-rating-stars {
            display: flex;
            gap: 2px;
        }

        .cp-star {
            font-size: 18px;
        }

        .cp-star.filled {
            color: #fbbf24;
        }

        .cp-star.empty {
            color: var(--cp-text-muted);
        }

        .cp-review-text {
            color: var(--cp-text-secondary);
            margin-bottom: 12px;
            line-height: 1.5;
            font-size: 14px;
        }

        .cp-review-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .cp-vote-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: var(--cp-text-muted);
            cursor: pointer;
            padding: 4px 8px;
            border-radius: var(--cp-radius-sm);
            transition: all 0.2s;
            font-size: 13px;
        }

        .cp-vote-btn:hover {
            background: rgba(148, 163, 184, 0.1);
            color: var(--cp-text-primary);
        }

        .cp-vote-btn.active {
            color: var(--cp-brand-primary);
        }

        /* Sidebar */
        .cp-sidebar {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .cp-sidebar-card {
            background: var(--cp-bg-card);
            border-radius: var(--cp-radius);
            padding: 16px;
            box-shadow: var(--cp-shadow);
        }

        .cp-sidebar-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--cp-text-primary);
        }

        .cp-meta-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 16px;
        }

        .cp-meta-item {
            display: flex;
            justify-content: space-between;
            color: var(--cp-text-secondary);
            font-size: 13px;
        }

        .cp-download-btn {
            width: 100%;
            padding: 12px 16px;
            background: var(--cp-brand-gradient);
            border: none;
            border-radius: var(--cp-radius-sm);
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            font-size: 14px;
            margin-bottom: 12px;
            box-sizing: border-box;
        }

        a.cp-download-btn {
            transform: translateY(-1px);
            color: var(--cp-textlink-primary);;
        }
        .cp-download-btn:hover {
            transform: translateY(-1px);
        }

        .cp-download-btn.disabled {
            background: var(--cp-text-muted);
            cursor: not-allowed;
        }

        .cp-download-btn.disabled:hover {
            transform: none;
        }

        /* Collections */
        .cp-collections-toggle {
            background: rgba(148, 163, 184, 0.1);
            border: 1px solid var(--cp-border);
            border-radius: var(--cp-radius-sm);
            padding: 10px 12px;
            width: 100%;
            color: var(--cp-text-primary);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            box-sizing: border-box;
  
            align-items: center;
            gap: 6px;
            text-align: center;
        }

        .cp-collections-toggle .material-icons {
            font-size: 16px;
        }

        .cp-collections-toggle:hover {
            background: rgba(148, 163, 184, 0.2);
        }

        .cp-collections-popup {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--cp-bg-overlay);
            border: 1px solid var(--cp-border);
            border-radius: var(--cp-radius-sm);
            padding: 12px;
            z-index: 99999;
            backdrop-filter: blur(20px);
            max-height: 250px;
            overflow-y: auto;
            transform: translateY(-8px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s;
            margin-top: 4px;
        }

        .cp-collections-popup.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

        .cp-collection-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px;
            border-radius: var(--cp-radius-sm);
            margin-bottom: 6px;
            transition: background 0.2s;
        }

        .cp-collection-item:hover {
            background: rgba(148, 163, 184, 0.1);
        }

        .cp-collection-item.active {
            background: rgba(99, 102, 241, 0.2);
        }

        .cp-collection-info {
            flex: 1;
        }

        .cp-collection-name {
            font-weight: 500;
            font-size: 13px;
            margin-bottom: 2px;
            color: var(--cp-text-primary);
        }

        .cp-collection-count {
            font-size: 11px;
            color: var(--cp-text-muted);
        }

        .cp-collection-btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            background: var(--cp-brand-primary);
            color: #212121;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 12px;
        }

        .cp-collection-btn:hover {
            background: var(--cp-brand-secondary);
        }

        .cp-new-collection {
            display: flex;
            gap: 6px;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid var(--cp-border);
        }

        .cp-new-collection input {
            flex: 1;
            padding: 6px 8px;
            background: rgba(148, 163, 184, 0.1);
            border: 1px solid var(--cp-border);
            border-radius: var(--cp-radius-sm);
            color: var(--cp-text-primary);
            font-size: 12px;
        }

        .cp-new-collection button {
            width: 28px;
            height: 28px;
            border-radius: var(--cp-radius-sm);
            border: none;
            background: var(--cp-brand-primary);
            color: #212121;
            cursor: pointer;
            font-size: 14px;
        }

        /* Rating */
        .cp-rating-overview {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
            padding: 16px;
            background: rgba(251, 191, 36, 0.1);
            border-radius: var(--cp-radius-sm);
        }

        .cp-rating-score {
            font-size: 36px;
            font-weight: 700;
            color: #f59e0b;
        }

        .cp-rating-details {
            flex: 1;
        }

        .cp-rating-stars-large {
            display: flex;
            gap: 1px;
            margin-bottom: 6px;
            justify-content: flex-start;
        }

        .cp-rating-stars-large .material-icons {
            font-size: 18px;
            color: #fbbf24;
        }

        .cp-rating-stars-large .material-icons.empty {
            color: var(--cp-text-muted);
        }

        /* Rating Interactive Stars */
        .cp-rating-stars-interactive {
            display: flex;
            gap: 2px;
            margin-bottom: 6px;
            justify-content: center;
        }

        .cp-rating-stars-interactive .material-icons {
            font-size: 42px;
            color: var(--cp-text-muted);
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .cp-rating-stars-interactive .material-icons:hover,
        .cp-rating-stars-interactive .material-icons.hover {
            color: #fbbf24;
        }

        .cp-rating-stars-interactive .material-icons.filled {
            color: #fbbf24;
        }

        .cp-rating-bars {
            margin-bottom: 16px;
        }

        .cp-rating-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }

        .cp-bar-label {
            font-size: 13px;
            width: 35px;
            color: var(--cp-text-primary);
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .cp-bar-label .material-icons {
            font-size: 16px;
            color: #fbbf24;
        }

        .cp-bar-progress {
            flex: 1;
            height: 6px;
            background: rgba(148, 163, 184, 0.2);
            border-radius: 3px;
            overflow: hidden;
        }

        .cp-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #fbbf24, #f59e0b);
            transition: width 0.3s;
        }

        .cp-bar-count {
            font-size: 13px;
            color: var(--cp-text-secondary);
            width: 25px;
            text-align: right;
        }

        /* Related */
        .cp-related-item {
            display: flex;
            gap: 12px;
            padding: 12px;
            border-radius: var(--cp-radius-sm);
            margin-bottom: 12px;
            transition: background 0.2s;
            cursor: pointer;
            align-items: center;
        }

        .cp-related-item:hover {
            background: rgba(148, 163, 184, 0.1);
        }

        .cp-related-thumbnail {
            width: 80px;
            height: 60px;
            border-radius: var(--cp-radius-sm);
            background: var(--cp-brand-gradient);
            flex-shrink: 0;
            overflow: hidden;
        }

        .cp-related-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .cp-related-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .cp-related-info h5 {
            font-size: 14px;
            margin-bottom: 4px;
            line-height: 1.3;
            color: var(--cp-text-primary);
        }

        .cp-related-meta {
            color: var(--cp-text-secondary);
            font-size: 12px;
        }

        /* Modal */
        .cp-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

        .cp-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .cp-modal-content {
            background: var(--cp-bg-overlay);
            border-radius: var(--cp-radius);
            padding: 24px;
            max-width: 450px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            border: 1px solid var(--cp-border);
            backdrop-filter: blur(20px);
        }

        .cp-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--cp-border);
        }

        .cp-modal-header h3 {
            color: var(--cp-text-primary);
        }

        .cp-modal-close {
            background: none;
            border: none;
            color: var(--cp-text-secondary);
            font-size: 20px;
            cursor: pointer;
            padding: 4px;
        }

        .cp-form-group {
            margin-bottom: 16px;
        }

        .cp-form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            font-size: 14px;
            color: var(--cp-text-primary);
        }

        .cp-form-input,
        .cp-form-textarea {
            width: 100%;
            padding: 10px 12px;
            background: rgba(148, 163, 184, 0.1);
            border: 1px solid var(--cp-border);
            border-radius: var(--cp-radius-sm);
            color: var(--cp-text-primary);
            font-size: 14px;
            box-sizing: border-box;
        }

        .cp-form-textarea {
            resize: vertical;
            min-height: 80px;
        }

        .cp-rating-input {
            display: flex;
            gap: 4px;
            margin-top: 6px;
        }

        .cp-rating-input button {
            background: none;
            border: none;
            font-size: 24px;
            color: var(--cp-text-muted);
            cursor: pointer;
            transition: color 0.2s;
        }

        .cp-rating-input button.active,
        .cp-rating-input button:hover {
            color: #fbbf24;
        }

        /* Theme Toggle Button */
        .cp-theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--cp-brand-gradient);
            border: none;
            color: white;
            cursor: pointer;
            transition: transform 0.2s;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .cp-theme-toggle:hover {
            transform: scale(1.1);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .cp-container {
                grid-template-columns: 1fr;
                padding: 16px;
                gap: 20px;
                display: block;
            }
            
            /* Mobile Order: Image -> Title/Description -> About Course -> Reviews -> Rating -> Related */
            .cp-main {
                order: 1;
                margin-bottom: 20px;
            }

            .cp-sidebar {
                order: 2;
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            .cp-about-course {
                order: 1;
            }

            .cp-reviews {
                order: 2;
                margin-top: 0;
            }

            .cp-rating-section {
                order: 3;
            }

            .cp-related-section {
                order: 4;
            }
            
            .cp-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .cp-action-btns {
                justify-content: center;
            }

            .cp-stats {
                justify-content: space-between;
                flex-wrap: wrap;
            }

            .cp-title {
                font-size: 20px;
            }

            .cp-breadcrumb {
                font-size: 12px;
                padding: 8px 12px;
            }

            .cp-breadcrumb a {
                word-break: break-all;
            }

            .cp-rating-overview {
                flex-direction: column;
                text-align: center;
                gap: 12px;
            }

            .cp-rating-score {
                font-size: 28px;
            }
        }

        /* Utility */
        .cp-collections-wrapper {
            position: relative;
        }







        .fc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--fc-bg-card);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--fc-shadow);
    flex-wrap: nowrap; /* Змінено з wrap на nowrap */
    overflow-x: auto; /* Додано горизонтальний скрол */
    scrollbar-width: none; /* Приховує скролбар у Firefox */
    -ms-overflow-style: none; /* Приховує скролбар у IE/Edge */
}

/* Приховує скролбар у Chrome, Safari та Opera */
.fc-breadcrumb::-webkit-scrollbar {
    display: none;
}

.fc-breadcrumb a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--fc-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
    white-space: nowrap; /* Додано щоб текст не переносився */
    line-height: 1; /* Додано для точного вирівнювання */
}

.fc-breadcrumb a:hover {
    color: var(--fc-accent);
}

.fc-breadcrumb a .material-icons {
    font-size: 18px;
    line-height: 1; /* Додано для точного вирівнювання */
    vertical-align: middle; /* Додано для вирівнювання */
}

.fc-breadcrumb-sep {
    color: var(--fc-text-secondary);
    display: flex; /* Додано */
    align-items: center; /* Додано */
    flex-shrink: 0; /* Запобігає стисненню сепаратора */
}

.fc-breadcrumb-sep .material-icons {
    font-size: 18px;
    line-height: 1; /* Додано для точного вирівнювання */
}

.fc-breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--fc-text-primary);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap; /* Додано щоб текст не переносився */
    line-height: 1; /* Додано для точного вирівнювання */
}

.fc-breadcrumb-current .material-icons {
    font-size: 18px;
    line-height: 1; /* Додано для точного вирівнювання */
    vertical-align: middle; /* Додано для вирівнювання */
}

.menu-link .material-icons {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.menu-link a:hover .material-icons {
    color: #8b5cf6;
}

.dark-mode .menu-link a:hover .material-icons {
    color: #dbfb53;
}