:root {
    --lvq-bg: #0a1020;
    --lvq-panel: #10182d;
    --lvq-panel-2: #15213c;
    --lvq-border: rgba(255,255,255,.08);
    --lvq-text: #eff4ff;
    --lvq-muted: #b7c2db;
    --lvq-accent: #ffcf3f;
    --lvq-accent-2: #ff7b3d;
    --lvq-accent-3: #57bfff;
    --lvq-shadow: 0 22px 60px rgba(4,10,24,.34);
    --lvq-radius: 24px;
    --lvq-light-bg: #f7f8fc;
    --lvq-light-surface: #ffffff;
    --lvq-light-border: rgba(17, 24, 39, .08);
    --lvq-light-text: #1f2a44;
    --lvq-light-muted: #5f6b85;
}
* { box-sizing: border-box; }
body.lvq-page {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(87,191,255,.14), transparent 24%),
        radial-gradient(circle at top left, rgba(255,123,61,.14), transparent 28%),
        linear-gradient(180deg, #08101d, #0d1424 40%, #0a1020 100%);
    color: var(--lvq-text);
    font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.lvq-page-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}
.lvq-app { color: var(--lvq-text); }
.lvq-shell {
    border: 1px solid var(--lvq-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--lvq-shadow);
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.015));
    backdrop-filter: blur(10px);
}
.lvq-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: flex-end;
}
.lvq-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lvq-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4,9,18,.26) 0%, rgba(5,9,16,.58) 38%, rgba(6,9,16,.9) 100%),
        linear-gradient(90deg, rgba(9,16,32,.82) 0%, rgba(9,16,32,.46) 42%, rgba(9,16,32,.22) 100%);
}
.lvq-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    padding: 36px 34px 34px;
    color: #fff;
}
.lvq-kicker,
.lvq-results-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffe483;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;
}
.lvq-title {
    margin: 10px 0 10px;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.02;
    color: #fff;
    text-shadow: 0 10px 34px rgba(0,0,0,.35);
}
.lvq-subtitle {
    margin: 0;
    max-width: 720px;
    color: rgba(255,255,255,.94);
    font-size: clamp(16px, 1.55vw, 20px);
}
.lvq-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.lvq-intro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.lvq-intro-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: var(--lvq-text);
    font-size: 14px;
    font-weight: 700;
}
.lvq-toolbar,
.lvq-results-panel {
    padding: 22px;
    background: var(--lvq-light-bg);
    color: var(--lvq-light-text);
}
.lvq-toolbar {
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(17, 24, 39, .06);
}
.lvq-toolbar__head,
.lvq-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}
.lvq-toolbar__title,
.lvq-results-title {
    margin: 8px 0 6px;
    font-size: clamp(26px, 2.7vw, 36px);
    line-height: 1.08;
    color: var(--lvq-light-text);
}
.lvq-toolbar__note,
.lvq-results-note,
.lvq-result-summary,
.lvq-selected-state__hint {
    color: var(--lvq-light-muted);
}
.lvq-filter-block + .lvq-filter-block {
    margin-top: 14px;
}
.lvq-filter-label {
    margin-bottom: 8px;
    color: #7b879f;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
}
.lvq-mood-pills,
.lvq-section-pills,
.lvq-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lvq-pill,
.lvq-state-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid #e3e8f3;
    background: #fff;
    color: #36435f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .03);
}
.lvq-pill {
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.lvq-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(255,207,63,.7);
    box-shadow: 0 8px 20px rgba(255,123,61,.08);
}
.lvq-pill.is-active {
    background: linear-gradient(90deg, rgba(255,207,63,.16), rgba(255,123,61,.12));
    border-color: rgba(255,207,63,.75);
    color: #1c2438;
}
.lvq-selected-state {
    margin-top: 14px;
}
.lvq-selected-state__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    align-items: center;
}
.lvq-results-panel {
    background: linear-gradient(180deg, #f8f9fd 0%, #ffffff 100%);
}
.lvq-result-summary {
    margin: 14px 0 18px;
    font-size: 15px;
}
.lvq-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    align-items: stretch;
}
.lvq-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e7ebf4;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(21, 33, 60, .08);
}
.lvq-card__media {
    aspect-ratio: 16/10;
    background: #edf2fb;
}
.lvq-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.lvq-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 10px;
    padding: 15px;
}
.lvq-card__badges,
.lvq-card__chips,
.lvq-detail__summary,
.lvq-detail__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.lvq-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff8dd;
    border: 1px solid #ffe6a0;
    color: #b57700;
    font-size: 11px;
    font-weight: 800;
}
.lvq-card__title {
    margin: 0;
    color: var(--lvq-light-text);
    font-size: 18px;
    line-height: 1.32;
    min-height: calc(1.32em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lvq-card__meta,
.lvq-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--lvq-light-muted);
    font-size: 14px;
}
.lvq-card__price,
.lvq-detail__price {
    color: #dd7a15;
    font-weight: 800;
}
.lvq-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f6fb;
    border: 1px solid #e5ebf5;
    color: #56657f;
    font-size: 12px;
}
.lvq-card__open,
.lvq-btn {
    appearance: none;
    border: 0;
    outline: 0;
    border-radius: 16px;
    min-height: 48px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform .16s ease, opacity .16s ease, background .16s ease, border-color .16s ease;
}
.lvq-btn:hover,
.lvq-card__open:hover { transform: translateY(-1px); }
.lvq-btn--primary,
.lvq-card__open {
    color: #161616;
    background: linear-gradient(90deg, var(--lvq-accent), var(--lvq-accent-2));
    box-shadow: 0 12px 28px rgba(255,123,61,.14);
}
.lvq-btn--ghost {
    color: #23304d;
    background: rgba(255,255,255,.92);
    border: 1px solid #e4e9f3;
}
.lvq-card__open {
    width: 100%;
    margin-top: auto;
    justify-content: center;
    text-align: center;
    font-size: 15px;
}
.lvq-empty {
    display: grid;
    place-items: center;
    min-height: 240px;
    border: 1px dashed #d8dfeb;
    border-radius: 22px;
    text-align: center;
    padding: 20px;
    color: var(--lvq-light-muted);
    background: #fff;
}
.lvq-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}
.lvq-modal[hidden],
.lvq-quiz-modal[hidden] { display: none; }
.lvq-modal,
.lvq-quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}
.lvq-modal__backdrop,
.lvq-quiz-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4,10,20,.78);
    backdrop-filter: blur(10px);
}
.lvq-modal__dialog,
.lvq-quiz-modal__dialog {
    position: relative;
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 20px auto;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, #11182a, #0d1424);
    box-shadow: var(--lvq-shadow);
}
.lvq-quiz-modal__dialog {
    max-width: 760px;
}
.lvq-modal__dialog {
    max-width: 980px;
}
.lvq-modal__close,
.lvq-quiz-modal__close {
    position: sticky;
    top: 12px;
    left: calc(100% - 58px);
    z-index: 2;
    width: 42px;
    height: 42px;
    margin: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.44);
    color: #fff;
    cursor: pointer;
}
.lvq-modal__body {
    padding: 0 22px 24px;
}
.lvq-detail__hero {
    overflow: hidden;
    border-radius: 20px;
    margin-top: -24px;
    background: #111;
}
.lvq-detail__hero img {
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover;
    display: block;
}
.lvq-detail__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    align-items: flex-start;
}
.lvq-detail__title,
.lvq-quiz-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
}
.lvq-detail__price {
    min-width: 120px;
    text-align: right;
    font-size: 28px;
}
.lvq-detail__desc {
    margin-top: 18px;
    color: #dfe7fb;
}
.lvq-detail__sections {
    margin-top: 18px;
}
.lvq-detail__sections h4 {
    margin: 0 0 10px;
    font-size: 16px;
    letter-spacing: .02em;
    color: #fff;
}
.lvq-detail__actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.lvq-modal-cta {
    min-width: min(100%, 340px);
    min-height: 56px;
    justify-content: center;
    font-size: 16px;
    text-align: center;
}
.lvq-inline-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.lvq-quiz-modal__inner {
    padding: 28px;
}
.lvq-quiz-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.lvq-quiz-progress {
    width: min(100%, 220px);
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}
.lvq-quiz-progress span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lvq-accent), var(--lvq-accent-2));
    transition: width .22s ease;
}
.lvq-quiz-note {
    margin: 0 0 18px;
    color: rgba(255,255,255,.78);
}
.lvq-quiz-options {
    display: grid;
    gap: 12px;
}
.lvq-quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: var(--lvq-text);
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.lvq-quiz-option:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.05);
    border-color: rgba(255,207,63,.4);
}
.lvq-quiz-option__emoji {
    font-size: 28px;
    line-height: 1;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lvq-quiz-option__label {
    display: block;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
}
.lvq-quiz-option__desc {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}
@media (max-width: 900px) {
    .lvq-hero { min-height: 420px; }
    .lvq-toolbar__head,
    .lvq-results-head,
    .lvq-detail__head,
    .lvq-quiz-topline { flex-direction: column; }
    .lvq-detail__price { text-align: left; min-width: 0; }
}
@media (max-width: 640px) {
    .lvq-page-wrap { padding: 12px; }
    .lvq-hero__content,
    .lvq-toolbar,
    .lvq-results-panel,
    .lvq-quiz-modal__inner,
    .lvq-modal__body { padding-left: 16px; padding-right: 16px; }
    .lvq-hero { min-height: 380px; }
    .lvq-title { font-size: 34px; }
    .lvq-subtitle { font-size: 15px; }
    .lvq-toolbar__title,
    .lvq-results-title,
    .lvq-quiz-title { font-size: 26px; }
    .lvq-modal__dialog,
    .lvq-quiz-modal__dialog { margin: 10px; max-height: calc(100vh - 20px); }
    .lvq-pill,
    .lvq-state-chip { min-height: 32px; padding: 6px 10px; font-size: 11.5px; }
}


/* Final hard override for theme conflicts */
.lvq-app .lvq-title,
.lvq-shell .lvq-title,
.lvq-app h2.lvq-title,
.lvq-shell h2.lvq-title,
.lvq-app .lvq-quiz-title,
.lvq-shell .lvq-quiz-title,
.lvq-app h3.lvq-quiz-title,
.lvq-shell h3.lvq-quiz-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 10px 30px rgba(0,0,0,.34);
}

.lvq-app .lvq-title *,
.lvq-app .lvq-quiz-title *,
.lvq-shell .lvq-title *,
.lvq-shell .lvq-quiz-title * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}


/* Final fix: popup/detail titles must be white */
.lvq-detail__title,
.lvq-app .lvq-detail__title,
.lvq-shell .lvq-detail__title,
.lvq-app h3.lvq-detail__title,
.lvq-shell h3.lvq-detail__title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 10px 30px rgba(0,0,0,.34);
}

.lvq-detail__title *,
.lvq-app .lvq-detail__title *,
.lvq-shell .lvq-detail__title * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* === LVQ REAL FIX: inline embed, no iframe-style popup drift, no horizontal scroll === */
html.lvq-has-app,
body.lvq-has-app,
body.lvq-page {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.lvq-page-wrap,
.lvq-app,
.lvq-shell,
.lvq-hero,
.lvq-toolbar,
.lvq-results-panel,
.lvq-cards,
.lvq-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.lvq-page-wrap,
.lvq-app {
    width: 100% !important;
    overflow-x: clip !important;
}

.lvq-app {
    isolation: isolate !important;
}

.lvq-shell {
    overflow: hidden !important;
}

.lvq-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)) !important;
}

.lvq-toolbar__head,
.lvq-results-head,
.lvq-detail__head,
.lvq-hero__actions,
.lvq-intro-chips,
.lvq-mood-pills,
.lvq-section-pills,
.lvq-card__badges,
.lvq-card__chips,
.lvq-card__meta,
.lvq-detail__summary,
.lvq-detail__chips,
.lvq-detail__meta {
    min-width: 0 !important;
    max-width: 100% !important;
}

.lvq-pill,
.lvq-state-chip,
.lvq-chip,
.lvq-badge,
.lvq-btn,
.lvq-card__open,
.lvq-quiz-option {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.lvq-title,
.lvq-subtitle,
.lvq-toolbar__title,
.lvq-results-title,
.lvq-card__title,
.lvq-detail__title,
.lvq-quiz-title,
.lvq-detail__desc,
.lvq-quiz-note {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

.lvq-modal[hidden],
.lvq-quiz-modal[hidden] {
    display: none !important;
}

.lvq-modal:not([hidden]),
.lvq-quiz-modal:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.lvq-modal__backdrop,
.lvq-quiz-modal__backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: rgba(4,10,20,.78) !important;
    backdrop-filter: blur(10px) !important;
}

.lvq-modal__dialog,
.lvq-quiz-modal__dialog {
    position: relative !important;
    z-index: 1 !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: auto !important;
    width: min(760px, 100%) !important;
    max-width: 100% !important;
    max-height: calc(100vh - 48px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 26px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    background: linear-gradient(180deg, #11182a, #0d1424) !important;
    box-shadow: 0 22px 60px rgba(4,10,24,.42) !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
}

.lvq-modal__dialog {
    width: min(980px, 100%) !important;
}

.lvq-modal__close,
.lvq-quiz-modal__close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 5 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(0,0,0,.48) !important;
    color: #fff !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.lvq-quiz-modal__inner,
.lvq-modal__body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.lvq-quiz-modal__inner {
    padding: 32px 28px 28px !important;
}

.lvq-modal__body {
    padding: 32px 24px 24px !important;
}

.lvq-detail__hero {
    margin-top: 0 !important;
}

.lvq-detail__hero img,
.lvq-card__media img,
.lvq-hero__image {
    max-width: 100% !important;
}

.lvq-quiz-option:hover,
.lvq-pill:hover,
.lvq-btn:hover,
.lvq-card__open:hover {
    transform: none !important;
}

html.lvq-modal-lock,
body.lvq-modal-lock {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

@media (max-width: 640px) {
    .lvq-modal:not([hidden]),
    .lvq-quiz-modal:not([hidden]) {
        align-items: flex-start !important;
        padding: 12px !important;
    }

    .lvq-modal__dialog,
    .lvq-quiz-modal__dialog {
        width: 100% !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 22px !important;
    }

    .lvq-quiz-modal__inner,
    .lvq-modal__body {
        padding: 58px 16px 18px !important;
    }
}
