/* ============================================
   TAROT HOMEPAGE - OPTIMIZED VERSION
   Core styles, variables, and base setup
   Version: 3.0 - Modular & Optimized
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --dark-purple: #1c153b;
    --dark-black: #0a0a0f;
    --gold: #d4b56f;
    --gold-light: #e6c18a;
    /* Gold DÙNG CHO CHỮ ở các mục tĩnh (tiêu đề, link, nút viền). Nền tối
       = gold gốc; nền sáng đổi sang gold đậm (xem [data-theme="light"]) vì
       #d4b56f trên nền be chỉ đạt 1.8:1 — chữ vàng gần như tàng hình. */
    --gold-text: #d4b56f;
    --star-color: #e6c18a;
    /* Bề rộng nội dung thống nhất toàn site: MỌI khối (mục tĩnh, đoạn dẫn,
       FAQ, đánh giá, footer, blog) cùng 1500px = header = quy trình bói. */
    --site-w: 1500px;
    --site-w-text: 1500px;
    --gold-dark: #c9a766;
    --indigo: #4b3d78;
    --white: #f4f2fb;
    --gold-glow: rgba(212, 181, 111, 0.35);
    
    /* Tarot Blog Variables */
    --tarot-blog-gold: #d4a574;
    --tarot-blog-gold-light: #e6c18a;
    --tarot-blog-dark: #0a0a0f;
    --tarot-blog-glow: rgba(212, 165, 116, 0.4);

    /* ============================================
       BIẾN THEME (Sáng/Tối) — dùng chung toàn site.
       Mặc định là giao diện TỐI. Trang có [data-theme="light"]
       trên <html> sẽ ghi đè các giá trị này (xem bên dưới).
       Quy ước đặt tên: --surface-N càng lớn càng "nổi" lên trên nền.
       ============================================ */
    --theme-bg: #0a0a0f;
    --theme-bg-elevated: #14141c;
    --theme-bg-elevated-60: rgba(20, 20, 28, 0.6);
    --theme-bg-elevated-95: rgba(20, 20, 28, 0.95);
    /* Nền bán trong suốt cho header/nav sticky (dùng chung với backdrop-
       filter: blur) — giữ hiệu ứng "kính mờ" nhưng đổi đúng màu nền theo
       theme thay vì luôn cố định đen như trước. */
    --theme-bg-translucent-95: rgba(10, 10, 15, 0.95);
    --theme-bg-translucent-98: rgba(10, 10, 15, 0.98);
    --theme-bg-translucent-92: rgba(10, 10, 15, 0.92);
    --theme-bg-translucent-90: rgba(10, 10, 15, 0.9);
    --theme-bg-translucent-80: rgba(10, 10, 15, 0.8);
    --theme-bg-translucent-60: rgba(10, 10, 15, 0.6);
    --theme-bg-translucent-50: rgba(10, 10, 15, 0.5);
    --theme-surface-0: rgba(255, 255, 255, 0.03);
    --theme-surface-1: rgba(255, 255, 255, 0.04);
    --theme-surface-2: rgba(255, 255, 255, 0.06);
    --theme-surface-3: rgba(255, 255, 255, 0.08);
    --theme-surface-4: rgba(255, 255, 255, 0.15);
    --theme-border: rgba(212, 165, 116, 0.25);
    --theme-border-strong: rgba(212, 165, 116, 0.4);
    --theme-text-primary: #ffffff;
    --theme-text-strong: rgba(255, 255, 255, 0.9);
    --theme-text-secondary: rgba(255, 255, 255, 0.75);
    --theme-text-body: rgba(255, 255, 255, 0.74);
    --theme-text-soft: rgba(255, 255, 255, 0.66);
    --theme-text-muted: rgba(255, 255, 255, 0.6);
    /* faint: chữ phụ nhỏ (nhãn bước chưa tới, gợi ý) — 0.35 cũ chỉ đạt
       3.2:1 trên nền surface, dưới chuẩn AA; 0.5 đạt ~5:1 mà vẫn nhìn rõ
       là "phụ" so với chữ chính. */
    --theme-text-faint: rgba(255, 255, 255, 0.5);
    --theme-overlay: rgba(0, 0, 0, 0.75);
    --theme-shadow: rgba(0, 0, 0, 0.4);
    --theme-danger: #ff8a8a;
    --theme-danger-bg: rgba(226, 74, 74, 0.12);
    --theme-danger-border: rgba(226, 74, 74, 0.4);
    /* Gold DÀNH RIÊNG CHO TEXT — trên nền tối dùng y hệt màu gold thương
       hiệu gốc (đã đủ tương phản, 8.87:1). Trên nền sáng PHẢI đậm hơn
       (xem [data-theme="light"] bên dưới) vì gold gốc chỉ đạt 2.01:1,
       dưới chuẩn WCAG AA tối thiểu — chữ vàng nhạt trên nền be sáng gần
       như không đọc được. KHÔNG dùng biến này cho nền/viền/nút (những chỗ
       đó vẫn dùng --tarot-gold gốc bình thường, vì tương phản nền không
       quan trọng bằng tương phản text).
       */
    --theme-gold-text: #d4a574;
}

/* Giao diện SÁNG — kích hoạt khi <html data-theme="light">. Đặt sau :root
   để có độ ưu tiên CSS cao hơn (ghi đè đúng chuẩn, không cần !important). */
[data-theme="light"] {
    --theme-bg: #f7f3ec;
    --theme-bg-elevated: #ffffff;
    --theme-bg-elevated-60: rgba(255, 255, 255, 0.7);
    --theme-bg-elevated-95: rgba(255, 255, 255, 0.95);
    --theme-bg-translucent-95: rgba(247, 243, 236, 0.95);
    --theme-bg-translucent-98: rgba(247, 243, 236, 0.98);
    --theme-bg-translucent-92: rgba(247, 243, 236, 0.92);
    --theme-bg-translucent-90: rgba(247, 243, 236, 0.9);
    --theme-bg-translucent-80: rgba(247, 243, 236, 0.85);
    --theme-bg-translucent-60: rgba(247, 243, 236, 0.7);
    --theme-bg-translucent-50: rgba(247, 243, 236, 0.6);
    --theme-surface-0: rgba(20, 15, 10, 0.02);
    --theme-surface-1: rgba(20, 15, 10, 0.03);
    --theme-surface-2: rgba(20, 15, 10, 0.05);
    --theme-surface-3: rgba(20, 15, 10, 0.07);
    --theme-surface-4: rgba(20, 15, 10, 0.12);
    --theme-border: rgba(180, 130, 70, 0.25);
    --theme-border-strong: rgba(180, 130, 70, 0.45);
    --theme-text-primary: #2a2220;
    --theme-text-strong: rgba(42, 34, 32, 0.92);
    /* Nền be sáng "ăn" tương phản mạnh hơn nền tối: cùng alpha, chữ nâu
       nhạt trên be chỉ đạt ~3.4:1 (0.55) hay 2.3:1 (0.4) — nhìn "chìm".
       Nâng toàn bộ thang chữ phụ để mọi mức đều ≥ 4.5:1 trên surface. */
    --theme-text-secondary: rgba(42, 34, 32, 0.84);
    --theme-text-body: rgba(42, 34, 32, 0.8);
    --theme-text-soft: rgba(42, 34, 32, 0.76);
    --theme-text-muted: rgba(42, 34, 32, 0.72);
    --theme-text-faint: rgba(42, 34, 32, 0.64);
    --theme-overlay: rgba(0, 0, 0, 0.45);
    --theme-shadow: rgba(0, 0, 0, 0.12);
    --theme-danger: #c23b3b;
    --theme-danger-bg: rgba(226, 74, 74, 0.08);
    --theme-danger-border: rgba(226, 74, 74, 0.3);
    /* #96622a cũ chỉ đạt 4.0:1 trên surface sáng (chữ vàng nhỏ như giá,
       nhãn, link bị chìm). #7d4e20 đạt 5.5:1, chữ trắng đặt lên nó 7:1. */
    --theme-gold-text: #7d4e20;
    --gold-text: #7d4e20;
    --star-color: #b3721b;
}

/* Nền sáng: những chỗ dùng gold-text làm NỀN (tab đang chọn, nút phân
   trang, bộ lọc) — gold sáng giờ đậm hơn nên chữ đen trên đó không đủ
   tương phản, phải dùng chữ trắng. */
[data-theme="light"] .tarot-account-filter.is-active,
[data-theme="light"] .tarot-account-page-btn.is-current {
    color: #ffffff;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--theme-bg);
    color: var(--theme-text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* LOGO — file ảnh gốc (cropped-Boitarot.org_.png) có sẵn màu TRẮNG cố định
   (mặt trăng + chữ), không thể tự đổi màu như text. Ở theme SÁNG, nền
   header đổi thành be sáng khiến logo trắng gần như biến mất (mất tương
   phản) — dùng CSS filter đảo màu để logo tự chuyển sang tối, đọc rõ trên
   nền sáng, mà không cần chuẩn bị thêm file ảnh riêng nào.
   brightness(0): ép về ĐEN TUYỀN trước (loại bỏ mọi sắc xám/trắng nhạt gốc
   của ảnh, cần thiết vì chỉ invert() không đủ mạnh nếu ảnh gốc không phải
   trắng thuần 100%) → invert(1): đen → trắng lại (bước trung gian) →
   sepia+saturate+hue-rotate: tô lại thành nâu vàng đậm dễ đọc, đồng bộ
   tông --theme-gold-text (#96622a) của theme sáng. */
[data-theme="light"] .custom-logo,
[data-theme="light"] img.custom-logo,
[data-theme="light"] .custom-logo-link img,
[data-theme="light"] .site-logo img,
[data-theme="light"] .header-logo img,
[data-theme="light"] .header-image.is-logo-image,
[data-theme="light"] img.is-logo-image,
[data-theme="light"] .footer-logo img {
    filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(360deg) brightness(0.5);
    transition: filter 0.3s ease;
}

/* === MAIN WRAPPER === */
.tarot-page-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: var(--theme-bg);
    min-height: 100vh;
    overflow: hidden;
}

.tarot-page-wrapper::before {
    content: '';
    position: fixed;
    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;
}

/* === COMMON LINK STYLES === */
a.cta-button,
a.feature-btn,
a.mystical-btn,
a.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tarot-page-wrapper a:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 181, 111, 0.3) !important;
}

/* === BACKGROUND EFFECTS === */
.stars-container,
.mystical-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star-bg {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(244, 242, 251, 0.8);
    animation: starTwinkle 4s ease-in-out infinite;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 20s linear infinite;
}

/* === MYSTIC SYMBOLS === */
.mystic-symbol {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.2;
    z-index: 0;
}

.symbol-top-left { top: 10%; left: 5%; }
.symbol-top-right { top: 15%; right: 5%; }
.symbol-bottom-left { bottom: 15%; left: 5%; }

.rotate-slow { animation: symbolRotate 40s linear infinite; }
.rotate-reverse { animation: symbolRotateReverse 50s linear infinite; }
.pulse-glow { animation: symbolPulse 5s ease-in-out infinite; }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes particleFloat {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

@keyframes symbolRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes symbolRotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes symbolPulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.3; }
}

@keyframes cardAura {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes handGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes avatarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

@keyframes twinkleHeader {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

@keyframes twinkleFooter {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.12; }
}

/* Orbit Animations */
@keyframes orbit1 {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: translate(30px, -25px) rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes orbit2 {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-35px, 20px) rotate(-180deg);
        opacity: 0.8;
    }
}

@keyframes orbit3 {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: translate(25px, 30px) rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes orbit4 {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-30px, -20px) rotate(-180deg);
        opacity: 0.8;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    z-index: 1;
}

/* Khi hero-section dùng cho khu vực bói bài trực tiếp ở trang chủ (kết hợp
   .tarot-reading-wrapper), không canh giữa theo chiều cao 100vh nữa —
   để H1 nằm gần header, không bị đẩy xuống giữa màn hình. */
.hero-section.tarot-reading-wrapper {
    min-height: auto;
    display: block;
    padding: 1.5rem 2rem 3rem;
}

.tarot-intro-desc {
    max-width: var(--site-w);
    margin: 0.8rem auto 0;
    color: var(--theme-text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

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

    .tarot-intro-desc {
        font-size: 0.9rem;
        padding: 0 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section.tarot-reading-wrapper {
        padding: 0.8rem 0 1.5rem;
    }

    .tarot-intro-desc {
        font-size: 0.85rem;
        padding: 0 0.6rem;
    }
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.subtitle {
    color: var(--gold-text);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.95;
}

.title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    line-height: 1.15;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 24px rgba(212, 181, 111, 0.25);
}

.gradient-text {
    background: linear-gradient(120deg, var(--gold) 0%, #e8d4a0 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    margin-top: 1rem;
    line-height: 1.4;
}

.description {
    color: var(--theme-text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 400;
}

/* CTA Button */
.cta-button,
a.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
    border: none;
    padding: 1.4rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    color: var(--dark-purple) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px var(--gold-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    text-decoration: none;
}

.cta-button:hover,
a.cta-button:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
    color: var(--dark-purple) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 181, 111, 0.6);
}

.btn-icon {
    font-size: 1.2rem;
    color: var(--dark-purple) !important;
}

/* Card Container */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-wrapper {
    position: relative;
}

.card-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: cardAura 4s ease-in-out infinite;
}

.float-animation {
    animation: cardFloat 6s ease-in-out infinite;
}

.hero-cards-img {
    width: 100%;
    max-width: 550px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 60px var(--gold-glow));
}

/* Fade Animations */
.fade-in { animation: fadeIn 1.2s ease-out; }
.fade-in-up { animation: fadeInUp 1.2s ease-out; }
.delay-200 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.delay-400 { animation-delay: 0.5s; opacity: 0; animation-fill-mode: forwards; }
/* ============================================
   SECTION HEADERS (Reusable)
   ============================================ */

.section-header,
.benefits-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.decorative-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.section-title,
.benefits-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold-text);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(212, 181, 111, 0.3);
}

.benefits-title {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--theme-text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: var(--site-w-text);
    margin: 0 auto 4rem;
    font-weight: 400;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.features-container {
    max-width: var(--site-w);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Feature Cards - Glass Morphism */
.feature-card {
    position: relative;
    background: var(--theme-surface-2);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--theme-surface-4);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.feature-card:hover {
    background: var(--theme-surface-3);
    border-color: rgba(212, 181, 111, 0.35);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(212, 181, 111, 0.3);
}

.feature-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 181, 111, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 8px 24px var(--gold-glow));
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) translateY(-5px);
}

.feature-title {
    color: var(--gold-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.feature-desc {
    color: var(--theme-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Feature Button */
.feature-btn,
a.feature-btn {
    width: 100%;
    background: rgba(212, 181, 111, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 181, 111, 0.3) !important;
    color: var(--gold-text) !important;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.feature-btn:hover,
a.feature-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--dark-purple) !important;
    border-color: var(--gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--gold-glow);
}
/* ============================================
   INTRODUCTION SECTION
   ============================================ */

.intro-section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.intro-container {
    max-width: var(--site-w);
    margin: 0 auto;
}

.intro-content {
    display: grid;
    /* Cột ảnh cố định ~520px, cột chữ lấy phần còn lại của 1500px */
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.intro-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hand-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    animation: handGlow 6s ease-in-out infinite;
}

.hand-img {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 50px var(--gold-glow));
}

/* Orbit Symbols */
.orbit-symbol {
    position: absolute;
    font-size: 1.8rem;
    color: var(--gold-text);
    text-shadow: 0 0 15px var(--gold-glow);
    pointer-events: none;
    z-index: 2;
}

.o1 {
    top: 5%;
    left: 10%;
    animation: orbit1 10s ease-in-out infinite;
}

.o2 {
    bottom: 8%;
    right: 12%;
    animation: orbit2 12s ease-in-out infinite;
}

.o3 {
    top: 45%;
    left: -2%;
    animation: orbit3 14s ease-in-out infinite;
}

.o4 {
    bottom: 40%;
    right: 0%;
    animation: orbit4 11s ease-in-out infinite;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-description {
    color: var(--theme-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.intro-description p {
    margin-bottom: 1rem;
}

.intro-description strong {
    color: var(--gold-text);
    font-weight: 700;
}

/* Mystical Button */
.mystical-btn,
a.mystical-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--theme-surface-2) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 181, 111, 0.3) !important;
    color: var(--gold-text) !important;
    padding: 1.2rem 2.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
}

.mystical-btn:hover,
a.mystical-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--dark-purple) !important;
    border-color: var(--gold) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px var(--gold-glow);
}

.mystical-btn span {
    color: inherit !important;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits-header {
    gap: 2.5rem;
    margin: 4rem 0 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-card {
    position: relative;
    background: var(--theme-surface-2);
    backdrop-filter: blur(30px);
    border: 1px solid var(--theme-surface-4);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.benefit-card:hover {
    background: var(--theme-surface-3);
    border-color: rgba(212, 181, 111, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(212, 181, 111, 0.25);
}

.benefit-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.5rem;
}

.benefit-icon img {
    width: 100%;
    filter: drop-shadow(0 6px 20px var(--gold-glow));
}

.benefit-title {
    color: var(--gold-text);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.benefit-desc {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}
/* ============================================
   TOPICS SECTION
   ============================================ */

.topics-section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.topics-container {
    max-width: var(--site-w);
    margin: 0 auto;
}

.topics-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 4rem;
}

.topics-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.topic-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--theme-surface-2);
    backdrop-filter: blur(30px);
    border: 1px solid var(--theme-surface-4);
    border-radius: 14px;
    padding: 1.8rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.topic-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.topic-item:hover {
    background: var(--theme-surface-3);
    border-color: rgba(212, 181, 111, 0.35);
    transform: translateX(8px);
    box-shadow: 0 8px 28px rgba(212, 181, 111, 0.25);
}

.topics-column.right .topic-item:hover {
    transform: translateX(-8px);
}

.topic-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.moon-icon-img {
    width: 100%;
    filter: drop-shadow(0 4px 16px var(--gold-glow));
}

.topic-content h3 {
    color: var(--gold-text);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.topic-content p {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.right-align {
    text-align: right;
}

.topics-center {
    display: flex;
    justify-content: center;
}

.center-card-wrapper {
    width: 300px;
}

.center-card-img {
    width: 100%;
    filter: drop-shadow(0 25px 60px var(--gold-glow));
    animation: cardFloat 6s ease-in-out infinite;
}
/* ============================================
   READERS SECTION
   ============================================ */

.readers-section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.readers-container {
    max-width: var(--site-w);
    margin: 0 auto;
}

.readers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Reader Card */
.reader-card {
    position: relative;
    background: var(--theme-surface-2);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--theme-surface-4);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.reader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.reader-card:hover {
    background: var(--theme-surface-3);
    border-color: rgba(212, 181, 111, 0.35);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(212, 181, 111, 0.3);
}

.reader-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 181, 111, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.reader-card:hover .reader-glow {
    opacity: 1;
}

/* Reader Avatar */
.reader-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    margin: -90px auto 1.5rem;
    z-index: 2;
}

.avatar-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    animation: avatarRotate 8s linear infinite;
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--theme-bg);
    box-shadow: 0 12px 40px var(--theme-shadow);
    z-index: 1;
}

.avatar-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-surface-4) 0%, transparent 60%);
    pointer-events: none;
}

/* Reader Info */
.reader-info {
    padding: 0 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reader-name {
    color: var(--gold-text);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.reader-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--theme-text-body);
    font-size: 0.9rem;
}

.badge-icon {
    width: 16px;
    height: 16px;
    fill: var(--gold);
}

/* Reader Style Tags */
.reader-style {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.style-tag {
    background: rgba(212, 181, 111, 0.15);
    border: 1px solid rgba(212, 181, 111, 0.3);
    color: var(--gold-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.reader-card:hover .style-tag {
    background: rgba(212, 181, 111, 0.25);
    border-color: rgba(212, 181, 111, 0.5);
}

/* Reader Strengths */
.reader-strengths {
    background: var(--theme-surface-1);
    border-radius: 10px;
    padding: 1.5rem;
}

.reader-strengths h4 {
    color: var(--gold-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reader-strengths ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reader-strengths li {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.reader-strengths li:before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold-text);
    font-size: 0.7rem;
}

.reader-strengths li:last-child {
    margin-bottom: 0;
}

/* Reader Quote */
.reader-quote {
    position: relative;
    background: rgba(212, 181, 111, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
}

.quote-icon {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    width: 20px;
    height: 20px;
    fill: var(--gold);
    opacity: 0.6;
}

.reader-quote p {
    color: var(--theme-text-strong);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Reader Services */
.reader-services {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.service-item {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    background: var(--theme-surface-0);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(212, 181, 111, 0.1);
    color: var(--gold-text);
}

/* Book Button */
.book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    color: var(--dark-purple) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 24px var(--gold-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-top: 0.5rem;
}

.book-btn:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
    color: var(--dark-purple) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(212, 181, 111, 0.6);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    stroke: var(--dark-purple);
    transition: transform 0.3s ease;
}

.book-btn:hover .btn-arrow {
    transform: translateX(4px);
}
/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.faq-container {
    max-width: var(--site-w-text);
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 4rem;
}

.faq-item {
    position: relative;
    background: var(--theme-surface-2);
    backdrop-filter: blur(30px);
    border: 1px solid var(--theme-surface-4);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.faq-item:hover {
    background: var(--theme-surface-3);
    border-color: rgba(212, 181, 111, 0.35);
    box-shadow: 0 8px 28px rgba(212, 181, 111, 0.25);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.8rem 2.5rem;
    background: transparent;
    border: none;
    color: var(--gold-text);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: var(--gold);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2.5rem 2rem;
}

.faq-answer p {
    color: var(--theme-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.tarot-news-section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.news-container {
    max-width: var(--site-w);
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.news-card {
    position: relative;
    background: var(--theme-surface-2);
    backdrop-filter: blur(30px);
    border: 1px solid var(--theme-surface-4);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
    z-index: 1;
}

.news-card:hover {
    background: var(--theme-surface-3);
    border-color: rgba(212, 181, 111, 0.35);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(212, 181, 111, 0.3);
}

.news-link {
    display: block;
    text-decoration: none;
}

.news-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(28, 21, 59, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.read-more-icon {
    width: 42px;
    height: 42px;
    background: var(--gold);
    color: var(--dark-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--gold-glow);
}

.news-content {
    padding: 2rem 1.8rem;
}

.news-meta {
    margin-bottom: 1rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-text-muted);
    font-size: 0.85rem;
}

.date-icon {
    width: 14px;
    height: 14px;
    stroke: var(--gold);
}

.news-title {
    color: var(--gold-text);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.news-excerpt {
    color: var(--theme-text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: var(--gold-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-card:hover .news-read-more {
    color: #e8d4a0;
}

.news-cta {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn,
a.view-all-btn {
    display: inline-block;
    background: var(--theme-surface-2) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 181, 111, 0.3) !important;
    color: var(--gold-text) !important;
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover,
a.view-all-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--dark-purple) !important;
    border-color: var(--gold) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px var(--gold-glow);
}
/* ============================================
   TAROT BLOG STYLE - NEVO THEME
   ============================================ */

/* Body Background */
body.single-post-1,
body.wp-singular,
body.archive,
body.blog,
body.category,
body.tag {
    background: var(--theme-bg) !important;
}

body.single-post-1::after,
body.wp-singular::after,
body.archive::after,
body.blog::after,
body.category::after,
body.tag::after {
    content: '';
    position: fixed;
    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;
}

/* Main Containers */
body.single-post-1 .site,
body.wp-singular .site,
body.archive .site,
body.blog .site,
body.category .site,
body.tag .site {
    background: transparent !important;
}

body.single-post-1 .site-content,
body.wp-singular .site-content,
body.archive .site-content,
body.blog .site-content,
body.category .site-content,
body.tag .site-content {
    background: transparent !important;
    position: relative;
    z-index: 2;
    max-width: var(--site-w) !important;
    margin: 0 auto !important;
}

/* ============================================
   PAGE HEADER / BREADCRUMB
   ============================================ */

body.single-post-1 .page-header,
body.wp-singular .page-header,
body.archive .page-header,
body.category .page-header,
body.tag .page-header {
    background: var(--theme-surface-2) !important;
    backdrop-filter: blur(10px);
}

body.single-post-1 .nevo-breadcrumb,
body.wp-singular .nevo-breadcrumb,
body.archive .nevo-breadcrumb,
body.category .nevo-breadcrumb,
body.tag .nevo-breadcrumb {
    background: transparent !important;
}

body.single-post-1 .nevo-breadcrumb a,
body.wp-singular .nevo-breadcrumb a,
body.archive .nevo-breadcrumb a,
body.category .nevo-breadcrumb a,
body.tag .nevo-breadcrumb a,
body.single-post-1 .nevo-breadcrumb .breadcrumb-item,
body.wp-singular .nevo-breadcrumb .breadcrumb-item,
body.archive .nevo-breadcrumb .breadcrumb-item,
body.category .nevo-breadcrumb .breadcrumb-item,
body.tag .nevo-breadcrumb .breadcrumb-item,
body.single-post-1 .nevo-breadcrumb span,
body.wp-singular .nevo-breadcrumb span,
body.archive .nevo-breadcrumb span,
body.category .nevo-breadcrumb span,
body.tag .nevo-breadcrumb span {
    color: var(--theme-text-secondary) !important;
}

body.single-post-1 .nevo-breadcrumb a:hover,
body.wp-singular .nevo-breadcrumb a:hover,
body.archive .nevo-breadcrumb a:hover,
body.category .nevo-breadcrumb a:hover,
body.tag .nevo-breadcrumb a:hover {
    color: var(--theme-gold-text) !important;
}

/* ============================================
   ARTICLE / POST CARD
   ============================================ */

body.single-post-1 article.post,
body.wp-singular article.post,
body.archive article.post,
body.blog article.post,
body.category article.post,
body.tag article.post,
body.wp-singular article.page {
    background: var(--theme-surface-2) !important;
    border: 2px solid rgba(212, 165, 116, 0.25) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
}

body.archive article.post:hover,
body.blog article.post:hover,
body.category article.post:hover,
body.tag article.post:hover {
    border-color: var(--theme-gold-text) !important;
    box-shadow: 0 15px 45px var(--tarot-blog-glow) !important;
    transform: translateY(-5px) !important;
}

body.single-post-1 .inside-article,
body.wp-singular .inside-article,
body.archive .inside-article,
body.blog .inside-article,
body.category .inside-article,
body.tag .inside-article {
    background: transparent !important;
    padding: 40px 60px !important;
}

/* ============================================
   ENTRY HEADER
   ============================================ */

body.single-post-1 .entry-header,
body.wp-singular .entry-header,
body.archive .entry-header,
body.blog .entry-header,
body.category .entry-header,
body.tag .entry-header {
    padding: 2rem !important;
    text-align: left !important;
}

/* Category Links */
body.single-post-1 .nevo-cat-single,
body.wp-singular .nevo-cat-single,
body.single-post-1 .cat-links,
body.wp-singular .cat-links,
body.archive .cat-links,
body.blog .cat-links,
body.category .cat-links,
body.tag .cat-links {
    margin-bottom: 1rem !important;
}

body.single-post-1 .nevo-cat-single a,
body.wp-singular .nevo-cat-single a,
body.single-post-1 .cat-links a,
body.wp-singular .cat-links a,
body.archive .cat-links a,
body.blog .cat-links a,
body.category .cat-links a,
body.tag .cat-links a {
    color: var(--theme-gold-text) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Entry Title */
body.single-post-1 .entry-title,
body.wp-singular .entry-title,
body.archive .entry-title,
body.blog .entry-title,
body.category .entry-title,
body.tag .entry-title {
    color: var(--theme-text-primary) !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-shadow: 0 0 30px var(--tarot-blog-glow) !important;
    margin: 0 0 1.5rem 0 !important;
    padding-bottom: 0 !important;
    text-align: left !important;
}

body.archive .entry-title a,
body.blog .entry-title a,
body.category .entry-title a,
body.tag .entry-title a {
    color: var(--theme-text-primary) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body.archive .entry-title a:hover,
body.blog .entry-title a:hover,
body.category .entry-title a:hover,
body.tag .entry-title a:hover {
    color: var(--theme-gold-text) !important;
}

/* Entry Meta */
body.single-post-1 .entry-meta,
body.wp-singular .entry-meta,
body.archive .entry-meta,
body.blog .entry-meta,
body.category .entry-meta,
body.tag .entry-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 !important;
    justify-content: flex-start !important;
}

body.single-post-1 .entry-meta *,
body.wp-singular .entry-meta *,
body.archive .entry-meta *,
body.blog .entry-meta *,
body.category .entry-meta *,
body.tag .entry-meta * {
    color: var(--theme-gold-text) !important;
    font-size: 0.9rem !important;
}

body.single-post-1 .entry-meta .nevo-icon svg,
body.wp-singular .entry-meta .nevo-icon svg,
body.archive .entry-meta .nevo-icon svg,
body.blog .entry-meta .nevo-icon svg,
body.category .entry-meta .nevo-icon svg,
body.tag .entry-meta .nevo-icon svg {
    fill: var(--tarot-blog-gold) !important;
}

/* ============================================
   POST THUMBNAIL
   ============================================ */

body.archive .post-thumbnail,
body.blog .post-thumbnail,
body.category .post-thumbnail,
body.tag .post-thumbnail {
    height: 250px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0 !important;
}

body.archive .post-thumbnail img,
body.blog .post-thumbnail img,
body.category .post-thumbnail img,
body.tag .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

body.archive article.post:hover .post-thumbnail img,
body.blog article.post:hover .post-thumbnail img,
body.category article.post:hover .post-thumbnail img,
body.tag article.post:hover .post-thumbnail img {
    transform: scale(1.1);
}

/* ============================================
   PAGINATION
   ============================================ */

body.archive .pagination,
body.blog .pagination,
body.category .pagination,
body.tag .pagination,
body.archive .paging-navigation,
body.blog .paging-navigation,
body.category .paging-navigation,
body.tag .paging-navigation {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 3rem 0 !important;
    background: transparent !important;
}

body.archive .page-numbers,
body.blog .page-numbers,
body.category .page-numbers,
body.tag .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 45px !important;
    height: 45px !important;
    padding: 0 1rem !important;
    background: var(--theme-surface-2) !important;
    border: 2px solid rgba(212, 165, 116, 0.3) !important;
    border-radius: 10px !important;
    color: var(--theme-text-secondary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

body.archive .page-numbers:hover,
body.blog .page-numbers:hover,
body.category .page-numbers:hover,
body.tag .page-numbers:hover,
body.archive .page-numbers.current,
body.blog .page-numbers.current,
body.category .page-numbers.current,
body.tag .page-numbers.current {
    background: var(--tarot-blog-gold) !important;
    border-color: var(--theme-gold-text) !important;
    color: var(--tarot-blog-dark) !important;
}
/* ============================================
   ENTRY CONTENT - PAGE
   ============================================ */

body.wp-singular .entry-content {
    padding: 0 !important;
    line-height: 1.8;
    max-width: 100% !important;
}

body.wp-singular .entry-content p {
    color: var(--theme-text-strong) !important;
    font-size: 1.1rem !important;
    line-height: 1.9 !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
}

body.wp-singular .entry-content strong {
    color: var(--theme-gold-text) !important;
    font-weight: 600;
}

body.wp-singular .entry-content h2 {
    color: var(--theme-gold-text) !important;
    font-size: 2rem !important;
    margin: 50px 0 25px !important;
    padding-left: 25px;
    border-left: 5px solid var(--tarot-blog-gold);
    text-align: left !important;
}

body.wp-singular .entry-content a {
    color: var(--theme-gold-text) !important;
    text-decoration: none;
    border-bottom: 1px dotted var(--tarot-blog-gold);
    transition: all 0.3s ease;
}

body.wp-singular .entry-content a:hover {
    color: var(--theme-gold-text) !important;
    border-bottom-style: solid;
}

/* Entry Content - POST/BLOG */
body.single-post-1 .entry-content,
body.archive .entry-content,
body.blog .entry-content,
body.category .entry-content,
body.tag .entry-content,
body.single-post-1 .entry-summary,
body.archive .entry-summary,
body.blog .entry-summary,
body.category .entry-summary,
body.tag .entry-summary {
    padding: 0 !important;
}

body.single-post-1 .entry-content p,
body.archive .entry-content p,
body.blog .entry-content p,
body.category .entry-content p,
body.tag .entry-content p,
body.single-post-1 .entry-summary p,
body.archive .entry-summary p,
body.blog .entry-summary p,
body.category .entry-summary p,
body.tag .entry-summary p {
    color: var(--theme-text-strong) !important;
    font-size: 1.1rem !important;
    line-height: 1.9 !important;
    margin-bottom: 1.5rem !important;
}

body.single-post-1 .entry-content h1,
body.single-post-1 .entry-content h2,
body.single-post-1 .entry-content h3,
body.single-post-1 .entry-content h4 {
    color: var(--theme-gold-text) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

body.single-post-1 .entry-content a,
body.archive .entry-content a,
body.blog .entry-content a,
body.category .entry-content a,
body.tag .entry-content a {
    color: var(--theme-gold-text) !important;
}

body.single-post-1 .entry-content a:hover,
body.archive .entry-content a:hover,
body.blog .entry-content a:hover,
body.category .entry-content a:hover,
body.tag .entry-content a:hover {
    color: var(--theme-gold-text) !important;
}

/* ============================================
   SIDEBAR / WIDGET AREA
   ============================================ */

body.single-post-1 .widget-area.sidebar,
body.wp-singular .widget-area.sidebar,
body.archive .widget-area.sidebar,
body.blog .widget-area.sidebar,
body.category .widget-area.sidebar,
body.tag .widget-area.sidebar {
    position: relative;
    z-index: 2;
    padding-left: 30px;
}

body.single-post-1 .widget,
body.wp-singular .widget,
body.archive .widget,
body.blog .widget,
body.category .widget,
body.tag .widget {
    background: var(--theme-surface-1) !important;
    border: 1px solid rgba(212, 165, 116, 0.2) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-bottom: 2rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

body.single-post-1 .widget h2,
body.single-post-1 .widget .widget-title,
body.single-post-1 .widget .general-title,
body.wp-singular .widget h2,
body.wp-singular .widget .widget-title,
body.wp-singular .widget .general-title,
body.archive .widget h2,
body.archive .widget .widget-title,
body.blog .widget h2,
body.blog .widget .widget-title,
body.category .widget h2,
body.category .widget .widget-title,
body.tag .widget h2,
body.tag .widget .widget-title {
    color: var(--theme-gold-text) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--tarot-blog-gold);
    position: relative;
}

body.wp-singular .widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--theme-text-primary);
}

body.single-post-1 .widget a,
body.wp-singular .widget a,
body.archive .widget a,
body.blog .widget a,
body.category .widget a,
body.tag .widget a {
    color: var(--theme-text-secondary) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body.single-post-1 .widget a:hover,
body.wp-singular .widget a:hover,
body.archive .widget a:hover,
body.blog .widget a:hover,
body.category .widget a:hover,
body.tag .widget a:hover {
    color: var(--theme-gold-text) !important;
}

body.single-post-1 .widget ul,
body.single-post-1 .widget ol,
body.wp-singular .widget ul,
body.wp-singular .widget ol,
body.archive .widget ul,
body.archive .widget ol,
body.blog .widget ul,
body.blog .widget ol,
body.category .widget ul,
body.category .widget ol,
body.tag .widget ul,
body.tag .widget ol {
    color: var(--theme-text-secondary) !important;
    list-style: none;
    padding: 0;
}

body.single-post-1 .widget li,
body.wp-singular .widget li,
body.archive .widget li,
body.blog .widget li,
body.category .widget li,
body.tag .widget li {
    color: var(--theme-text-secondary) !important;
    margin-bottom: 0.5rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    transition: all 0.3s ease;
}

body.wp-singular .widget li:last-child {
    border-bottom: none;
}

body.wp-singular .widget li:hover {
    padding-left: 10px;
    color: var(--theme-gold-text) !important;
}

/* Search Widget */
body.single-post-1 .widget input[type="search"],
body.wp-singular .widget input[type="search"],
body.archive .widget input[type="search"],
body.blog .widget input[type="search"],
body.category .widget input[type="search"],
body.tag .widget input[type="search"],
body.wp-singular .widget .search-field {
    background: var(--theme-surface-3) !important;
    border: 2px solid rgba(212, 165, 116, 0.3) !important;
    color: var(--theme-text-primary) !important;
    padding: 12px 45px 12px 15px !important;
    border-radius: 25px !important;
    width: 100%;
    transition: all 0.3s ease;
}

body.wp-singular .widget .search-field:focus {
    outline: none;
    border-color: var(--theme-gold-text) !important;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.3);
}

body.single-post-1 .widget button,
body.single-post-1 .widget .search-submit,
body.wp-singular .widget button,
body.wp-singular .widget .search-submit,
body.archive .widget button,
body.blog .widget button,
body.category .widget button,
body.tag .widget button {
    background: var(--tarot-blog-gold) !important;
    color: var(--tarot-blog-dark) !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: absolute;
    right: 5px;
}

body.single-post-1 .widget button:hover,
body.single-post-1 .widget .search-submit:hover,
body.wp-singular .widget button:hover,
body.wp-singular .widget .search-submit:hover,
body.archive .widget button:hover,
body.blog .widget button:hover,
body.category .widget button:hover,
body.tag .widget button:hover {
    background: var(--tarot-blog-gold-light) !important;
    transform: scale(1.05);
}

body.wp-singular .widget .search-submit svg {
    color: white;
}

/* Recent Comments */
body.single-post-1 .wp-block-latest-comments__comment-meta,
body.wp-singular .wp-block-latest-comments__comment-meta,
body.archive .wp-block-latest-comments__comment-meta,
body.blog .wp-block-latest-comments__comment-meta,
body.category .wp-block-latest-comments__comment-meta,
body.tag .wp-block-latest-comments__comment-meta {
    font-size: 0.9rem !important;
}

/* Widget Animation */
body.wp-singular .inside-article {
    animation: fadeInUp 0.6s ease-out;
}

body.wp-singular .widget {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}
/* ============================================
   TAROT HEADER STYLE - MYSTICAL DARK
   ============================================ */

.site-header {
    background: var(--theme-bg-translucent-95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: var(--theme-bg-translucent-98) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.7);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.1;
    animation: twinkleHeader 8s ease-in-out infinite;
    pointer-events: none;
}

.header-section,
.main-header {
    background: transparent !important;
}

.inside-header {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* ============================================
   LOGO / SITE BRANDING
   ============================================ */

.site-branding .main-title,
.site-branding .main-title a {
    color: var(--theme-gold-text) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.4) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.site-branding .main-title a:hover {
    color: var(--theme-gold-text) !important;
    text-shadow: 0 0 30px rgba(212, 165, 116, 0.6) !important;
}

.site-branding img.is-logo-image {
    filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.3));
    transition: all 0.3s ease;
    max-height: 60px;
    width: auto;
}

.site-branding img.is-logo-image:hover {
    filter: drop-shadow(0 0 20px rgba(212, 165, 116, 0.5));
}

.site-branding .site-description {
    color: var(--theme-text-soft) !important;
    font-size: 0.9rem !important;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

.nav-primary.nevo-navigation {
    background: transparent !important;
}

.nevo-nav-menu li {
    margin: 0 0.5rem;
}

.nevo-nav-menu .nevo-menu-link {
    color: var(--theme-text-strong) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.8rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease !important;
    position: relative;
}

.nevo-nav-menu .nevo-menu-link:hover,
.nevo-nav-menu .nevo-menu-link:focus {
    color: var(--theme-gold-text) !important;
    background: rgba(212, 165, 116, 0.1) !important;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

.nevo-nav-menu .current-menu-item .nevo-menu-link,
.nevo-nav-menu .current_page_item .nevo-menu-link {
    color: var(--theme-gold-text) !important;
    background: rgba(212, 165, 116, 0.15) !important;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.2);
}

.nevo-item-title {
    position: relative;
}

.nevo-menu-link:hover .nevo-item-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--tarot-blog-gold);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.nevo-nav-menu .sub-menu {
    background: var(--theme-bg-translucent-98) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 165, 116, 0.2) !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    /* Nevo khoá width 200px → mục dài + nhãn New bị bóp/tràn ra ngoài hộp.
       Cho hộp rộng theo nội dung. */
    width: max-content !important;
    min-width: 200px;
}

.nevo-nav-menu .sub-menu .nevo-menu-link {
    color: var(--theme-text-secondary) !important;
    padding: 0.6rem 3.4rem 0.6rem 1.5rem !important;
    white-space: nowrap; /* "Thông điệp hôm nay" + nhãn New không xuống dòng */
}

.nevo-nav-menu .sub-menu .nevo-menu-link:hover {
    background: rgba(212, 165, 116, 0.15) !important;
    color: var(--theme-gold-text) !important;
}

/* Nút mở/đóng menu con trong menu mobile (Nevo mặc định nền trắng) */
.menu-mobile .nevo-toggle {
    background: transparent !important;
    color: var(--theme-gold-text) !important;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
}
.menu-mobile .sub-menu .nevo-menu-link {
    color: var(--theme-text-secondary) !important;
}
.menu-mobile .sub-menu .nevo-menu-link:hover,
.menu-mobile .sub-menu .current-menu-item > .nevo-menu-link {
    color: var(--theme-gold-text) !important;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

.header-menu-toggle .menu-toggle {
    color: var(--theme-text-strong) !important;
    background: transparent !important;
    border: 2px solid rgba(212, 165, 116, 0.3) !important;
    border-radius: 8px;
    padding: 0.8rem !important;
    transition: all 0.3s ease !important;
}

.header-menu-toggle .menu-toggle:hover,
.header-menu-toggle .menu-toggle:focus {
    border-color: var(--theme-gold-text) !important;
    background: rgba(212, 165, 116, 0.1) !important;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.3);
}

.header-menu-toggle .menu-toggle svg {
    fill: var(--theme-text-strong);
    transition: fill 0.3s ease;
}

.header-menu-toggle .menu-toggle:hover svg {
    fill: var(--tarot-blog-gold);
}

/* ============================================
   MOBILE HEADER
   ============================================ */

.mobile-header .header-section {
    background: var(--theme-bg-translucent-95) !important;
    backdrop-filter: blur(15px);
}

/* ============================================
   VERTICAL HEADER (Mobile Sidebar)
   ============================================ */

#nevo-vertical-header .popup-body {
    background: var(--theme-bg-translucent-98) !important;
    backdrop-filter: blur(20px);
}

#nevo-vertical-header .popup-header {
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

#nevo-vertical-header .popup-title {
    color: var(--theme-gold-text) !important;
    font-weight: 700;
}

#nevo-vertical-header .button-close {
    color: var(--theme-text-secondary) !important;
    transition: color 0.3s ease;
}

#nevo-vertical-header .button-close:hover {
    color: var(--theme-gold-text) !important;
}

#nevo-vertical-header .nav-mobile .nevo-menu-link {
    color: var(--theme-text-strong) !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid var(--theme-surface-2);
    transition: all 0.3s ease !important;
}

#nevo-vertical-header .nav-mobile .nevo-menu-link:hover {
    color: var(--theme-gold-text) !important;
    background: rgba(212, 165, 116, 0.1) !important;
    padding-left: 2rem !important;
}

/* ============================================
   SEARCH BOX
   ============================================ */

#nevo-vertical-header .header-search input[type="search"] {
    background: var(--theme-surface-3) !important;
    border: 1px solid rgba(212, 165, 116, 0.3) !important;
    color: var(--theme-text-primary) !important;
    padding: 0.8rem !important;
    border-radius: 8px !important;
}

#nevo-vertical-header .header-search input[type="search"]:focus {
    border-color: var(--theme-gold-text) !important;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

#nevo-vertical-header .header-search .search-submit {
    color: var(--theme-gold-text) !important;
}

/* ============================================
   HEADER ACCOUNT
   ============================================ */

.header-account .account-toggle {
    color: var(--theme-text-strong) !important;
    background: transparent !important;
    border: 2px solid rgba(212, 165, 116, 0.3) !important;
    border-radius: 8px;
    padding: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.header-account .account-toggle:hover {
    border-color: var(--theme-gold-text) !important;
    background: rgba(212, 165, 116, 0.1) !important;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.3);
}
/* ============================================
   TAROT FOOTER STYLE - MYSTICAL DARK
   ============================================ */

/* Remove All Spacing */
#page,
.site,
#content,
.site-content,
main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.site-footer,
footer {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.site-footer,
.site-footer *,
footer,
footer * {
    box-sizing: border-box !important;
}

.site-footer::before,
#page::after,
.site::after,
body::after {
    display: none !important;
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer.tarot-mystical-footer {
    background: var(--theme-bg-translucent-98) !important;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.site-footer.tarot-mystical-footer,
.tarot-mystical-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body .site-footer {
    margin: 0 !important;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(75, 61, 120, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 165, 116, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.site-footer.tarot-mystical-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, white, transparent),
        radial-gradient(2px 2px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(1px 1px at 90% 60%, white, transparent),
        radial-gradient(2px 2px at 30% 80%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.08;
    animation: twinkleFooter 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   FOOTER WIDGETS AREA
   ============================================ */

.footer-widgets {
    background: transparent !important;
    padding: 4rem 0 3rem !important;
    position: relative;
    z-index: 1;
}

.inside-footer {
    padding: 0 2rem !important;
    max-width: calc(var(--site-w) + 4rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: var(--site-w);
    margin: 0 auto;
}

.footer-column {
    position: relative;
}

/* REMOVE ALL WIDGET BOXES */
.footer-column .widget,
.footer-widgets .widget,
.site-footer .widget,
.tarot-mystical-footer .widget,
.footer-about-widget {
    display: contents !important;
}

.site-footer .widget,
.site-footer .footer-about-widget,
footer .widget,
.footer-widgets .widget,
.footer-column .widget,
.tarot-mystical-footer .widget {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.footer-about-widget,
.footer-col-about .widget,
.footer-col-info .widget,
.footer-col-contact .widget {
    background: transparent !important;
    border: none !important;
}

/* ============================================
   COLUMN 1: LOGO & ABOUT
   ============================================ */

.footer-col-about {
    padding-right: 0;
}

.footer-logo {
    margin-bottom: 1.8rem;
}

.footer-logo img {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(212, 165, 116, 0.3));
}

.footer-about-content p {
    color: var(--theme-text-body) !important;
    line-height: 1.8 !important;
    font-size: 0.92rem;
    margin: 0;
}

/* ============================================
   WIDGET TITLES
   ============================================ */

.widget-title {
    color: var(--theme-gold-text) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.8rem !important;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--tarot-blog-gold);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

/* ============================================
   FOOTER LINKS
   ============================================ */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.9rem;
    padding-left: 1.2rem;
    position: relative;
}

.footer-links li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--theme-gold-text);
    font-size: 0.65rem;
    top: 0.2rem;
}

.footer-links li a {
    color: var(--theme-text-secondary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    font-size: 0.92rem;
}

.footer-links li a:hover {
    color: var(--theme-gold-text) !important;
    padding-left: 0.5rem;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

/* ============================================
   FOOTER CONTACT INFO
   ============================================ */

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    margin-bottom: 1.2rem;
    color: var(--theme-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.contact-label {
    color: var(--theme-gold-text) !important;
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.footer-contact-info a {
    color: var(--theme-text-secondary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.footer-contact-info a:hover {
    color: var(--theme-gold-text) !important;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

/* ============================================
   FOOTER SOCIAL LINKS
   ============================================ */

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--theme-text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    transition: all 0.3s ease !important;
    padding: 0.5rem 0;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--tarot-blog-gold);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-link:hover {
    color: var(--theme-gold-text) !important;
    padding-left: 0.5rem;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

.social-link:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.5));
}

/* ============================================
   FOOTER DIVIDER
   ============================================ */

.footer-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 165, 116, 0.3) 50%,
        transparent
    );
    margin: 2rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER COPYRIGHT
   ============================================ */

.footer-copyright {
    background: transparent !important;
    padding: 1.5rem 0 2rem !important;
    position: relative;
    z-index: 1;
}

.copyright-content {
    text-align: center;
}

.copyright-content p {
    color: var(--theme-text-soft) !important;
    font-size: 0.9rem !important;
    margin: 0;
}

.copyright-content a {
    color: var(--theme-gold-text) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 600;
}

.copyright-content a:hover {
    color: var(--theme-gold-text) !important;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    /* padding 0: nút thừa hưởng padding 8px 15px của kiểu nút Nevo — trong khung 40–50px
       mũi tên bị bóp còn một chấm. Nền ĐẶC (lớp vàng mờ phủ trên nền thẻ): nền trong
       suốt cũ làm chữ phía sau lộ qua khi nút đè lên nội dung. */
    padding: 0 !important;
    background: linear-gradient(rgba(212, 165, 116, 0.18), rgba(212, 165, 116, 0.18)), var(--theme-bg-elevated, #14141c) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--tarot-blog-gold) !important;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease !important;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.back-to-top:hover {
    background: var(--tarot-blog-gold) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

.back-to-top svg {
    flex-shrink: 0;
    fill: var(--tarot-blog-gold);
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease;
}

.back-to-top:hover svg {
    fill: rgba(10, 10, 15, 1);
}
/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ============================================
   TABLET (1200px)
   ============================================ */

@media (max-width: 1200px) {
    /* Hero & Intro */
    .content-wrapper,
    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .text-content {
        align-items: center;
    }
    
    .cta-button,
    .mystical-btn {
        align-self: center;
    }
    
    /* Features & Benefits */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Topics */
    .topics-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .right-align {
        text-align: left;
    }
    
    .topics-column.right .topic-item:hover {
        transform: translateX(8px);
    }
    
    /* News */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Readers */
    .readers-grid {
        grid-template-columns: 1fr;
        gap: 8rem 2rem;
    }
    
    .reader-avatar {
        margin-top: 2rem;
    }
    
    /* Header */
    .site-branding .main-title,
    .site-branding .main-title a {
        font-size: 1.5rem !important;
    }
    
    .site-branding img.is-logo-image {
        max-height: 50px;
    }
    
    /* Footer */
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-col-about {
        grid-column: 1 / -1;
        padding-right: 0;
    }
    
    .footer-col-social {
        grid-column: 1 / -1;
    }
    
    .footer-social-links {
        flex-direction: row;
        justify-content: flex-start;
        gap: 2rem;
    }
}

/* ============================================
   TABLET SMALL (1024px)
   ============================================ */

@media screen and (max-width: 1024px) {
    /* Blog */
    body.wp-singular .widget-area {
        padding-left: 0;
        margin-top: 30px;
    }
    
    body.wp-singular .inside-article,
    body.single-post-1 .inside-article,
    body.archive .inside-article,
    body.blog .inside-article,
    body.category .inside-article,
    body.tag .inside-article {
        padding: 30px 40px !important;
    }
}

/* ============================================
   MOBILE (768px)
   ============================================ */

@media (max-width: 768px) {
    /* Sections */
    .hero-section,
    .features-section,
    .intro-section,
    .topics-section,
    .faq-section,
    .tarot-news-section,
    .readers-section {
        padding: 3rem 1rem;
    }
    
    /* Typography */
    .title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .gradient-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-header,
    .benefits-header {
        gap: 1.5rem;
    }
    
    .benefits-header {
        gap: 1.5rem;
        margin: 3rem 0 2rem;
    }
    
    .benefits-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .decorative-line {
        width: 50px;
    }
    
    .benefits-header .decorative-line {
        width: 40px;
    }
    
    /* Grids */
    .benefits-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Topics */
    .topic-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .topic-content.right-align {
        text-align: center;
    }
    
    /* Intro */
    .intro-image {
        min-height: 400px;
    }
    
    .orbit-symbol {
        font-size: 1.3rem;
    }
    
    .o1 { top: 8%; left: 5%; }
    .o2 { bottom: 5%; right: 8%; }
    .o3 { top: 40%; left: -5%; }
    .o4 { bottom: 35%; right: -5%; }
    
    /* FAQ */
    .faq-question {
        padding: 1.2rem 1.2rem;
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem;
    }
    
    /* Topics Center */
    .center-card-wrapper {
        width: 250px;
    }
    
    /* Readers */
    .readers-grid {
        gap: 6rem 1.5rem;
    }
    
    .reader-avatar {
        width: 150px;
        height: 150px;
        margin-top: 2rem;
    }
    
    .reader-info {
        padding: 0 1.2rem 1.5rem;
    }
    
    .reader-name {
        font-size: 1.5rem;
    }
    
    .reader-strengths,
    .reader-quote {
        padding: 1.2rem;
    }
    
    /* Header */
    .site-branding .main-title,
    .site-branding .main-title a {
        font-size: 1.3rem !important;
    }
    
    .inside-header {
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
    }
    
    .site-branding img.is-logo-image {
        max-height: 45px;
    }
    
    .mobile-header .site-branding {
        text-align: center;
    }
    
    .mobile-header .site-branding img.is-logo-image {
        margin: 0 auto;
        display: block;
    }
    
    /* Footer */
    .site-footer.tarot-mystical-footer {
        margin-top: 0 !important;
    }
    
    .footer-widgets {
        padding: 3rem 0 2rem !important;
    }
    
    .inside-footer {
        padding: 0 1.5rem !important;
    }
    
    .footer-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-col-about {
        padding-right: 0;
        text-align: left !important;
    }
    
    .footer-logo {
        display: flex;
        justify-content: flex-start !important;
    }
    
    .footer-logo img {
        max-width: 140px;
    }
    
    .footer-about-content p {
        font-size: 0.88rem;
        text-align: left !important;
    }
    
    .widget-title {
        font-size: 1.15rem !important;
        text-align: left !important;
    }
    
    .widget-title::after {
        left: 0 !important;
        transform: none !important;
    }
    
    .footer-links {
        text-align: left !important;
    }
    
    .footer-links li {
        padding-left: 1.2rem !important;
    }
    
    .footer-links li::before {
        display: block !important;
    }
    
    .footer-contact-info {
        text-align: left !important;
    }
    
    .contact-label {
        text-align: left !important;
    }
    
    .footer-col-social {
        text-align: left !important;
    }
    
    .footer-social-links {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .social-link {
        justify-content: flex-start !important;
    }
    
    .copyright-content p {
        font-size: 0.85rem !important;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    /* Blog */
    body.single-post-1 .entry-title,
    body.wp-singular .entry-title,
    body.archive .entry-title,
    body.category .entry-title {
        font-size: 2rem !important;
    }
    
    body.single-post-1 .entry-content,
    body.wp-singular .entry-content,
    body.single-post-1 .entry-summary,
    body.wp-singular .entry-summary {
        padding: 0 !important;
    }
    
    body.wp-singular .entry-content h2 {
        font-size: 1.6em !important;
        padding-left: 20px;
        border-left-width: 4px;
    }
    
    body.wp-singular .inside-article,
    body.single-post-1 .inside-article,
    body.archive .inside-article,
    body.blog .inside-article,
    body.category .inside-article,
    body.tag .inside-article {
        padding: 25px 30px !important;
    }
}

/* ============================================
   MOBILE SMALL (568px)
   ============================================ */

@media screen and (max-width: 568px) {
    body.wp-singular .entry-title {
        font-size: 1.6em !important;
    }
    
    body.wp-singular .inside-article,
    body.single-post-1 .inside-article,
    body.archive .inside-article,
    body.blog .inside-article,
    body.category .inside-article,
    body.tag .inside-article {
        padding: 20px !important;
        border-radius: 15px;
    }
    
    body.wp-singular .entry-content h2 {
        font-size: 1.4em !important;
    }
}

/* ============================================
   MOBILE EXTRA SMALL (480px)
   ============================================ */

@media (max-width: 480px) {
    /* Sections */
    .hero-section,
    .features-section,
    .intro-section,
    .topics-section,
    .faq-section,
    .tarot-news-section,
    .readers-section {
        padding: 3rem 1rem;
    }
    
    /* Typography */
    .title {
        font-size: 2rem;
    }
    
    .gradient-text {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .benefits-header {
        gap: 1rem;
        margin: 2.5rem 0 2rem;
    }
    
    .benefits-title {
        font-size: 1.3rem;
    }
    
    .benefits-header .decorative-line {
        width: 30px;
    }
    
    /* Buttons */
    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .benefit-card,
    .topic-item {
        padding: 1.3rem 1rem;
    }
    
    /* Intro */
    .intro-image {
        min-height: 350px;
    }
    
    .hand-img {
        max-width: 350px;
    }
    
    /* Orbit animations - smaller range */
    @keyframes orbit1 {
        0%, 100% { 
            transform: translate(0, 0) rotate(0deg);
            opacity: 0.4;
        }
        50% { 
            transform: translate(20px, -15px) rotate(180deg);
            opacity: 0.7;
        }
    }
    
    @keyframes orbit2 {
        0%, 100% { 
            transform: translate(0, 0) rotate(0deg);
            opacity: 0.4;
        }
        50% { 
            transform: translate(-20px, 15px) rotate(-180deg);
            opacity: 0.7;
        }
    }
    
    @keyframes orbit3 {
        0%, 100% { 
            transform: translate(0, 0) rotate(0deg);
            opacity: 0.4;
        }
        50% { 
            transform: translate(15px, 20px) rotate(180deg);
            opacity: 0.7;
        }
    }
    
    @keyframes orbit4 {
        0%, 100% { 
            transform: translate(0, 0) rotate(0deg);
            opacity: 0.4;
        }
        50% { 
            transform: translate(-15px, -15px) rotate(-180deg);
            opacity: 0.7;
        }
    }
    
    /* Readers */
    .readers-grid {
        gap: 5rem 1rem;
    }
    
    .reader-avatar {
        width: 130px;
        height: 130px;
        margin: 1.5rem auto 1.5rem;
    }
    
    .reader-info {
        padding: 0 1rem 1.2rem;
        gap: 1.2rem;
    }
    
    .reader-name {
        font-size: 1.3rem;
    }
    
    .reader-style {
        gap: 0.5rem;
    }
    
    .style-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .reader-quote {
        padding: 1.2rem 1.2rem 1.2rem 2.5rem;
    }
    
    .book-btn {
        padding: 1.1rem 1.8rem;
        font-size: 0.95rem;
    }
    
    /* Header */
    .site-branding img.is-logo-image {
        max-height: 40px;
    }
    
    /* Footer */
    .footer-widgets {
        padding: 1.5rem 0 1rem !important;
    }
    
    .footer-row {
        gap: 1.5rem;
    }
    
    .footer-logo {
        justify-content: flex-start !important;
    }
    
    .footer-logo img {
        max-width: 130px;
    }
    
    .widget-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
    }
    
    .footer-about-content p {
        font-size: 0.85rem;
        text-align: left !important;
    }
    
    .footer-links li a,
    .footer-contact-info li {
        font-size: 0.9rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
    }
    
    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   END OF OPTIMIZED CSS
   ============================================ */

/* ============================================
   AUTHOR BOX & RELATED POSTS - FIX
   Styling to match the dark mystical Tarot theme
   ============================================ */

/* ============================================
   SINGLE AFTER ENTRY WRAPPER
   ============================================ */

body.single-post-1 .single-after-entry,
body.wp-singular .single-after-entry {
    background: transparent !important;
    padding: 0 !important;
    margin-top: 3rem !important;
}

/* ============================================
   AUTHOR BOX
   ============================================ */

body.single-post-1 .post-author,
body.single-post-1 .nevo-author-info,
body.wp-singular .post-author,
body.wp-singular .nevo-author-info {
    background: var(--theme-surface-2) !important;
    border: 2px solid rgba(212, 165, 116, 0.25) !important;
    border-radius: 20px !important;
    padding: 3rem 3.5rem !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 3rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 2rem !important;
}

/* Author Avatar */
body.single-post-1 .author-avatar,
body.wp-singular .author-avatar {
    flex-shrink: 0;
    margin: 0 !important;
}

body.single-post-1 .author-avatar img,
body.single-post-1 .user-avatar,
body.wp-singular .author-avatar img,
body.wp-singular .user-avatar {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    border: 3px solid var(--tarot-blog-gold) !important;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3) !important;
}

/* Author Content */
body.single-post-1 .author-content,
body.wp-singular .author-content {
    flex: 1;
    padding-left: 0 !important;
}

body.single-post-1 .author-heading,
body.single-post-1 .author-heading a,
body.wp-singular .author-heading,
body.wp-singular .author-heading a {
    color: var(--theme-gold-text) !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-decoration: none !important;
    text-shadow: 0 0 15px rgba(212, 165, 116, 0.3);
}

body.single-post-1 .author-desc,
body.single-post-1 .author-desc p,
body.wp-singular .author-desc,
body.wp-singular .author-desc p {
    color: var(--theme-text-secondary) !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}

/* ============================================
   RELATED POSTS SECTION
   ============================================ */

body.single-post-1 .related-posts,
body.wp-singular .related-posts {
    background: transparent !important;
    padding: 0 !important;
    margin-top: 3rem !important;
}

/* Related Posts Header */
body.single-post-1 .heading-title,
body.wp-singular .heading-title {
    margin-bottom: 2.5rem !important;
    text-align: center !important;
}

body.single-post-1 .related-post-title,
body.single-post-1 .general-title,
body.wp-singular .related-post-title,
body.wp-singular .general-title {
    color: var(--theme-gold-text) !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.3) !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    display: inline-block !important;
}

body.single-post-1 .related-post-title::after,
body.wp-singular .related-post-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--tarot-blog-gold);
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.5);
}

/* Related Posts Grid - 2 rows x 3 columns */
body.single-post-1 .cv-row,
body.single-post-1 .row-cols-1,
body.single-post-1 .row-cols-sm-3,
body.single-post-1 .row-cols-lg-3,
body.wp-singular .cv-row,
body.wp-singular .row-cols-1,
body.wp-singular .row-cols-sm-3,
body.wp-singular .row-cols-lg-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Related Post Card */
body.single-post-1 .related-posts article,
body.wp-singular .related-posts article {
    background: var(--theme-surface-2) !important;
    border: 2px solid rgba(212, 165, 116, 0.25) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;
}

body.single-post-1 .related-posts article:hover,
body.wp-singular .related-posts article:hover {
    border-color: var(--theme-gold-text) !important;
    box-shadow: 0 12px 36px var(--tarot-blog-glow) !important;
    transform: translateY(-5px) !important;
}

body.single-post-1 .related-posts .article-inner,
body.wp-singular .related-posts .article-inner {
    background: transparent !important;
    padding: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Related Post Thumbnail */
body.single-post-1 .related-posts .post-thumbnail,
body.wp-singular .related-posts .post-thumbnail {
    height: 200px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
}

body.single-post-1 .related-posts .post-thumbnail img,
body.wp-singular .related-posts .post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

body.single-post-1 .related-posts article:hover .post-thumbnail img,
body.wp-singular .related-posts article:hover .post-thumbnail img {
    transform: scale(1.1) !important;
}

/* Related Post Content */
body.single-post-1 .related-post-content,
body.wp-singular .related-post-content {
    padding: 1.8rem 2rem 2rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Related Post Header */
body.single-post-1 .related-posts .entry-header,
body.wp-singular .related-posts .entry-header {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Related Post Title */
body.single-post-1 .related-posts .entry-title,
body.wp-singular .related-posts .entry-title {
    color: var(--theme-gold-text) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.single-post-1 .related-posts .entry-title a,
body.wp-singular .related-posts .entry-title a {
    color: var(--theme-gold-text) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body.single-post-1 .related-posts .entry-title a:hover,
body.wp-singular .related-posts .entry-title a:hover {
    color: var(--theme-gold-text) !important;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.4);
}

/* Related Post Meta */
body.single-post-1 .related-posts .entry-meta,
body.wp-singular .related-posts .entry-meta {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(212, 165, 116, 0.2) !important;
}

body.single-post-1 .related-posts .entry-meta *,
body.wp-singular .related-posts .entry-meta * {
    color: var(--theme-text-soft) !important;
    font-size: 0.85rem !important;
}

body.single-post-1 .related-posts .entry-meta svg,
body.wp-singular .related-posts .entry-meta svg {
    fill: var(--tarot-blog-gold) !important;
}

/* Related Post Excerpt (if exists) */
body.single-post-1 .related-posts .entry-summary,
body.single-post-1 .related-posts .entry-content,
body.wp-singular .related-posts .entry-summary,
body.wp-singular .related-posts .entry-content {
    color: var(--theme-text-secondary) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-top: 1rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Read More Link (if exists) */
body.single-post-1 .related-posts .read-more,
body.wp-singular .related-posts .read-more {
    color: var(--theme-gold-text) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    margin-top: auto !important;
    padding-top: 1rem !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

body.single-post-1 .related-posts .read-more:hover,
body.wp-singular .related-posts .read-more:hover {
    color: var(--theme-gold-text) !important;
    padding-left: 0.5rem !important;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    body.single-post-1 .cv-row,
    body.wp-singular .cv-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    body.single-post-1 .post-author,
    body.single-post-1 .nevo-author-info,
    body.wp-singular .post-author,
    body.wp-singular .nevo-author-info {
        padding: 2.5rem 2.5rem !important;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    body.single-post-1 .cv-row,
    body.wp-singular .cv-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    body.single-post-1 .post-author,
    body.single-post-1 .nevo-author-info,
    body.wp-singular .post-author,
    body.wp-singular .nevo-author-info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem !important;
    }
    
    body.single-post-1 .author-avatar img,
    body.single-post-1 .user-avatar,
    body.wp-singular .author-avatar img,
    body.wp-singular .user-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    body.single-post-1 .author-heading,
    body.wp-singular .author-heading {
        font-size: 1.5rem !important;
    }
    
    body.single-post-1 .related-post-title,
    body.wp-singular .related-post-title {
        font-size: 1.8rem !important;
    }
    
    body.single-post-1 .related-posts .post-thumbnail,
    body.wp-singular .related-posts .post-thumbnail {
        height: 180px !important;
    }
    
    body.single-post-1 .related-post-content,
    body.wp-singular .related-post-content {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    body.single-post-1 .post-author,
    body.single-post-1 .nevo-author-info,
    body.wp-singular .post-author,
    body.wp-singular .nevo-author-info {
        padding: 1.5rem !important;
    }
    
    body.single-post-1 .author-heading,
    body.wp-singular .author-heading {
        font-size: 1.3rem !important;
    }
    
    body.single-post-1 .author-desc,
    body.wp-singular .author-desc {
        font-size: 0.9rem !important;
    }
    
    body.single-post-1 .related-post-title,
    body.wp-singular .related-post-title {
        font-size: 1.5rem !important;
    }
    
    body.single-post-1 .related-posts .entry-title,
    body.wp-singular .related-posts .entry-title {
        font-size: 1.1rem !important;
    }
}

/* ============================================
   END OF AUTHOR & RELATED POSTS FIX
   ============================================ */

/* ============================================
   TAROT ACCOUNT WIDGET (header) — độc lập, không phụ thuộc cấu trúc
   HTML cụ thể của header builder Nevo, chỉ tự định vị bằng position:
   absolute bên trong <header> (context gần nhất có position khác static).
   Target trực tiếp thẻ <header> (không phải .site-header) để đảm bảo luôn
   đúng containing block bất kể builder Nevo có gán class gì hay không —
   trang chỉ có duy nhất 1 thẻ <header> do nevo_construct_header() tạo ra.
   ============================================ */

header {
    position: relative;
}

.tarot-account-widget {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 20;
}

/* ============================================
   MENU: NHÃN "NEW" CHO MỤC MỚI NHẤT (Bói Bài Tây)
   ============================================ */

/* Menu chính giờ có 5 mục (thêm Bói Bài Tây) — ở laptop 1366–1500px dải
   menu chạm vào widget tài khoản. Giảm padding ngang link menu trong dải
   này để cả 5 mục + nhãn New vẫn nằm gọn trước widget. */
@media (min-width: 769px) and (max-width: 1500px) {
    #nevo-desktop-header .nevo-nav-menu > li > .nevo-menu-link {
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
        font-size: 0.94em !important;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    #nevo-desktop-header .nevo-nav-menu > li > .nevo-menu-link {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        font-size: 0.88em !important;
    }
}

.tarot-menu-new-wrap {
    position: relative;
    display: inline-block;
    padding-right: 0.15rem;
}
.tarot-menu-badge-new {
    position: absolute;
    top: -1.15em;
    right: -2.1em;
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tarot-gold-light, #e6c18a), var(--tarot-gold, #d4a574));
    color: #0a0a0f;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.35);
    pointer-events: none;
}
/* Mục con trong dropdown: chữ nhỏ hơn, nhãn nằm sát góc phải chữ hơn */
.sub-menu .tarot-menu-badge-new {
    top: -0.95em;
    right: -2.3em;
}

/* CHỪA CHỖ CHO NÚT THEME + WIDGET TÀI KHOẢN
   Hai phần tử này dùng position: absolute nên KHÔNG chiếm chỗ trong luồng
   bố cục — menu có thể chạy tới sát mép container rồi bị chúng đè lên.
   Thêm padding-right cho cột chứa menu để menu luôn dừng trước chúng. */
#nevo-desktop-header .header-col.col-end {
    padding-right: 175px;
}
/* Đã đăng nhập: widget có thêm pill số dư ví → chừa rộng hơn để không đè menu */
body.logged-in #nevo-desktop-header .header-col.col-end {
    padding-right: 270px;
}
@media (max-width: 1200px) {
    body.logged-in #nevo-desktop-header .header-col.col-end { padding-right: 175px; }
}

/* NỚI KHUNG HEADER
   Container mặc định (~1090px) không đủ chỗ cho logo + 4 mục menu + phần
   chừa cho nút theme/widget, khiến mục "Bói Bài Lenormand" bị đẩy xuống
   dòng thứ hai. Nới rộng riêng cho header (không ảnh hưởng container của
   phần nội dung bên dưới). */
#nevo-desktop-header .nevo-container.inside-header {
    max-width: 1560px;
    width: 95%;
}

/* Chặn menu xuống dòng — thà thu nhỏ khoảng cách giữa các mục còn hơn để
   menu vỡ thành 2 hàng làm header cao gấp đôi. */
#nevo-desktop-header .nevo-nav-menu {
    flex-wrap: nowrap;
}

#nevo-desktop-header .nevo-nav-menu > li > .nevo-menu-link {
    white-space: nowrap;
}

@media (max-width: 1400px) {
    /* Màn hình hẹp hơn: thu gọn khoảng cách giữa các mục menu để vẫn giữ
       được một hàng duy nhất. */
    #nevo-desktop-header .nevo-nav-menu > li > .nevo-menu-link {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    #nevo-desktop-header .header-col.col-end {
        padding-right: 165px;
    }
}

@media (max-width: 1280px) {
    /* Gần ngưỡng chuyển sang header mobile (992px) — thu gọn thêm cỡ chữ
       và khoảng cách, đồng thời giảm bề rộng logo để nhường chỗ cho menu. */
    #nevo-desktop-header .nevo-nav-menu > li > .nevo-menu-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.92rem;
    }

    #nevo-desktop-header .site-logo img {
        max-width: 200px;
        height: auto;
    }

    #nevo-desktop-header .header-col.col-end {
        padding-right: 155px;
    }

    .tarot-menu-badge-new {
        padding: 0.05rem 0.32rem;
        font-size: 0.54rem;
        top: -1.05em;
        right: -1.9em;
    }
}

@media (max-width: 1150px) {
    /* Dải sát ngưỡng chuyển header mobile (992px). Ẩn chữ "admin" cạnh
       avatar để giải phóng thêm ~70px cho menu — avatar vẫn đủ để nhận
       biết đang đăng nhập, bấm vào vẫn ra đủ menu tài khoản. */
    #nevo-desktop-header ~ .tarot-account-widget .tarot-account-widget-name,
    .tarot-account-widget .tarot-account-widget-name {
        display: none;
    }

    #nevo-desktop-header .nevo-nav-menu > li > .nevo-menu-link {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        font-size: 0.86rem;
    }

    #nevo-desktop-header .site-logo img {
        max-width: 160px;
    }

    #nevo-desktop-header .header-col.col-end {
        padding-right: 100px;
    }
}

.tarot-theme-toggle {
    position: absolute;
    top: 50%;
    right: 6rem;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-surface-2);
    border: 1px solid var(--theme-border);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.tarot-theme-toggle:hover {
    background: var(--theme-surface-3);
    border-color: var(--theme-border-strong);
}

.tarot-account-widget-dropdown {
    position: relative;
}

.tarot-account-widget-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--theme-text-strong);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem 0.4rem 0.4rem;
    border-radius: 999px;
    background: var(--theme-surface-2);
    border: 1px solid rgba(212, 165, 116, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.tarot-account-widget-trigger:hover,
.tarot-account-widget-dropdown:hover .tarot-account-widget-trigger {
    border-color: var(--tarot-blog-gold, #d4a574);
    background: rgba(212, 165, 116, 0.1);
}

.tarot-account-widget-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.6rem;
    min-width: 190px;
    background: var(--theme-bg-translucent-98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 30;
}

.tarot-account-widget-dropdown:hover .tarot-account-widget-menu,
.tarot-account-widget-dropdown:focus-within .tarot-account-widget-menu,
.tarot-account-widget-dropdown.tarot-account-widget-dropdown-open .tarot-account-widget-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tarot-account-widget-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.tarot-account-widget-menu-item:hover {
    background: rgba(212, 165, 116, 0.12);
    color: var(--tarot-blog-gold, #d4a574);
}

.tarot-account-widget-menu-item-danger:hover {
    background: var(--theme-danger-bg);
    color: var(--theme-danger);
}

.tarot-account-widget-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tarot-account-widget-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tarot-blog-gold, #d4a574);
    color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.tarot-account-widget-wallet {
    display: inline-flex; align-items: center; gap: 0.2rem;
    margin-left: 0.35rem; padding: 0.15rem 0.55rem; border-radius: 999px;
    border: 1px solid var(--theme-border-strong); background: rgba(212, 165, 116, 0.12);
    color: var(--theme-gold-text); font-size: 0.74rem; font-weight: 800; white-space: nowrap;
}
@media (max-width: 1200px) { .tarot-account-widget-wallet { display: none; } }
.tarot-account-widget-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tarot-account-widget-login-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0a0a0f;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, #e6c18a, #d4a574);
    transition: all 0.3s ease;
}

.tarot-account-widget-login-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 165, 116, 0.35);
}

@media (max-width: 782px) {
    .tarot-account-widget {
        right: 1rem;
    }

    .tarot-account-widget-name {
        display: none;
    }

    .tarot-account-widget-login-container {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   TAROT LOGIN ERROR NOTICE
   ============================================ */

.tarot-login-error-notice {
    max-width: var(--site-w);
    margin: 1rem auto 0;
    padding: 1rem 1.5rem;
    background: var(--theme-danger-bg);
    border: 1px solid var(--theme-danger-border);
    border-radius: 12px;
    color: var(--theme-danger);
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 768px) {
    .tarot-login-error-notice {
        margin: 0.8rem 1rem 0;
        padding: 0.8rem 1rem;
        font-size: 0.88rem;
    }
}

/* ============================================
   DÒNG THÔNG BÁO "1 LƯỢT BÓI MIỄN PHÍ" — chỉ hiện khi chưa đăng nhập
   Chỉ 1 dòng text duy nhất, trượt ngang từ phải sang trái rồi lặp lại,
   thuần hiển thị thông tin (không phải nút bấm).
   ============================================ */

/* Dải thông báo đầu trang (tarot_render_save_history_notice) — đứng yên, có nút bấm. */
.tarot-free-reading-notice {
    display: block;
    width: 100%;
    background: rgba(212, 165, 116, 0.14);
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
    padding: 0.5rem 1rem;
    text-align: center;
}

.tarot-notice-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    color: var(--theme-gold-text, #d4a574);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.tarot-notice-item[hidden] { display: none; }
.tarot-notice-item.is-on { animation: tarot-notice-in 0.45s ease both; }
@keyframes tarot-notice-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.tarot-notice-star { font-size: 0.8em; opacity: 0.9; }
.tarot-notice-short { display: none; }

.tarot-notice-cta {
    display: inline-block;
    padding: 0.18rem 0.75rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.tarot-notice-item:hover .tarot-notice-cta,
.tarot-notice-item:focus-visible .tarot-notice-cta {
    background: var(--theme-gold-text, #d4a574);
    color: var(--theme-bg, #0a0a0f);
}

.tarot-notice-item:focus-visible { outline: 2px solid var(--theme-gold-text, #d4a574); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 768px) {
    .tarot-free-reading-notice { padding: 0.45rem 0.75rem; }
    /* flex (không inline-flex) để dải không giãn theo chữ — câu ngắn tự co, thêm "…" nếu màn quá hẹp. */
    .tarot-notice-item { display: flex; width: 100%; font-size: 0.8rem; flex-wrap: nowrap; gap: 0.5rem; }
    .tarot-notice-item[hidden] { display: none; }
    .tarot-notice-long { display: none; }
    .tarot-notice-short { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tarot-notice-star, .tarot-notice-cta { flex-shrink: 0; }
    .tarot-notice-cta { font-size: 0.75rem; padding: 0.15rem 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tarot-notice-item.is-on { animation: none; }
}

/* ============================================
   TRANG TÀI KHOẢN (/tai-khoan/) — bố cục dashboard
   Hero (hồ sơ + hành động) → 4 ô số liệu → 2 cột:
   lịch sử bói (chính) | thông tin + giao dịch (phụ)
   ============================================ */

.tarot-account-page {
    background: var(--theme-bg);
    min-height: 70vh;
    padding: 2.5rem 2rem 5rem;
    /* Nevo đặt #content làm flex item — không có min-width:0 thì nội dung có
       min-content lớn (VD khối line-clamp) sẽ kéo rộng cả trang trên mobile. */
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.tarot-account-container {
    max-width: var(--site-w);
    width: 100%;
    margin: 0 auto;
}

/* Khung breadcrumb/page-header của Nevo vẫn được in ra (rỗng, nền xám) dù
   filter PHP đã xoá nội dung — ẩn hẳn để hero nằm sát header. */
body.page-template-page-tai-khoan .page-header,
body.page-template-page-tai-khoan .nevo-breadcrumb,
body.page-template-page-tai-khoan .rank-math-breadcrumb {
    display: none !important;
}

/* --- Khách chưa đăng nhập --- */
.tarot-account-guest-notice {
    text-align: center;
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    padding: 3rem 2rem;
    max-width: 560px;
    margin: 2rem auto;
}

.tarot-account-guest-notice h1 {
    color: var(--theme-text-primary);
    margin-bottom: 0.8rem;
}

.tarot-account-guest-notice p {
    color: var(--theme-text-body);
    margin-bottom: 1.5rem;
}

/* --- Nút dùng chung --- */
.tarot-account-btn-primary,
.tarot-account-btn-secondary,
.tarot-account-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.tarot-account-btn-primary {
    color: #0a0a0f;
    background: linear-gradient(135deg, #e6c18a, #d4a574);
}

.tarot-account-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 165, 116, 0.35);
}

.tarot-account-btn-secondary {
    color: var(--theme-gold-text);
    background: rgba(212, 165, 116, 0.1);
    border-color: var(--theme-border);
}

.tarot-account-btn-secondary:hover {
    background: rgba(212, 165, 116, 0.18);
}

.tarot-account-btn-ghost {
    color: var(--theme-text-muted);
    background: transparent;
    border-color: var(--theme-surface-4);
}

.tarot-account-btn-ghost:hover {
    color: var(--theme-danger);
    border-color: var(--theme-danger-border);
    background: var(--theme-danger-bg);
}

.tarot-account-btn-sm {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid var(--theme-surface-4);
    background: var(--theme-surface-2);
    color: var(--theme-text-secondary);
    transition: all 0.2s ease;
}

.tarot-account-btn-sm:hover {
    background: var(--theme-surface-3);
}

.tarot-account-btn-sm.is-primary {
    color: #0a0a0f;
    background: linear-gradient(135deg, #e6c18a, #d4a574);
    border-color: transparent;
}

.tarot-account-btn-sm.is-gold {
    color: var(--theme-gold-text);
    background: rgba(212, 165, 116, 0.12);
    border-color: var(--theme-border);
}

.tarot-account-btn-sm.is-gold:hover {
    background: rgba(212, 165, 116, 0.22);
}

.tarot-account-btn-sm:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* --- Skeleton khi đang tải --- */
.tarot-skel {
    position: relative;
    color: transparent !important;
    background: var(--theme-surface-3) !important;
    border-radius: 6px;
    min-width: 6ch;
    overflow: hidden;
}

.tarot-skel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: tarot-skel-shimmer 1.4s infinite;
}

@keyframes tarot-skel-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

.tarot-account-skel-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tarot-account-skel-item {
    height: 118px;
    border-radius: 14px;
    background: var(--theme-surface-2);
    position: relative;
    overflow: hidden;
}

.tarot-account-skel-item-sm {
    height: 72px;
}

.tarot-account-skel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: tarot-skel-shimmer 1.4s infinite;
}

/* --- HERO --- */
.tarot-account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(212, 165, 116, 0.14), transparent 45%),
        var(--theme-surface-1);
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.2rem;
}

.tarot-account-hero-main {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
}

.tarot-account-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6c18a, #d4a574);
    color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 0 3px var(--theme-bg), 0 0 0 5px rgba(212, 165, 116, 0.4);
}

.tarot-account-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tarot-account-hero-text {
    min-width: 0;
}

.tarot-account-hero-eyebrow {
    color: var(--theme-gold-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 0.25rem;
}

.tarot-account-hero-name {
    color: var(--theme-text-primary);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.2rem;
    display: inline-block;
    min-width: 12ch;
}

.tarot-account-hero-email {
    color: var(--theme-text-soft);
    font-size: 0.9rem;
    margin: 0 0 0.35rem;
    display: inline-block;
    min-width: 18ch;
}

.tarot-account-hero-welcome {
    color: var(--theme-text-muted);
    font-size: 0.88rem;
    margin: 0;
    font-style: italic;
}

.tarot-account-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* --- SỐ LIỆU TỔNG QUAN --- */
.tarot-account-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.tarot-account-stat {
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-surface-3);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color 0.2s ease;
}

.tarot-account-stat:hover {
    border-color: var(--theme-border);
}

.tarot-account-stat-value {
    color: var(--theme-text-primary);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.tarot-account-stat-value-sm {
    font-size: 1.05rem;
}

.tarot-account-stat-label {
    color: var(--theme-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

/* --- LƯỚI 2 CỘT --- */
.tarot-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    min-width: 0;
    gap: 1.2rem;
    align-items: start;
}

.tarot-account-side {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: sticky;
    top: 90px;
}

.tarot-account-card {
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-surface-3);
    border-radius: 18px;
    padding: 1.5rem;
    min-width: 0;
}

.tarot-account-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.tarot-account-card-title {
    color: var(--theme-text-primary);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.tarot-account-card-desc {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0.35rem 0 0;
}

.tarot-account-count-pill {
    flex-shrink: 0;
    color: var(--theme-gold-text);
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid var(--theme-border);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.tarot-account-note {
    color: var(--theme-text-faint);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 1rem 0 0;
}

/* --- Bộ lọc --- */
.tarot-account-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.tarot-account-filter {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--theme-surface-4);
    background: transparent;
    color: var(--theme-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tarot-account-filter:hover {
    color: var(--theme-text-secondary);
    background: var(--theme-surface-2);
}

.tarot-account-filter.is-active {
    color: #0a0a0f;
    background: var(--theme-gold-text);
    border-color: var(--theme-gold-text);
}

/* --- Danh sách lượt bói --- */
.tarot-reading-list,
.tarot-purchase-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tarot-reading-item {
    min-width: 0;
    background: var(--theme-bg-elevated-60);
    border: 1px solid var(--theme-surface-3);
    border-left: 3px solid var(--theme-surface-4);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tarot-reading-item:hover {
    border-color: var(--theme-border);
    transform: translateY(-1px);
}

.tarot-reading-item.is-unlocked {
    border-left-color: var(--theme-gold-text);
}

.tarot-reading-item-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.tarot-reading-type {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.tarot-reading-type.is-tarot {
    color: #b9a7ff;
    background: rgba(140, 120, 255, 0.14);
    border-color: rgba(140, 120, 255, 0.3);
}

.tarot-reading-type.is-leno {
    color: var(--theme-gold-text);
    background: rgba(212, 165, 116, 0.14);
    border-color: var(--theme-border);
}

.tarot-reading-type.is-tay {
    color: #7fc8ff;
    background: rgba(90, 170, 255, 0.14);
    border-color: rgba(90, 170, 255, 0.3);
}

html[data-theme="light"] .tarot-reading-type.is-tay {
    color: #1e5fb3;
    background: rgba(30, 95, 179, 0.1);
    border-color: rgba(30, 95, 179, 0.3);
}

/* Giao diện sáng: tím nhạt trên nền sáng bị mờ, đậm lại cho đủ tương phản. */
html[data-theme="light"] .tarot-reading-type.is-tarot {
    color: #5b45c4;
    background: rgba(91, 69, 196, 0.1);
    border-color: rgba(91, 69, 196, 0.3);
}

.tarot-reading-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
}

.tarot-reading-status.is-unlocked {
    color: #6fcf97;
    background: rgba(111, 207, 151, 0.12);
}

.tarot-reading-status.is-locked {
    color: var(--theme-text-muted);
    background: var(--theme-surface-3);
}

.tarot-reading-date {
    margin-left: auto;
    color: var(--theme-text-faint);
    font-size: 0.78rem;
    white-space: nowrap;
}

.tarot-reading-question {
    color: var(--theme-text-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 0.25rem;
}

.tarot-reading-meta {
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
}

.tarot-reading-preview {
    color: var(--theme-text-soft);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tarot-reading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Phân trang lịch sử bói --- */
.tarot-account-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--theme-surface-3);
}

.tarot-account-page-numbers {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tarot-account-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--theme-surface-4);
    background: transparent;
    color: var(--theme-text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-variant-numeric: tabular-nums;
}

.tarot-account-page-btn:hover:not(:disabled):not(.is-current) {
    background: var(--theme-surface-2);
    color: var(--theme-text-primary);
}

.tarot-account-page-btn.is-current {
    color: #0a0a0f;
    background: var(--theme-gold-text);
    border-color: var(--theme-gold-text);
    cursor: default;
}

.tarot-account-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tarot-account-page-gap {
    color: var(--theme-text-faint);
    padding: 0 0.2rem;
}

.tarot-account-page-info {
    margin-left: auto;
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Đang tải trang mới: mờ danh sách cũ, khoá thao tác, không nhảy layout. */
#tarotReadingHistoryBlock.is-busy .tarot-reading-list {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* --- Trạng thái trống --- */
.tarot-account-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--theme-surface-4);
    border-radius: 14px;
}

.tarot-account-empty-compact {
    padding: 1.2rem 1rem;
}

.tarot-account-empty-title {
    color: var(--theme-text-primary);
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.tarot-account-empty-desc {
    color: var(--theme-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.tarot-account-empty-compact .tarot-account-empty-desc {
    margin: 0;
}

/* --- Thông tin tài khoản --- */
.tarot-account-meta-list {
    margin: 0;
}

.tarot-account-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--theme-surface-3);
    font-size: 0.88rem;
}

.tarot-account-meta-row:last-child {
    border-bottom: none;
}

.tarot-account-meta-row dt {
    color: var(--theme-text-muted);
}

.tarot-account-meta-row dd {
    color: var(--theme-text-secondary);
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tarot-account-google-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--theme-text-secondary);
    background: var(--theme-surface-2);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.tarot-account-google-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6fcf97;
    box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.2);
}

/* --- Giao dịch --- */
.tarot-purchase-item {
    background: var(--theme-bg-elevated-60);
    border: 1px solid var(--theme-surface-3);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
}

.tarot-purchase-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.tarot-purchase-amount {
    color: var(--theme-gold-text);
    font-weight: 800;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.tarot-purchase-tier {
    color: var(--theme-text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.tarot-purchase-meta {
    color: var(--theme-text-faint);
    font-size: 0.76rem;
    margin: 0;
}

/* Thu gọn giao dịch: ẩn từ đơn thứ 4 trở đi cho tới khi bấm "Xem thêm". */
.tarot-purchase-list:not(.is-expanded) .tarot-purchase-item.is-collapsed {
    display: none;
}

.tarot-account-toggle-btn {
    display: block;
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px dashed var(--theme-surface-4);
    background: transparent;
    color: var(--theme-gold-text);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tarot-account-toggle-btn:hover {
    background: rgba(212, 165, 116, 0.08);
    border-color: var(--theme-border);
}

.tarot-purchase-meta code {
    background: var(--theme-surface-2);
    padding: 0.08rem 0.4rem;
    border-radius: 4px;
    color: var(--theme-text-soft);
    font-size: 0.74rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .tarot-account-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Một cột: Thông tin tài khoản + Giao dịch (ngắn, cố định) lên TRƯỚC,
       Lịch sử bói (dài, có phân trang) xuống dưới — user không phải cuộn
       qua cả danh sách dài mới thấy được thông tin/giao dịch của mình. */
    .tarot-account-side {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .tarot-account-page-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 0.3rem;
    }
}

@media (max-width: 768px) {
    .tarot-account-page {
        padding: 1.5rem 1rem 3rem;
    }

    .tarot-account-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 1.3rem;
    }

    .tarot-account-hero-actions {
        justify-content: stretch;
    }

    .tarot-account-hero-actions > * {
        flex: 1 1 calc(50% - 0.3rem);
    }

    .tarot-account-hero-name {
        font-size: 1.35rem;
    }

    .tarot-account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .tarot-account-stat {
        padding: 0.9rem 1rem;
    }

    .tarot-account-stat-value {
        font-size: 1.3rem;
    }

    .tarot-account-card {
        padding: 1.2rem;
    }

    .tarot-reading-date {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tarot-account-hero-actions > * {
        flex: 1 1 100%;
    }
}

.tarot-reading-type.is-yn {
    color: #b9e6a6;
    background: rgba(120, 200, 90, 0.14);
    border-color: rgba(120, 200, 90, 0.3);
}

/* Ô chuỗi ngày thông điệp ở trang Tài khoản (là link) */
a.tarot-account-stat-link { text-decoration: none; }
a.tarot-account-stat-link:hover { border-color: var(--theme-gold-text); }

/* ============================================
   VÍ & HẠNG — thẻ ở trang Tài khoản (tarot-wallet-system.php)
   ============================================ */
.tarot-wallet-card { border-color: var(--theme-border-strong); background: linear-gradient(180deg, rgba(212,165,116,0.10), rgba(212,165,116,0.02)); }
.tarot-wallet-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin: 0 0 0.6rem; }
.tarot-wallet-balance-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--theme-text-muted); }
.tarot-wallet-balance strong { font-size: 1.9rem; line-height: 1.1; font-weight: 800; color: var(--theme-gold-text); min-width: 5ch; text-align: right; }
.tarot-wallet-rank { margin-bottom: 0.9rem; }
.tarot-wallet-rank-bar { height: 6px; border-radius: 999px; background: var(--theme-surface-3); overflow: hidden; margin-bottom: 0.45rem; }
.tarot-wallet-rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tarot-gold-light,#e6c18a), var(--tarot-gold,#d4a574)); transition: width 0.8s ease; }
.tarot-wallet-rank-text, .tarot-wallet-rank-now { margin: 0; font-size: 0.86rem; color: var(--theme-text-muted); line-height: 1.5; }
.tarot-wallet-rank-text strong { color: var(--theme-text-primary); }
.tarot-wallet-rank-now { margin-top: 0.25rem; color: var(--theme-gold-text); font-weight: 600; }
.tarot-wallet-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.tarot-wallet-actions .tarot-account-btn-primary, .tarot-wallet-actions .tarot-account-btn-secondary { flex: 1; text-align: center; justify-content: center; }
.tarot-wallet-tx { list-style: none; margin: 0.4rem 0 0.8rem; padding: 0; border-top: 1px dashed var(--theme-border); }
.tarot-wallet-tx-item { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--theme-border); font-size: 0.86rem; }
.tarot-wallet-tx-type { color: var(--theme-text-primary); font-weight: 600; }
.tarot-wallet-tx-amt { font-weight: 800; text-align: right; }
.tarot-wallet-tx-amt.is-pos { color: #1f7a45; } .tarot-wallet-tx-amt.is-neg { color: var(--theme-danger); }
:root:not([data-theme="light"]) .tarot-wallet-tx-amt.is-pos { color: #6fd39a; }
.tarot-wallet-tx-meta { grid-column: 1 / -1; font-size: 0.76rem; color: var(--theme-text-faint); }
.tarot-wallet-tx-empty { padding: 0.6rem 0; font-size: 0.86rem; color: var(--theme-text-muted); }
.tarot-wallet-ref { margin: 0.6rem 0 0.8rem; padding: 0.8rem 0.9rem; border-radius: 12px; border: 1px dashed var(--theme-border-strong); }
.tarot-wallet-ref-title { margin: 0 0 0.25rem; font-weight: 800; color: var(--theme-text-primary); font-size: 0.92rem; }
.tarot-wallet-ref-desc, .tarot-wallet-ref-count { margin: 0; font-size: 0.82rem; color: var(--theme-text-muted); line-height: 1.5; }
.tarot-wallet-ref-row { display: flex; gap: 0.4rem; margin: 0.55rem 0 0.35rem; }
.tarot-wallet-ref-row input { flex: 1; min-width: 0; padding: 0.45rem 0.6rem; border-radius: 8px; border: 1px solid var(--theme-border); background: var(--theme-surface-1); color: var(--theme-text-body); font-family: inherit; font-size: 0.82rem; }
.tarot-reading-type.is-wallet { background: rgba(111, 211, 154, 0.16); color: #1f7a45; }
:root:not([data-theme="light"]) .tarot-reading-type.is-wallet { color: #6fd39a; }
.tarot-purchase-amount small { font-size: 0.72rem; font-weight: 500; color: var(--theme-text-faint); }

/* Header: avatar có khung hạng (class .tk-avatar/.tk-frame-N khai báo trong account.css,
   nhưng header hiện ở mọi trang nên lặp phần cần thiết ở đây). */
.tarot-account-widget-avatar-wrap { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; padding: 2px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: var(--theme-border-strong); }
.tarot-account-widget-avatar-wrap .tarot-account-widget-avatar, .tarot-account-widget-avatar-wrap .tarot-account-widget-avatar-fallback { width: 100%; height: 100%; }
.tarot-account-widget-avatar-wrap.tk-frame-1,
.tarot-account-widget-avatar-wrap.tk-frame-2,
.tarot-account-widget-avatar-wrap.tk-frame-3,
.tarot-account-widget-avatar-wrap.tk-frame-4 {
    width: 40px; height: 40px; padding: 0;
    background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: contain;
    box-shadow: none;
}
.tarot-account-widget-avatar-wrap.tk-frame-1 .tarot-account-widget-avatar, .tarot-account-widget-avatar-wrap.tk-frame-1 .tarot-account-widget-avatar-fallback,
.tarot-account-widget-avatar-wrap.tk-frame-2 .tarot-account-widget-avatar, .tarot-account-widget-avatar-wrap.tk-frame-2 .tarot-account-widget-avatar-fallback,
.tarot-account-widget-avatar-wrap.tk-frame-3 .tarot-account-widget-avatar, .tarot-account-widget-avatar-wrap.tk-frame-3 .tarot-account-widget-avatar-fallback,
.tarot-account-widget-avatar-wrap.tk-frame-4 .tarot-account-widget-avatar, .tarot-account-widget-avatar-wrap.tk-frame-4 .tarot-account-widget-avatar-fallback {
    width: 66%; height: 66%;
}
.tarot-account-widget-avatar-wrap.tk-frame-1 { background-image: url(../img/ranks/rank-1.png?v=1); }
.tarot-account-widget-avatar-wrap.tk-frame-2 { background-image: url(../img/ranks/rank-2.png?v=1); }
.tarot-account-widget-avatar-wrap.tk-frame-3 { background-image: url(../img/ranks/rank-3.png?v=1); }
.tarot-account-widget-avatar-wrap.tk-frame-4 { background-image: url(../img/ranks/rank-4.png?v=1); }
[data-theme="light"] .tarot-account-widget-avatar-wrap.tk-frame-2,
[data-theme="light"] .tarot-account-widget-avatar-wrap.tk-frame-4 { filter: drop-shadow(0 0 1px rgba(40, 30, 20, 0.45)); }

/* Nút "Xem như khách" của chủ site (chỉ tài khoản quản trị thấy) */
.tarot-viewas {
    position: fixed;
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.4rem 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border-strong);
    background: var(--theme-bg-elevated-95);
    box-shadow: 0 6px 20px -8px var(--theme-shadow);
    font-size: 0.78rem;
    color: var(--theme-text-muted);
}
.tarot-viewas:not(.is-guest) { padding: 0.3rem 0.4rem; opacity: 0.55; }
.tarot-viewas:not(.is-guest):hover { opacity: 1; }
.tarot-viewas.is-guest { border-color: rgba(178, 86, 62, 0.55); color: var(--theme-text-primary); }
.tarot-viewas-label { font-weight: 700; white-space: nowrap; }
.tarot-viewas-btn {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--theme-surface-3);
    color: var(--theme-text-primary);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.tarot-viewas-btn:hover { background: var(--theme-surface-4); }
body.flow-has-actionbar .tarot-viewas { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) { .tarot-viewas { left: 10px; font-size: 0.72rem; } }
