/* ── Обёртка страницы ── */
.vq-page {
    background: #101737;
    padding: 20px;
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
    margin-bottom: 20px;
}


/* ── Прогресс ── */
#vq-progress-wrap {
    margin-bottom: 18px;
}
.vq-progress-track {
    height: 6px;
    background: #1a1f4e;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.vq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3887fd, #7b5ef8);
    border-radius: 3px;
    transition: width .4s ease;
    width: 0%;
}
.vq-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: #a0aed4;
}
#vq-progress-tc {
    color: #a0aed4;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Анимации ── */
@keyframes vqFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.vq-fade-in {
    animation: vqFadeIn .3s ease both;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes vqPulse {
    0%, 100% { opacity: .45; }
    50%       { opacity: .2; }
}
.vq-skeleton {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    background: linear-gradient(8deg, #1a1f4e 30%, #1e2456 100%);
    animation: vqPulse 1.4s ease-in-out infinite;
}
.vq-skeleton-join {
    flex: 1 1 240px;
    height: 72px;
}
.vq-skeleton-card {
    height: 280px;
}

/* ── Чипы групп ── */
.vq-groups-strip-wrap {
    position: relative;
    margin-bottom: 22px;
}
.vq-groups-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
@media (max-width: 767px) {
    .vq-groups-strip-wrap::after {
        content: '';
        position: absolute;
        top: 0; right: 0;
        width: 48px; height: 100%;
        background: linear-gradient(to right, transparent, #101737);
        pointer-events: none;
    }
    .vq-groups-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .vq-groups-strip::-webkit-scrollbar { display: none; }
    .vq-group-chip, .vq-group-chip-home { flex-shrink: 0; }
}
.vq-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    background: radial-gradient(100% 100% at 50% 0, #2a3673 0, #171e3f 170%);
    cursor: pointer;
    transition: opacity .2s;
    user-select: none;
    color: #919edd;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
}
.vq-group-chip:hover {
    background: radial-gradient(100% 100% at 50% 0, #2a3a8a 0, #222860 170%);
    color: #c5cdf5;
}
.vq-group-chip.active {
    background: radial-gradient(100% 100% at 50% 0, #3887fd 0, #9647ff 130%);
    color: #fff;
}
.vq-chip-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.vq-group-chip-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    background: radial-gradient(100% 100% at 50% 0, #2a3673 0, #171e3f 170%);
    color: #6b77ab;
    font-size: 16px;
    cursor: pointer;
    transition: color .2s, background .2s;
    flex-shrink: 0;
}
.vq-group-chip-home:hover,
.vq-group-chip-home.active {
    background: radial-gradient(100% 100% at 50% 0, #3887fd 0, #9647ff 130%);
    color: #fff;
}

/* ── Инфо-заглушка ── */
.vq-intro-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-family: 'Furore', sans-serif;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b77ab;
    margin-bottom: 14px;
}
.vq-intro-head i { font-size: 16px; color: #f1c40f; }
.vq-intro-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
@media (max-width: 767px) {
    .vq-intro-grid { grid-template-columns: 1fr; }
}
.vq-intro-card {
    position: relative;
    padding: 18px 14px 16px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    background: linear-gradient(8deg, #1a1f4e 30%, #1e2456 100%);
    text-align: center;
    overflow: hidden;
}
.vq-intro-step {
    position: absolute;
    top: 8px; right: 10px;
    font-size: 9px;
    font-family: 'Furore', sans-serif;
    color: rgba(255,255,255,.12);
    letter-spacing: .05em;
    line-height: 1;
}
.vq-intro-icon  { font-size: 28px; margin-bottom: 10px; }
.vq-intro-label { font-size: 11px; font-weight: 700; margin-bottom: 5px; color: #c5cdf5; letter-spacing: .3px; }
.vq-intro-sub   { font-size: 10.5px; color: #6b77ab; line-height: 1.5; }
.vq-intro-hint  {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    color: #6b77ab;
    font-size: 11px;
}
.vq-intro-hint i { font-size: 15px; }
.vq-intro-rules-btn {
    display: none;
}
@media (max-width: 767px) {
    .vq-intro-rules-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        margin-top: 14px;
        padding: 11px;
        background: transparent;
        border: 1px solid rgba(56,135,253,.2);
        color: #6b77ab;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
        transition: color .2s, border-color .2s;
    }
    .vq-intro-rules-btn:hover { color: #a0b4ff; border-color: rgba(56,135,253,.5); }
    .vq-intro-rules-btn i { font-size: 16px; }
    .vq-hint-arrow { transform: rotate(-90deg); }
}

/* ── Делимитер секций ── */
.vq-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #6b77ab;
    margin-bottom: 12px;
    font-family: 'Furore', sans-serif;
}
.vq-section-title i { font-size: 16px; }
.vq-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.06);
}

/* ── Join-карточки ── */
.vq-join-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.vq-join-card {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 240px;
    padding: 15px 18px;
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
    background: linear-gradient(8deg, #1a1f4e 30%, #1e2456 100%);
    transition: background .2s;
    position: relative;
}
.vq-join-card.done { pointer-events: none; }
.vq-join-icon-wrap {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    background: radial-gradient(100% 100% at 50% 0, #2a3a8a 0, #171e43 170%);
    font-size: 20px;
    color: #3887fd;
}
.vq-join-body  { flex: 1; }
.vq-join-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; color: #fff; }
.vq-join-done-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(10, 13, 30, .82);
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Furore', sans-serif;
    letter-spacing: .05em;
    color: #4ade80;
    backdrop-filter: blur(2px);
}
.vq-join-done-overlay i { font-size: 20px; }
.vq-join-card.done .vq-join-done-overlay { display: flex; }
.vq-join-link  { font-size: 11px; color: #6b77ab; }
.vq-join-link:hover { color: #919edd; }
.vq-join-right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: 90px; }
.vq-join-award {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700; color: #f1c40f;
}
.vq-join-award i { font-size: 15px; }

/* ── Грид карточек постов ── */
.vq-posts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
}
.vq-post-col {
    min-width: 0;
}
@media (max-width: 1199px) {
    .vq-posts-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .vq-posts-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 479px) {
    .vq-posts-row { grid-template-columns: 1fr; }
}

/* ── Overlay выполненной карточки поста ── */
.vq-card-done-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(10, 13, 30, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Furore', sans-serif;
    letter-spacing: .05em;
    color: #4ade80;
    backdrop-filter: blur(2px);
    animation: vqFadeIn .3s ease both;
}
.vq-card-done-overlay i { font-size: 22px; }

/* ── Карточка поста ── */
.vq-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    background: linear-gradient(160deg, #1e2254 0%, #13163a 100%);
    overflow: hidden;
}
.vq-card-image {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
    flex-shrink: 0;
}
.vq-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    opacity: .75;
}
.vq-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, #13163a 100%);
}
.vq-card-no-image {
    height: 8px;
    background: radial-gradient(100% 100% at 50% 0, #3887fd 0, #9647ff 130%);
    flex-shrink: 0;
}
.vq-card-award-badge {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    background: rgba(0,0,0,.55);
    font-size: 11px;
    font-weight: 700;
    color: #f1c40f;
    z-index: 1;
}
.vq-card-award-badge i { font-size: 13px; }

.vq-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.vq-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vq-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: #6b77ab;
    margin-bottom: 14px;
    transition: color .2s;
}
.vq-card-link:hover { color: #919edd; }
.vq-card-link i { font-size: 13px; }

/* ── Строки действий на карточке ── */
.vq-card-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
    flex: 1;
}
.vq-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    background: linear-gradient(8deg, #1a1f4e 30%, #1e2456 100%);
    cursor: pointer;
    transition: opacity .15s, background .15s;
    user-select: none;
    border: none;
    width: 100%;
    text-align: left;
}
.vq-action-row:hover:not(.done) {
    background: linear-gradient(8deg, #222859 30%, #252d6a 100%);
    opacity: 1;
}
.vq-action-row.done {
    cursor: default;
    pointer-events: none;
    position: relative;
}
.vq-action-row.done::after {
    content: '✓ Выполнено';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(10, 13, 30, .82);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Furore', sans-serif;
    letter-spacing: .05em;
    color: #4ade80;
}

/* Иконки по типу квеста */
.vq-action-row[data-type="like"]    > i { color: #e056a0; }
.vq-action-row[data-type="repost"]  > i { color: #3887fd; }
.vq-action-row[data-type="comment"] > i { color: #26c6da; }
.vq-action-row > i { font-size: 17px; flex-shrink: 0; }

.vq-action-label { flex: 1; font-size: 12.5px; color: #c5cdf5; font-weight: 500; }
.vq-action-reward { font-size: 12.5px; font-weight: 700; color: #f1c40f; white-space: nowrap; margin-right: 8px; }

.vq-action-status {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    background: rgba(255,255,255,.07);
    transition: background .15s;
}
.vq-action-status i { font-size: 13px; color: #3a437d; }
.vq-action-row:hover:not(.done) .vq-action-status {
    background: rgba(56,135,253,.2);
}
.vq-action-row:hover:not(.done) .vq-action-status i { color: #3887fd; }
.vq-action-row.done .vq-action-status {
    background: radial-gradient(100% 100% at 50% 0, #1e7a3e 0, #0f3d1e 170%);
}
.vq-action-row.done .vq-action-status i { color: #4ade80; }

/* ── Кнопки ── */
.vq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 14px;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    border: none;
    cursor: pointer;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Furore', sans-serif;
    transition: opacity .2s;
    color: #fff;
    white-space: nowrap;
    width: 100%;
}
.vq-btn:hover { opacity: .8; color: #fff; }
.vq-btn i { font-size: 14px; }
.vq-btn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.vq-btn-primary { background: radial-gradient(100% 100% at 50% 0, #3887fd 0, #9647ff 130%); }
.vq-btn-dark    { background: radial-gradient(100% 100% at 50% 0, #3e4c9f 0, #181d3f 170%); color: #919edd; }
.vq-btn-done    { background: radial-gradient(100% 100% at 50% 0, #1e7a3e 0, #0f3d1e 170%); }


/* ── Бан-плашка ── */
.vq-ban-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
    background: radial-gradient(100% 100% at 50% 0, #7a1e1e 0, #2d0f0f 170%);
    color: #ff8080;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    line-height: 1.5;
}
.vq-ban-icon { font-size: 20px; flex-shrink: 0; }

/* ── Список правил в соглашении ── */
.vq-agreement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vq-agreement-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    background: linear-gradient(160deg, #1e2254 0%, #13163a 100%);
    font-size: 12.5px;
    color: #919edd;
    line-height: 1.55;
}
.vq-agreement-list li b { color: #c5cdf5; }
.vq-rule-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(100% 100% at 50% 0, #2c7ef7 0, #b047ff 140%);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    color: #fff;
    font-size: 13px;
    margin-top: 1px;
}
.vq-rule-warn { background: linear-gradient(160deg, #251838 0%, #130f2a 100%) !important; }
.vq-rule-warn .vq-rule-icon { background: radial-gradient(100% 100% at 50% 0, #e05252 0, #7b1fa2 140%); }
.vq-agreement-note {
    font-size: 11px;
    color: #6b77ab;
    font-style: italic;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* ── Модалки ── */
#vq-agreement-modal .modal-content {
    background: #101737;
    border: 1px solid rgba(56,135,253,.15);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
#vq-agreement-modal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 18px 22px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#vq-agreement-modal .modal-header .double_heading { margin: 0; }
#vq-agreement-modal .modal-body { padding: 16px 22px; color: #919edd; font-size: 13px; line-height: 1.6; }
#vq-agreement-modal .modal-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 14px 22px;
}
#vq-agreement-modal .close { color: #6b77ab; opacity: 1; line-height: 1; }
#vq-agreement-modal .close:hover { color: #fff; }

/* ── Кнопка «Правила» в хединге — стиль double_heading ── */
.vq-rules-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Furore', sans-serif;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 100;
    transition: opacity .15s;
    white-space: nowrap;
}
.vq-rules-btn:hover { opacity: .75; }
.vq-rules-btn i {
    width: 35px;
    height: 35px;
    background: radial-gradient(100% 100% at 50% 0, #2c7ef7 0, #b047ff 140%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    flex-shrink: 0;
}
@media (max-width: 767px) { .vq-rules-btn { display: none; } }

/* ── Скрытые данные для рендера ── */
.vq-post-actions-src { display: none; }
