.oroik-contests {
    max-width: 960px;
    margin: 0 auto;
}

/* ---- Tabs ---- */

.oroik-contests__tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--oroik-line, #DDE3D4);
    margin-bottom: 20px;
    overflow-x: auto;
}

.oroik-contests__tab {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--oroik-muted, #4A5546);
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    position: relative;
    transition: color 0.15s;
}

.oroik-contests__tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: transparent;
    transition: background 0.15s;
}

.oroik-contests__tab--active {
    color: var(--oroik-green, #2E6A2E);
}

.oroik-contests__tab--active::after {
    background: var(--oroik-green, #2E6A2E);
}

.oroik-contests__tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--oroik-bg, #F5F7F0);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--oroik-muted, #4A5546);
}

.oroik-contests__tab--active .oroik-contests__tab-count {
    background: var(--oroik-green, #2E6A2E);
    color: #fff;
}

/* ---- Audience filter ---- */

.oroik-contests__filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.oroik-contests__filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oroik-muted, #4A5546);
}

.oroik-contests__audience {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--oroik-line, #DDE3D4);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--oroik-ink, #1E2A1B);
}

/* ---- Panels ---- */

.oroik-contests__panel {
    display: none;
}

.oroik-contests__panel--active {
    display: block;
}

.oroik-contests__empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--oroik-muted, #4A5546);
}

/* ---- Card ---- */

.oroik-contests__card {
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--oroik-line, #DDE3D4);
    border-radius: 8px;
}

.oroik-contests__card--hidden {
    display: none;
}

.oroik-contests__card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.oroik-contests__status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.oroik-contests__status--accepting {
    background: #e8f5e9;
    color: #2e7d32;
}

.oroik-contests__status--expertise {
    background: #fff8e1;
    color: #f57f17;
}

.oroik-contests__status--results {
    background: var(--oroik-bg, #F5F7F0);
    color: var(--oroik-muted, #4A5546);
}

.oroik-contests__audience-badge {
    font-size: 0.75rem;
    color: var(--oroik-muted, #4A5546);
    padding: 3px 10px;
    border: 1px solid var(--oroik-line, #DDE3D4);
    border-radius: 12px;
}

.oroik-contests__card-title {
    margin: 0 0 6px;
    font-size: 1.125rem;
    line-height: 1.3;
}

.oroik-contests__card-title a {
    color: var(--oroik-ink, #1E2A1B);
    text-decoration: none;
}

.oroik-contests__card-title a:hover {
    color: var(--oroik-green, #2E6A2E);
}

.oroik-contests__desc {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: var(--oroik-muted, #4A5546);
    line-height: 1.5;
}

/* ---- Stages ---- */

.oroik-contests__stages {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--oroik-bg, #F5F7F0);
    border-radius: 6px;
}

.oroik-contests__stage {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 0.875rem;
}

.oroik-contests__stage + .oroik-contests__stage {
    border-top: 1px solid var(--oroik-line, #DDE3D4);
}

.oroik-contests__stage-name {
    color: var(--oroik-ink, #1E2A1B);
}

.oroik-contests__stage-date {
    color: var(--oroik-muted, #4A5546);
    white-space: nowrap;
}

/* ---- Actions ---- */

.oroik-contests__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oroik-contests__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
}

.oroik-contests__action--reg {
    background: var(--oroik-bg, #F5F7F0);
    color: var(--oroik-green, #2E6A2E);
    border: 1px solid var(--oroik-line, #DDE3D4);
}

.oroik-contests__action--reg:hover {
    background: #eef2e6;
}

.oroik-contests__action--apply {
    background: var(--oroik-green, #2E6A2E);
    color: #fff;
}

.oroik-contests__action--apply:hover {
    opacity: 0.9;
}

.oroik-contests__action--results {
    background: var(--oroik-bg, #F5F7F0);
    color: var(--oroik-ink, #1E2A1B);
    border: 1px solid var(--oroik-line, #DDE3D4);
}

/* ---- Mobile ---- */

@media (max-width: 600px) {
    .oroik-contests__tabs {
        gap: 0;
    }

    .oroik-contests__tab {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }

    .oroik-contests__stage {
        flex-direction: column;
        gap: 2px;
    }

    .oroik-contests__card-actions {
        flex-direction: column;
    }

    .oroik-contests__action {
        width: 100%;
    }
}
