/* Opportunities - identical to newswire-redesign (7) app/profile Opportunities */

.opportunities-container {
    width: 100%;
    position: relative;
}

/* ── Level Progress Hero ── */
.opp-card {
    background: #fff;
    border-radius: 0.6vw;
    border: 0.06vw solid #e2e5ea;
    overflow: hidden;
}

.opp-level-card {
    margin-bottom: 0.8vw;
    animation: oppFadeIn 0.35s ease both;
}

.opp-level-inner {
    padding: 0.85vw 1vw;
    display: flex;
    align-items: center;
    gap: 1.2vw;
}

.opp-level-circle-wrap {
    position: relative;
    width: 5.5vw;
    height: 5.5vw;
    flex-shrink: 0;
}

.opp-level-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.opp-level-arc {
    transition: stroke-dashoffset 0.8s ease;
}

.opp-level-circle-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.opp-level-circle-label {
    font-size: 0.56vw;
    font-weight: 600;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
}

.opp-level-circle-num {
    font-size: 1.58vw;
    font-weight: 800;
    color: #111318;
    line-height: 1;
}

.opp-level-right {
    flex: 1;
}

.opp-level-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3vw;
}

.opp-level-title {
    font-size: 0.94vw;
    font-weight: 700;
    color: #111318;
}

.opp-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2vw;
    padding: 0.12vw 0.4vw;
    border-radius: 0.2vw;
    background: rgba(79, 110, 247, 0.06);
    border: 0.06vw solid rgba(79, 110, 247, 0.12);
}

.opp-level-badge .lucide-icon {
    width: 0.45vw;
    height: 0.45vw;
    color: #4f6ef7;
}

.opp-level-badge span {
    font-size: 0.65vw;
    font-weight: 700;
    color: #4f6ef7;
}

.opp-level-bar-wrap {
    height: 0.55vw;
    border-radius: 0.3vw;
    background: #f0f1f3;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.35vw;
}

.opp-level-bar-fill {
    height: 100%;
    border-radius: 0.3vw;
    background: linear-gradient(90deg, #4f6ef7, #818cf8);
    position: relative;
    overflow: hidden;
    transition: width 1s ease;
}

.opp-level-bar-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: oppShine 3s ease-in-out infinite;
}

@keyframes oppShine {
    0% { left: -60%; }
    100% { left: 160%; }
}

.opp-level-xp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opp-level-xp-current {
    font-size: 0.75vw;
    color: #667085;
}

.opp-level-xp-current strong {
    color: #111318;
}

.opp-level-xp-remaining {
    font-size: 0.7vw;
    font-weight: 600;
    color: #4f6ef7;
}

@keyframes oppFadeIn {
    from { opacity: 0; transform: translateY(0.2vw); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Grid ── */
.opportunities-grid {
    display: grid;
    grid-template-columns: 1fr 14vw;
    gap: 0.8vw;
}

.opportunities-left {
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}

.opportunities-right {
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}

/* ── Card header ── */
.opp-card-header {
    padding: 0.6vw 0.85vw;
    border-bottom: 0.06vw solid #f0f1f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opp-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.35vw;
}

.opp-card-icon {
    width: 0.8vw;
    height: 0.8vw;
    font-size: 0.8vw;
    color: #4f6ef7;
}

.opp-card-header-left span {
    font-size: 0.85vw;
    font-weight: 600;
    color: #111318;
    text-transform: uppercase;
    letter-spacing: 0.04vw;
}

.opp-card-extra {
    font-size: 0.63vw;
    color: #667085;
}

/* ── Daily Activity ── */
.opp-activity-card {
    animation: oppFadeIn 0.35s ease 0.1s both;
}

.opp-card-body {
    padding: 0.6vw 0.75vw;
}

.opp-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5vw;
}

.opp-act-item {
    border-radius: 0.45vw;
    background: #fff;
    border: 0.07vw solid #e8eaed;
    overflow: hidden;
    transition: all 0.25s;
}

.opp-act-item:hover {
    transform: translateY(-0.12vw);
    box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.06);
}

.opp-act-strip {
    height: 0.15vw;
}

.opp-act-content {
    padding: 0.5vw 0.55vw;
}

.opp-act-head {
    display: flex;
    align-items: center;
    gap: 0.25vw;
    margin-bottom: 0.35vw;
}

.opp-act-icon-wrap {
    width: 1.35vw;
    height: 1.35vw;
    border-radius: 0.3vw;
    border: 0.06vw solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.opp-act-icon-wrap i {
    font-size: 0.7vw;
}

.opp-act-label {
    font-size: 0.72vw;
    font-weight: 600;
    color: #111318;
}

.opp-act-count-row {
    display: flex;
    align-items: baseline;
    gap: 0.2vw;
    margin-bottom: 0.3vw;
}

.opp-act-used {
    font-size: 1.32vw;
    font-weight: 800;
    color: #111318;
}

.opp-act-limit,
.opp-act-limit-unl {
    font-size: 0.69vw;
    color: #a0a5b2;
    font-weight: 500;
}

.opp-act-limit-unl i {
    color: #10b981;
    font-size: 0.72vw;
}

.opp-act-mini-bar-wrap {
    height: 0.2vw;
}

.opp-act-mini-bar {
    height: 100%;
    border-radius: 0.15vw;
}

.opp-act-mini-bar-bg {
    height: 0.2vw;
    border-radius: 0.15vw;
    background: #f0f1f3;
    overflow: hidden;
}

.opp-act-mini-bar-fill {
    height: 100%;
    border-radius: 0.15vw;
    transition: width 0.3s ease;
}

/* ── Daily Limits ── */
.opp-limits-card {
    animation: oppFadeIn 0.35s ease 0.15s both;
}

.opp-limits-list {
    padding: 0 0.1vw;
}

.opp-limit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4vw 0.75vw;
    border-bottom: 0.06vw solid #f5f6f8;
    transition: background 0.2s;
}

.opp-limit-row:last-child {
    border-bottom: none;
}

.opp-limit-row:hover {
    background: rgba(79, 110, 247, 0.02);
}

.opp-limit-left {
    display: flex;
    align-items: center;
    gap: 0.3vw;
}

.opp-limit-dot {
    width: 0.35vw;
    height: 0.35vw;
    border-radius: 50%;
    opacity: 0.6;
    flex-shrink: 0;
}

.opp-limit-label {
    font-size: 0.72vw;
    color: #555;
    font-weight: 500;
}

.opp-limit-value {
    font-size: 0.69vw;
    font-weight: 700;
    color: #111318;
    padding: 0.08vw 0.3vw;
    border-radius: 0.15vw;
    background: #f5f6f8;
}

.opp-limit-unlimited {
    display: inline-flex;
    align-items: center;
    gap: 0.15vw;
    padding: 0.08vw 0.3vw;
    border-radius: 0.15vw;
    background: rgba(16, 185, 129, 0.06);
}

.opp-limit-unlimited i {
    font-size: 0.63vw;
    color: #10b981;
}

.opp-limit-unlimited span {
    font-size: 0.63vw;
    font-weight: 700;
    color: #10b981;
}

/* ── Information ── */
.opp-info-card {
    animation: oppFadeIn 0.35s ease 0.2s both;
}

.opp-info-body {
    padding: 0.7vw 0.85vw;
    display: flex;
    flex-direction: column;
    gap: 0.6vw;
}

/* Reset block: одна аккуратная строка с иконкой и текстом */
.opp-info-reset {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.55vw 0.65vw;
    border-radius: 0.4vw;
    background: rgba(79, 110, 247, 0.04);
    border: 0.06vw solid rgba(79, 110, 247, 0.1);
}

.opp-info-clock {
    width: 0.75vw;
    height: 0.75vw;
    font-size: 0.75vw;
    color: #4f6ef7;
    flex-shrink: 0;
}

.opp-info-reset > div {
    display: flex;
    flex-direction: column;
    gap: 0.1vw;
    line-height: 1.4;
}

.opp-info-reset .opp-info-utc {
    font-size: 0.77vw;
    font-weight: 700;
    color: #4f6ef7;
}

.opp-info-reset > div > span:first-child {
    font-size: 0.73vw;
    color: #555;
}

/* Shop: текст сверху, кнопка снизу — удобно и читаемо */
.opp-info-shop-row {
    padding: 0.55vw 0.65vw;
    border-radius: 0.4vw;
    background: #f8f9fb;
    border: 0.06vw solid #e8eaed;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45vw;
}

.opp-info-shop-row > span {
    font-size: 0.73vw;
    color: #667085;
    line-height: 1.4;
}

.opp-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25vw;
    padding: 0.35vw 0.6vw;
    border-radius: 0.3vw;
    background: #4f6ef7;
    color: #fff;
    text-decoration: none;
    font-size: 0.67vw;
    font-weight: 600;
    transition: background 0.2s;
}

.opp-shop-btn:hover {
    background: #3b5de7;
}

.opp-shop-btn i {
    font-size: 0.55vw;
}

/* Responsive */
@media (max-width: 96.685vw) {
    .opportunities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 70.718vw) {
    .opp-activity-grid {
        grid-template-columns: 1fr;
    }
}
