/* Стили для главной страницы - на основе index.txt */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1a2332 100%);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Компактный Header */
.header {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    text-decoration: none;
}

.logo i {
    font-size: 24px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--light);
    font-size: 14px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: var(--dark-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--light);
    text-decoration: none;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark);
    z-index: 1;
}

.notification-badge:empty {
    display: none;
}

/* Выпадающее меню уведомлений */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: var(--dark-light);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
}

.notifications-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.view-all-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--primary-dark);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
}

.notification-item.unread:hover {
    background: rgba(99, 102, 241, 0.15);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-icon.order {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.notification-icon.transaction {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.notification-icon.review {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.notification-icon.withdrawal {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.notification-icon.deposit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.notification-icon.system {
    background: rgba(148, 163, 184, 0.1);
    color: var(--gray);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--light);
}

.notification-message {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 11px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notifications-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.notifications-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--gray);
}

.notifications-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.notifications-empty p {
    font-size: 14px;
}

@media (max-width: 768px) {
    .notifications-dropdown {
        width: calc(100vw - 40px);
        max-width: 380px;
        right: -10px;
    }
}

/* Блок акций дня */
.sales-preview {
    max-height: 400px;
    overflow-y: auto;
}

.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.sale-item-compact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sale-item-compact:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.sale-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: var(--dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-image i {
    font-size: 32px;
    color: var(--gray);
}

.sale-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
}

.sale-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sale-title {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sale-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sale-price-current {
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
}

.sale-price-old {
    font-size: 10px;
    color: var(--gray);
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .sales-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .sale-item-compact {
        padding: 6px;
    }
    
    .sale-title {
        font-size: 10px;
    }
    
    .sale-price-current {
        font-size: 12px;
    }
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 22px;
    cursor: pointer;
}

/* Компактная навигация */
.compact-nav {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.compact-nav::-webkit-scrollbar {
    display: none;
}

.nav-tabs {
    display: flex;
    gap: 5px;
    list-style: none;
    white-space: nowrap;
    padding: 0 10px;
}

.nav-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-tab a {
    color: inherit;
    text-decoration: none;
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
}

.nav-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
}

/* Компактная главная секция */
.compact-hero {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Анимированный градиентный фон */
.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(99, 102, 241, 0.1),
        rgba(236, 72, 153, 0.1),
        rgba(99, 102, 241, 0.1),
        rgba(236, 72, 153, 0.1)
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: 0;
    pointer-events: none;
}

/* Свечение по краям */
.hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.5),
        rgba(236, 72, 153, 0.5),
        rgba(99, 102, 241, 0.5)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Контент поверх эффектов */
.hero-card > * {
    position: relative;
    z-index: 2;
}

/* Анимация градиента */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Анимация свечения границы */
@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
        filter: blur(8px);
    }
    50% {
        opacity: 0.8;
        filter: blur(12px);
    }
}

/* Плавающие частицы в фоне */
.hero-card {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    background-size: 200% 200%, 200% 200%, 150% 150%;
    animation: particlesFloat 15s ease-in-out infinite;
}

@keyframes particlesFloat {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    33% {
        background-position: 100% 50%, 0% 50%, 30% 70%;
    }
    66% {
        background-position: 50% 100%, 50% 0%, 70% 30%;
    }
}

/* Эффект при наведении */
.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.2),
        0 0 60px rgba(236, 72, 153, 0.1);
}

.hero-card:hover::after {
    animation-duration: 1.5s;
    opacity: 1;
}

.hero-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--light), var(--primary), var(--secondary), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShine 3s linear infinite;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.hero-card p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 15px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
}

/* Компактная сетка товаров */
.products-section {
    padding: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.compact-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.product-card-compact {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card-compact:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #475569, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Убран градиент для полного отображения изображения */

.product-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.product-platform {
    background: var(--dark);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.product-rating {
    color: var(--warning);
}

.product-meta-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    flex-wrap: wrap;
}

.product-rating-compact {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--warning);
}

.product-seller-info {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-size: 11px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-old-price {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 36px;
    height: 36px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Компактные категории */
.compact-categories {
    padding: 30px 0;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.75) rgba(255, 255, 255, 0.08);
}

.categories-scroll::-webkit-scrollbar {
    height: 8px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.9), rgba(236, 72, 153, 0.85));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.95), rgba(219, 39, 119, 0.95));
}

.category-item {
    min-width: 120px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

.category-count {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
}

/* Селект сортировки на главной (темная тема) */
.home-sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 34px 8px 12px;
    font-size: 13px;
    min-height: 34px;
    cursor: pointer;
    color-scheme: dark;
}

.home-sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.home-sort-select option {
    background: #0f172a;
    color: #f8fafc;
}

/* Footer */
.footer {
    background: var(--dark-light);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--gray);
    font-size: 14px;
}

.payment-method-icon {
    transition: var(--transition);
}

.payment-method-icon:hover {
    transform: translateY(-3px);
    border-color: var(--primary) !important;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1) !important;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    .search-bar.active {
        display: block;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-actions {
        order: 2;
    }
    
    .compact-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .compact-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .compact-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .compact-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .compact-products {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-card {
        padding: 20px;
    }
    
    .user-dropdown {
        width: 200px;
        right: -10px;
    }
}

/* Утилиты */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 1px solid var(--glass-border);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

.tooltip {
    position: relative;
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-bottom: 8px;
    z-index: 100;
}

.tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark-light);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px 20px;
    max-width: 350px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 4000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
}

.notification.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--danger);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

.notification.info {
    border-left: 4px solid var(--primary);
}

@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.active {
        transform: translateY(0);
    }
}

/* Боковая панель корзины */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: var(--dark-light);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--glass-border);
    z-index: 2000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #475569, #334155);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--light);
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--success), #0da36b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Улучшенные стили для компактных страниц */
.compact-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-bottom: 1px solid var(--glass-border);
}

.hero-card {
    text-align: center;
    padding: 30px 20px;
}

.hero-card h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-card p {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Улучшенные карточки продуктов */
.compact-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card-compact {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--dark-light);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card-compact:hover .product-image img {
    transform: scale(1.02);
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light);
    line-height: 1.4;
}

/* Улучшенные кнопки для публичных страниц */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Улучшенные формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--light);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--light);
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
    color: var(--gray);
}

/* Звезды для рейтинга */
.star-btn {
    transition: all 0.2s ease;
}

.star-btn:hover {
    transform: scale(1.1);
}

/* Кнопка "Полезно" */
.helpful-btn {
    transition: all 0.2s ease;
}

.helpful-btn:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Компактная пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .btn {
    min-width: 40px;
}

/* Адаптивность для компактных страниц */
@media (max-width: 768px) {
    .hero-card h1 {
        font-size: 28px;
    }
    
    .hero-card p {
        font-size: 14px;
    }
    
    .compact-products {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 0;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination .btn {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding: 20px 15px;
    }
    
    .hero-card h1 {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .compact-products {
        gap: 15px;
    }
}

/* Стили для модального окна Telegram */
#telegramModal {
    backdrop-filter: blur(8px);
}

#telegramModal > div {
    max-height: 90vh;
    overflow-y: auto;
}

#telegramModal button[onclick*="closeTelegramModal"]:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Улучшенная адаптивность для детальной страницы розыгрыша */
@media (max-width: 768px) {
    .product-card-compact {
        padding: 15px !important;
    }
    
    .product-image {
        height: 250px !important;
    }
    
    .product-card-compact > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .product-card-compact > div[style*="grid-template-columns"] > div {
        padding: 15px !important;
    }
    
    .product-card-compact > div[style*="grid-template-columns"] > div > div[style*="font-size: 36px"] {
        font-size: 28px !important;
    }
    
    #telegramModal > div {
        padding: 20px !important;
        margin: 10px;
    }
    
    #telegramModal h2 {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .product-card-compact > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .product-card-compact > div[style*="flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ РОЗЫГРЫША (giveaway.php)
   ============================================ */

/* Hero секция розыгрыша */
.giveaway-hero-card {
    position: relative;
    overflow: hidden;
}

.giveaway-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.giveaway-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.giveaway-icon {
    animation: pulse-glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.8));
    }
}

.giveaway-description {
    position: relative;
    z-index: 1;
}

/* Статистика розыгрыша - компактная сетка */
.giveaway-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .giveaway-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

.giveaway-stat-card {
    text-align: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .giveaway-stat-card {
        padding: 14px;
        border-radius: 10px;
    }
}

.giveaway-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.giveaway-stat-card:hover::before {
    left: 100%;
}

.giveaway-stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.stat-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.stat-icon {
    font-size: 32px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

@media (min-width: 1024px) {
    .stat-icon {
        font-size: 28px;
    }
}

.stat-prize .stat-icon {
    color: var(--primary);
}

.stat-participants .stat-icon {
    color: var(--success);
}

.stat-winners .stat-icon {
    color: var(--warning);
}

.stat-timer .stat-icon {
    color: var(--danger);
}

.stat-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.giveaway-stat-card:hover .stat-glow {
    opacity: 1;
}

.timer-pulse {
    animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.8));
    }
}

.stat-label {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 1024px) {
    .stat-label {
        font-size: 10px;
        margin-bottom: 5px;
    }
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--light);
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .stat-value {
        font-size: 13px;
    }
}

/* Таймер */
.timer-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.timer-unit {
    font-size: 10px;
    color: var(--gray);
    margin-right: 6px;
}

@media (min-width: 1024px) {
    .timer-unit {
        font-size: 9px;
        margin-right: 4px;
    }
}

.timer-flash {
    animation: timer-flash 0.3s ease;
}

@keyframes timer-flash {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--danger);
    }
}

.timer-expired {
    color: var(--danger);
    font-weight: 700;
}

/* Мета-информация */
.giveaway-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

@media (min-width: 1024px) {
    .giveaway-meta-info {
        gap: 12px;
        padding-top: 16px;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
}

.meta-icon {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .meta-icon {
        font-size: 16px;
    }
}

.meta-label {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 3px;
}

@media (min-width: 1024px) {
    .meta-label {
        font-size: 10px;
    }
}

.meta-value {
    font-weight: 600;
    font-size: 13px;
    color: var(--light);
}

@media (min-width: 1024px) {
    .meta-value {
        font-size: 12px;
    }
}

/* Условия участия */
.giveaway-conditions-card {
    position: relative;
}

.section-title-giveaway {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--light);
}

@media (min-width: 1024px) {
    .section-title-giveaway {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

.section-title-giveaway i {
    color: var(--primary);
    font-size: 20px;
}

@media (min-width: 1024px) {
    .section-title-giveaway i {
        font-size: 18px;
    }
}

.conditions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 1024px) {
    .conditions-list {
        gap: 10px;
    }
}

.condition-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: start;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .condition-item {
        padding: 12px;
        border-radius: 10px;
        gap: 12px;
    }
}

.condition-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.condition-item:hover::before {
    left: 100%;
}

.condition-met {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.condition-pending {
    background: rgba(255, 255, 255, 0.05);
}

.condition-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
    transform: translateX(3px);
}

.condition-check {
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .condition-check {
        font-size: 20px;
    }
}

.condition-icon-checked {
    color: var(--success);
    animation: check-bounce 0.5s ease;
}

.condition-icon-pending {
    color: var(--gray);
}

@keyframes check-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.condition-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.condition-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.condition-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 1024px) {
    .condition-title {
        font-size: 13px;
    }
}

.condition-title i {
    color: var(--primary);
}

.condition-badge-required {
    background: var(--danger);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .condition-badge-required {
        font-size: 9px;
        padding: 2px 6px;
    }
}

.condition-progress-wrapper {
    margin-bottom: 10px;
}

.condition-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--gray);
}

@media (min-width: 1024px) {
    .condition-progress-info {
        font-size: 11px;
    }
}

.condition-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 1024px) {
    .condition-progress-bar {
        height: 6px;
    }
}

.condition-progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.condition-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.condition-action-btn {
    width: 100%;
    text-decoration: none;
    display: block;
    text-align: center;
}

.condition-success-message {
    color: var(--success);
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 1024px) {
    .condition-success-message {
        font-size: 12px;
    }
}

/* Участники */
.giveaway-participants-card {
    position: relative;
}

.participants-count-badge {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

@media (min-width: 1024px) {
    .participants-count-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 1024px) {
    .participants-list {
        gap: 6px;
    }
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .participant-item {
        padding: 10px;
        border-radius: 8px;
        gap: 10px;
    }
}

.participant-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.participant-item:hover::before {
    transform: scaleY(1);
}

.participant-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .participant-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--light);
    margin-bottom: 3px;
}

@media (min-width: 1024px) {
    .participant-name {
        font-size: 13px;
    }
}

.participant-date {
    font-size: 11px;
    color: var(--gray);
}

@media (min-width: 1024px) {
    .participant-date {
        font-size: 10px;
    }
}

.participant-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .participant-badge {
        width: 28px;
        height: 28px;
    }
}

.telegram-badge {
    background: rgba(0, 136, 204, 0.2);
    color: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.3);
}

/* Статус участия */
.giveaway-participate-card {
    position: relative;
}

.participate-status {
    text-align: center;
    padding: 30px;
}

@media (min-width: 1024px) {
    .participate-status {
        padding: 24px;
    }
}

.status-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .status-icon-wrapper {
        margin-bottom: 16px;
    }
}

.status-icon {
    font-size: 64px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .status-icon {
        font-size: 56px;
    }
}

.participate-success .status-icon {
    color: var(--success);
}

.participate-login .status-icon {
    color: var(--primary);
}

.participate-locked .status-icon {
    color: var(--warning);
}

.participate-ready .status-icon {
    color: var(--primary);
}

.pulse-icon {
    animation: pulse-glow 2s ease-in-out infinite;
}

.status-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    opacity: 0;
    animation: status-glow-pulse 2s ease-in-out infinite;
    z-index: 0;
}

@media (min-width: 1024px) {
    .status-glow {
        width: 100px;
        height: 100px;
    }
}

@keyframes status-glow-pulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
}

.participate-status h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--light);
}

@media (min-width: 1024px) {
    .participate-status h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
}

.participate-status p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 15px;
}

@media (min-width: 1024px) {
    .participate-status p {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

.participate-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .participate-actions {
        gap: 12px;
    }
}

.btn-participate-large {
    font-size: 18px;
    padding: 15px 40px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .btn-participate-large {
        font-size: 16px;
        padding: 12px 32px;
    }
}

.btn-participate-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-participate-large:hover::before {
    width: 400px;
    height: 400px;
}

/* Анимация обновления счетчика */
.count-updated {
    animation: count-update 0.5s ease;
}

@keyframes count-update {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--success);
    }
}

/* Анимации появления */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.giveaway-stat-card[data-index="0"] {
    animation-delay: 0.1s;
}

.giveaway-stat-card[data-index="1"] {
    animation-delay: 0.2s;
}

.giveaway-stat-card[data-index="2"] {
    animation-delay: 0.3s;
}

.giveaway-stat-card[data-index="3"] {
    animation-delay: 0.4s;
}

.condition-item[data-index] {
    animation-delay: calc(var(--index, 0) * 0.1s);
}

/* Модальное окно Telegram - улучшенное */
#telegramModal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#telegramModal > div {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.3) !important;
    position: relative;
    overflow: hidden;
}

#telegramModal > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

#telegramModal button[onclick="closeTelegramModal()"] {
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    transition: var(--transition) !important;
}

#telegramModal button[onclick="closeTelegramModal()"]:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: rotate(90deg) !important;
}

#telegramModal h2 {
    color: var(--light) !important;
}

#telegramModal h2 i {
    color: var(--primary) !important;
}

#telegramModal p {
    color: var(--gray) !important;
}

#telegramModal ol {
    color: var(--light-gray) !important;
}

#telegramModal ol li {
    margin-bottom: 8px;
}

#telegramModal input.form-control {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--light) !important;
}

#telegramModal input.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

#telegramModal small {
    color: var(--gray) !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .giveaway-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .giveaway-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-item {
        width: 100%;
    }
    
    .participate-actions {
        flex-direction: column;
    }
    
    .participate-actions .btn {
        width: 100%;
    }
}

/* ============================================
   КОМПАКТНЫЙ БЛОК ПОСЛЕДНИХ СТАТЕЙ
   ============================================ */
.blog-preview-section {
    padding: 20px 0;
    margin-top: 20px;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.blog-preview-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-preview-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.blog-preview-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--dark-light);
    position: relative;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.05);
}

.blog-preview-content {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-preview-category {
    font-size: 10px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-preview-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.blog-preview-excerpt {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-preview-date {
    font-size: 10px;
    color: var(--gray);
    margin-top: auto;
    padding-top: 4px;
}

/* ============================================
   СВЕТЛО-ЗЕЛЕНЫЙ БЛОК РОЗЫГРЫШЕЙ С ЭФФЕКТАМИ
   ============================================ */
.giveaways-preview-section {
    padding: 20px 0;
    margin-top: 20px;
    position: relative;
}

.giveaways-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 12px;
    z-index: 0;
    pointer-events: none;
}

.giveaways-preview-section .container {
    position: relative;
    z-index: 1;
}

.giveaways-preview-section .section-header {
    margin-bottom: 15px;
}

.giveaways-preview-section .section-title {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
}

.giveaways-preview-section .section-title i {
    animation: pulse-glow-green 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

@keyframes pulse-glow-green {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8));
    }
}

.giveaways-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.giveaway-preview-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.15),
        0 0 0 0 rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.giveaway-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.giveaway-preview-card:hover::before {
    left: 100%;
}

.giveaway-preview-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: rotate-glow 8s linear infinite;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.giveaway-preview-card:hover::after {
    opacity: 1;
}

.giveaway-preview-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 
        0 16px 40px rgba(16, 185, 129, 0.3),
        0 0 60px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Бейджи статусов */
.giveaway-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.giveaway-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.giveaway-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.giveaway-badge:hover::before {
    left: 100%;
}

.giveaway-badge-new {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.giveaway-badge-hot {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: badge-hot-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-hot-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 2px 12px rgba(239, 68, 68, 0.7), 0 0 20px rgba(239, 68, 68, 0.4); }
}

.giveaway-badge-urgent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: badge-urgent-blink 1s ease-in-out infinite;
}

@keyframes badge-urgent-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Эффект свечения */
.giveaway-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.giveaway-preview-card:hover .giveaway-glow-effect {
    opacity: 1;
}

.giveaway-preview-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
    position: relative;
}

.giveaway-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

.giveaway-image-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.giveaway-preview-card:hover .giveaway-image-shine {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.giveaway-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.giveaway-preview-card:hover .giveaway-preview-image img {
    transform: scale(1.1) rotate(1deg);
}

.giveaway-preview-content {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.giveaway-preview-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.giveaway-preview-prize {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    padding: 6px 10px;
    border-radius: 8px;
    width: fit-content;
    border: 1px solid rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.prize-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-icon-wrapper i {
    font-size: 14px;
    animation: prize-icon-rotate 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
    position: relative;
    z-index: 1;
}

@keyframes prize-icon-rotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1.15); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.prize-icon-glow {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: prize-glow-pulse 2s ease-in-out infinite;
}

@keyframes prize-glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.prize-text {
    position: relative;
    z-index: 1;
}

/* Прогресс-бар таймера */
.giveaway-timer-progress {
    width: 100%;
    height: 4px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin: 4px 0;
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
    transition: width 1s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.timer-progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.giveaway-preview-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    font-size: 11px;
    color: var(--gray);
    gap: 12px;
}

.giveaway-preview-participants,
.giveaway-preview-time {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.giveaway-preview-participants:hover,
.giveaway-preview-time:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

.giveaway-preview-participants i {
    color: #10b981;
    font-size: 11px;
    animation: participants-pulse 2s ease-in-out infinite;
}

@keyframes participants-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.participants-count {
    font-weight: 700;
    color: #10b981;
    transition: all 0.3s ease;
}

.giveaway-preview-time i {
    color: var(--warning);
    font-size: 11px;
    animation: time-tick 1s ease-in-out infinite;
}

@keyframes time-tick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.time-text {
    font-weight: 700;
    color: var(--warning);
}

/* Кнопка действия */
.giveaway-preview-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.giveaway-preview-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    transition: left 0.5s ease;
}

.giveaway-preview-card:hover .giveaway-preview-action::before {
    left: 100%;
}

.giveaway-preview-card:hover .giveaway-preview-action {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.25));
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.giveaway-preview-action i {
    transition: transform 0.3s ease;
}

.giveaway-preview-card:hover .giveaway-preview-action i {
    transform: translateX(4px);
}

/* Частицы */
.giveaway-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.giveaway-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(16, 185, 129, 0.6);
    border-radius: 50%;
    animation: particle-float 8s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.giveaway-particles span:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.giveaway-particles span:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.giveaway-particles span:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

.giveaway-particles span:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 6s;
}

.giveaway-particles span:nth-child(5) {
    top: 30%;
    left: 90%;
    animation-delay: 1s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) translateX(20px) scale(1.5);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-60px) translateX(40px) scale(0.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    
    .blog-preview-image {
        height: 100px;
    }
    
    .blog-preview-content {
        padding: 8px 10px;
    }
    
    .blog-preview-title {
        font-size: 12px;
    }
    
    .giveaways-preview-section {
        padding: 20px 0;
    }
    
    .giveaways-preview-section .section-title {
        font-size: 20px;
    }
    
    .giveaways-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .giveaway-preview-image {
        height: 100px;
    }
    
    .giveaway-preview-content {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .giveaway-preview-title {
        font-size: 13px;
    }
    
    .giveaway-preview-prize {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .giveaway-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .giveaway-preview-stats {
        font-size: 10px;
        gap: 8px;
    }
    
    .giveaway-preview-action {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .giveaways-preview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .giveaway-preview-image {
        height: 120px;
    }
}

