html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

.vibe-main { padding-bottom: 40px; }

.vibe-hidden { display: none !important; }

.vibe-hero {
    padding: 0 15px 10px;
}

.vibe-hero-text {
    padding: 0 0 14px;
}

.vibe-hero-text .v2-hero-title {
    margin: 0.67em 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
}

.vibe-hero-text .v2-hero-subtitle {
    margin: 0 auto 30px auto !important;
}

.vibe-hero-media {
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vibe-hero-media picture {
    display: block;
    width: 100%;
}

.vibe-hero-media img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

@media (min-width: 900px) {
    .vibe-hero-media img { aspect-ratio: 16 / 9; }
}

.vibe-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

.vibe-hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.68) 0%,
        rgba(0,0,0,0.42) 38%,
        rgba(0,0,0,0.12) 62%,
        rgba(0,0,0,0) 78%
    );
}

.vibe-hero-overlay-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 18px 18px 14px;
    text-align: left;
}

.vibe-hero-overlay-inner .v2-hero-title {
    margin: 0 0 8px !important;
    color: #fff !important;
    white-space: normal !important;
    overflow-wrap: normal;
    word-break: normal;
    text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.vibe-hero-title-top,
.vibe-hero-title-bottom {
    display: block;
}

@media (min-width: 900px) {
    .vibe-hero-overlay::before {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.78) 0%,
            rgba(0,0,0,0.52) 40%,
            rgba(0,0,0,0.18) 64%,
            rgba(0,0,0,0) 80%
        );
    }

    .vibe-hero-title-top,
    .vibe-hero-title-bottom {
        display: inline;
    }

    .vibe-hero-overlay {
        align-items: flex-start;
    }

    .vibe-hero-overlay-inner {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 26px 18px 14px;
    }
}

.vibe-hero-overlay-inner .v2-hero-subtitle {
    margin: 0 !important;
    color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.vibe-hero-subtitle-below {
    display: none;
    max-width: 860px;
    margin: 0 auto;
    padding: 12px 18px;
    text-align: center;
}

.vibe-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 0 0;
    justify-content: center;
}

.vibe-hero-actions .btn-primary-v2,
.vibe-hero-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 16px;
    box-shadow: none;
    transform: none;
}

 .vibe-hero-actions .btn-primary-v2:hover,
 .vibe-hero-actions .btn-outline:hover {
    transform: none;
    box-shadow: none;
 }

.vibe-hero-actions .btn-primary-v2 {
    border: 1px solid var(--primary);
}

.vibe-hero-actions .btn-outline {
    border-width: 1px;
}

@media (max-width: 520px) {
    .vibe-hero-media {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .vibe-hero-overlay-inner .v2-hero-title {
        font-size: clamp(1.55rem, 7.2vw, 2.2rem) !important;
    }

    .vibe-hero-overlay-inner .v2-hero-subtitle {
        display: none;
    }

    .vibe-hero-subtitle-below {
        display: block;
        margin-top: 0;
        color: rgba(255,255,255,0.92) !important;
        text-shadow: 0 2px 14px rgba(0,0,0,0.35);
        background: linear-gradient(
            to right,
            rgba(0,0,0,0.72) 0%,
            rgba(0,0,0,0.52) 55%,
            rgba(0,0,0,0.72) 100%
        );
        border-bottom-left-radius: var(--radius-lg);
        border-bottom-right-radius: var(--radius-lg);
        font-weight: 600;
        padding: 10px 18px 8px;
    }

    .vibe-hero-actions {
        gap: 8px;
        padding-top: 0;
    }

    .vibe-hero-actions .btn-primary-v2,
    .vibe-hero-actions .btn-outline {
        padding: 9px 16px;
        font-size: 15px;
        border-radius: var(--radius-sm);
    }

    .vibe-hero-actions .btn-outline {
        padding: 9px 16px;
        border-width: 1px;
    }
}

@media (max-width: 520px) {
    body.dark-theme .vibe-hero-subtitle-below {
        background: linear-gradient(
            to right,
            rgba(255,255,255,0.10) 0%,
            rgba(255,255,255,0.14) 55%,
            rgba(255,255,255,0.10) 100%
        );
        border-top: 1px solid rgba(255,255,255,0.10);
        text-shadow: 0 2px 14px rgba(0,0,0,0.45);
    }
}

@media (min-width: 521px) {
    .vibe-hero-subtitle-below {
        display: none;
    }
}

@media (min-width: 900px) {
    .vibe-hero-actions {
        max-width: 860px;
        margin: 0 auto;
        justify-content: center;
    }
}

.vibe-tabs {
    padding: 22px 15px 0;
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
}

.vibe-tabs-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vibe-tab-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-block);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    user-select: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.vibe-tab-btn.active {
    border-color: var(--primary);
    color: var(--primary);
}

.vibe-tab-btn:hover {
    border-color: var(--text-muted);
}

.vibe-tabs-inner.has-active .vibe-tab-btn:not(.active) {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .vibe-tab-btn {
        font-size: 15px;
        padding: 9px 16px;
    }
}

@media (min-width: 900px) {
    .vibe-tabs-inner {
        grid-template-columns: auto auto;
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
    }

    .vibe-tab-btn {
        width: auto;
        min-width: 180px;
        padding: 10px 18px;
        font-size: 16px;
    }
}

.vibe-tab-panel { display: none; }
.vibe-tab-panel.active { display: block; }

.vibe-section {
    padding: 20px 0 10px;
}

.vibe-section-title {
    padding: 0 20px;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 900;
}

.vibe-social-proof {
    padding: 0 20px;
    margin: 14px 0 10px;
}

.vibe-social-proof-inner {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    background: var(--bg-block);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vibe-social-proof-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text-main);
}

.vibe-social-proof-row strong {
    font-weight: 900;
}

.vibe-social-proof-muted {
    opacity: 0.85;
}

.vibe-social-proof-votes {
    white-space: nowrap;
}

@media (max-width: 899px) {
    .vibe-social-proof-votes {
        flex-basis: 100%;
        text-align: center;
        white-space: normal;
    }
}

@media (min-width: 900px) {
    .vibe-social-proof-inner {
        width: fit-content;
        max-width: min(860px, 100%);
    }

    .vibe-social-proof-row {
        flex-wrap: nowrap;
    }

    .vibe-social-proof-votes::before {
        content: "· ";
    }
}

.swimlane {
    margin-bottom: 10px;
    position: relative;
}

.swimlane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 12px;
}

.swimlane-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 900;
}

.vibe-swimlane-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.vibe-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-block);
    color: var(--text-main);
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.vibe-suggest-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: auto;
}

.swimlane-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 0 10px 0;
    gap: 12px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    scroll-padding-right: 20px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
}

.swimlane-scroll::-webkit-scrollbar { display: none; }

.swimlane-scroll > *:first-child { margin-left: 20px; }
.swimlane-scroll > *:last-child { margin-right: 20px; }

.swimlane-scroll .v2-list-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    align-self: flex-start;
    height: auto;
}

.vibe-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.vibe-card-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.vibe-vote-card .v2-list-status {
    position: static;
    top: auto;
    left: auto;
    box-shadow: none;
}

@media (min-width: 900px) {
    .swimlane-scroll .v2-list-card {
        flex: 0 0 340px;
        max-width: 340px;
    }
}

@media (max-width: 520px) {
    .swimlane-header {
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .vibe-suggest-top-btn {
        margin-left: auto;
        padding: 8px 12px;
        font-size: 14px;
        line-height: 1.15;
        white-space: nowrap;
    }
}

.swimlane-arrow {
    display: none;
    position: absolute;
    top: 52%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-block);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--card-shadow);
    transition: all 0.2s ease;
}

.swimlane-arrow:hover {
    background-color: var(--primary);
    color: var(--btn-text);
    border-color: var(--primary);
}

.swimlane-arrow.left { left: 5px; }
.swimlane-arrow.right { right: 5px; }

@media (min-width: 1024px) {
    .swimlane:hover .swimlane-arrow { display: flex; }
}

.vibe-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.vibe-vote-card { cursor: pointer; }
.vibe-vote-card:hover { transform: none !important; }
.vibe-vote-card.vibe-card--active { border-color: var(--primary); }
.vibe-vote-card.vibe-card--flash { box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.45); }
.vibe-vote-card.vibe-card--in-progress { border-color: #FFB300; }
.vibe-vote-card.vibe-card--done { border-color: var(--primary); border-width: 2px; }
.vibe-vote-card.vibe-card--voted { opacity: 0.88; }

.vibe-vote-card:not(.vibe-card--active) .v2-list-like,
.vibe-vote-card:not(.vibe-card--active) .vibe-card-actions a,
.vibe-vote-card:not(.vibe-card--active) .vibe-card-actions button {
    pointer-events: none;
    cursor: default;
}

.swimlane-scroll.vibe-has-active .v2-list-card:not(.vibe-card--active) {
    opacity: 0.32;
}

.swimlane-scroll.vibe-has-active .v2-list-card.vibe-card--active {
    opacity: 1;
}

.vibe-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.vibe-card-actions a,
.vibe-card-actions button {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.vibe-card-actions a:active,
.vibe-card-actions button:active { transform: translateY(1px); }

.vibe-vote-card .v2-list-like { cursor: pointer; }

.vibe-flow {
    display: none;
    padding: 0 10px 16px;
}

.vibe-vote-card.vibe-card--active .vibe-flow { display: block; }

.v2-block-title, .v2-block-title span {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.v2-block-title i { color: var(--text-muted); }
.v2-block-title i[style*="color"] { color: inherit; }

.v2-poll-box { padding: 20px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.v2-poll-question { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 16px; text-align: center; line-height: 1.4; }
.v2-poll-answers { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.v2-poll-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    appearance: none;
}

.v2-poll-btn.selected { border-color: var(--primary); color: var(--primary); }
@media (hover: hover) {
    .v2-poll-btn:hover { border-color: var(--primary); color: var(--primary); }
}
.v2-poll-btn:focus,
.v2-poll-btn:focus-visible,
.v2-poll-btn:active {
    border-color: var(--border-color);
    color: var(--text-muted);
    box-shadow: none;
}
.v2-poll-answers.has-selection .v2-poll-btn:not(.selected) { opacity: 0.4; filter: grayscale(100%); pointer-events: none; }

.vibe-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
}

.vibe-progress strong { color: var(--text-main); }

.vibe-done-box {
    padding: 14px 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-align: center;
}

.vibe-done-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
}

.vibe-done-sub {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.35;
}

.vibe-next-cta {
    padding: 0 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vibe-swipe-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin: -18px 0 12px;
    padding: 0 8px;
    color: var(--text-muted);
    font-weight: 700;
    opacity: 0.65;
    user-select: none;
}

.vibe-swipe-indicator i {
    font-size: 14px;
}

.vibe-swipe-line {
    flex: 1 1 auto;
    width: auto;
    min-width: 120px;
    height: 2px;
    background: var(--border-color);
    border-radius: 2px;
    opacity: 1;
}

@media (max-width: 520px) {
    .vibe-swipe-indicator { max-width: 320px; margin: -12px auto 12px; gap: 10px; }
    .vibe-swipe-line { min-width: 90px; }
}

.vibe-next-btn {
    width: auto;
    max-width: 340px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    white-space: nowrap;
}

.vibe-next-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.vibe-search {
    position: sticky;
    top: 60px;
    z-index: 900;
    padding: 10px 15px 12px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.vibe-search-wrap {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    background: radial-gradient(520px 120px at 12% 50%, rgba(15, 118, 110, 0.12), transparent 62%), var(--bg-block);
    border-radius: 999px;
    padding: 14px 14px;
}

.vibe-search-wrap:focus-within {
    border-color: var(--primary);
}

body:not(.dark-theme) .vibe-search-wrap,
:root[data-theme="light"] .vibe-search-wrap {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10), 0 0 0 1px rgba(15, 118, 110, 0.18);
}

body:not(.dark-theme) .vibe-search-wrap:focus-within,
:root[data-theme="light"] .vibe-search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 0 0 2px rgba(15, 118, 110, 0.22);
}

.vibe-search-icon {
    color: var(--text-muted);
    font-size: 18px;
    flex: 0 0 auto;
}

.vibe-search-input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-main);
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    outline: none;
}

.vibe-search-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-block);
    color: var(--text-main);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.vibe-search-results {
    max-width: 420px;
    margin: 8px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vibe-search-empty {
    border: 1px solid var(--border-color);
    background: var(--bg-block);
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 800;
    color: var(--text-muted);
}

.vibe-vote-card.vibe-card--filtered {
    display: none !important;
}

.vibe-suggest-box {
    border: 1px solid var(--border-color);
    background: var(--bg-block);
    border-radius: 16px;
    padding: 16px 14px;
}

.vibe-suggest-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 6px;
}

.vibe-suggest-sub {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.35;
}

.vibe-suggest-btn {
    width: 100%;
}

.vibe-search-item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border-color);
    background: var(--bg-block);
    color: var(--text-main);
    border-radius: 16px;
    padding: 14px 14px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.vibe-search-item:hover {
    border-color: var(--primary);
}

.vibe-search-item:focus,
.vibe-search-item:focus-visible,
.vibe-search-item:active {
    outline: none;
    border-color: var(--primary);
}

.vibe-search-item span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

@media (min-width: 900px) {
    .vibe-search-wrap,
    .vibe-search-results {
        max-width: 520px;
    }

    .vibe-search {
        padding: 8px 15px 10px;
    }

    .vibe-search-wrap {
        padding: 14px 16px;
    }

    .vibe-search-icon {
        font-size: 18px;
    }

    .vibe-search-input {
        font-size: 16px;
    }

    .vibe-search-clear {
        width: 40px;
        height: 40px;
    }
}

.vibe-toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    display: none;
    z-index: 9999;
}

body.dark-theme .vibe-toast { background: rgba(255,255,255,0.92); color: #111; }
