/* HERO */
.hero-section {
    position: relative;
    background: linear-gradient(145deg, rgba(72, 132, 255, 0.12), rgba(168, 85, 247, 0.06));
    border: 0.5px solid rgba(72, 132, 255, 0.18);
    border-radius: 24px;
    padding: 36px 32px 28px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
    margin-bottom: 20px;
}

.hero-glow {
    position: absolute;
    top: -40%;
    right: -15%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(72, 132, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.hero-glow-2 {
    top: auto;
    bottom: -30%;
    left: -10%;
    right: auto;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(72, 132, 255, 0.12);
    border: 0.5px solid rgba(72, 132, 255, 0.25);
    font-size: 0.72rem;
    color: #8eb4ff;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    line-height: 1.15;
}

.hero-section h1 span {
    background: linear-gradient(135deg, #4884ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.72;
    margin-bottom: 22px;
    max-width: 560px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.hero-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(72, 132, 255, 0.15);
    color: #4884ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-stat-icon.green { background: rgba(58, 207, 107, 0.15); color: #3acf6b; }
.hero-stat-icon.gold { background: rgba(255, 179, 71, 0.15); color: #ffb347; }

.hero-stat .hs-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.hero-stat .hs-label {
    font-size: 0.72rem;
    opacity: 0.55;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.live-counter-wrap { position: relative; z-index: 1; }

.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #3acf6b;
    padding: 6px 12px;
    background: rgba(58, 207, 107, 0.08);
    border-radius: 20px;
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    background: #3acf6b;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

/* Категории — чипы, не ссылки-полоски */
.categories-section { margin-bottom: 18px; }

.categories-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #5a7fb5;
    margin-bottom: 10px;
}

.categories-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories-row::-webkit-scrollbar { display: none; }

.category-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(255, 255, 255, 0.07);
    color: #b0c4de;
    text-decoration: none;
    font-size: 0.78rem;
    transition: 0.2s;
    white-space: nowrap;
}

.category-chip:hover,
.category-chip.active {
    background: rgba(72, 132, 255, 0.12);
    border-color: rgba(72, 132, 255, 0.35);
    color: #fff;
}

.category-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(72, 132, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #4884ff;
}

.category-chip.active .category-chip-icon {
    background: rgba(72, 132, 255, 0.25);
    color: #fff;
}

.category-chip-count {
    font-size: 0.65rem;
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 8px;
}

/* Секция заданий */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form-inline { display: flex; }

.filter-pills { display: flex; gap: 6px; }

.filter-pill {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    color: #b0c4de;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
    background: rgba(72, 132, 255, 0.15);
    border-color: rgba(72, 132, 255, 0.4);
    color: #fff;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 8px 14px;
    transition: 0.2s;
}

.search-box:focus-within {
    border-color: rgba(72, 132, 255, 0.5);
    background: rgba(72, 132, 255, 0.05);
}

.search-box input {
    background: none;
    border: none;
    color: white;
    font-size: 0.85rem;
    outline: none;
    width: 180px;
}

.search-box input::placeholder { color: rgba(255, 255, 255, 0.4); }
.search-box i { color: rgba(255, 255, 255, 0.4); }

/* Карточки заданий — компактные */
.tasks-grid {
    display: grid;
    gap: 12px;
}

.task-card {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 18px;
    transition: all 0.25s;
    position: relative;
    animation: fadeInUp 0.4s ease;
}

.task-card:hover {
    border-color: rgba(72, 132, 255, 0.3);
    background: rgba(72, 132, 255, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.task-card.featured {
    border-color: rgba(255, 179, 71, 0.25);
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.04), rgba(255, 255, 255, 0.02));
}

.task-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.task-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    background: rgba(72, 132, 255, 0.1);
    color: #8eb4ff;
    border: 0.5px solid rgba(72, 132, 255, 0.2);
}

.task-premium-badge {
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 179, 71, 0.15);
    color: #ffb347;
    border: 0.5px solid rgba(255, 179, 71, 0.3);
}

.task-card-price {
    margin-left: auto;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffb347;
}

.task-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-card-desc {
    font-size: 0.78rem;
    opacity: 0.55;
    margin: 0 0 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.72rem;
    opacity: 0.6;
    margin-bottom: 8px;
}

.task-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.task-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.62rem;
    background: rgba(72, 132, 255, 0.08);
    border: 0.5px solid rgba(72, 132, 255, 0.15);
    color: #8eb4ff;
}

.tag.green {
    background: rgba(58, 207, 107, 0.08);
    border-color: rgba(58, 207, 107, 0.2);
    color: #3acf6b;
}

.task-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.05);
}

.task-progress-mini {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    opacity: 0.6;
}

.task-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4884ff, #3acf6b);
    border-radius: 4px;
}

.task-card-cta {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(72, 132, 255, 0.12);
    color: #4884ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    color: #b0c4de;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: 0.2s;
}

.page-btn:hover { background: rgba(72, 132, 255, 0.1); color: #fff; }
.page-btn.active { background: #4884ff; color: #fff; border-color: #4884ff; }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    opacity: 0.6;
}

.empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; }

@media (max-width: 1024px) {
    .hero-section { padding: 24px 18px; border-radius: 18px; }
    .hero-section h1 { font-size: 1.65rem; }
    .hero-stats { grid-template-columns: 1fr; gap: 8px; }
    .hero-stat { padding: 10px 12px; }
    .search-box input { width: 130px; }
}

@media (max-width: 480px) {
    .hero-section { padding: 20px 14px; margin-bottom: 14px; }
    .hero-section h1 { font-size: 1.35rem; }
    .hero-subtitle { font-size: 0.85rem; margin-bottom: 16px; }
    .hero-badge { font-size: 0.65rem; padding: 5px 10px; }
    .hero-stat .hs-value { font-size: 1.05rem; }
    .hero-stat-icon { width: 32px; height: 32px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; padding: 11px 16px; font-size: 0.85rem; }
    .category-chip { padding: 7px 11px; font-size: 0.72rem; }
    .category-chip-icon { width: 24px; height: 24px; font-size: 0.68rem; }
    .section-header { flex-direction: column; align-items: stretch; }
    .section-actions { flex-direction: column; }
    .search-form-inline { width: 100%; }
    .search-box { width: 100%; }
    .search-box input { width: 100%; flex: 1; }
    .filter-pills { width: 100%; }
    .filter-pill { flex: 1; text-align: center; }
    .task-card { padding: 12px 14px; border-radius: 14px; }
    .task-card-title { font-size: 0.88rem; -webkit-line-clamp: 2; }
    .task-card-desc { display: none; }
    .task-card-meta { gap: 8px; font-size: 0.68rem; margin-bottom: 6px; }
    .task-card-tags { margin-bottom: 8px; }
    .task-card-price { font-size: 1rem; }
    .task-type-pill { font-size: 0.6rem; padding: 3px 8px; }
}
