/* ============================================
   TAROT READING PAGE - OPTIMIZED CONTENT
   Spacious layout without unnecessary boxes
   ============================================ */

:root {
    --dark-black: #0a0a0f;
    --tarot-gold: #d4a574;
    --tarot-gold-light: #e6c18a;
    --tarot-gold-dark: #b8935f;
    --tarot-glow: rgba(212, 165, 116, 0.4);

    /* Hệ thống font-size chuẩn cho toàn bộ khu vực bói bài + kết quả,
       thay cho hàng chục giá trị rời rạc trước đây (0.9rem, 0.95rem, 0.98rem,
       1.02rem, 1.05rem, 1.1rem... dùng lẫn lộn cho cùng 1 vai trò nội dung). */
    --fs-h1: 2.8rem;    /* Tiêu đề chính duy nhất của trang (BÓC BÀI TAROT) */
    --fs-h2: 2.2rem;    /* Tiêu đề section lớn (Chọn 3 lá bài, tiêu đề trang SEO...) */
    --fs-h3: 1.5rem;    /* Tiêu đề card/khối con (tên lá bài, Thông điệp thần bí...) */
    --fs-h4: 1.2rem;    /* Nhãn nhóm nhỏ hơn (Tổng quan, câu hỏi trong lịch sử...) */
    --fs-body: 1.05rem; /* Nội dung văn bản chính (mô tả, luận giải, câu trả lời) */
    --fs-small: 0.95rem;/* Label phụ, chú thích, placeholder, indicator */
    --fs-xs: 0.8rem;    /* Chữ rất nhỏ (tên lá bài mini trên deck, char counter) */
}

/* Thu nhỏ toàn bộ hệ thống font-size theo tỷ lệ hợp lý trên mobile — chỉ cần
   đổi giá trị biến ở đây, mọi selector dùng var(--fs-...) tự động cập nhật,
   không cần override font-size riêng lẻ cho từng class như trước đây. */
@media (max-width: 768px) {
    :root {
        --fs-h1: 2.2rem;
        --fs-h2: 1.7rem;
        --fs-h3: 1.25rem;
        --fs-h4: 1.05rem;
        --fs-body: 0.95rem;
        --fs-small: 0.85rem;
        --fs-xs: 0.72rem;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-h1: 1.8rem;
        --fs-h2: 1.4rem;
        --fs-h3: 1.1rem;
        --fs-h4: 0.95rem;
        --fs-body: 0.9rem;
        --fs-small: 0.8rem;
        --fs-xs: 0.68rem;
    }
}

/* === RESET & BASE ===
   Lưu ý: universal reset (*) và các rule body.page-template-page-boi-tarot-online
   bên dưới chỉ có tác dụng khi file này chạy trên trang /boi-bai-tarot/ độc lập
   (page template riêng). Từ khi gộp chức năng bói bài vào trang chủ, file này
   được nạp CÙNG với main.css trên toàn trang chủ — nếu áp dụng universal reset
   ở đây sẽ ảnh hưởng luôn tới các section khác của trang chủ (Introduction,
   Features, Reader, FAQ...) nằm ngoài phạm vi bói bài. Nên các rule reset toàn
   cục được thu hẹp lại, chỉ áp dụng bên trong .tarot-reading-wrapper. */
.tarot-reading-wrapper,
.tarot-reading-wrapper *,
.tarot-reading-wrapper *::before,
.tarot-reading-wrapper *::after {
    box-sizing: border-box;
}

body.page-template-page-boi-tarot-online {
    background: var(--theme-bg) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Force full width — chỉ còn áp dụng cho trang /boi-bai-tarot/ độc lập cũ,
   không ảnh hưởng trang chủ vì body trang chủ không có class này. */
.page-template-page-boi-tarot-online #content,
.page-template-page-boi-tarot-online .site-content,
.page-template-page-boi-tarot-online .container,
.page-template-page-boi-tarot-online .entry-content,
.page-template-page-boi-tarot-online #primary,
.page-template-page-boi-tarot-online .site-main,
.page-template-page-boi-tarot-online article,
.page-template-page-boi-tarot-online .site-inner {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    background: transparent !important;
}

/* === WRAPPER ===
   Lưu ý: từ khi gộp chức năng bói bài vào trang chủ, .tarot-reading-wrapper
   nằm LỒNG BÊN TRONG .tarot-page-wrapper (đã tự full-bleed 100vw/-50vw ở
   main.css). Nếu để .tarot-reading-wrapper tự full-bleed thêm 1 lần nữa sẽ
   bị lệch layout do 2 lớp 100vw chồng nhau. Ở đây dùng width: 100% vì
   background/full-bleed đã được xử lý bởi .tarot-page-wrapper cha rồi.
   (Trang /boi-bai-tarot/ riêng cũ đã redirect về trang chủ nên không còn
   trường hợp .tarot-reading-wrapper đứng độc lập ở cấp <body> nữa.) */
.tarot-reading-wrapper {
    width: 100%;
    position: relative;
    min-height: auto;
    background: transparent;
    overflow: visible;
}

.tarot-reading-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 15% 20%, rgba(75, 61, 120, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(212, 165, 116, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.tarot-stars-bg,
.tarot-particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* === CONTAINER === */
.tarot-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
    padding: 0;
}

/* === STEPS === */
.tarot-step {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.tarot-step.active {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === STEP 1: HEADER === */
.tarot-header {
    text-align: center;
    margin-bottom: 1.2rem;
    padding: 0 1rem;
    margin-top: 0;
}

.tarot-main-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    color: var(--theme-text-primary);
    margin: 0 0 0.2rem 0;
    letter-spacing: 4px;
    text-shadow: 0 0 30px var(--tarot-glow);
    line-height: 1.2;
}

.tarot-subtitle {
    color: var(--theme-gold-text);
    font-size: var(--fs-small);
    letter-spacing: 4px;
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
}

/* === SELECTION CONTAINER === */
.selection-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 3rem 2rem;
}

/* === SPREAD SELECTION === */
.spread-selection-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.spread-section-title {
    color: var(--theme-text-primary);
    font-size: var(--fs-h4);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.6rem;
    margin-top: 0;
}

.spread-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.card-count-option {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    background: var(--theme-surface-0);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: border-color 0.3s ease;
    align-items: center;
    position: relative;
    min-height: 150px;
}

.card-count-option:hover {
    border-color: var(--theme-gold-text);
}

.card-count-option.active {
    border-color: var(--theme-gold-text);
    border-width: 3px;
    background: rgba(212, 165, 116, 0.12);
}

.option-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-image img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    border-radius: 10px;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.option-title {
    color: var(--theme-gold-text);
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.option-subtitle {
    color: var(--theme-text-body);
    font-size: var(--fs-body);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.option-desc {
    color: var(--theme-text-secondary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

/* === SELECTION BOX === */
.selection-box {
    background: var(--theme-surface-1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 20px;
    padding: 3.5rem 4rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
    margin-bottom: 1.5rem;
}

.selection-box:hover {
    border-color: rgba(212, 165, 116, 0.4);
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.selection-label {
    color: var(--theme-text-primary);
    font-size: var(--fs-h4);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.custom-select {
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--theme-bg-translucent-80);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 15px;
    color: var(--theme-text-primary);
    font-size: var(--fs-h4);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4a574' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 22px;
    padding-right: 3.5rem;
}

.custom-select:hover:not(:disabled) {
    border-color: var(--theme-gold-text);
}

.custom-select:focus {
    outline: none;
    border-color: var(--theme-gold-text);
}

.custom-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.custom-select option {
    background: var(--theme-bg);
    color: var(--theme-text-primary);
    padding: 1.2rem;
}

/* === SHUFFLE BUTTON === */
.shuffle-btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, var(--tarot-gold), var(--tarot-gold-dark));
    border: none;
    padding: 1.8rem 5rem;
    font-size: var(--fs-h4);
    font-weight: 800;
    border-radius: 60px;
    cursor: pointer;
    color: var(--dark-black);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px var(--tarot-glow);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.shuffle-btn-main:hover:not(.disabled) {
    transform: scale(1.05);
}

.shuffle-btn-main.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.3);
    color: var(--theme-text-faint);
    box-shadow: none;
}

.btn-icon {
    font-size: 1.5rem;
}

.step-indicator {
    text-align: center;
    color: var(--theme-text-soft);
    font-size: var(--fs-small);
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* === STEP 2: SHUFFLE === */
.card-back-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    position: relative;
    margin: 3rem 0;
}

.shuffle-circle {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shuffle-circle::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3), transparent);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.shuffle-card {
    position: absolute;
    width: 70px;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 10px 30px var(--tarot-glow));
    left: 50%;
    top: 50%;
    transform-origin: center;
    z-index: 1;
    animation: circularShuffle 3s linear infinite;
}

@keyframes circularShuffle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

.shuffle-card:nth-child(1) { animation-delay: 0s; }
.shuffle-card:nth-child(2) { animation-delay: -0.15s; }
.shuffle-card:nth-child(3) { animation-delay: -0.3s; }
.shuffle-card:nth-child(4) { animation-delay: -0.45s; }
.shuffle-card:nth-child(5) { animation-delay: -0.6s; }
.shuffle-card:nth-child(6) { animation-delay: -0.75s; }
.shuffle-card:nth-child(7) { animation-delay: -0.9s; }
.shuffle-card:nth-child(8) { animation-delay: -1.05s; }
.shuffle-card:nth-child(9) { animation-delay: -1.2s; }
.shuffle-card:nth-child(10) { animation-delay: -1.35s; }
.shuffle-card:nth-child(11) { animation-delay: -1.5s; }
.shuffle-card:nth-child(12) { animation-delay: -1.65s; }
.shuffle-card:nth-child(13) { animation-delay: -1.8s; }
.shuffle-card:nth-child(14) { animation-delay: -1.95s; }
.shuffle-card:nth-child(15) { animation-delay: -2.1s; }
.shuffle-card:nth-child(16) { animation-delay: -2.25s; }
.shuffle-card:nth-child(17) { animation-delay: -2.4s; }
.shuffle-card:nth-child(18) { animation-delay: -2.55s; }
.shuffle-card:nth-child(19) { animation-delay: -2.7s; }
.shuffle-card:nth-child(20) { animation-delay: -2.85s; }

.shuffle-text {
    text-align: center;
    color: var(--theme-gold-text);
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* === STEP 3: DRAW CARDS === */
.step-title {
    text-align: center;
    font-size: var(--fs-h2);
    color: var(--theme-gold-text);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--tarot-glow);
    padding-top: 2rem;
}

.draw-instruction {
    text-align: center;
    color: var(--theme-text-secondary);
    font-size: var(--fs-body);
    margin-bottom: 2rem;
}

/* === SELECTED CARDS AREA === */
.selected-cards-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2rem 1rem 3rem;
    position: relative;
    flex-wrap: nowrap;
}

.selected-cards-area::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 165, 116, 0.3) 20%, 
        rgba(212, 165, 116, 0.6) 50%, 
        rgba(212, 165, 116, 0.3) 80%, 
        transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.selected-card-slot {
    width: 180px;
    height: 280px;
    border: 3px dashed rgba(212, 165, 116, 0.4);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-1);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.4s ease;
    z-index: 1;
    flex-shrink: 0;
}

.selected-card-slot.active {
    border-color: var(--theme-gold-text);
    border-style: solid;
    box-shadow: 0 0 30px var(--tarot-glow);
    transform: scale(1.05);
}

.selected-card-slot.filled {
    border-style: solid;
    border-color: var(--theme-gold-text);
    box-shadow: 0 0 20px var(--tarot-glow);
}

.slot-label {
    position: absolute;
    top: -35px;
    color: var(--theme-gold-text);
    font-weight: 700;
    font-size: var(--fs-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--tarot-glow);
    white-space: nowrap;
}

.slot-placeholder {
    font-size: 3.5rem;
    color: rgba(212, 165, 116, 0.3);
    font-weight: 300;
}

.slot-card-name {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    background: var(--theme-bg-translucent-92);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    backdrop-filter: blur(5px);
    line-height: 1.3;
    max-height: 70px;
    overflow: hidden;
    color: var(--theme-text-secondary);
    font-size: var(--fs-xs);
    font-weight: 400;
}

.slot-card-name-en {
    display: block;
    font-size: var(--fs-xs);
    color: var(--theme-gold-text);
    margin-bottom: 2px;
    font-weight: 700;
    font-style: italic;
}

.slot-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    animation: cardFlipIn 0.6s ease-out;
}

@keyframes cardFlipIn {
    0% {
        transform: rotateY(90deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: rotateY(0) scale(1);
        opacity: 1;
    }
}

.selected-cards-area:has(.selected-card-slot:only-child) {
    gap: 0;
}

.selected-cards-area:has(.selected-card-slot:only-child) .selected-card-slot {
    width: 200px;
    height: 320px;
}

/* === DECK CONTAINER === */
.deck-container {
    max-width: 100%;
    margin: 2rem auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.deck-row {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 3rem;
}

.deck-card {
    width: 85px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: absolute;
    animation: cardDrop 0.6s ease-out both;
}

.deck-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(212, 165, 116, 0.3);
    transition: border-color 0.3s ease;
    pointer-events: none;
    user-select: none;
}

@keyframes cardDrop {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.deck-card:hover:not(.selected) {
    transform: translateY(-12px) !important;
    z-index: 1000 !important;
}

.deck-card:hover:not(.selected) img {
    border-color: var(--theme-gold-text);
}

.deck-card.selected {
    opacity: 0.3;
    pointer-events: none;
    transform: scale(0.7) !important;
}

/* === CONTINUE BUTTON === */
.continue-btn {
    display: block;
    margin: 3rem auto 2rem;
    background: linear-gradient(135deg, #e6c18a, #d4a574);
    border: 2px solid #f0d5a8;
    padding: 1.2rem 3rem;
    font-size: var(--fs-h4);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    color: var(--dark-black);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.continue-btn:hover:not(.disabled) {
    transform: translateY(-3px);
}

.continue-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(100, 100, 100, 0.3);
    box-shadow: none;
}

/* === STEP 4: RESULTS === */
.result-header {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.result-date-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.result-date-icon {
    color: var(--theme-gold-text);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.result-date-title {
    color: var(--theme-gold-text);
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 25px var(--tarot-glow);
}

.result-topic-container {
    background: var(--theme-surface-2);
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: 25px;
    padding: 2rem 2.5rem;
    max-width: 900px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px var(--tarot-glow);
}

.topic-badge {
    display: inline-flex;
    padding: 0.9rem 2rem;
    background: rgba(212, 165, 116, 0.15);
    border: 2px solid rgba(212, 165, 116, 0.6);
    border-radius: 40px;
    margin: 0 auto 1.5rem;
}

.topic-text {
    color: var(--theme-gold-text);
    font-size: var(--fs-h4);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.question-text {
    color: var(--theme-text-primary);
    font-size: var(--fs-h4);
    line-height: 1.9;
    text-align: center;
    font-style: italic;
}

.result-cards-horizontal {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem 1rem;
    max-width: 80%;
    width: 80%;
    margin: 0 auto;
}

.result-card-item {
    display: flex;
    gap: 2rem;
    background: var(--theme-surface-2);
    border: 2px solid rgba(212, 165, 116, 0.25);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.result-card-item:hover {
    border-color: var(--theme-gold-text);
}

.card-image-wrapper {
    flex-shrink: 0;
    width: 220px;
}

.result-card-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(212, 165, 116, 0.4);
}

.result-card-img-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3.4;
    border-radius: 15px;
    background: linear-gradient(160deg, rgba(212, 165, 116, 0.15), var(--theme-bg-elevated-60));
    border: 3px solid rgba(212, 165, 116, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.card-name-result {
    color: var(--theme-gold-text);
    font-size: var(--fs-h3);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--tarot-glow);
}

.card-name-en {
    display: block;
    font-size: var(--fs-h4);
    color: var(--theme-text-body);
    font-weight: 400;
    margin-top: 0.4rem;
}

.card-meaning-text {
    color: var(--theme-text-strong);
    line-height: 2;
    font-size: var(--fs-body);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.card-content-section {
    background: var(--theme-bg-translucent-60);
    border-left: 4px solid var(--tarot-gold);
    padding: 1.6rem 1.8rem;
    border-radius: 12px;
}

/* Tiêu đề nhỏ trong khối nội dung kết quả kiểu cũ (.card-content-section) —
   KHÔNG áp cho h2.section-title của các section trang. */
.card-content-section .section-title {
    color: var(--theme-gold-text);
    font-size: var(--fs-h4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.1rem;
}

.card-content-section .section-title::before {
    content: '✦';
    margin-right: 0.7rem;
    font-size: 1.2rem;
}

.section-content {
    color: var(--theme-text-strong);
    line-height: 2.1;
    text-align: justify;
    font-size: var(--fs-body);
}

/* === COMBINED READING === */
.combined-reading-section {
    max-width: 80%;
    width: 80%;
    margin: 3rem auto;
    padding: 0 1rem;
}

.combined-intro {
    text-align: center;
    background: var(--theme-surface-2);
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px var(--tarot-glow);
}

.intro-icon {
    font-size: 3rem;
    color: var(--theme-gold-text);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.intro-text {
    color: var(--theme-text-strong);
    font-size: var(--fs-body);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.reveal-combined-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--tarot-gold), var(--tarot-gold-dark));
    border: none;
    padding: 1.3rem 3.5rem;
    font-size: var(--fs-h4);
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    color: var(--dark-black);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px var(--tarot-glow);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.reveal-combined-btn:hover {
    transform: scale(1.05);
}

.btn-sparkle {
    font-size: 1.4rem;
}

.combined-content {
    margin-top: 0;
    transition: all 0.6s ease;
}

.combined-content.hidden {
    display: none;
    opacity: 0;
}

.combined-message-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.message-box,
.advice-box {
    background: var(--theme-surface-2);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    transition: border-color 0.3s ease;
}

.message-box:hover,
.advice-box:hover {
    border-color: var(--theme-gold-text);
}

/* ============================================
   FOLLOW-UP SECTION — Đào sâu kết quả bằng AI
   "Bạn muốn tìm hiểu sâu hơn điều gì?"
   ============================================ */

.follow-up-section {
    max-width: 80%;
    width: 80%;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.follow-up-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.4), transparent);
    margin: 2.5rem 0;
}

.follow-up-title {
    text-align: center;
    color: var(--theme-text-primary);
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 1.8rem;
}

.follow-up-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.follow-up-suggestion-card {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--theme-surface-1);
    border: 1.5px solid rgba(212, 165, 116, 0.25);
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.follow-up-suggestion-card:hover,
.follow-up-suggestion-card:focus-visible {
    border-color: var(--theme-gold-text);
    background: rgba(212, 165, 116, 0.08);
    transform: translateY(-2px);
}

.follow-up-suggestion-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.follow-up-suggestion-text {
    color: var(--theme-text-strong);
    font-size: var(--fs-body);
    line-height: 1.6;
}

/* --- Lịch sử các vòng đào sâu (câu hỏi + trả lời) --- */
.follow-up-history {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.follow-up-history:not(:empty) {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.follow-up-history-item {
    background: var(--theme-bg-translucent-50);
    border-left: 3px solid var(--tarot-gold);
    border-radius: 14px;
    padding: 1.5rem 1.8rem;
}

.follow-up-history-question {
    color: var(--theme-gold-text);
    font-weight: 700;
    font-size: var(--fs-h4);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.follow-up-history-answer {
    color: var(--theme-text-strong);
    font-size: var(--fs-body);
    line-height: 1.85;
}

/* --- Form tự đặt câu hỏi --- */
.follow-up-custom-form {
    margin-top: 0.5rem;
}

.follow-up-custom-label {
    display: block;
    color: var(--theme-text-body);
    font-size: var(--fs-small);
    margin-bottom: 0.8rem;
}

.follow-up-custom-row {
    display: flex;
    gap: 0.8rem;
}

.follow-up-custom-input {
    flex: 1;
    background: var(--theme-surface-2);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--theme-text-primary);
    font-size: var(--fs-h4);
    font-family: inherit;
}

.follow-up-custom-input::placeholder {
    color: var(--theme-text-faint);
}

.follow-up-custom-input:focus {
    outline: none;
    border-color: var(--theme-gold-text);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.follow-up-custom-submit {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--tarot-gold), var(--tarot-gold-dark));
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.8rem;
    color: var(--dark-black);
    font-weight: 700;
    font-size: var(--fs-h4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.follow-up-custom-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--tarot-glow);
}

.follow-up-custom-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .follow-up-suggestions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .follow-up-suggestion-card {
        padding: 1.1rem 1.2rem;
    }

    .follow-up-custom-row {
        flex-direction: column;
    }

    .follow-up-custom-submit {
        width: 100%;
    }

    .follow-up-history-item {
        padding: 1.2rem 1.3rem;
    }
}

@media (max-width: 480px) {
    .follow-up-section {
        padding: 0 0.5rem;
    }

    .follow-up-divider {
        margin: 1.8rem 0;
    }

    .follow-up-title {
        font-size: var(--fs-h3);
        margin-bottom: 1.3rem;
    }

    .follow-up-suggestion-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .follow-up-history-item {
        padding: 1rem 1.1rem;
        border-radius: 10px;
    }

    .follow-up-history-question,
    .follow-up-custom-input,
    .follow-up-custom-submit {
        font-size: var(--fs-h4);
        padding: 0.8rem 1rem;
    }
}

.message-title,
.advice-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--theme-gold-text);
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--tarot-glow);
}

.title-icon {
    font-size: 2rem;
}

.message-content,
.advice-content {
    color: var(--theme-text-strong);
    font-size: var(--fs-body);
    line-height: 2.1;
    text-align: justify;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem auto 2rem;
    max-width: 80%;
    width: 80%;
}

.retry-btn,
.share-btn {
    padding: 1.3rem 3rem;
    font-size: var(--fs-h4);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
    letter-spacing: 1px;
}

.retry-btn {
    background: linear-gradient(135deg, var(--tarot-gold), var(--tarot-gold-dark));
    color: var(--dark-black);
    border: 2px solid var(--tarot-gold);
    box-shadow: 0 10px 30px var(--tarot-glow);
}

.retry-btn:hover {
    transform: translateY(-3px);
}

.share-btn {
    background: transparent;
    color: var(--theme-gold-text);
    border: 2px solid var(--tarot-gold);
}

.share-btn:hover {
    background: rgba(212, 165, 116, 0.1);
}

/* ============================================
   CONTENT SECTIONS - OPTIMIZED & SPACIOUS
   ============================================ */
.tarot-info-section {
    background: var(--theme-bg);
    padding: 6rem 0;
    color: var(--theme-text-primary);
}

.info-container {
    max-width: var(--site-w, 1500px);
    margin: 0 auto;
    padding: 0 4rem;
}

/* Info Block - Simplified & Spacious */
.info-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 0;
    background: transparent;
    border: none;
}

.info-title {
    color: var(--theme-gold-text);
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: none;
    line-height: 1.4;
}

.info-content {
    color: var(--theme-text-secondary);
    line-height: 2.2;
    font-size: var(--fs-body);
}

.info-content p {
    margin-bottom: 2rem;
}

.info-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-image img {
    max-width: 100%;
    filter: none;
    border-radius: 15px;
    opacity: 0.9;
}

/* All Content Sections - Remove Boxes */
.features-section,
.why-section,
.process-section,
.topics-section {
    margin-bottom: 6rem;
    padding: 0;
    background: transparent;
    border: none;
}

/* Section Headings - Cleaner */
.features-title,
.section-heading {
    color: var(--theme-gold-text);
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: left;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

/* Feature Items - Minimal Design */
.feature-item {
    margin-bottom: 3rem;
    padding: 0 0 0 2rem;
    border-left: 3px solid rgba(212, 165, 116, 0.5);
}

.feature-item h3 {
    color: var(--theme-gold-text);
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--theme-text-secondary);
    line-height: 2.2;
    font-size: var(--fs-body);
    margin-bottom: 1rem;
}

.feature-item ul {
    margin-top: 1.5rem;
    padding-left: 2rem;
}

.feature-item li {
    color: var(--theme-text-secondary);
    line-height: 2;
    margin-bottom: 0.8rem;
    font-size: var(--fs-body);
}

/* Why List - Simple & Clean */
.why-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-list li {
    color: var(--theme-text-secondary);
    font-size: var(--fs-body);
    line-height: 2.2;
    padding: 0 0 0 2rem;
    position: relative;
    background: transparent;
    border: none;
    border-left: 3px solid rgba(212, 165, 116, 0.5);
}

.why-list li::before {
    display: none;
}

.why-list li strong {
    color: var(--theme-gold-text);
    font-weight: 600;
}

/* Process List - Clean Numbers */
.process-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    counter-reset: process-counter;
}

.process-list li {
    color: var(--theme-text-secondary);
    font-size: var(--fs-body);
    line-height: 2.2;
    padding: 0 0 0 4rem;
    position: relative;
    counter-increment: process-counter;
    background: transparent;
}

.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--tarot-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-black);
    font-size: 1.1rem;
}

.process-list li strong {
    color: var(--theme-gold-text);
    font-weight: 600;
}

/* Topic Groups - Minimal */
.topic-group {
    margin-bottom: 3rem;
    padding: 0 0 0 2rem;
    background: transparent;
    border: none;
    border-left: 3px solid rgba(212, 165, 116, 0.5);
}

.topic-title {
    color: var(--theme-gold-text);
    font-size: var(--fs-h3);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.topic-questions {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.topic-questions li {
    color: var(--theme-text-secondary);
    font-size: var(--fs-body);
    padding: 0 0 0 1.5rem;
    position: relative;
    background: transparent;
    line-height: 2;
}

.topic-questions li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--theme-gold-text);
    font-size: 1.2rem;
}

/* CTA Box - Simplified */
.cta-box {
    text-align: center;
    padding: 4rem 3rem;
    background: transparent;
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: 20px;
    margin-top: 6rem;
    backdrop-filter: none;
    box-shadow: none;
}

.cta-box h2 {
    color: var(--theme-gold-text);
    font-size: var(--fs-h2);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-box p {
    color: var(--theme-text-secondary);
    font-size: var(--fs-h4);
    margin-bottom: 2rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--tarot-gold), var(--tarot-gold-dark));
    border: none;
    padding: 1.3rem 3.5rem;
    font-size: var(--fs-h4);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    color: var(--dark-black);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* === READING MODE SELECTION === */
.reading-mode-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.mode-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

.reading-mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: var(--theme-surface-0);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 180px;
}

.reading-mode-option:hover {
    border-color: var(--theme-gold-text);
    transform: translateY(-3px);
}

.reading-mode-option.active {
    border-color: var(--theme-gold-text);
    border-width: 3px;
    background: rgba(212, 165, 116, 0.12);
    box-shadow: 0 0 30px var(--tarot-glow);
}

.mode-icon {
    font-size: 3rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.reading-mode-option:hover .mode-icon,
.reading-mode-option.active .mode-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.mode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.mode-title {
    color: var(--theme-gold-text);
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.mode-subtitle {
    color: var(--theme-text-body);
    font-size: var(--fs-small);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.mode-desc {
    color: var(--theme-text-secondary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

/* === CUSTOM QUESTION TEXTAREA === */
.question-mode-container,
.topic-mode-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.4s ease-out;
}

.custom-textarea {
    width: 100%;
    padding: 2rem 2.5rem;
    background: var(--theme-bg-translucent-90);
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: 18px;
    color: var(--theme-text-primary);
    font-size: var(--fs-h4);
    font-weight: 400;
    line-height: 2;
    resize: vertical;
    min-height: 180px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.custom-textarea:hover {
    border-color: var(--theme-gold-text);
    background: var(--theme-bg);
}

.custom-textarea:focus {
    outline: none;
    border-color: var(--theme-gold-text);
    box-shadow: 0 0 20px var(--tarot-glow);
    background: var(--theme-bg);
}

.custom-textarea::placeholder {
    color: var(--theme-text-faint);
    font-style: italic;
    font-size: 1.1rem;
}

.char-counter {
    text-align: right;
    color: var(--theme-text-muted);
    font-size: var(--fs-small);
    margin-top: 0.8rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 1400px) {
    .info-container {
        padding: 0 3rem;
    }
}

@media (max-width: 1200px) {
    .info-container {
        padding: 0 2rem;
    }
    
    .info-block {
        gap: 4rem;
    }
}

@media (max-width: 1024px) {
    .selected-cards-area {
        gap: 2rem;
    }
    
    .selected-card-slot {
        width: 150px;
        height: 240px;
    }
    
    .slot-label {
        font-size: var(--fs-xs);
        top: -32px;
    }
    
    .selected-cards-area:has(.selected-card-slot:only-child) .selected-card-slot {
        width: 180px;
        height: 280px;
    }
    
    .info-container {
        padding: 0 2rem;
    }
    
    .info-block {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .tarot-step.active {
        padding-top: 1.5rem;
    }
    
    .tarot-main-title {
        font-size: var(--fs-h1);
        margin-bottom: 0.2rem;
        letter-spacing: 3px;
    }
    
    .tarot-subtitle {
        margin-bottom: 1rem;
    }
    
    .tarot-header {
        margin-bottom: 1rem;
        padding: 0 0.6rem;
    }
    
    .selection-container {
        padding: 0 0.6rem 2rem;
    }
    
    .shuffle-circle {
        width: 350px;
        height: 350px;
    }
    
    .spread-cards-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-count-option {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .option-image img {
        max-height: 100px;
    }
    
    .spread-section-title {
        font-size: var(--fs-h4);
        letter-spacing: 2px;
    }
    
    .selected-cards-area {
        gap: 1rem;
        margin: 2rem 0.5rem 2rem;
    }
    
    .selected-card-slot {
        width: 100px;
        height: 160px;
        border-width: 2px;
    }
    
    .slot-label {
        font-size: var(--fs-xs);
        letter-spacing: 1px;
        top: -28px;
    }
    
    .slot-placeholder {
        font-size: 2.5rem;
    }
    
    .slot-card-name {
        padding: 4px 6px;
        font-size: var(--fs-xs);
        max-height: 50px;
    }
    
    .selected-cards-area::before {
        width: 90%;
        height: 2px;
    }
    
    .selected-cards-area:has(.selected-card-slot:only-child) .selected-card-slot {
        width: 140px;
        height: 220px;
    }
    
    .selected-cards-area:has(.selected-card-slot:only-child) .slot-label {
        font-size: var(--fs-xs);
        top: -32px;
    }
    
    .result-cards-horizontal,
    .result-actions,
    .combined-reading-section,
    .follow-up-section {
        max-width: 100%;
        width: 100%;
    }
    
    .result-topic-container {
        padding: 1.5rem 1.2rem;
    }
    
    .message-box,
    .advice-box {
        padding: 1.8rem;
    }
    
    .combined-reading-section {
        padding: 0 1rem;
    }
    
    .result-card-item {
        flex-direction: column;
        align-items: center;
        padding: 1.2rem 0.8rem;
        gap: 1.2rem;
    }
    
    .card-image-wrapper {
        width: 100%;
        max-width: 220px;
    }
    
    .card-info {
        gap: 1.2rem;
        width: 100%;
    }
    
    .card-content-section {
        padding: 1rem 0.8rem;
    }
    
    .card-content-section .section-title {
        font-size: var(--fs-h4);
        margin-bottom: 0.7rem;
    }
    
    .section-content {
        font-size: var(--fs-body);
        line-height: 1.85;
        text-align: left;
    }
    
    .continue-btn {
        padding: 1.1rem 2.5rem;
        font-size: var(--fs-h4);
    }
    
    .mode-cards-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reading-mode-option {
        padding: 1.5rem 1.2rem;
        border-radius: 14px;
        min-height: auto;
    }
    
    .mode-icon {
        font-size: 2.5rem;
    }
    
    .selection-box {
        background: transparent;
        border: none;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .selection-header {
        margin-bottom: 1rem;
    }
    
    .custom-textarea {
        padding: 1.5rem 1.8rem;
        font-size: var(--fs-h4);
        min-height: 140px;
        border-radius: 16px;
        border-width: 2px;
    }
    
    .selection-label {
        font-size: var(--fs-h4);
        letter-spacing: 2.5px;
        margin-bottom: 1.2rem;
    }
    
    .tarot-info-section {
        padding: 4rem 1.5rem;
    }

    .info-container {
        padding: 0 1rem;
    }

    .info-block {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }

    .features-title,
    .section-heading {
        font-size: var(--fs-h2);
        text-align: center;
    }

    .feature-item {
        padding: 0 0 0 1.5rem;
        border-left-width: 2px;
    }

    .topic-group {
        padding: 0 0 0 1.5rem;
        border-left-width: 2px;
    }
}

@media (max-width: 480px) {
    .tarot-step.active {
        padding-top: 1rem;
    }
    
    .tarot-main-title {
        font-size: var(--fs-h1);
        letter-spacing: 2.5px;
        margin-bottom: 0.2rem;
    }
    
    .tarot-subtitle {
        font-size: var(--fs-small);
        letter-spacing: 3px;
        margin-bottom: 0.8rem;
    }
    
    .tarot-header {
        margin-bottom: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .selection-container {
        padding: 0 0.5rem 1.5rem;
    }
    
    .selection-box {
        background: transparent;
        border: none;
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .selection-label {
        font-size: var(--fs-h4);
        letter-spacing: 2.5px;
        margin-bottom: 1rem;
    }
    
    .card-count-option {
        grid-template-columns: 70px 1fr;
        gap: 0.7rem;
        padding: 0.8rem;
        border-radius: 12px;
    }
    
    .option-image img {
        max-height: 70px;
    }
    
    .selected-cards-area {
        gap: 0.5rem;
        margin: 1.5rem 0.25rem 1.5rem;
    }
    
    .selected-card-slot {
        width: 85px;
        height: 140px;
        border-width: 2px;
        border-radius: 10px;
    }
    
    .slot-label {
        font-size: var(--fs-xs);
        letter-spacing: 0.5px;
        top: -24px;
    }
    
    .slot-placeholder {
        font-size: 2rem;
    }
    
    .slot-card-name {
        padding: 3px 4px;
        font-size: var(--fs-xs);
        max-height: 45px;
        border-radius: 6px;
    }
    
    .slot-card-name-en {
        font-size: var(--fs-xs);
        margin-bottom: 1px;
    }
    
    .selected-cards-area:has(.selected-card-slot:only-child) .selected-card-slot {
        width: 120px;
        height: 190px;
    }
    
    .selected-cards-area:has(.selected-card-slot:only-child) .slot-label {
        font-size: var(--fs-xs);
        top: -28px;
    }
    
    .selected-cards-area:has(.selected-card-slot:only-child) .slot-card-name {
        font-size: var(--fs-xs);
        padding: 4px 6px;
    }
    
    .shuffle-btn-main {
        padding: 1.5rem 3rem;
        font-size: var(--fs-h4);
    }
    
    .continue-btn {
        padding: 1rem 2rem;
        font-size: var(--fs-h4);
    }
    
    .result-cards-horizontal {
        padding: 1.5rem 0.5rem;
    }
    
    .result-topic-container {
        padding: 1.2rem 1rem;
        border-radius: 16px;
    }
    
    .message-box,
    .advice-box {
        padding: 1.3rem;
        border-radius: 14px;
    }
    
    .combined-reading-section {
        padding: 0 0.5rem;
        margin: 2rem auto;
    }
    
    .card-image-wrapper {
        max-width: 200px;
    }
    
    .result-card-item {
        padding: 1rem 0.7rem;
        gap: 1rem;
        border-radius: 16px;
    }
    
    .card-info {
        gap: 1rem;
    }
    
    .card-content-section {
        padding: 0.9rem 0.7rem;
        border-radius: 10px;
    }
    
    .card-content-section .section-title {
        font-size: var(--fs-h4);
        letter-spacing: 1.5px;
        margin-bottom: 0.6rem;
    }
    
    .section-content {
        font-size: var(--fs-body);
        line-height: 1.8;
    }
    
    .reading-mode-option {
        padding: 1.3rem 1rem;
        border-radius: 14px;
        min-height: auto;
    }
    
    .mode-icon {
        font-size: 2rem;
    }
    
    .custom-textarea {
        padding: 1.3rem 1.5rem;
        font-size: var(--fs-h4);
        min-height: 120px;
        border-radius: 14px;
    }
    
    .tarot-info-section {
        padding: 3rem 1rem;
    }

    .info-container {
        padding: 0 1rem;
    }

    .features-title,
    .feature-item p,
    .why-list li,
    .process-list li {
        font-size: var(--fs-body);
        line-height: 2;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-btn {
        padding: 1.2rem 2.5rem;
        font-size: var(--fs-h4);
    }
}

.continue-reading-btn {
    background: linear-gradient(135deg, #7b4fa6, #5c3480);
    color: var(--theme-text-primary);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: var(--fs-h4);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(123, 79, 166, 0.4);
}

.continue-reading-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(123, 79, 166, 0.6);
    background: linear-gradient(135deg, #9060c0, #7040a0);
}

/* ============================================
   TAROT ACCOUNT GATE — hiện khi backend từ chối vì chưa đăng nhập
   hoặc hết quyền gói, kèm nút hành động để người dùng tự chủ bấm.
   ============================================ */

.tarot-account-gate {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--theme-surface-1);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 16px;
}

.tarot-account-gate-message {
    color: var(--theme-text-secondary);
    font-size: var(--fs-body);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.tarot-account-gate-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--dark-black);
    font-weight: 700;
    font-size: var(--fs-h4);
    padding: 0.8rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tarot-gold-light), var(--tarot-gold));
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.tarot-account-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--tarot-glow);
}
/* ============================================
   TRANG ĐĂNG NHẬP (/dang-nhap/) — layout 2 cột
   Trái: minh hoạ thương hiệu. Phải: nút đăng nhập Google.
   ============================================ */

.tarot-login-page-body {
    margin: 0;
    padding: 0;
    background: var(--theme-bg);
}

.tarot-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.tarot-login-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-width: 1100px;
    width: 100%;
    min-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* --- Cột trái: minh hoạ --- */
.tarot-login-illustration {
    position: relative;
    background: linear-gradient(160deg, #2a1f4d 0%, #1c153b 55%, #0a0a0f 100%);
    padding: 3rem 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.tarot-login-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 165, 116, 0.15), transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(123, 79, 166, 0.25), transparent 50%);
    pointer-events: none;
}

.tarot-login-illustration-tag {
    position: relative;
    display: inline-block;
    color: var(--theme-gold-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.tarot-login-illustration-title {
    position: relative;
    color: var(--theme-text-primary);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.tarot-login-illustration-subtitle {
    position: relative;
    color: var(--theme-text-soft);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
}

/* --- Cột phải: form --- */
.tarot-login-panel {
    background: var(--theme-bg-elevated);
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tarot-login-panel-eyebrow {
    color: var(--theme-gold-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.tarot-login-panel-title {
    color: var(--theme-text-primary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.tarot-login-panel-desc {
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2.2rem;
}

.tarot-login-google-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 46px;
    margin-bottom: 1.8rem;
    text-decoration: none;
    color: var(--dark-black);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, var(--tarot-gold-light), var(--tarot-gold));
    transition: all 0.3s ease;
}

.tarot-login-google-btn-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--tarot-glow);
}

.tarot-login-panel-note {
    color: var(--theme-text-faint);
    font-size: 0.78rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tarot-login-back-link {
    color: var(--theme-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tarot-login-back-link:hover {
    color: var(--theme-gold-text);
}

@media (max-width: 900px) {
    .tarot-login-page {
        padding: 0;
    }

    .tarot-login-layout {
        grid-template-columns: 1fr;
        border-radius: 0;
        min-height: 100vh;
    }

    .tarot-login-illustration {
        padding: 2.5rem 1.8rem;
        min-height: 280px;
    }

    .tarot-login-illustration-title {
        font-size: 2.2rem;
    }

    .tarot-login-panel {
        padding: 2.2rem 1.8rem 3rem;
    }

    .tarot-login-panel-title {
        font-size: 1.7rem;
    }
}

/* ============================================
   NỘI DUNG BỊ KHOÁ — placeholder thay cho Thông điệp/Lời khuyên
   ============================================ */

.tarot-locked-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 2rem 1.5rem;
    background: var(--theme-surface-0);
    border: 1px dashed rgba(212, 165, 116, 0.3);
    border-radius: 14px;
    color: var(--theme-text-faint);
    font-size: 0.9rem;
    text-align: center;
}

.tarot-locked-icon {
    font-size: 1.6rem;
}

/* ============================================
   BOX MỜI MỞ KHOÁ — 2 mức giá (19k/29k) ngay dưới kết quả
   ============================================ */

.tarot-unlock-prompt {
    max-width: 80%;
    width: 80%;
    margin: 2rem auto;
    padding: 1.8rem 2rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(212, 165, 116, 0.06));
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: 16px;
    text-align: center;
}

.tarot-unlock-prompt-title {
    color: var(--theme-text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.tarot-unlock-prompt-desc {
    color: var(--theme-text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tarot-unlock-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    text-align: left;
}

.tarot-unlock-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--theme-surface-1);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    border-radius: 16px;
    padding: 1.5rem 1.3rem 1.3rem;
    transition: all 0.3s ease;
}

.tarot-unlock-card:hover {
    border-color: var(--theme-gold-text);
    transform: translateY(-2px);
}

.tarot-unlock-card-recommended {
    border-color: var(--theme-gold-text);
    background: rgba(212, 165, 116, 0.09);
}

.tarot-unlock-card-badge {
    position: absolute;
    top: -0.7rem;
    left: 1.3rem;
    background: linear-gradient(135deg, var(--tarot-gold-light), var(--tarot-gold));
    color: #0a0a0f;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tarot-unlock-card-name {
    color: var(--theme-text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.tarot-unlock-card-price {
    color: var(--theme-gold-text);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Link nội bộ trong đoạn văn tĩnh: vàng theo site, không dùng xanh mặc định */
.tarot-page-wrapper .intro-description a,
.tarot-page-wrapper .section-subtitle a,
.tarot-page-wrapper .benefit-desc a,
.tarot-page-wrapper .faq-answer a,
.tarot-page-wrapper .topic-content a,
.tarot-page-wrapper .yn-deeper a,
.tarot-page-wrapper .flow-disclaimer a {
    color: var(--theme-gold-text);
    text-decoration: underline;
    text-decoration-color: rgba(212, 165, 116, 0.45);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.tarot-page-wrapper .intro-description a:hover,
.tarot-page-wrapper .section-subtitle a:hover,
.tarot-page-wrapper .benefit-desc a:hover,
.tarot-page-wrapper .faq-answer a:hover,
.tarot-page-wrapper .topic-content a:hover,
.tarot-page-wrapper .yn-deeper a:hover,
.tarot-page-wrapper .flow-disclaimer a:hover {
    color: var(--gold-light, #e6c18a);
    text-decoration-color: currentColor;
}

/* Giá gốc gạch ngang + nhãn giảm % (cấu hình trong wp-admin → Gói mở khoá) */
.tarot-unlock-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
}
.tarot-unlock-card-price-old {
    color: var(--theme-text-faint);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: line-through;
}
.tarot-unlock-card-save {
    align-self: center;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(226, 74, 74, 0.16);
    color: var(--theme-danger, #ff8a8a);
    border: 1px solid rgba(226, 74, 74, 0.35);
}
/* Chỉ một gói → căn giữa, không dồn trái trong lưới */
.tarot-unlock-cards.tarot-unlock-cards-single {
    display: flex;
    justify-content: center;
}
.tarot-unlock-cards.tarot-unlock-cards-single .tarot-unlock-card {
    width: 100%;
    max-width: 420px;
}

.tarot-unlock-card-benefits {
    list-style: none;
    margin: 0 0 1.3rem;
    padding: 0;
    flex-grow: 1;
}

.tarot-unlock-card-benefits li {
    position: relative;
    color: var(--theme-text-secondary);
    font-size: 0.87rem;
    line-height: 1.6;
    padding-left: 1.3rem;
    margin-bottom: 0.55rem;
}

.tarot-unlock-card-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--theme-gold-text);
    font-weight: 700;
}

.tarot-unlock-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 1.5px solid rgba(212, 165, 116, 0.5);
    color: var(--theme-gold-text);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tarot-unlock-card-recommended .tarot-unlock-card-btn {
    background: linear-gradient(135deg, var(--tarot-gold-light), var(--tarot-gold));
    border-color: transparent;
    color: #0a0a0f;
}

.tarot-unlock-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.3);
}

.tarot-unlock-success {
    color: #6fcf97;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 0;
}

.tarot-save-reading-btn {
    display: inline-block;
    margin-top: 0.8rem;
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.35);
    color: var(--theme-gold-text);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tarot-save-reading-btn:hover {
    background: rgba(212, 165, 116, 0.22);
}

.tarot-claim-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--theme-bg-elevated-95);
    border: 1px solid rgba(111, 207, 151, 0.4);
    color: var(--theme-text-primary);
    font-size: 0.9rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px var(--theme-shadow);
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tarot-claim-toast-error {
    border-color: rgba(235, 87, 87, 0.4);
}

.tarot-claim-toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

@media (max-width: 768px) {
    .tarot-unlock-prompt {
        width: 94%;
        max-width: 94%;
        margin: 1.5rem auto;
        padding: 1.3rem 1.4rem;
    }

    .tarot-unlock-cards {
        grid-template-columns: 1fr;
    }

    .tarot-unlock-card-recommended {
        order: -1;
    }
}

/* ============================================
   MODAL THANH TOÁN — dùng chung cho mọi lượt mở khoá
   ============================================ */

.tarot-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tarot-payment-modal-overlay {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
    backdrop-filter: blur(4px);
}

.tarot-payment-modal-content {
    position: relative;
    background: var(--theme-bg-elevated);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 1.8rem 2rem 2rem;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.tarot-payment-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--theme-surface-3);
    border: none;
    color: var(--theme-text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.tarot-payment-modal-close:hover {
    background: var(--theme-surface-4);
}

.tarot-payment-modal-title {
    color: var(--theme-text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
}

.tarot-payment-modal-body {
    display: block;
}

.tarot-payment-loading {
    color: var(--theme-text-soft);
    padding: 2rem 0;
    text-align: center;
}

.tarot-payment-error {
    color: var(--theme-danger);
    padding: 1rem 0;
    text-align: center;
}

.tarot-payment-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.tarot-payment-qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tarot-payment-qr {
    width: 100%;
    max-width: 240px;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #fff;
    padding: 0.6rem;
}

.tarot-payment-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--theme-gold-text);
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.3);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.tarot-payment-download-btn:hover {
    background: rgba(212, 165, 116, 0.2);
}

.tarot-payment-qr-hint {
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.tarot-payment-detail-col {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.tarot-payment-detail-box {
    background: var(--theme-surface-1);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
}

.tarot-payment-detail-title {
    color: var(--theme-text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.tarot-payment-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--theme-surface-3);
}

.tarot-payment-detail-row:last-child {
    border-bottom: none;
}

.tarot-payment-detail-label {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tarot-payment-detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: right;
}

.tarot-payment-copy-btn {
    background: var(--theme-surface-3);
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    color: var(--theme-text-secondary);
    flex-shrink: 0;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tarot-payment-copy-btn:hover {
    background: rgba(212, 165, 116, 0.2);
    color: var(--theme-gold-text);
}

.tarot-payment-manual-note {
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    color: var(--theme-text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.tarot-payment-manual-note strong {
    color: var(--theme-gold-text);
}

.tarot-payment-waiting {
    color: var(--theme-gold-text);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tarot-payment-success {
    color: #6fcf97;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Dòng trấn an + đồng hồ "đã chờ" trong modal thanh toán */
#tarotPaymentElapsed {
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.tarot-payment-reassure {
    font-size: 0.8rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0.35rem 0 0;
}

.tarot-payment-late-hint {
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--theme-gold-text, #d4af37);
    background: rgba(212, 175, 55, 0.08);
    border-radius: 4px;
}






.tarot-payment-confirm-btn {
    display: block;
    width: 100%;
    text-align: center;
    color: #0a0a0f;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(135deg, var(--tarot-gold-light), var(--tarot-gold));
    transition: all 0.3s ease;
}

.tarot-payment-confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--tarot-glow);
}

.tarot-payment-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .tarot-payment-modal-content {
        padding: 1.5rem 1.3rem 1.8rem;
    }

    .tarot-payment-layout {
        grid-template-columns: 1fr;
    }

    .tarot-payment-detail-value {
        font-size: 0.85rem;
    }
}

/* ============================================
   MODAL XÁC NHẬN "BÓI LẠI" — cảnh báo nhẹ nhàng, không phải cảnh báo mất tiền
   ============================================ */

.tarot-retry-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tarot-retry-confirm-overlay {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
    backdrop-filter: blur(4px);
}

.tarot-retry-confirm-content {
    position: relative;
    background: var(--theme-bg-elevated);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 2rem 2.2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.tarot-retry-confirm-title {
    color: var(--theme-text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.tarot-retry-confirm-desc {
    color: var(--theme-text-body);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.tarot-retry-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.tarot-retry-confirm-cancel {
    background: transparent;
    border: 1px solid var(--theme-surface-4);
    color: var(--theme-text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    order: 2;
}

.tarot-retry-confirm-cancel:hover {
    border-color: var(--theme-text-faint);
    background: var(--theme-surface-2);
}

.tarot-retry-confirm-ok {
    background: var(--theme-surface-2);
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: var(--theme-gold-text);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    order: 1;
}

.tarot-retry-confirm-ok:hover {
    background: rgba(212, 165, 116, 0.12);
}

/* ============================================
   BOX "NỘI DUNG BẠN XEM GẦN ĐÂY" — nhắc các lượt bói chưa mở khoá
   ============================================ */

.tarot-recent-locked-box {
    position: relative;
    z-index: 5;
    max-width: var(--site-w, 1500px);
    width: 100%;
    margin: 0 auto 1.5rem;
    padding: 1.3rem 1.6rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(212, 165, 116, 0.1));
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 16px;
}

.tarot-recent-locked-title {
    color: var(--theme-gold-text);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.tarot-recent-locked-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tarot-recent-locked-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tarot-recent-locked-dot {
    color: var(--theme-gold-text);
    font-size: 0.5rem;
    flex-shrink: 0;
}

.tarot-recent-locked-question {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.tarot-recent-locked-status {
    color: var(--theme-text-faint);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Lượt đã trả tiền: chấm và nhãn đổi sang màu "đã xong" để khách phân biệt
   ngay với lượt còn dang dở, không phải đọc chữ mới hiểu. */
.tarot-recent-locked-item.is-unlocked .tarot-recent-locked-dot,
.tarot-recent-locked-item.is-unlocked .tarot-recent-locked-status {
    color: var(--theme-success, #3f9d6b);
}

.tarot-recent-locked-btn {
    margin-left: auto;
    background: #fff;
    border: none;
    color: #2a1f4d;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tarot-recent-locked-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .tarot-recent-locked-box {
        width: 94%;
        max-width: 94%;
        padding: 1.1rem 1.2rem;
    }

    .tarot-recent-locked-item {
        flex-wrap: wrap;
        /* Câu hỏi xuống nhiều dòng trên mobile — canh các phần tử theo
           ĐẦU dòng thay vì giữa, để dấu chấm nằm ngang dòng đầu tiên của
           câu hỏi chứ không trôi xuống giữa khối chữ. */
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tarot-recent-locked-dot {
        /* Ép chiều cao dòng bằng đúng dòng đầu của câu hỏi (0.9rem × 1.6)
           để chấm tròn canh chuẩn theo chữ. */
        line-height: 1.44rem;
    }

    .tarot-recent-locked-question {
        /* Dùng flex:1 thay cho max-width:100% — max-width:100% khiến câu
           hỏi chiếm trọn bề ngang container nên bị đẩy hẳn xuống dòng dưới,
           để lại dấu chấm đứng trơ một mình. flex:1 + min-width:0 cho phép
           câu hỏi chia sẻ hàng với dấu chấm và tự xuống dòng bên trong. */
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        white-space: normal;
        line-height: 1.6;
    }

    .tarot-recent-locked-status {
        /* Xuống dòng riêng nhưng thụt vào cho thẳng hàng với câu hỏi
           (bề rộng dấu chấm + khoảng cách). */
        flex-basis: 100%;
        padding-left: 1.05rem;
    }

    .tarot-recent-locked-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   KHỐI "KHÁCH TRẢI BÀI XONG NÓI GÌ?" — đánh giá khách hàng
   ============================================ */

.tarot-reviews-section {
    padding: 3rem 1rem;
    background: var(--theme-bg);
}

.tarot-reviews-container {
    max-width: var(--site-w-text, 1200px);
    margin: 0 auto;
}

.tarot-reviews-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--theme-text-primary);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.tarot-reviews-heart {
    color: var(--theme-gold-text);
}

.tarot-reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(212, 165, 116, 0.25);
    color: var(--theme-text-soft);
    font-size: 0.95rem;
}

.tarot-reviews-count {
    color: var(--theme-gold-text);
    font-size: 1.3rem;
    font-weight: 800;
}

.tarot-reviews-count-label,
.tarot-reviews-rating-label {
    color: var(--theme-text-muted);
}

.tarot-reviews-divider {
    color: var(--theme-surface-4);
    margin: 0 0.3rem;
}

.tarot-reviews-rating {
    font-weight: 700;
    color: var(--theme-text-primary);
}

.tarot-reviews-star {
    color: var(--star-color, #e6c18a);
}

.tarot-reviews-featured {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tarot-review-card {
    background: var(--theme-surface-1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
}

.tarot-review-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.tarot-review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tarot-gold-light, #e6c18a), var(--tarot-gold, #d4a574));
    color: #0a0a0f;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.tarot-review-meta {
    flex-grow: 1;
}

.tarot-review-name {
    color: var(--theme-text-primary);
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0;
}

.tarot-review-date {
    color: var(--theme-text-faint);
    font-size: 0.78rem;
    margin: 0;
}

.tarot-review-stars {
    color: var(--star-color, #e6c18a);
    font-size: 0.9rem;
    white-space: nowrap;
}

.tarot-review-content {
    color: var(--theme-text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

.tarot-reviews-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tarot-review-chip {
    background: var(--theme-surface-1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    color: var(--theme-text-secondary);
    white-space: nowrap;
}

.tarot-reviews-note {
    text-align: center;
    color: var(--theme-text-faint);
    font-size: 0.82rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tarot-reviews-section {
        padding: 2rem 1rem;
    }

    .tarot-reviews-title {
        font-size: 1.15rem;
    }

    .tarot-reviews-summary {
        font-size: 0.85rem;
    }

    .tarot-review-card {
        padding: 1.1rem 1.2rem;
    }
}
/* ============================================
   KHOẢNG CÁCH GIỮA CÁC SECTION TRANG CHỦ — THỐNG NHẤT MỘT THANG
   ============================================
   Trước đây mỗi section dùng padding 7rem trên + 7rem dưới (main.css), riêng
   features/topics còn thêm margin-bottom 6rem (ở trên file này) → giữa hai
   section có khoảng trống 200–330px, nhìn rời rạc. Gom về: desktop 4rem,
   mobile 2.5rem. Đặt ở CUỐI file này để thắng cả main.css lẫn các rule
   phía trên (cùng độ ưu tiên → rule sau thắng). */

.intro-section,
.features-section,
.topics-section,
.readers-section,
.faq-section,
.tarot-news-section {
    padding: 4rem 2rem;
    margin-bottom: 0;
}

/* Khối đánh giá nằm ngay dưới công cụ bói — kéo sát hơn một chút. */
.tarot-reviews-section {
    padding: 2rem 1rem 3.5rem;
}

/* Mô tả ngắn dưới tiêu đề section: 4rem là quá xa nội dung bên dưới. */
.section-subtitle {
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .intro-section,
    .features-section,
    .topics-section,
    .readers-section,
    .faq-section,
    .tarot-news-section {
        padding: 2.5rem 1rem;
    }

    .tarot-reviews-section {
        padding: 1.5rem 1rem 2.5rem;
    }

    .section-subtitle {
        margin-bottom: 1.8rem;
    }
}

/* ============================================
   XÀO BÀI TAROT — xoè quạt → gom → cắt → nhập (4 pha, CSS transition)
   ============================================ */
.shuffle-circle.tarot-shuffle {
    width: 520px;
    height: 420px;
    perspective: 900px;
}

.shuffle-circle.tarot-shuffle .shuffle-card {
    position: absolute;
    left: 50%;
    top: 30%;
    width: 84px;
    height: auto;
    margin-left: -42px;
    /* Tâm xoay nằm dưới lá bài — xoè ra như cầm bài trên tay. */
    transform-origin: 50% 165%;
    transform: rotate(0deg) translate(0, 0);
    animation: none;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--i) * 18ms);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

/* Pha 1: xoè quạt — 21 lá trải đều từ -60° tới +60°. */
.tarot-shuffle.phase-fan .shuffle-card {
    transform: rotate(calc((var(--i) - 10) * 6deg)) translate(0, 0);
}

/* Pha 2: gom lại — về đúng một chồng, hơi lệch để thấy độ dày. */
.tarot-shuffle.phase-gather .shuffle-card {
    transform: rotate(0deg) translate(calc(var(--i) * 0.4px), calc(var(--i) * -0.6px));
    transition-delay: calc((20 - var(--i)) * 14ms);
}

/* Pha 3: cắt bài — nửa dưới (lá chẵn) sang trái, nửa trên (lá lẻ) sang phải. */
.tarot-shuffle.phase-cut .shuffle-card {
    transition-duration: 0.45s;
    transition-delay: 0s;
    transform: rotate(0deg) translate(-125px, 0);
}

.tarot-shuffle.phase-cut .shuffle-card:nth-child(odd) {
    transform: rotate(0deg) translate(125px, -4px);
}

/* Pha 4: nhập lại — hai nửa về giữa, lá lẻ đè lên lá chẵn. */
.tarot-shuffle.phase-merge .shuffle-card {
    transition-duration: 0.4s;
    transition-delay: calc(var(--i) * 10ms);
    transform: rotate(0deg) translate(calc(var(--i) * 0.4px), calc(var(--i) * -0.6px));
}

@media (max-width: 768px) {
    .shuffle-circle.tarot-shuffle { width: 100%; height: 360px; }
    .shuffle-circle.tarot-shuffle .shuffle-card { width: 60px; margin-left: -30px; top: 32%; }
    .tarot-shuffle.phase-fan .shuffle-card { transform: rotate(calc((var(--i) - 10) * 5deg)) translate(0, 0); }
    .tarot-shuffle.phase-cut .shuffle-card { transform: rotate(0deg) translate(-70px, 0); }
    .tarot-shuffle.phase-cut .shuffle-card:nth-child(odd) { transform: rotate(0deg) translate(70px, -4px); }
}

/* Khối đánh giá rộng 1200px: 4 đánh giá nổi bật xếp 2 cột trên desktop */
@media (min-width: 900px) {
    .tarot-reviews-featured {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* ============================================
   SECTION TĨNH THEO INTENT (Yes/No, Lenormand, Bài Tây)
   — thẻ thông tin, so sánh câu hỏi tốt/chưa tốt, ví dụ câu hỏi bấm được
   ============================================ */
.tarot-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    max-width: var(--site-w, 1500px);
    margin: 0 auto;
}
.tarot-info-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tarot-info-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tarot-info-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tarot-info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1.4rem;
    border-radius: 16px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-1);
    text-align: left;
}
.tarot-info-card.is-featured { border-color: var(--theme-border-strong); background: rgba(212, 165, 116, 0.07); }
.tarot-info-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1.5px solid var(--theme-gold-text);
    color: var(--theme-gold-text);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.tarot-info-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}
.tarot-info-card h3 {
    margin: 0;
    color: var(--theme-gold-text);
    font-size: 1.15rem;
    font-weight: 700;
}
.tarot-info-card p {
    margin: 0;
    color: var(--theme-text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}
.tarot-info-card ul {
    margin: 0.2rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--theme-text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}
.tarot-info-card ul li { position: relative; padding-left: 1.2rem; margin-bottom: 0.3rem; }
.tarot-info-card ul li::before { content: '•'; position: absolute; left: 0.2rem; color: var(--theme-gold-text); }
.tarot-info-card .tarot-info-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.3rem;
}
.tarot-info-positions span {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
    background: var(--theme-surface-0, rgba(255,255,255,0.03));
}

/* So sánh câu hỏi tốt / chưa tốt */
.tarot-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.tarot-compare-col {
    padding: 1.4rem 1.4rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-1);
}
.tarot-compare-col.is-good { border-color: rgba(111, 211, 154, 0.45); }
.tarot-compare-col.is-bad { border-color: rgba(255, 138, 138, 0.35); }
.tarot-compare-col h3 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}
.tarot-compare-col.is-good h3 { color: #6fd39a; }
.tarot-compare-col.is-bad h3 { color: #ff8a8a; }
:root[data-theme="light"] .tarot-compare-col.is-good h3 { color: #1f7a45; }
:root[data-theme="light"] .tarot-compare-col.is-bad h3 { color: #b83232; }
.tarot-compare-col ul { list-style: none; margin: 0; padding: 0; }
.tarot-compare-col li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
    color: var(--theme-text-body);
    font-size: 0.95rem;
    line-height: 1.55;
}
.tarot-compare-col li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.tarot-compare-col.is-good li::before { content: '✓'; color: #6fd39a; }
.tarot-compare-col.is-bad li::before { content: '✕'; color: #ff8a8a; }
:root[data-theme="light"] .tarot-compare-col.is-good li::before { color: #1f7a45; }
:root[data-theme="light"] .tarot-compare-col.is-bad li::before { color: #b83232; }
.tarot-compare-col li small { display: block; color: var(--theme-text-muted); font-size: 0.82rem; margin-top: 0.15rem; }

/* Ví dụ câu hỏi bấm được → điền vào ô hỏi */
.tarot-example-list { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.4rem; }
.tarot-example-q {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-0, rgba(255,255,255,0.03));
    color: var(--theme-text-body);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.tarot-example-q::before { content: '“'; color: var(--theme-gold-text); }
.tarot-example-q::after { content: '”'; color: var(--theme-gold-text); }
.tarot-example-q:hover { border-color: var(--theme-gold-text); color: var(--theme-gold-text); background: rgba(212, 165, 116, 0.08); }
.tarot-example-note { text-align: center; margin: 1.2rem 0 0; color: var(--theme-text-muted); font-size: 0.85rem; }

@media (max-width: 900px) {
    .tarot-info-grid.is-3, .tarot-info-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .tarot-info-grid, .tarot-info-grid.is-2, .tarot-info-grid.is-3, .tarot-info-grid.is-4 { grid-template-columns: 1fr; gap: 0.9rem; }
    .tarot-compare { grid-template-columns: 1fr; gap: 0.9rem; }
    .tarot-info-card, .tarot-compare-col { padding: 1.1rem 1rem; border-radius: 14px; }
}

/* Ví dụ câu hỏi trong bố cục chủ đề 2 cột (Lenormand): giữ dáng dòng chữ, không thành ô */
.topic-content .tarot-example-q {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 0;
}
.topic-content.right-align .tarot-example-q { text-align: right; }
.topic-content .tarot-example-q:hover { color: var(--theme-gold-text); background: transparent; }


/* ============================================
   H2 SECTION — một cỡ chung cho mọi khối trên trang bói
   (.section-title, .benefits-title, .tarot-reviews-title)
   ============================================ */
.tarot-page-wrapper h2.section-title,
.tarot-page-wrapper h2.benefits-title,
.tarot-page-wrapper h2.tarot-reviews-title {
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    font-weight: 700;
    color: var(--theme-gold-text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 4px 20px rgba(212, 181, 111, 0.25);
    line-height: 1.25;
    margin: 0;
}
.tarot-page-wrapper h2.section-title::before { content: none; }
.tarot-page-wrapper h2.tarot-reviews-title { margin-bottom: 1.2rem; }
.tarot-page-wrapper .section-header,
.tarot-page-wrapper .benefits-header {
    gap: 1.5rem;
    margin: 0 0 2rem;
}
@media (max-width: 640px) {
    .tarot-page-wrapper h2.section-title,
    .tarot-page-wrapper h2.benefits-title,
    .tarot-page-wrapper h2.tarot-reviews-title { font-size: 1.3rem; letter-spacing: 0.3px; }
    .tarot-page-wrapper .section-header,
    .tarot-page-wrapper .benefits-header { gap: 0.8rem; }
    .tarot-page-wrapper .decorative-line { width: 40px; }
}


/* ============================================
   TRANG CHỦ — Ý NGHĨA LÁ BÀI (lá hôm nay + 8 lá gợi ý)
   ============================================ */
.home-cards-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1.1fr) 2fr;
    gap: 1.4rem;
    align-items: stretch;
    max-width: var(--site-w, 1500px);
    margin: 0 auto;
}
.home-card-today {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.2rem;
    align-items: center;
    padding: 1.4rem;
    border-radius: 18px;
    border: 1.5px solid var(--theme-border-strong);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.14), rgba(212, 165, 116, 0.04));
    text-decoration: none;
    color: var(--theme-text-body);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.home-card-today:hover { transform: translateY(-3px); border-color: var(--theme-gold-text); }
.home-card-today-img { border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,0.4); }
.home-card-today-img img { display: block; width: 100%; height: auto; }
.home-card-today-body { display: flex; flex-direction: column; gap: 0.5rem; }
.home-card-kicker { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--theme-gold-text); }
.home-card-today-name { font-size: 1.5rem; font-weight: 800; color: var(--theme-text-primary); line-height: 1.2; }
.home-card-today-name small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--theme-text-muted); margin-top: 0.15rem; }
.home-card-today-excerpt { font-size: 0.92rem; line-height: 1.6; color: var(--theme-text-soft); }
.home-card-today-cta { margin-top: 0.3rem; font-weight: 700; color: var(--theme-gold-text); }

.home-card-picks { display: flex; flex-direction: column; gap: 1rem; }
.home-card-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    flex: 1;
}
.home-card-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    height: 100%;
    padding: 0.6rem 0.5rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-1);
    text-decoration: none;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.home-card-tile:hover { transform: translateY(-4px); border-color: var(--theme-gold-text); }
.home-card-tile img { width: 100%; max-width: 120px; height: auto; border-radius: 6px; margin-bottom: 0.35rem; }
.home-card-tile-vi { font-weight: 700; font-size: 0.88rem; color: var(--theme-text-primary); }
.home-card-tile-en { font-size: 0.72rem; color: var(--theme-text-muted); }
.home-card-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}
.home-card-all {
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tarot-gold-light, #e6c18a), var(--tarot-gold, #d4a574));
    color: #0a0a0f !important;
    font-weight: 700;
    text-decoration: none !important;
}
.home-card-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.home-card-quick a {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
}
.home-card-quick a:hover { border-color: var(--theme-gold-text); color: var(--theme-gold-text); }

/* Link "Đọc ý nghĩa đầy đủ" trong sheet lá bài ở kết quả */
.flow-sheet-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid var(--theme-gold-text);
    color: var(--theme-gold-text);
    font-weight: 700;
    text-decoration: none;
}
.flow-sheet-link:hover { background: rgba(212, 165, 116, 0.12); }

@media (max-width: 1000px) {
    .home-cards-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .home-card-today { grid-template-columns: 110px 1fr; gap: 0.9rem; padding: 1rem; border-radius: 14px; }
    .home-card-today-name { font-size: 1.2rem; }
    .home-card-today-excerpt { display: none; }
    .home-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
    .home-card-tile { padding: 0.45rem 0.3rem 0.5rem; }
    .home-card-tile-vi { font-size: 0.72rem; }
    .home-card-tile-en { display: none; }
    .home-card-nav { flex-direction: column; align-items: stretch; }
    .home-card-all { text-align: center; }
    .home-card-quick { justify-content: center; }
}

/* ============================================
   VÍ — màn trả bằng ví / nạp ví trong modal thanh toán (tarot-wallet-system.php)
   ============================================ */
.tarot-wallet-pay, .tarot-wallet-topup { max-width: 520px; margin: 0 auto; }
.tarot-wallet-pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--theme-border); color: var(--theme-text-secondary); }
.tarot-wallet-pay-row strong { color: var(--theme-gold-text); font-size: 1.25rem; }
.tarot-wallet-pay-row s { color: var(--theme-text-faint); font-weight: 500; font-size: 0.9rem; margin-right: 0.3rem; }
.tarot-wallet-pay-note { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--theme-text-muted); text-align: center; line-height: 1.5; }
.tarot-wallet-pay-short { margin: 0.9rem 0 0.5rem; color: var(--theme-text-body); text-align: center; line-height: 1.55; }
.tarot-wallet-pay-short strong { color: var(--theme-danger); }
.tarot-wallet-pay-btn { margin-top: 1rem; font-size: 1rem; }
.tarot-wallet-alt-btn { display: block; width: 100%; margin-top: 0.7rem; padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid var(--theme-border-strong); background: transparent; color: var(--theme-text-secondary); font-family: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.tarot-wallet-alt-btn:hover { border-color: var(--theme-gold-text); color: var(--theme-gold-text); }
.tarot-wallet-topup-lead { margin: 0 0 1rem; color: var(--theme-text-body); line-height: 1.6; text-align: center; }
.tarot-wallet-topup-lead strong { color: var(--theme-gold-text); }
.tarot-wallet-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.tarot-wallet-package { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.8rem 0.6rem; border-radius: 14px; border: 1.5px solid var(--theme-border); background: var(--theme-surface-1); font-family: inherit; cursor: pointer; color: var(--theme-text-primary); transition: all 0.2s ease; }
.tarot-wallet-package:hover { border-color: var(--theme-gold-text); }
.tarot-wallet-package.active { border-color: var(--theme-gold-text); background: rgba(212,165,116,0.14); box-shadow: 0 0 0 3px rgba(212,165,116,0.18); }
.tarot-wallet-package-amt { font-size: 1.15rem; font-weight: 800; }
.tarot-wallet-package-bonus { font-size: 0.78rem; font-weight: 700; color: #1f7a45; }
:root:not([data-theme="light"]) .tarot-wallet-package-bonus { color: #6fd39a; }
.tarot-wallet-package-bonus.is-none { color: var(--theme-text-faint); font-weight: 500; }
.tarot-wallet-custom { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.9rem 0 0.4rem; font-size: 0.88rem; color: var(--theme-text-muted); }
.tarot-wallet-custom input { flex: 1; min-width: 140px; padding: 0.5rem 0.8rem; border-radius: 10px; border: 1px solid var(--theme-border-strong); background: var(--theme-surface-0, transparent); color: var(--theme-text-primary); font-family: inherit; font-size: 0.95rem; }
.tarot-wallet-topup-sum { margin: 0.4rem 0 0; text-align: center; color: var(--theme-text-body); min-height: 1.4em; }
.tarot-wallet-topup-sum strong { color: var(--theme-gold-text); }
.tarot-wallet-guest-hint { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--theme-text-muted); text-align: center; line-height: 1.5; }
.tarot-wallet-guest-hint a { color: var(--theme-gold-text); font-weight: 700; }
.tarot-unlock-card-rank { margin: -0.3rem 0 0.6rem; font-size: 0.78rem; font-weight: 700; color: var(--theme-gold-text); }
@media (max-width: 480px) { .tarot-wallet-packages { grid-template-columns: 1fr 1fr; gap: 0.45rem; } .tarot-wallet-package-amt { font-size: 1rem; } }

/* Khuyến mãi theo đợt — dải thông báo + đồng hồ (tarot-promo-system.php) */
.tarot-promo-banner { margin: 0 0 0.9rem; padding: 0.55rem 0.9rem; border-radius: 12px; text-align: center; font-size: 0.9rem; line-height: 1.5; color: var(--theme-text-primary); background: linear-gradient(135deg, rgba(230,193,138,0.28), rgba(212,165,116,0.12)); border: 1px solid var(--theme-border-strong); }
.tarot-promo-banner strong { color: var(--theme-gold-text); }
.tarot-promo-cd { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--theme-gold-text); }
.tarot-promo-banner-wrap:empty { display: none; }

/* Máy tính nạp ví: bóc tách thưởng + tổng nhận + quy ra lượt */
.tarot-wallet-package { position: relative; }
.tarot-wallet-package-pct { position: absolute; top: -0.55rem; right: 0.5rem; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; color: #fff; background: #1f7a45; }
.tarot-calc { margin: 0.8rem 0 0.2rem; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid var(--theme-border); background: var(--theme-surface-1); text-align: left; }
.tarot-calc-row { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.3rem 0; font-size: 0.9rem; color: var(--theme-text-body); }
.tarot-calc-row em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: #1f7a45; margin-left: 0.25rem; }
.tarot-calc-row.is-bonus strong { color: #1f7a45; }
:root:not([data-theme="light"]) .tarot-calc-row.is-bonus strong, :root:not([data-theme="light"]) .tarot-calc-row em { color: #6fd39a; }
.tarot-calc-row.is-muted strong { color: var(--theme-text-faint); font-weight: 500; }
.tarot-calc-row.is-total { margin-top: 0.25rem; padding-top: 0.5rem; border-top: 1px dashed var(--theme-border-strong); font-weight: 700; color: var(--theme-text-primary); }
.tarot-calc-row.is-total strong { font-size: 1.2rem; color: var(--theme-gold-text); }
.tarot-calc-note { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--theme-text-muted); line-height: 1.5; }
.tarot-calc-note strong { color: var(--theme-text-primary); }
.tarot-calc-note.is-warn { color: #b26a00; }

/* Nhãn % nổi bật: thưởng gói / khuyến mãi / hạng / tổng */
.tarot-pct { display: inline-block; font-style: normal; font-size: 0.74rem; font-weight: 800; line-height: 1.35; padding: 0.05rem 0.5rem; border-radius: 999px; color: #fff; background: #1f7a45; white-space: nowrap; vertical-align: 0.08em; }
.tarot-pct.is-promo { background: #c0392b; }
.tarot-pct.is-rank { background: #8a6a1f; }
.tarot-pct.is-total { background: #e8b86a; color: #3a2600; }
.tarot-calc-row em.tarot-pct { color: #fff; margin-left: 0.3rem; }
.tarot-calc-row em.tarot-pct.is-total { color: #3a2600; }
:root:not([data-theme="light"]) .tarot-calc-row em.tarot-pct { color: #fff; }
:root:not([data-theme="light"]) .tarot-calc-row em.tarot-pct.is-total { color: #3a2600; }
.tarot-wallet-package-pct { font-size: 0.8rem; padding: 0.12rem 0.55rem; top: -0.65rem; box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
.tarot-unlock-card-rank .tarot-pct { margin: 0 0.2rem; }
.tarot-unlock-card-rank strong { color: var(--theme-text-primary); }
.tarot-calc-note.is-rankup { color: var(--theme-text-primary); }
.tarot-calc-note.is-rankup .tarot-pct { margin-left: 0.2rem; }
