/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
}

.logo span {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007bff;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 16px;
    border: 1px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register {
    background: #007bff;
    color: white;
}

.btn-login:hover, .btn-register:hover {
    background: #0056b3;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6c757d;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-body h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #495057;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.category-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-item ul {
    list-style: none;
    padding-left: 0;
}

.category-item li {
    padding: 3px 0;
    font-size: 14px;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

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

/* Main Content */
.main {
    padding: 30px 0;
}

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

.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

/* Promo Codes Section */
.promo-codes {
    margin-bottom: 40px;
}

.promo-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promo-item.completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.promo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.completed {
    background: #f8d7da;
    color: #721c24;
}

.promo-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.promo-content p {
    margin-bottom: 15px;
    color: #495057;
    line-height: 1.5;
}

.btn-promo {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-promo:hover {
    background: #218838;
}

/* Стили для ссылок-кнопок */
a.btn-promo {
    display: inline-block;
    text-decoration: none;
    color: white;
}

a.btn-promo:hover {
    color: white;
    text-decoration: none;
}




/* Description Section */
.description {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.description p {
    color: #495057;
    line-height: 1.6;
}

/* Actions and Discounts */
.actions-discounts {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.actions-discounts h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.actions-discounts p {
    color: #495057;
    line-height: 1.6;
}

/* Activation Instructions */
.activation-instructions {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.activation-instructions h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.activation-instructions p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.activation-instructions ol {
    padding-left: 20px;
}

.activation-instructions li {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Telegram Section */
.telegram-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.telegram-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.telegram-section p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.telegram-section blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 20px 0;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 0 4px 4px 0;
}

.telegram-section blockquote p {
    margin-bottom: 0;
    font-style: italic;
}



/* Promo Updates */
.promo-updates {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.promo-updates h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.update-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.update-status.active {
    background: #d4edda;
    color: #155724;
}

.update-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.update-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.update-item p {
    color: #495057;
    margin-bottom: 8px;
}

.update-date {
    font-size: 12px;
    color: #6c757d;
}




/* New Comments */
.new-comments {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.new-comments h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.comment-item p {
    color: #495057;
    margin: 0;
}

/* Footer Actions */
.footer-actions {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: center;
}

.btn-add-promo {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.btn-add-promo:hover {
    background: #218838;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-share {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-share.telegram {
    background: #0088cc;
    color: white;
}

.social-share.vk {
    background: #4c75a3;
    color: white;
}

.social-share.whatsapp {
    background: #25d366;
    color: white;
}

.social-share:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .subscriptions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .social-links-grid {
        flex-direction: column;
    }
    
    .auth-buttons-large {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .promo-item, .comments-section, .description, .actions-discounts, 
    .activation-instructions, .telegram-section, .auth-section, 
    .promo-updates, .add-store, .forum-topics, .new-articles, 
    .new-comments, .footer-actions {
        padding: 20px;
    }
    
    .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }
}
