/* ============================================
   FLOW SHELL — giao diện quy trình bói dùng chung (Tarot / Lenormand / Bài Tây)
   Nạp SAU boi-tarot.css để ghi đè các phần trình bày chung.
   ============================================ */

/* --- Hero gọn: H1 + phụ đề + dòng tin cậy, công cụ ngay bên dưới --- */
.flow-hero {
    text-align: center;
    padding: 0.6rem 0.6rem 1.2rem;
}

.flow-hero .title {
    margin-bottom: 0.35rem;
}

.flow-hero-sub {
    color: var(--theme-text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: var(--site-w-text, 1200px);
    margin: 0 auto 0.6rem;
}

.flow-hero-quick {
    display: block;
    margin: 0.7rem auto 0;
    font-size: 0.88rem;
    color: var(--theme-text-soft);
}
.flow-hero-quick a {
    color: var(--theme-gold-text);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(212, 165, 116, 0.45);
    text-underline-offset: 3px;
}
.flow-hero-quick a:hover { color: var(--gold-light, #e6c18a); text-decoration-color: currentColor; }
body:not(.flow-step-0) .flow-hero-quick { display: none; }

/* Từ bước 2 trở đi: hero thu gọn — chỉ còn H1 nhỏ, ẩn phụ đề/tin cậy */
body:not(.flow-step-0) .flow-hero {
    padding-bottom: 0.4rem;
}

body:not(.flow-step-0) .flow-hero .title {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

body:not(.flow-step-0) .flow-hero-sub {
    display: none;
}

/* --- Thanh tiến độ --- */
.flow-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    max-width: 860px;
    margin: 0 auto 1.4rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--theme-surface-3);
    border-radius: 999px;
    background: var(--theme-bg-elevated-60);
    backdrop-filter: blur(8px);
}

.flow-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid var(--theme-surface-4);
    color: var(--theme-text-secondary);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flow-back:hover {
    color: var(--theme-gold-text);
    border-color: var(--theme-border);
}

.flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--theme-text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.flow-step + .flow-step::before {
    content: '';
    width: 34px;
    height: 2px;
    margin: 0 0.6rem;
    background: var(--theme-surface-4);
    border-radius: 2px;
}

.flow-step.is-done + .flow-step::before,
.flow-step.is-current::before {
    background: var(--theme-gold-text);
}

.flow-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    border: 2px solid var(--theme-surface-4);
    color: var(--theme-text-muted);
    background: var(--theme-bg);
    transition: all 0.25s ease;
}

.flow-step.is-done .flow-step-dot {
    background: var(--theme-gold-text);
    border-color: var(--theme-gold-text);
    color: #0a0a0f;
}

.flow-step.is-done .flow-step-dot::before {
    content: '✓';
}

.flow-step.is-done .flow-step-dot {
    font-size: 0;
}

.flow-step.is-done .flow-step-dot::before {
    font-size: 0.75rem;
}

.flow-step.is-current .flow-step-dot {
    border-color: var(--theme-gold-text);
    color: var(--theme-gold-text);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.18);
}

.flow-step.is-current,
.flow-step.is-done {
    color: var(--theme-text-secondary);
}

.flow-step.is-current .flow-step-label {
    color: var(--theme-gold-text);
}

.flow-progress-status {
    color: var(--theme-text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

/* --- Thẻ ở bước Chuẩn bị --- */
.flow-root .spread-section {
    position: relative;
    transition: opacity 0.3s ease;
}

.flow-card-summary {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(212, 165, 116, 0.07);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: var(--theme-text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.flow-card-summary-text::before {
    content: '✓ ';
    color: var(--theme-gold-text);
}

.flow-card-summary-change {
    flex-shrink: 0;
    color: var(--theme-gold-text);
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Thẻ đã xong: chỉ hiện dòng tóm tắt, ẩn nội dung chọn */
.spread-section.flow-card-done {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-color: transparent;
    background: transparent;
}

.spread-section.flow-card-done .flow-card-summary {
    display: flex;
}

.spread-section.flow-card-done > *:not(.flow-card-summary) {
    display: none !important;
}

/* --- Nút chính: mobile dùng thanh dính đáy, ẩn nút gốc --- */
.flow-actionbar {
    display: none;
}

@media (max-width: 768px) {
    .flow-actionbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: none;
        align-items: center;
        gap: 0.6rem;
        padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
        background: var(--theme-bg-translucent-95);
        border-top: 1px solid var(--theme-surface-3);
        backdrop-filter: blur(10px);
    }

    .flow-actionbar.is-visible {
        display: flex;
        transition: transform 0.25s ease;
    }

    /* Khi box chọn gói đang hiện trong màn hình, thanh đáy trượt xuống để không che nút "Chọn gói" */
    .flow-actionbar.is-suppressed {
        transform: translateY(110%);
    }

    /* Nút "lên đầu trang" (main.css) nằm góc phải dưới — khi thanh đáy đang hiện thì nhích
       lên trên thanh, không đè lên nút chính (VD "Rút lá hôm nay"). */
    body:has(.flow-actionbar.is-visible:not(.is-suppressed)) .back-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    .flow-actionbar-back {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: 12px;
        border: 1px solid var(--theme-surface-4);
        background: transparent;
        color: var(--theme-text-secondary);
        font-size: 1.1rem;
        cursor: pointer;
    }

    .flow-actionbar-primary {
        flex: 1;
        height: 46px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #e6c18a, #d4a574);
        color: #0a0a0f;
        font-family: inherit;
        font-size: 0.98rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        cursor: pointer;
    }

    .flow-actionbar-primary:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    /* Nút gốc đã được nhân bản xuống thanh đáy — ẩn để không có 2 nút */
    .flow-primary-mirrored {
        display: none !important;
    }

    /* Chừa chỗ cho thanh đáy */
    body.flow-has-actionbar .tarot-page-wrapper {
        padding-bottom: 76px;
    }
}

/* --- Kết quả: dải lá + tab --- */
.flow-result-head {
    max-width: 760px;
    margin: 0 auto 1.2rem;
    text-align: center;
}

.flow-result-question {
    color: var(--theme-text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 0.4rem;
}

.flow-result-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.9rem;
    color: var(--theme-text-muted);
    font-size: 0.82rem;
}

.flow-strip {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    overflow-x: auto;
    padding: 0.4rem 0.4rem 0.6rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.flow-strip::-webkit-scrollbar {
    display: none;
}

.flow-strip-card {
    flex: 0 0 auto;
    width: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--theme-text-secondary);
    scroll-snap-align: center;
    animation: flowFlipIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--d, 0s);
}

.flow-strip-card img {
    width: 132px;
    height: 198px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease;
}

.flow-strip-card:hover img {
    transform: translateY(-4px);
}

.flow-strip-pos {
    color: var(--theme-gold-text);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.flow-strip-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    text-align: center;
    line-height: 1.3;
}

@keyframes flowFlipIn {
    from { opacity: 0; transform: translateY(18px) rotateY(90deg); }
    to   { opacity: 1; transform: translateY(0) rotateY(0deg); }
}

.flow-strip-hint {
    text-align: center;
    color: var(--theme-text-muted);
    font-size: 0.78rem;
    margin: 0 0 1.2rem;
}

.flow-tabs {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto 1rem;
    padding: 0.3rem;
    border: 1px solid var(--theme-surface-3);
    border-radius: 14px;
    background: var(--theme-surface-1);
}

.flow-tab {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--theme-text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flow-tab[aria-selected="true"] {
    background: var(--theme-gold-text);
    color: #0a0a0f;
}

.flow-tab.is-locked {
    color: var(--theme-text-muted);
}

.flow-tab.is-locked[aria-selected="true"] {
    background: rgba(212, 165, 116, 0.25);
    color: var(--theme-gold-text);
}

/* Tab khoá: không icon, chỉ khác màu chữ (mờ hơn) */

.flow-panel {
    max-width: 860px;
    margin: 0 auto;
    color: var(--theme-text-body);
    font-size: 1rem;
    line-height: 1.8;
    animation: flowFade 0.3s ease;
}

.flow-panel p {
    margin: 0 0 0.9rem;
}

@keyframes flowFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.flow-locked {
    text-align: center;
    padding: 2rem 1.2rem;
    border: 1px dashed var(--theme-border);
    border-radius: 16px;
    background: rgba(212, 165, 116, 0.05);
}

.flow-locked-title {
    color: var(--theme-text-primary);
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

.flow-locked-desc {
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.flow-locked-btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #e6c18a, #d4a574);
    color: #0a0a0f;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

/* Hàng hành động sau kết quả */
.flow-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.4rem 0 0.6rem;
}

.flow-result-actions .retry-btn {
    margin: 0;
}

.flow-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid var(--theme-surface-4);
    background: transparent;
    color: var(--theme-text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flow-btn-ghost:hover {
    color: var(--theme-gold-text);
    border-color: var(--theme-border);
}

/* Khối "góc nhìn khác" (.flow-crosslinks) đã chuyển sang crosslinks.css — nạp ở mọi trang. */

/* --- Bottom sheet --- */
.flow-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.flow-sheet.is-open {
    display: block;
}

.flow-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
}

.flow-sheet-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(560px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 1.4rem 1.3rem calc(1.4rem + env(safe-area-inset-bottom));
    animation: flowSheetUp 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes flowSheetUp {
    from { transform: translate(-50%, 40px); opacity: 0; }
    to   { transform: translate(-50%, 0); opacity: 1; }
}

.flow-sheet-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--theme-surface-4);
    background: transparent;
    color: var(--theme-text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
}

.flow-sheet-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flow-sheet-card img {
    width: 96px;
    height: 144px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.flow-sheet-title {
    color: var(--theme-text-primary);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
}

.flow-sheet-sub {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.flow-sheet-text {
    color: var(--theme-text-body);
    line-height: 1.75;
    font-size: 0.98rem;
}

body.flow-sheet-open {
    overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .flow-progress {
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
        padding: 0.45rem 0.6rem;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    .flow-progress-status {
        display: none;
    }

    .flow-back-label {
        display: none;
    }

    .flow-back {
        padding: 0.35rem 0.6rem;
    }

    .flow-step-label {
        display: none;
    }

    .flow-step.is-current .flow-step-label {
        display: inline;
        font-size: 0.78rem;
    }

    .flow-step + .flow-step::before {
        width: 16px;
        margin: 0 0.35rem;
    }

    .flow-step-dot {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
    }

    .flow-strip {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .flow-strip-card {
        width: 112px;
    }

    .flow-strip-card img {
        width: 112px;
        height: 168px;
    }

    .flow-tabs {
        border-radius: 12px;
    }

    .flow-tab {
        min-width: calc(50% - 0.35rem);
        font-size: 0.8rem;
        padding: 0.55rem 0.5rem;
    }

    .flow-hero-sub {
        font-size: 0.95rem;
    }
}

/* --- Dùng chung cho 3 trang --- */
/* Nhấn sáng box mở khoá khi bấm tab đang khoá */
.tarot-unlock-prompt.is-highlight {
    animation: flowUnlockPulse 1.2s ease-out;
}

@keyframes flowUnlockPulse {
    0%   { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.55); }
    100% { box-shadow: 0 0 0 18px rgba(212, 165, 116, 0); }
}

/* Dòng đếm xào (thay step-indicator cũ) */
.shuffle-count {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    margin: 0.2rem 0 0;
}

/* --- Tarot (trang chủ): phụ đề ẩn cùng hero khi đã qua bước chuẩn bị --- */
body:not(.flow-step-0) .flow-hero .tarot-subtitle {
    display: none;
}

/* Nhiều khối nội dung (từng lá) trong một tab */
.flow-panel .card-content-section + .card-content-section {
    margin-top: 1rem;
}

.flow-panel .card-content-section .section-content {
    text-align: left;
}


.tarot-reading-wrapper .spread-section.flow-card-done {
    margin-bottom: 0.4rem;
}

/* Khối chọn nằm trong bước dạng flex-column có margin auto → khi các thẻ
   rộng bị thu gọn, chiều rộng co theo nội dung. Ép full chiều rộng. */
.flow-root .selection-container {
    width: 100%;
}

/* --- Tarot: bước xào gọn hơn (chữ "Đang xào bài..." phải nằm trong màn hình) --- */
.flow-root .card-back-display {
    min-height: 440px;
    margin: 0.5rem 0 0;
}

.flow-root .shuffle-text {
    margin-top: 0.5rem;
}

/* --- Tarot: đang chờ luận giải — ẩn nút Bói lại/Chia sẻ, hiện vòng xoay --- */
#step4.is-loading .flow-result-actions,
#step4.is-loading .flow-crosslinks {
    display: none;
}

.flow-panel .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0 1rem;
}

.flow-panel .loading-spinner::before {
    content: '';
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(212, 165, 116, 0.25);
    border-top-color: var(--tarot-gold, #d4a574);
    animation: flowSpin 0.9s linear infinite;
}

@keyframes flowSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .flow-root .card-back-display {
        min-height: 360px;
    }
}

/* --- Tarot (trang chủ): đoạn giới thiệu dài — mobile rút còn 4 dòng, chạm để mở --- */
.flow-hero-more {
    display: none;
}
body:not(.flow-step-0) .flow-hero .flow-hero-more {
    display: none !important;
}
@media (max-width: 768px) {
    .flow-hero .tarot-intro-desc:not(.is-expanded) {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        cursor: pointer;
    }
    .flow-hero .flow-hero-more {
        display: inline-block;
        margin: -0.2rem 0 0.6rem;
        background: none;
        border: 0;
        padding: 0.2rem 0.4rem;
        color: var(--theme-gold-text);
        font: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }
    .flow-hero .tarot-intro-desc.is-expanded + .flow-hero-more {
        display: none;
    }
}

/* ============================================================
   ĐỘ RỘNG THỐNG NHẤT CHO QUY TRÌNH BÓI
   Bước chuẩn bị/bốc: tối đa 1080px. Khu kết quả (đầu, dải lá, tab, nội
   dung, box mở khoá, hỏi thêm, nút): tối đa 920px — cùng một cột đọc.
   ============================================================ */
.flow-root {
    --flow-w-prep: 1500px;
    --flow-w-result: 1500px;
}

.flow-root .selection-container {
    max-width: var(--flow-w-prep);
    padding-left: 1rem;
    padding-right: 1rem;
}

.flow-root .flow-result-head,
.flow-root .flow-tabs,
.flow-root .flow-panel,
.flow-root .flow-crosslinks,
.flow-root .flow-result-actions,
.flow-root .tarot-unlock-prompt,
.flow-root .follow-up-section,
.flow-root .leno-followup {
    /* 100% (không phải auto): bước là flex-column, auto sẽ co theo nội dung */
    width: 100%;
    max-width: var(--flow-w-result);
    margin-left: auto;
    margin-right: auto;
}

.flow-root .flow-result-head {
    max-width: var(--flow-w-result);
}

/* ============================================================
   NỘI DUNG KẾT QUẢ — không còn là khối chữ thô
   ============================================================ */
.flow-panel {
    position: relative;
    padding: 1.6rem 1.9rem 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--theme-surface-3);
    background: linear-gradient(180deg, var(--theme-surface-1), var(--theme-surface-0));
}

.flow-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 140px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--tarot-gold, #d4a574), transparent);
}

/* --- Văn xuôi: đoạn tách rõ, đoạn mở đầu nổi bật với chữ cái hoa lớn --- */
.flow-prose p {
    margin: 0 0 1rem;
    line-height: 1.85;
}

.flow-prose p:last-child {
    margin-bottom: 0;
}

.flow-prose-lead > p:first-child {
    font-size: 1.06rem;
    color: var(--theme-text-primary);
}

.flow-prose-lead > p:first-child::first-letter {
    font-size: 1.55em;
    line-height: 1;
    font-weight: 700;
    color: var(--theme-gold-text);
}

/* Lời khuyên: hộp ấm, có hoa văn */
.flow-prose-advice {
    position: relative;
    padding: 1.1rem 1.2rem 1.1rem 1.4rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(212, 165, 116, 0.04));
    border-left: 3px solid var(--tarot-gold, #d4a574);
}

.flow-prose-advice::before {
    content: '☾';
    position: absolute;
    top: 0.5rem;
    right: 0.9rem;
    font-size: 1.4rem;
    color: var(--theme-gold-text);
    opacity: 0.55;
}

/* --- Ghép cặp lá: mỗi cặp một dòng, tên lá nổi bật --- */
.flow-pairs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flow-pair {
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-surface-3);
}

.flow-pair-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    color: var(--theme-gold-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.flow-pair-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--theme-border);
    font-size: 0.75rem;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.flow-pair p {
    margin: 0;
    line-height: 1.75;
}

.flow-pair-note {
    margin: 0;
    color: var(--theme-text-muted);
    font-size: 0.92rem;
}

/* --- Khối theo lá (Tarot): ảnh nhỏ + vị trí + tên + nội dung --- */
.flow-block {
    padding: 1.1rem 0 1.3rem;
    border-bottom: 1px dashed var(--theme-border);
}

.flow-block:first-child {
    padding-top: 0.2rem;
}

.flow-block:last-child {
    padding-bottom: 0.2rem;
    border-bottom: none;
}

.flow-block-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.flow-block-thumb {
    width: 52px;
    height: auto;
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.flow-block-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.14);
    color: var(--theme-gold-text);
    font-size: 1.2rem;
}

.flow-block-eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--theme-gold-text);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.flow-block-title {
    margin: 0;
    color: var(--theme-text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.flow-block-title small {
    margin-left: 0.35rem;
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.flow-block-body p {
    margin: 0 0 0.9rem;
    line-height: 1.85;
}

.flow-block-body p:last-child {
    margin-bottom: 0;
}

/* Khối "Thông điệp" (đã mở khoá): nền vàng nhạt để thấy đây là phần trả phí */
.flow-block-gold {
    margin: 0 0 0.6rem;
    padding: 1rem 0.9rem 1.1rem;
    border: 1px solid rgba(212, 165, 116, 0.22);
    border-bottom: 1px solid rgba(212, 165, 116, 0.22);
    border-radius: 12px;
    background: rgba(212, 165, 116, 0.06);
}

.flow-block-gold:last-child {
    margin-bottom: 0;
    padding-bottom: 1.1rem;
}

.flow-block-gold + .flow-block-gold {
    margin-top: 0.3rem;
}

@media (max-width: 768px) {
    .flow-root .selection-container {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .flow-root .tarot-unlock-prompt,
    .flow-root .follow-up-section,
    .flow-root .leno-followup {
        max-width: 100%;
    }

    .flow-panel {
        padding: 1.2rem 1rem 1rem;
        border-radius: 14px;
    }

    .flow-prose-lead > p:first-child::first-letter {
        font-size: 2.2em;
    }

    .flow-block-thumb {
        width: 44px;
    }

    .flow-pair {
        padding: 0.8rem 0.9rem;
    }
}

/* Khi màn hình hẹp hơn cột 1500px: chừa lề hai bên để khối không dính mép */
@media (min-width: 769px) and (max-width: 1560px) {
    .flow-root {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ===== Tận dụng cột rộng 1500px: xếp cột trên màn lớn ===== */
/* Văn xuôi một khối (Lenormand/Bài Tây): giữ độ dài dòng dễ đọc, căn giữa trong panel */
.flow-panel > .flow-prose {
    max-width: none;
}

@media (min-width: 1200px) {
    /* Tarot: 3 lá → 3 cột; khối không còn gạch ngăn dưới mà ngăn bằng viền trái mảnh */
    .flow-blocks-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 2rem;
    }

    .flow-blocks-3 .flow-block {
        padding: 0.2rem 0 0.2rem 1.2rem;
        border-bottom: none;
        border-left: 1px solid var(--theme-border);
    }

    .flow-blocks-3 .flow-block-gold {
        padding: 1rem 0.9rem 1.1rem;
        margin-bottom: 0;
        border-left: 1px solid rgba(212, 165, 116, 0.22);
    }

    .flow-blocks-3 .flow-block-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .flow-blocks-3 .flow-block-thumb {
        width: 64px;
    }

    /* Ghép cặp lá: 2 cột */
    .flow-pairs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .flow-pair-note {
        grid-column: 1 / -1;
    }
}


/* ============================================================
   MÀU CHỮ THEO THEME — các chỗ chữ tối trên nền gold, nút bị mờ
   ============================================================ */
/* Nền sáng: gold đậm hơn → chữ trên nền gold phải trắng */
[data-theme="light"] .flow-tab[aria-selected="true"],
[data-theme="light"] .flow-step.is-done .flow-step-dot {
    color: #ffffff;
}

/* Nút chính khi chưa đủ điều kiện: CSS gốc dùng opacity 0.4 + chữ mờ nên
   "XÀO BÀI" gần như biến mất. Thay bằng nút rỗng viền đứt, chữ đọc được,
   vẫn thấy rõ là chưa bấm được. */
.flow-root .shuffle-btn-main.disabled,
.flow-root .continue-btn.disabled {
    opacity: 1;
    background: var(--theme-surface-1);
    border: 2px dashed var(--theme-border);
    color: var(--theme-text-muted);
    box-shadow: none;
    text-shadow: none;
}

/* Ô đang khoá: mô tả dùng chữ body cho dễ đọc */
.flow-locked-desc {
    color: var(--theme-text-body);
}

/* ============================================================
   MOBILE: dải lá KHÔNG cuộn ngang nữa — xếp lưới, thấy đủ mọi lá
   3 lá/hàng (2, 3, 5, 7, 9 lá); từ 10 lá trở lên 4 lá/hàng (bói theo tên).
   ============================================================ */
@media (max-width: 768px) {
    .flow-strip {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
        gap: 1rem 0.6rem;
        padding: 0.4rem 0.5rem 0.6rem;
        scroll-snap-type: none;
    }

    .flow-strip-card {
        width: calc((100% - 1.2rem) / 3);
        max-width: 118px;
    }

    .flow-strip-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .flow-strip[data-count="10"] .flow-strip-card,
    .flow-strip[data-count="12"] .flow-strip-card,
    .flow-strip[data-count="14"] .flow-strip-card,
    .flow-strip[data-count="16"] .flow-strip-card {
        width: calc((100% - 1.8rem) / 4);
        max-width: 92px;
    }

    .flow-strip[data-count="10"] .flow-strip-pos,
    .flow-strip[data-count="12"] .flow-strip-pos,
    .flow-strip[data-count="14"] .flow-strip-pos,
    .flow-strip[data-count="16"] .flow-strip-pos {
        font-size: 0.6rem;
    }

    .flow-strip[data-count="10"] .flow-strip-name,
    .flow-strip[data-count="12"] .flow-strip-name,
    .flow-strip[data-count="14"] .flow-strip-name,
    .flow-strip[data-count="16"] .flow-strip-name {
        font-size: 0.74rem;
    }
}

/* Chữ xanh "thành công" sáng (#6fcf97) chỉ hợp nền tối; nền sáng cần xanh đậm */
[data-theme="light"] .tarot-unlock-success,
[data-theme="light"] .tarot-payment-success {
    color: #1d6b3f;
}

/* Dấu "?" trong ô chờ bốc: đậm hơn chút để không lẫn vào nền */
.flow-root .slot-placeholder {
    color: rgba(212, 165, 116, 0.5);
}

/* ============================================================
   DESKTOP: dải lá nhiều lá (7, 9, 16) — KHÔNG cuộn ngang/cắt mép nữa.
   Mặc định xuống hàng; 9 lá (Lenormand) xếp 3×3 đúng bố cục trải bài;
   10–16 lá (bói theo tên) xếp 2 hàng theo CỘT: mỗi cột = 1 chữ cái
   (lá trên · lá dưới), đúng cách bốc.
   ============================================================ */
@media (min-width: 769px) {
    .flow-strip {
        flex-wrap: wrap;
        overflow: visible;
        row-gap: 1.4rem;
        scroll-snap-type: none;
    }

    .flow-strip[data-count="9"] {
        display: grid;
        grid-template-columns: repeat(3, 132px);
        justify-content: center;
        gap: 1.2rem 1rem;
    }

    .flow-strip[data-count="10"],
    .flow-strip[data-count="12"],
    .flow-strip[data-count="14"],
    .flow-strip[data-count="16"] {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: 118px;
        justify-content: center;
        gap: 1.2rem 0.7rem;
    }

    .flow-strip[data-count="10"] .flow-strip-card,
    .flow-strip[data-count="12"] .flow-strip-card,
    .flow-strip[data-count="14"] .flow-strip-card,
    .flow-strip[data-count="16"] .flow-strip-card {
        width: 118px;
    }

    .flow-strip[data-count="10"] .flow-strip-card img,
    .flow-strip[data-count="12"] .flow-strip-card img,
    .flow-strip[data-count="14"] .flow-strip-card img,
    .flow-strip[data-count="16"] .flow-strip-card img {
        width: 118px;
        height: 177px;
    }
}

/* Nhắc chủ site đang xem miễn phí */
.flow-free-note {
    display: inline-block;
    margin: 0.4rem auto 0;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px dashed var(--theme-border-strong);
    background: rgba(212, 165, 116, 0.08);
    color: var(--theme-gold-text);
    font-size: 0.78rem;
    font-weight: 700;
}


/* ============================================================
   THANH TIẾN ĐỘ GỌN: rộng theo nội dung (không kéo hết 1500px), 3 cột
   trái–giữa–phải BẰNG NHAU (1fr auto 1fr) để dãy bước luôn nằm đúng
   tâm dù nút "Quay lại" và dòng trạng thái dài ngắn khác nhau.
   ============================================================ */
@media (min-width: 769px) {
    .flow-root .flow-progress {
        width: fit-content;
        min-width: min(100%, 720px);
        max-width: 100%;
        grid-template-columns: 1fr auto 1fr;
        gap: 1.2rem;
        padding: 0.4rem 0.55rem 0.4rem 0.45rem;
        margin-bottom: 1.2rem;
    }

    .flow-root .flow-back {
        justify-self: start;
    }

    .flow-root .flow-progress-status {
        justify-self: end;
        padding-right: 0.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile: chỉ nút lùi + dãy bước; dãy bước căn giữa phần còn lại */
    .flow-root .flow-progress {
        grid-template-columns: 44px 1fr 44px;
        max-width: 100%;
    }

    .flow-root .flow-progress .flow-steps {
        grid-column: 2;
    }
}

/* Mobile: rule rút gọn 4 dòng (display:-webkit-box) có độ ưu tiên cao hơn
   rule ẩn hero từ bước 2 → đoạn giới thiệu Tarot vẫn hiện khi đang xào/bốc.
   Ép ẩn lại. */
body:not(.flow-step-0) .flow-hero .tarot-intro-desc,
body:not(.flow-step-0) .flow-hero .flow-hero-more {
    display: none !important;
}

/* ============================================================
   ĐỒNG BỘ KIỂU CHỮ MỌI TAB / MỌI LÁ TRONG KẾT QUẢ
   Trước: Tổng quan có chữ cái đầu lớn + chữ sáng, Chi tiết chữ tối hơn,
   Lời khuyên là hộp vàng, Ghép cặp là thẻ, Thông điệp Tarot nền vàng…
   Giờ: một kiểu duy nhất — cùng màu, cùng cỡ, cùng giãn dòng, đoạn đầu
   mỗi tab/mỗi lá có chữ cái đầu vàng; nhãn cặp lá là chữ vàng đậm inline.
   ============================================================ */
.flow-panel {
    color: var(--theme-text-secondary);
}

.flow-prose p,
.flow-pair p,
.flow-block-body p,
.flow-sheet-text p {
    margin: 0 0 1rem;
    color: var(--theme-text-secondary);
    font-size: 1.02rem;
    line-height: 1.85;
}

.flow-prose p:last-child,
.flow-pair p:last-child,
.flow-block-body p:last-child {
    margin-bottom: 0;
}

/* Đoạn đầu của mọi khối văn xuôi: cùng một kiểu (không riêng gì Tổng quan) */
.flow-prose > p:first-child {
    color: var(--theme-text-primary);
}

/* Chữ cái đầu to nhưng KHÔNG float — float làm người dùng bôi đen copy hay
   mất chữ cái đầu ("ối quan hệ", "hực tế"). Giữ inline, phóng vừa phải. */
.flow-prose > p:first-child::first-letter {
    font-size: 1.55em;
    line-height: 1;
    font-weight: 700;
    color: var(--theme-gold-text);
}

/* Lời khuyên: bỏ hộp vàng, giống các tab khác */
.flow-prose-advice {
    padding: 0;
    border-radius: 0;
    background: none;
    border-left: none;
}

.flow-prose-advice::before {
    content: none;
}

/* Ghép cặp lá: bỏ thẻ, thành các đoạn văn với nhãn cặp lá vàng đậm ở đầu */
.flow-pairs {
    display: block;
}

.flow-pair {
    padding: 0;
    margin: 0 0 1rem;
    border: none;
    background: none;
    border-radius: 0;
}

.flow-pair:last-child {
    margin-bottom: 0;
}

.flow-pair-cards {
    display: inline;
    margin: 0;
    color: var(--theme-gold-text);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.flow-pair-cards::after {
    content: ': ';
}

.flow-pair-plus {
    display: inline;
    width: auto;
    height: auto;
    border: none;
    margin: 0 0.15em;
    font-size: inherit;
    color: var(--theme-gold-text);
}

.flow-pair p {
    display: inline;
}

.flow-pair-note {
    margin: 0 0 1rem;
    color: var(--theme-text-secondary);
    font-size: 1.02rem;
}

/* Tarot: khối "Thông điệp" không còn nền vàng riêng — giống khối Tổng quan */
.flow-block-gold {
    margin: 0;
    padding: 1.1rem 0 1.3rem;
    border: none;
    border-bottom: 1px dashed var(--theme-border);
    border-radius: 0;
    background: none;
}

.flow-block-gold:first-child {
    padding-top: 0.2rem;
}

.flow-block-gold:last-child {
    padding-bottom: 0.2rem;
    border-bottom: none;
}

@media (min-width: 1200px) {
    .flow-pairs {
        display: block;
    }

    .flow-blocks-3 .flow-block-gold {
        padding: 0.2rem 0 0.2rem 1.2rem;
        border-bottom: none;
        border-left: 1px solid var(--theme-border);
    }
}

@media (max-width: 768px) {
    .flow-prose > p:first-child::first-letter {
        font-size: 1.45em;
    }
}


/* Miễn trừ dưới kết quả */
.flow-disclaimer {
    max-width: var(--flow-w-result);
    margin: 1.2rem auto 0;
    color: var(--theme-text-muted);
    font-size: 0.82rem;
    text-align: center;
}

/* ---------- Lượt trả trước: màn chờ viết lời giải sau khi mở khoá ---------- */
.flow-prepay-wait {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 7, 12, 0.72);
    backdrop-filter: blur(3px);
}
.flow-prepay-wait[hidden] { display: none; }
.flow-prepay-wait-box {
    max-width: 380px;
    width: 100%;
    text-align: center;
    padding: 1.6rem 1.4rem;
    border-radius: 18px;
    border: 1px solid var(--theme-border-strong, rgba(212, 165, 116, 0.4));
    background: var(--theme-bg-elevated, #16121d);
    color: var(--theme-text-primary, #f6f0e6);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.flow-prepay-wait-spin {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(212, 165, 116, 0.25);
    border-top-color: var(--theme-gold-text, #d4a574);
    animation: flow-prepay-spin 0.9s linear infinite;
}
@keyframes flow-prepay-spin { to { transform: rotate(360deg); } }
.flow-prepay-wait-text { margin: 0.9rem 0 0.3rem; font-weight: 700; font-size: 1.02rem; }
.flow-prepay-wait-sub { margin: 0; font-size: 0.86rem; color: var(--theme-text-secondary, rgba(246, 240, 230, 0.72)); }
@media (prefers-reduced-motion: reduce) { .flow-prepay-wait-spin { animation-duration: 2.4s; } }

/* ---------- Lượt chưa mở khoá (tarot-prepay.php) — luồng kiểu Mèo Béo, style của site ----------
   Kết quả: tiêu đề → thẻ từng lá (ảnh, tên + xuôi/ngược, vị trí, nghĩa gốc, link bài đầy đủ)
   → bong bóng lời người đọc bài (câu nối) → vài dòng mờ.
   Box mời mở khoá của trang (.tarot-unlock-prompt.is-prepay) chỉ còn MỘT thẻ .flow-pp-pay. */
.flow-pp { max-width: 720px; margin: 0.3rem auto 0; }
.flow-pp-ic { display: inline-flex; width: 1.05em; height: 1.05em; flex-shrink: 0; }
.flow-pp-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-pp-head { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin: 0 0 0.9rem; font-size: 1.1rem; color: var(--theme-gold-text); }
.flow-pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.flow-pp-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.95rem 1.05rem;
    border-radius: 18px;
    border: 1px solid var(--theme-border-strong, rgba(212, 165, 116, 0.32));
    background: var(--theme-surface-1, rgba(255, 255, 255, 0.03));
    animation: flow-pp-in 0.4s ease both;
    animation-delay: var(--d, 0s);
}
@keyframes flow-pp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flow-pp-img { width: 60px; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 7px; flex-shrink: 0; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.7); background: rgba(212, 165, 116, 0.12); }
.flow-pp-body { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.flow-pp-name { margin: 0; font-weight: 800; font-size: 1rem; line-height: 1.35; color: var(--theme-text-primary); }
.flow-pp-orient { font-weight: 600; color: var(--theme-gold-text); }
.flow-pp-pos { display: inline-block; padding: 0.1rem 0.65rem; border-radius: 999px; font-size: 0.78rem; background: rgba(212, 165, 116, 0.13); color: var(--theme-text-secondary); }
.flow-pp-key { margin: 0.1rem 0 0; font-size: 0.98rem; line-height: 1.55; color: var(--theme-text-body, var(--theme-text-primary)); }
.flow-pp-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 700; color: var(--theme-gold-text); text-decoration: none; }
.flow-pp-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.flow-pp-say { display: flex; align-items: flex-end; gap: 0.6rem; margin: 1.2rem 0 0.8rem; }
.flow-pp-ava, .flow-pp-pay-ava {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    color: var(--theme-gold-text);
    background: var(--theme-bg-elevated, #16121d);
    border: 1px solid var(--theme-border-strong, rgba(212, 165, 116, 0.4));
}
.flow-pp-ava { width: 38px; height: 38px; }
.flow-pp-ava img, .flow-pp-pay-ava img { width: 78%; height: 78%; object-fit: contain; }
.flow-pp-ava svg, .flow-pp-pay-ava svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.flow-pp-bridge {
    margin: 0;
    padding: 0.85rem 1.1rem;
    border-radius: 18px 18px 18px 4px;
    border: 1px dashed var(--theme-border-strong, rgba(212, 165, 116, 0.5));
    background: rgba(212, 165, 116, 0.07);
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--theme-text-body, var(--theme-text-primary));
}
.flow-pp-bridge strong { color: var(--theme-gold-text); }
.flow-pp-blur { display: grid; gap: 0.6rem; margin: 0.6rem 0 0 3rem; filter: blur(3px); opacity: 0.75; }
.flow-pp-blur span { display: block; height: 0.8rem; border-radius: 999px; background: rgba(212, 165, 116, 0.22); }
.flow-pp-blur span:nth-child(1) { width: 92%; }
.flow-pp-blur span:nth-child(2) { width: 80%; }
.flow-pp-blur span:nth-child(3) { width: 88%; }

/* Box mời mở khoá của trang → một thẻ duy nhất */
.tarot-unlock-prompt.is-prepay { background: none; border: 0; box-shadow: none; padding: 0; width: 100%; max-width: 600px; }
.tarot-unlock-prompt.is-prepay > :not(.flow-pp-pay) { display: none !important; }
.flow-pp-pay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.6rem 1.4rem 1.3rem;
    border-radius: 24px;
    border: 1px solid var(--gk-night-border, rgba(212, 165, 116, 0.4));
    background: var(--gk-night, linear-gradient(135deg, #2a2016 0%, #1b150e 55%, #110d08 100%));
    box-shadow: 0 26px 56px -30px rgba(0, 0, 0, 0.9);
    text-align: center;
}
[data-theme="light"] .flow-pp-pay { background: linear-gradient(165deg, #fffaf1 0%, #f5e8d0 100%); border-color: rgba(196, 138, 78, 0.45); box-shadow: 0 24px 48px -32px rgba(110, 74, 34, 0.6); }
.flow-pp-pay-ava { width: 74px; height: 74px; border-width: 2px; box-shadow: 0 0 0 6px rgba(212, 165, 116, 0.1); }
.flow-pp-pay-title { margin: 0.15rem 0 0; font-size: 1.22rem; line-height: 1.4; color: var(--theme-gold-text); }
.flow-pp-pay-sub { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--theme-text-secondary); }
.flow-pp-proof { margin: 0.1rem 0; padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.86rem; font-weight: 700; background: rgba(230, 193, 138, 0.2); color: var(--theme-gold-text); }
.flow-pp-gets { list-style: none; margin: 0.2rem 0 0.3rem; padding: 0; display: grid; gap: 0.6rem; max-width: 420px; text-align: left; }
.flow-pp-gets li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.97rem; line-height: 1.5; color: var(--theme-text-body, var(--theme-text-primary)); }
.flow-pp-gets li > .flow-pp-ic { margin-top: 0.2rem; color: var(--theme-gold-text); }
.flow-pp-gets b { color: var(--theme-gold-text); }
.flow-pp-gets small { display: block; margin-top: 0.1rem; font-size: 0.8rem; color: var(--theme-text-secondary); }
.flow-pp-promo { width: 100%; }
.flow-pp-promo:empty { display: none; }
.flow-pp-promo .tarot-promo-banner { margin: 0; }
.flow-pp-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; width: 100%; max-width: 420px; }
.flow-pp-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.6rem 0.5rem;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    border: 1px solid var(--theme-border-strong, rgba(212, 165, 116, 0.35));
    background: transparent;
    color: var(--theme-text-primary);
}
.flow-pp-tier.is-on { border: 2px solid var(--theme-gold-text); background: rgba(212, 165, 116, 0.12); }
.flow-pp-tier-name { font-weight: 800; font-size: 0.95rem; }
.flow-pp-tier-name em { display: block; font-style: normal; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--theme-gold-text); }
.flow-pp-tier-price { font-size: 0.9rem; color: var(--theme-text-secondary); }
.flow-pp-tier-desc { margin: -0.2rem 0 0; min-height: 1.2em; font-size: 0.82rem; color: var(--theme-text-secondary); max-width: 420px; }
.flow-pp-price { margin: 0.1rem 0 0; font-size: 1rem; }
.flow-pp-price s { color: var(--theme-text-secondary); margin-right: 0.35rem; }
.flow-pp-price b { font-size: 1.35rem; color: var(--theme-gold-text); }
.flow-pp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 420px;
    min-height: 54px;
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--gk-btn, linear-gradient(135deg, #f3d9a4 0%, #d4a574 50%, #a8743f 100%));
    color: var(--gk-btn-ink, #2a1a08);
    box-shadow: var(--gk-btn-shadow, 0 8px 22px -10px rgba(0, 0, 0, 0.5));
    transition: transform 0.15s ease, filter 0.15s ease;
}
.flow-pp-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.flow-pp-cta:focus-visible, .flow-pp-tier:focus-visible { outline: 2px solid var(--theme-gold-text); outline-offset: 3px; }
.flow-pp-trust { margin: 0; font-size: 0.78rem; color: var(--theme-text-secondary); }

@media (max-width: 480px) {
    .flow-pp-item { padding: 0.8rem 0.85rem; gap: 0.8rem; border-radius: 16px; }
    .flow-pp-img { width: 52px; }
    .flow-pp-pay { padding: 1.3rem 1rem 1.1rem; border-radius: 20px; }
    .flow-pp-blur { margin-left: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) { .flow-pp-item { animation: none; } }

/* Ảnh đại diện người đọc bài: vầng trăng vàng kim */
.flow-pp-ava.is-moon svg, .flow-pp-pay-ava.is-moon svg, .tc-ava.is-moon svg { width: 62%; height: 62%; fill: currentColor; stroke: none; }
.flow-pp-pay-ava.is-moon { color: var(--theme-gold-text); background: radial-gradient(circle at 35% 30%, rgba(243, 217, 164, 0.18), transparent 70%), var(--theme-bg-elevated, #16121d); }

/* =====================================================================
   Thẻ mua gói (bản 3): người đọc bài + tiêu đề → điều nhận được (không icon) →
   dải khuyến mãi + hai gói Lắng nghe / Đồng hành đúng như khối gói cũ
   (.tarot-unlock-cards, nhãn đỏ "tiết kiệm X", nút riêng từng gói).
   ===================================================================== */
.flow-pp-pay:has(.flow-pp-cards) { align-items: stretch; text-align: left; gap: 1rem; padding: 1.5rem 1.6rem 1.3rem; }
.flow-pp-pay-top { display: flex; align-items: center; gap: 1rem; }
.flow-pp-pay-ava.is-img {
    width: 64px; height: 64px; border: 0;
    background: radial-gradient(circle at 35% 30%, #3d2e1c 0%, #1b150e 72%);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.7), 0 0 0 8px rgba(212, 165, 116, 0.1);
}
.flow-pp-pay-ava.is-img img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 0 5px rgba(243, 217, 164, 0.5)); }
.flow-pp-pay-heading { min-width: 0; }
.flow-pp-pay-top .flow-pp-pay-title { margin: 0 0 0.25rem; }
.flow-pp-pay:has(.flow-pp-cards) .flow-pp-proof { align-self: flex-start; margin: 0; }
.flow-pp-gets.is-plain {
    max-width: none; margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.55rem 1.4rem;
    padding: 0.95rem 1.1rem; border-radius: 16px;
    background: rgba(212, 165, 116, 0.07); border: 1px solid rgba(212, 165, 116, 0.18);
}
.flow-pp-gets.is-plain li { position: relative; display: block; padding-left: 0.95rem; }
.flow-pp-gets.is-plain li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--theme-gold-text); }
.flow-pp-pay .tarot-promo-banner-wrap .tarot-promo-banner { margin: 0.2rem 0 0; }
.flow-pp-cards { margin-top: 0.7rem; }
.flow-pp-pay:has(.flow-pp-cards) .flow-pp-trust { text-align: center; }

@media (max-width: 480px) {
    .flow-pp-pay:has(.flow-pp-cards) { padding: 1.15rem 1rem 1.1rem; }
    .flow-pp-pay-top { align-items: flex-start; gap: 0.8rem; }
    .flow-pp-pay-ava.is-img { width: 50px; height: 50px; }
    .flow-pp-pay-top .flow-pp-pay-title { font-size: 1.08rem; }
    .flow-pp-cards { gap: 1.2rem; }
}

/* (input. để thắng luật input[type=email] nền sáng của Nevo) Ô "Email nhận bài (không bắt buộc)" trong thẻ mở khoá — chỉ khách vãng lai (tarot-reading-email.php). */
.flow-pp-email { width: 100%; max-width: 420px; margin: 0.2rem auto 0; text-align: left; }
.flow-pp-email-l { display: block; margin: 0 0 0.35rem; font-size: 0.86rem; font-weight: 700; color: var(--theme-gold-text); }
.flow-pp-email-l span { font-weight: 400; color: var(--theme-text-muted); }
input.flow-pp-email-i {
    width: 100%; box-sizing: border-box; padding: 0.7rem 1rem; border-radius: 999px;
    border: 1px solid rgba(212, 165, 116, 0.35); background: rgba(255, 255, 255, 0.05);
    color: var(--theme-text-body); font-size: 0.95rem; font-family: inherit;
}
input.flow-pp-email-i::placeholder { color: var(--theme-text-muted); }
input.flow-pp-email-i:focus { outline: none; border-color: var(--theme-gold-text); box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.18); }
.flow-pp-email-err { margin: 0.35rem 0 0 0.6rem; font-size: 0.8rem; color: #e58a7a; }
[data-theme="light"] input.flow-pp-email-i { background: #fff; border-color: rgba(196, 138, 78, 0.45); color: #3b2f2a; }
