/* Общие стили */
:root {
    --primary: #005BAA;
    --secondary: #333;
    --accent: #FF6B00;
    --light-blue: #e6f2ff;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: #f8f9fa;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка сайта */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-top {
    display: flex;
    align-items: center;
    padding: 15px 0;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 30px;
}
.header-icons {
    display: flex;
    gap: 20px;
    margin-left: auto;
    align-items: center;
}
.header-icons a {
    color: var(--secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.3s;
    position: relative;
}
.header-icons a:hover {
    background: var(--light-blue);
}
.cart-count {
    position: absolute;
    top: -5px;
    right: 0;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Главная страница - баннер */
.hero {
    background: url('../img/hero-banner.png') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для AI помощника на главной */
.ai-assistant {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    margin: 170px auto 0; /* Объединили margin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}
.ai-assistant h3 {
    color: var(--primary);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.ai-assistant p {
    color: #ffebee;
    margin-bottom: 20px;
}
.ai-chat {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    background: #f9f9f9;
}
.ai-message {
    margin-bottom: 10px;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
}
.ai-user {
    background: #e6f2ff;
    color: #1a73e8;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    text-align: right;
}
.ai-bot {
    background: #f0f0f0;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}
.ai-input-group {
    display: flex;
    margin-top: 10px;
}
.ai-assistant input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.ai-assistant button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    margin-left: 10px;
}
.ai-assistant button:hover {
    background: #e05a00;
}

/* Секции */
.section {
    padding: 50px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Карточки товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 136, 255, 1);
}
.product-card::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0,91,170,0.3);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover::after {
    opacity: 1;
}
.product-image {
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-info {
    padding: 15px;
}
.product-price {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
    margin: 10px 0;
}
.add-to-cart {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}
.add-to-cart:hover {
    background: #e05a00;
}

/* Подвал */
footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer-title {
    font-weight: bold;
    margin-bottom: 15px;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    color: white;
    text-decoration: none;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Кнопка чата */
.chat-tile {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 99;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s;
}
.chat-tile:hover {
    background: #004a8f;
    transform: translateY(-3px);
}
.chat-tile {
    background: rgba(0, 91, 170, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Модальное окно поиска по артикулу */
.article-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    padding: 20px;
    overflow: hidden;
}
.article-modal.active {
    display: block;
}
.article-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.article-modal-title {
    font-size: 1.5rem;
    color: var(--primary);
}
.article-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.article-input-group {
    display: flex;
    margin-bottom: 20px;
    max-width: 500px;
}
.article-input-group input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.article-input-group button {
    margin-left: 10px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.article-input-group button:hover {
    background: #004a8f;
}
.search-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.results-count {
    font-weight: bold;
    color: var(--primary);
}
.sort-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.search-results-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
}
.search-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.search-error {
    color: var(--danger);
    padding: 15px;
    background: #ffebee;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}
.results-section {
    margin-bottom: 25px;
}
.section-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-blue);
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}
.product-result {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    animation: fadeInUp 0.3s ease-out;
}
.product-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.product-article {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.detail-item {
    display: flex;
    flex-direction: column;
}
.detail-label {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 3px;
}
.detail-value {
    font-weight: 500;
}
.availability-instock {
    color: var(--success);
    font-weight: bold;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}
.availability-outstock {
    color: var(--danger);
    font-weight: bold;
    background: #ffebee;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}
.availability-order {
    color: var(--warning);
    font-weight: bold;
    background: #fff3e0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}
.product-price-final {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
    margin: 10px 0;
    text-align: center;
}
.product-price-original {
    font-size: 0.9rem;
    color: #888;
    text-decoration: line-through;
    text-align: center;
    margin-bottom: 5px;
}
.product-quality {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}
.quality-original {
    background: #e8f5e9;
    color: #2e7d32;
}
.quality-good {
    background: #e3f2fd;
    color: #1565c0;
}
.delivery-fast {
    color: var(--success);
    font-weight: bold;
}
.product-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}
.btn-add-cart {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}
.btn-add-cart:hover {
    background: #e05a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Модальное окно корзины */
.cart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    padding: 20px;
    overflow: hidden;
}
.cart-modal.active {
    display: block;
}
.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.cart-modal-title {
    font-size: 1.5rem;
    color: var(--primary);
}
.cart-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.cart-items {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 20px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}
.cart-item-article {
    color: #666;
    font-size: 0.9em;
}
.cart-item-price {
    font-weight: bold;
    color: var(--accent);
    margin: 0 15px;
}
.cart-item-remove {
    background: #ffebee;
    color: var(--danger);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.cart-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.btn-checkout {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.btn-checkout:hover {
    background: #e05a00;
}
.empty-cart {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Индикатор загрузки */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для баннера */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        min-height: 400px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
        min-height: 350px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* Общая адаптивность */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .product-details {
        grid-template-columns: 1fr;
    }
    .search-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .sort-controls {
        width: 100%;
    }
    .sort-controls select {
        width: 100%;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-price {
        margin: 10px 0;
    }
    .ai-assistant {
        padding: 20px;
    }
    .section-title {
        font-size: 24px;
    }
    .article-modal {
        width: 98%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    .header-icons {
        margin-left: 0;
    }
    .chat-tile {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
}
/* Стили для авторизации Telegram */
.telegram-auth-widget {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin: 10px 0;
    border: 1px solid rgba(0, 91, 170, 0.2);
}

.user-info {
    background: rgba(0, 91, 170, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 91, 170, 0.3);
}
/* Стили для попапа оплаты */
.payment-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    padding: 25px;
    overflow-y: auto;
}

.payment-popup.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 91, 170, 0.2);
}

.payment-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
}

.payment-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.payment-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.payment-info {
    background: rgba(0, 91, 170, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.payment-plan-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.payment-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.payment-details {
    color: #666;
    line-height: 1.5;
}

.payment-test {
    background: #fff3e0;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ff9800;
}

.payment-test h3 {
    color: #e65100;
    margin-bottom: 10px;
    text-align: center;
}

.payment-test p {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.test-payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-payment-success {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-payment-success:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-payment-failure {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-payment-failure:hover {
    background: #da190b;
    transform: translateY(-2px);
}

/* Стили для попапа подписки */
.subscription-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    padding: 25px;
    overflow-y: auto;
}

.subscription-popup.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 91, 170, 0.2);
}

.subscription-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
}

.subscription-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.subscription-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.subscription-description {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.subscription-plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.subscription-plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 91, 170, 0.15);
}

.subscription-plan-card.selected {
    border-color: var(--primary);
    background: rgba(0, 91, 170, 0.05);
}

.plan-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.plan-limit {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.plan-period {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.btn-select-plan {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.btn-select-plan:hover {
    background: #004a8f;
}

.subscription-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.subscription-note {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ НОВЫХ СТРАНИЦ (добавить в конец style.css)
   ============================================================ */

/* Роли и переключатели */
.role-selector { padding: 10px 0; }
.role-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }
.role-btn {
    background: #f0f0f0; border: 2px solid #e0e0e0; padding: 10px 20px;
    border-radius: 30px; cursor: pointer; font-size: 14px; font-weight: 500;
    transition: all 0.3s;
}
.role-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.role-btn.active { background: #005BAA; color: white; border-color: #005BAA; }
.role-status { background: #f8fafc; padding: 12px 16px; border-radius: 10px; margin-top: 10px; }
.role-label { font-weight: 500; color: #666; }
.role-value { font-weight: 600; color: #005BAA; margin-left: 8px; }

/* Подписки */
.subscription-active-card, .subscription-inactive-card {
    background: white; border-radius: 12px; padding: 20px;
    border: 1px solid #e0e0e0;
}
.subscription-badge {
    display: inline-block; padding: 6px 14px; border-radius: 30px;
    background: linear-gradient(135deg, #005BAA, #0088cc); color: white;
    font-weight: 600; margin-bottom: 15px;
}
.subscription-progress { margin: 15px 0; }
.progress-bar {
    background: #e0e0e0; border-radius: 10px; height: 10px; overflow: hidden;
}
.progress-fill {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    height: 100%; border-radius: 10px; transition: width 0.3s;
}
.progress-text { font-size: 12px; color: #666; margin-top: 8px; text-align: center; }
.subscription-remaining { font-size: 14px; color: #2e7d32; font-weight: 500; margin-top: 10px; text-align: center; }
.btn-subscribe-main {
    background: linear-gradient(135deg, #28a745, #20c997); color: white;
    border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer;
    width: 100%; margin-top: 15px; font-weight: 600;
}
.btn-subscribe-main:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(40,167,69,0.3); }

/* Корзина */
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.cart-item-controls button {
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd;
    background: white; cursor: pointer; font-size: 16px;
}
.cart-item-controls button:hover { background: #005BAA; color: white; border-color: #005BAA; }
.cart-item-remove {
    background: #ffebee; color: #c62828; border: none;
    padding: 5px 10px; border-radius: 6px; cursor: pointer;
}

/* Результаты поиска */
.search-results-container { max-height: 60vh; overflow-y: auto; }
.results-section { margin-bottom: 25px; }
.section-title { font-size: 1.1rem; color: #005BAA; margin-bottom: 15px; }
.results-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.product-result {
    background: white; border-radius: 10px; padding: 15px;
    border: 1px solid #e0e0e0; transition: all 0.3s;
}
.product-result:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.product-name { font-weight: 600; margin-bottom: 5px; }
.product-article { font-size: 12px; color: #888; margin-bottom: 10px; }
.product-price-final { font-size: 18px; font-weight: bold; color: #FF6B00; margin: 10px 0; }
.btn-add-cart {
    background: #FF6B00; color: white; border: none; padding: 8px 16px;
    border-radius: 6px; cursor: pointer; width: 100%;
}
.btn-add-cart:hover { background: #e05a00; }

/* Уведомления */
.notification {
    position: fixed; top: 20px; right: 20px; background: #333; color: white;
    padding: 12px 20px; border-radius: 8px; display: none; z-index: 1001;
}
.loading-spinner {
    width: 40px; height: 40px; border: 3px solid #f3f3f3;
    border-top: 3px solid #005BAA; border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 15px;
}
.loading-small {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid #e0e0e0; border-top-color: #005BAA;
    border-radius: 50%; animation: spin 0.8s linear infinite;
    margin-right: 8px; vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .role-buttons { gap: 8px; }
    .role-btn { padding: 8px 14px; font-size: 12px; }
    .results-grid { grid-template-columns: 1fr; }
    .cart-item { flex-direction: column; gap: 10px; text-align: center; }
    .cart-item-controls { justify-content: center; }
}