@font-face {
    font-family: "Be Vietnam Pro";
    src: url("../fonts/be-vietnam-pro-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("../fonts/be-vietnam-pro-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("../fonts/be-vietnam-pro-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("../fonts/be-vietnam-pro-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* ============================================================
   YODES — Light Glassmorphism (Capi-style)
   Nền pastel sáng + bong bóng màu, thẻ kính TRẮNG mờ, chữ tối.
   ============================================================ */

:root {
    --yodes-accent-1: #7c5cff;   /* tím */
    --yodes-accent-2: #6366f1;   /* indigo */
    --yodes-accent-3: #58a6ff;   /* xanh */
    --yodes-accent-pink: #ec4899;
    --yodes-gradient: linear-gradient(135deg, #7c5cff 0%, #58a6ff 100%);
    --yodes-gradient-pink: linear-gradient(135deg, #a06bff 0%, #ec4899 100%);

    --yodes-card-bg: rgba(255, 255, 255, 0.55);
    --yodes-card-bg-hover: rgba(255, 255, 255, 0.72);
    --yodes-card-border: rgba(255, 255, 255, 0.65);
    --yodes-card-blur: 22px;

    --yodes-radius: 22px;
    --yodes-radius-sm: 13px;

    --yodes-text: #2c2a45;
    --yodes-text-muted: #6b7280;
    --yodes-shadow: 0 10px 34px rgba(80, 70, 160, 0.16);
    --yodes-shadow-hover: 0 16px 44px rgba(80, 70, 160, 0.24);
}

/* ============================================================
   YODES ORACLE EXPERIENCE
   ============================================================ */
:root {
    --oracle-bg: #07070d;
    --oracle-panel: rgba(12, 11, 19, 0.86);
    --oracle-line: rgba(218, 191, 133, 0.22);
    --oracle-gold: #d8b978;
    --oracle-gold-bright: #f2d89b;
    --oracle-violet: #9a7be8;
    --oracle-cyan: #73c7da;
    --oracle-rose: #d4758c;
    --oracle-text: #f4f0e8;
    --oracle-muted: #aaa5b2;
    --bg-main: #060711;
    --bg-deep: #02040c;
    --accent-gold: #d8ba78;
    --accent-purple: #8066c7;
    --accent-cyan: #72b8c7;
    --text-main: #f4efe7;
    --text-muted: #a9a4b4;
}

html {
    scroll-behavior: smooth;
}

body.yodes-shell {
    background: var(--oracle-bg) !important;
    color: var(--oracle-text);
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    overflow-x: hidden;
}

.yodes-noise {
    position: fixed;
    inset: 0;
    z-index: 20;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.yodes-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 68px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    padding: 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(7, 7, 13, 0.76);
    backdrop-filter: blur(16px);
}

.yodes-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: var(--oracle-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.yodes-brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--oracle-gold);
    border-radius: 50%;
    color: var(--oracle-gold-bright);
    font-family: Georgia, serif;
}

.yodes-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.yodes-nav a {
    color: var(--oracle-muted);
    font-size: 12px;
    text-decoration: none;
}

.yodes-nav a:hover {
    color: var(--oracle-gold-bright);
}

.yodes-account {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.yodes-login-link,
.yodes-icon-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--oracle-text);
    font-size: 12px;
    text-decoration: none;
}

.yodes-icon-button {
    width: 36px;
    padding: 0;
}

.yodes-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid var(--oracle-line);
    border-radius: 50%;
    object-fit: cover;
}

.yodes-avatar-fallback {
    display: grid;
    place-items: center;
    background: #17131f;
    color: var(--oracle-gold);
}

.oracle-app {
    position: relative;
    min-height: 100vh;
    padding-top: 68px;
    isolation: isolate;
}

.oracle-canvas {
    position: fixed;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
}

.oracle-vignette {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 7, 13, 0.92) 0%, rgba(7, 7, 13, 0.66) 43%, rgba(7, 7, 13, 0.12) 78%, rgba(7, 7, 13, 0.52) 100%);
}

.oracle-hero {
    min-height: calc(100svh - 104px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 5vw;
    max-width: 1500px;
    margin: 0 auto;
    padding: 7vh clamp(24px, 5vw, 76px) 9vh;
}

.oracle-hero-copy {
    max-width: 760px;
}

.oracle-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--oracle-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.oracle-hero h1 {
    max-width: 840px;
    margin: 0;
    color: #f7f3ec;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 7.8vw, 118px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0;
    text-wrap: balance;
}

.oracle-hero-copy > p {
    max-width: 610px;
    margin: 28px 0 0;
    color: #bbb5c1;
    font-size: 16px;
    line-height: 1.8;
}

.element-compass {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-self: end;
    border-top: 1px solid var(--oracle-line);
    border-left: 1px solid var(--oracle-line);
}

.element-token {
    min-height: 118px;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 2px 12px;
    padding: 22px;
    border-right: 1px solid var(--oracle-line);
    border-bottom: 1px solid var(--oracle-line);
    background: rgba(8, 8, 14, 0.46);
    backdrop-filter: blur(8px);
}

.element-token i {
    grid-row: 1 / 3;
    align-self: center;
    font-size: 28px;
}

.element-token span {
    font-family: Georgia, serif;
    font-size: 21px;
}

.element-token small {
    color: var(--oracle-muted);
    font-size: 11px;
}

.element-air i { color: #b9e8f2; }
.element-water i { color: #6ca6ef; }
.element-earth i { color: var(--oracle-gold); }
.element-fire i { color: #ef756d; }

.oracle-enter {
    position: absolute;
    left: clamp(24px, 5vw, 76px);
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--oracle-muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.oracle-enter i {
    color: var(--oracle-gold);
    animation: oracle-breathe 1.8s ease-in-out infinite;
}

.ritual-section {
    position: relative;
    min-height: 100svh;
    padding: 92px clamp(24px, 6vw, 96px) 120px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 7, 13, 0.86);
    backdrop-filter: blur(13px);
}

.ritual-progress {
    max-width: 1360px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto 88px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ritual-progress span {
    position: relative;
    min-width: 0;
    padding-top: 14px;
    color: #625e69;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.ritual-progress span::before {
    position: absolute;
    top: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--oracle-gold);
    content: "";
    transition: width 0.45s ease;
}

.ritual-progress span.active,
.ritual-progress span.complete {
    color: var(--oracle-gold-bright);
}

.ritual-progress span.active::before,
.ritual-progress span.complete::before {
    width: 100%;
}

.ritual-step {
    max-width: 1360px;
    margin: 0 auto;
    animation: ritual-arrive 0.55s ease both;
}

.ritual-heading {
    max-width: 820px;
    margin-bottom: 50px;
}

.ritual-heading.compact {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.ritual-heading h2 {
    margin: 0;
    color: #f5f0e7;
    font-family: Georgia, serif;
    font-size: clamp(34px, 4.5vw, 66px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    text-wrap: balance;
}

.ritual-heading p {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--oracle-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ritual-heading.compact p {
    margin-right: auto;
    margin-left: auto;
}

.topic-selector {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.topic-option {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.018);
    color: var(--oracle-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.topic-option i {
    font-size: 22px;
}

.topic-option:hover,
.topic-option.active {
    background: rgba(216, 185, 120, 0.1);
    color: var(--oracle-gold-bright);
}

.oracle-question-wrap {
    position: relative;
    margin: 40px 0 28px;
}

.oracle-question-wrap label,
.follow-up-form label > span {
    display: block;
    margin-bottom: 9px;
    color: var(--oracle-gold);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.oracle-question-wrap textarea,
.follow-up-form input,
.follow-up-form textarea,
.oracle-admin input,
.oracle-admin textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    outline: 0;
    background: rgba(255, 255, 255, 0.035);
    color: var(--oracle-text);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.oracle-question-wrap textarea {
    min-height: 146px;
    padding: 24px 64px 24px 24px;
    resize: vertical;
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.6;
}

.oracle-question-wrap textarea:focus,
.follow-up-form input:focus,
.follow-up-form textarea:focus,
.oracle-admin input:focus,
.oracle-admin textarea:focus {
    border-color: var(--oracle-gold);
    background: rgba(255, 255, 255, 0.055);
}

.question-count {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: #6f6a76;
    font-size: 10px;
}

.oracle-primary,
.oracle-quiet {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.oracle-primary {
    border: 1px solid var(--oracle-gold);
    background: var(--oracle-gold);
    color: #171109;
}

.oracle-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--oracle-gold-bright);
}

.oracle-primary:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.oracle-quiet {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--oracle-muted);
}

.oracle-quiet:hover {
    color: var(--oracle-text);
    background: rgba(255, 255, 255, 0.05);
}

.ritual-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
}

.deck-system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.deck-system {
    position: relative;
    min-height: 390px;
    display: grid;
    grid-template-rows: 210px 1fr;
    gap: 24px;
    padding: 30px;
    border: 0;
    border-radius: 0;
    background: #0d0c13;
    color: var(--oracle-text);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.deck-system > i {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #625d69;
    font-size: 20px;
}

.deck-system:hover,
.deck-system.selected {
    background: #15121c;
}

.deck-system.selected {
    box-shadow: inset 0 0 0 1px var(--oracle-gold);
}

.deck-visual {
    position: relative;
    width: 132px;
    height: 196px;
    display: grid;
    place-items: center;
    justify-self: center;
    border: 1px solid rgba(216, 185, 120, 0.52);
    border-radius: 6px;
    background: #171120;
    box-shadow: 18px 15px 0 -8px #08070c, 19px 16px 0 -8px rgba(216, 185, 120, 0.4);
    transform: rotate(-5deg);
    transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}

.deck-system:hover .deck-visual,
.deck-system.selected .deck-visual {
    transform: rotate(2deg) translateY(-8px);
}

.deck-marseille {
    background: #2e1918;
    border-color: #d98d65;
}

.deck-thoth {
    background: #10212b;
    border-color: #77c7d8;
}

.deck-sigil {
    position: relative;
    width: 72px;
    height: 72px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--oracle-gold);
}

.deck-sigil::before,
.deck-sigil::after {
    position: absolute;
    inset: 13px;
    border: 1px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.deck-sigil::after {
    inset: 24px;
    border-radius: 50%;
    transform: none;
}

.deck-copy {
    display: flex;
    flex-direction: column;
}

.deck-copy small {
    color: var(--oracle-gold);
    font-size: 10px;
    text-transform: uppercase;
}

.deck-copy strong {
    margin: 8px 0 12px;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 400;
}

.deck-copy > span {
    color: var(--oracle-muted);
    font-size: 13px;
    line-height: 1.65;
}

.shuffle-step {
    min-height: 620px;
}

.three-dealt-cards,
.reveal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: clamp(18px, 4vw, 70px);
    max-width: 980px;
    margin: 42px auto;
}

.dealt-card {
    display: grid;
    justify-items: center;
    gap: 18px;
    opacity: 0;
    transform: translateY(-80px) rotate(calc((var(--deal-index) - 1) * 7deg));
    animation: card-dealt 0.7s calc(var(--deal-index) * 0.22s) cubic-bezier(.2, .8, .2, 1) forwards;
}

.dealt-card-back,
.reveal-face {
    width: min(100%, 220px);
    aspect-ratio: 0.62;
    border: 1px solid rgba(216, 185, 120, 0.58);
    border-radius: 7px;
}

.dealt-card-back,
.reveal-back {
    position: relative;
    display: grid;
    place-items: center;
    background: #120e19;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.dealt-card-back::before,
.reveal-back::before {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(216, 185, 120, 0.34);
    border-radius: 4px;
    content: "";
}

.dealt-card-back span,
.back-moon {
    width: 82px;
    height: 82px;
    border: 1px solid var(--oracle-gold);
    border-radius: 50%;
    box-shadow: inset 18px 0 0 #120e19, inset 20px 0 0 rgba(216, 185, 120, 0.65);
}

.dealt-card-back b,
.reveal-back b {
    position: absolute;
    bottom: 28px;
    color: var(--oracle-gold);
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 400;
}

.dealt-card small {
    color: var(--oracle-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.fate-trigger {
    display: flex;
    margin: 55px auto 0;
}

.card-selection-counter {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--oracle-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.card-selection-counter strong {
    color: var(--oracle-gold-bright);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px;
    font-weight: 600;
}

.tarot-card-fan {
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1280px;
    margin: 14px auto 22px;
    padding: 70px 74px 36px;
    overflow-x: auto;
    overflow-y: hidden;
    perspective: 1200px;
    scrollbar-color: rgba(216, 185, 120, 0.3) transparent;
    scrollbar-width: thin;
}

.tarot-card-fan::-webkit-scrollbar {
    height: 5px;
}

.tarot-card-fan::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(216, 185, 120, 0.3);
}

.fan-card {
    position: relative;
    width: clamp(74px, 7.8vw, 116px);
    flex: 0 0 auto;
    margin-left: clamp(-58px, -3.9vw, -38px);
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
    transform: translateY(var(--fan-lift)) rotate(var(--fan-rotate));
    transform-origin: 50% 150%;
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1), filter 260ms ease, z-index 0s;
}

.fan-card:first-child {
    margin-left: 0;
}

.fan-card:hover,
.fan-card:focus-visible {
    z-index: 30;
    filter: brightness(1.18);
    transform: translateY(calc(var(--fan-lift) - 42px)) rotate(0deg) scale(1.08);
}

.fan-card.selected {
    z-index: 40;
    transform: translateY(calc(var(--fan-lift) - 62px)) rotate(0deg) scale(1.1);
}

.fan-card.selected::after {
    position: absolute;
    top: -20px;
    left: 50%;
    color: var(--oracle-gold-bright);
    content: "✦";
    font-size: 16px;
    text-shadow: 0 0 18px rgba(255, 221, 143, 0.92);
    transform: translateX(-50%);
    animation: selected-star 1.8s ease-in-out infinite;
}

.fan-card.chosen:not(.selected) {
    opacity: 0.28;
}

.fan-card-back {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 0.62;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(225, 193, 121, 0.68);
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 38%, rgba(100, 78, 151, 0.24), transparent 34%),
        linear-gradient(145deg, #11102a, #05091b 62%, #170d25);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.52);
}

.fan-card-back::before {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(225, 193, 121, 0.32);
    border-radius: 3px;
    content: "";
}

.fan-card.selected .fan-card-back {
    border-color: #f2d58e;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.58), 0 0 28px rgba(215, 176, 92, 0.3);
}

.fan-moon {
    width: 46%;
    aspect-ratio: 1;
    border: 1px solid var(--oracle-gold);
    border-radius: 50%;
    box-shadow: inset 10px 0 0 #090b20, inset 12px 0 0 rgba(216, 185, 120, 0.7);
}

.fan-card-back b,
.fan-card-back small {
    position: absolute;
    color: var(--oracle-gold);
    letter-spacing: 0;
}

.fan-card-back b {
    bottom: 16px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 10px;
}

.fan-card-back small {
    top: 13px;
    right: 13px;
    font-size: 8px;
}

.card-selection-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@keyframes selected-star {
    50% { opacity: 0.48; transform: translateX(-50%) scale(0.78); }
}

.fate-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(4, 4, 8, 0.88);
    backdrop-filter: blur(16px);
}

.fate-dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100svh - 44px);
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--oracle-line);
    border-radius: 6px;
    background: #0c0b12;
    text-align: center;
    overflow-y: auto;
}

.dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: transparent;
    color: var(--oracle-muted);
}

.fate-dialog h2 {
    max-width: 520px;
    margin: 0 auto 28px;
    font-family: Georgia, serif;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 400;
    line-height: 1.12;
}

.fate-wheel-3d {
    position: relative;
    width: min(310px, 72vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 20px auto 24px;
    border: 1px solid var(--oracle-gold);
    border-radius: 50%;
    background: #15111d;
    color: var(--oracle-gold-bright);
    box-shadow: inset 0 0 0 12px #0b0910, inset 0 0 0 13px rgba(216, 185, 120, 0.3), 0 36px 80px rgba(0, 0, 0, 0.55);
}

.fate-wheel-runes {
    position: absolute;
    inset: 26px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(216, 185, 120, 0.46);
    border-radius: 50%;
    font-size: 12px;
    word-spacing: 16px;
}

.fate-wheel-center {
    display: grid;
    gap: 5px;
}

.fate-wheel-center b {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 400;
}

.fate-wheel-center small {
    color: var(--oracle-muted);
    font-size: 9px;
}

.fate-wheel-3d.spinning {
    animation: fate-spin 1.2s cubic-bezier(.1, .7, .2, 1);
}

#fateNote,
.donation-view p,
.qr-view p {
    color: var(--oracle-muted);
    line-height: 1.65;
}

.donation-view > strong {
    display: block;
    margin: 18px 0;
    color: var(--oracle-gold-bright);
    font-family: Georgia, serif;
    font-size: clamp(44px, 8vw, 74px);
    font-weight: 400;
}

.donation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
}

.qr-image-wrap {
    width: min(290px, 70vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 20px auto;
    padding: 14px;
    background: #fff;
}

.qr-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    gap: 10px;
    color: #282331;
}

.qr-placeholder i {
    font-size: 90px;
}

.qr-placeholder span {
    font-size: 12px;
}

.reveal-grid {
    max-width: 1180px;
    align-items: start;
}

.reveal-item {
    min-width: 0;
}

.reveal-card {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    perspective: 1400px;
}

.reveal-card-inner {
    position: relative;
    width: min(100%, 250px);
    aspect-ratio: 0.62;
    display: block;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(.2, .75, .2, 1);
}

.reveal-card:hover:not(.revealed) .reveal-card-inner {
    transform: translateY(-8px) rotateY(-7deg);
}

.reveal-card.revealed .reveal-card-inner {
    transform: rotateY(180deg);
}

.reveal-card.reading .reveal-card-inner {
    animation: oracle-pulse 1s ease-in-out infinite;
}

.reveal-face {
    position: absolute;
    inset: 0;
    width: 100%;
    backface-visibility: hidden;
}

.reveal-front {
    display: flex;
    flex-direction: column;
    padding: 7px;
    background: #e7dfd0;
    color: #17131a;
    transform: rotateY(180deg);
}

.reveal-front.reversed img {
    transform: rotate(180deg);
}

.reveal-front img {
    width: 100%;
    min-height: 0;
    flex: 1;
    object-fit: cover;
}

.reveal-front span {
    padding: 8px 4px 2px;
    font-family: Georgia, serif;
    font-size: 15px;
    text-align: center;
}

.reveal-copy {
    margin-top: 28px;
}

.reveal-copy small {
    color: var(--oracle-gold);
    font-size: 10px;
    text-transform: uppercase;
}

.reveal-copy h3 {
    min-height: 34px;
    margin: 9px 0 17px;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 400;
}

.reveal-reading {
    color: #c4beca;
    font-size: 14px;
    line-height: 1.75;
}

.reveal-reading p {
    margin: 0 0 16px;
}

.closing-message {
    max-width: 820px;
    margin: 78px auto 0;
    padding: 32px 0;
    border-top: 1px solid var(--oracle-line);
    border-bottom: 1px solid var(--oracle-line);
    color: #ddd5e0;
    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.55;
    text-align: center;
}

.follow-up-form {
    max-width: 780px;
    display: grid;
    gap: 20px;
    margin: 74px auto 0;
    padding: 36px;
    border: 1px solid var(--oracle-line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.follow-up-form h3 {
    margin: 0 0 8px;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 400;
}

.follow-up-form p {
    color: var(--oracle-muted);
}

.follow-up-form input {
    height: 48px;
    padding: 0 14px;
}

.follow-up-form textarea {
    min-height: 120px;
    padding: 14px;
    resize: vertical;
}

.follow-up-thanks {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
}

.follow-up-thanks i {
    color: var(--oracle-gold);
    font-size: 42px;
}

.free-limit-notice,
.reading-complete-actions {
    border: 1px solid rgba(216, 185, 120, 0.28);
    background:
        radial-gradient(circle at top left, rgba(216, 185, 120, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.035);
}

.free-limit-notice {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding: 24px;
    border-radius: 10px;
}

.free-limit-notice h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 400;
}

.free-limit-notice p {
    max-width: 720px;
    color: var(--oracle-muted);
    line-height: 1.7;
}

.free-limit-actions,
.reading-complete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.reading-complete-actions {
    justify-content: center;
    margin-top: 34px;
    padding: 18px;
    border-radius: 999px;
}

.oracle-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    max-width: 390px;
    padding: 14px 18px;
    border: 1px solid rgba(216, 185, 120, 0.45);
    border-radius: 4px;
    background: #15121b;
    color: var(--oracle-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-size: 13px;
}

.oracle-toast.error {
    border-color: rgba(212, 117, 140, 0.6);
}

body.oracle-modal-open {
    overflow: hidden;
}

@keyframes ritual-arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes oracle-breathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes card-dealt {
    to { opacity: 1; transform: translateY(0) rotate(calc((var(--deal-index) - 1) * 3deg)); }
}

@keyframes fate-spin {
    from { transform: rotate(0); }
    to { transform: rotate(1080deg); }
}

@keyframes oracle-pulse {
    50% { transform: translateY(-7px) scale(1.015); }
}

@media (max-width: 900px) {
    .yodes-topbar {
        grid-template-columns: 1fr auto;
        padding: 0 18px;
    }

    .yodes-nav {
        display: none;
    }

    .oracle-hero {
        min-height: calc(100svh - 84px);
        grid-template-columns: 1fr;
        align-content: center;
        padding: 56px 22px 100px;
    }

    .oracle-hero h1 {
        font-size: clamp(48px, 14vw, 78px);
    }

    .element-compass {
        max-width: 620px;
    }

    .oracle-vignette {
        background: linear-gradient(180deg, rgba(7, 7, 13, 0.82) 0%, rgba(7, 7, 13, 0.48) 42%, rgba(7, 7, 13, 0.88) 100%);
    }

    .topic-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .topic-option:last-child {
        grid-column: 1 / -1;
    }

    .deck-system-grid {
        grid-template-columns: 1fr;
    }

    .deck-system {
        min-height: 250px;
        grid-template-columns: 150px 1fr;
        grid-template-rows: 1fr;
        align-items: center;
    }

    .deck-visual {
        width: 105px;
        height: 160px;
    }

    .three-dealt-cards,
    .reveal-grid {
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .yodes-topbar {
        height: 58px;
    }

    .yodes-brand > span:last-child {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .oracle-app {
        padding-top: 58px;
    }

    .oracle-hero {
        padding-top: 40px;
    }

    .oracle-hero-copy > p {
        font-size: 14px;
    }

    .element-token {
        min-height: 86px;
        grid-template-columns: 26px 1fr;
        padding: 13px;
    }

    .element-token i {
        font-size: 20px;
    }

    .element-token span {
        font-size: 17px;
    }

    .ritual-section {
        padding: 64px 16px 90px;
    }

    .ritual-progress {
        margin-bottom: 54px;
    }

    .ritual-progress span {
        min-width: 0;
        font-size: 0;
    }

    .ritual-progress span::after {
        font-size: 10px;
        content: attr(data-progress);
    }

    .topic-option {
        min-height: 70px;
        padding: 14px;
    }

    .oracle-question-wrap textarea {
        min-height: 132px;
        padding: 18px 50px 18px 16px;
        font-size: 17px;
    }

    .deck-system {
        min-height: 220px;
        grid-template-columns: 112px 1fr;
        gap: 12px;
        padding: 20px;
    }

    .deck-visual {
        width: 82px;
        height: 128px;
    }

    .deck-sigil {
        width: 48px;
        height: 48px;
    }

    .deck-copy strong {
        font-size: 21px;
    }

    .deck-copy > span {
        font-size: 12px;
    }

    .three-dealt-cards,
    .reveal-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .dealt-card-back,
    .reveal-card-inner {
        width: 190px;
    }

    .reveal-item {
        display: grid;
        justify-items: center;
    }

    .reveal-copy {
        width: 100%;
        max-width: 520px;
    }

    .donation-actions {
        grid-template-columns: 1fr;
    }

    .fate-dialog {
        padding: 46px 20px 26px;
    }

    .follow-up-form {
        padding: 22px;
    }

    .oracle-toast {
        right: 14px;
        bottom: 14px;
        left: 14px;
        max-width: none;
    }
}

.oracle-admin {
    min-height: 100vh;
    padding: 120px clamp(20px, 5vw, 76px) 90px;
    background: #09080e;
}

.oracle-admin-header {
    max-width: 1400px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto 70px;
}

.oracle-admin-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 400;
}

.oracle-admin-header p,
.oracle-admin-section-title p {
    color: var(--oracle-muted);
}

.oracle-admin-alert {
    max-width: 1400px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    border: 1px solid var(--oracle-line);
    border-radius: 4px;
}

.oracle-admin-alert.success { border-color: rgba(115, 199, 218, 0.5); }
.oracle-admin-alert.error { border-color: rgba(212, 117, 140, 0.6); }

.oracle-admin-section {
    max-width: 1400px;
    margin: 0 auto 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 28px;
}

.oracle-admin-section-title {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.oracle-admin-section-title > span {
    color: var(--oracle-gold);
    font-size: 12px;
}

.oracle-admin-section-title h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
}

.oracle-settings-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-left: 70px;
}

.oracle-settings-form label {
    display: grid;
    gap: 8px;
}

.oracle-settings-form label > span {
    color: var(--oracle-gold);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.oracle-settings-form .wide {
    grid-column: 1 / -1;
}

.oracle-settings-form input {
    height: 48px;
    padding: 0 14px;
}

.oracle-settings-form textarea {
    min-height: 96px;
    padding: 14px;
    resize: vertical;
}

.oracle-settings-submit {
    grid-column: 1 / -1;
}

.oracle-reading-list {
    margin-left: 70px;
}

.oracle-reading-row {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reading-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.reading-row-head small {
    color: var(--oracle-gold);
    font-size: 10px;
    text-transform: uppercase;
}

.reading-row-head h3 {
    margin: 7px 0 0;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 400;
}

.reading-status {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    color: var(--oracle-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.reading-question {
    max-width: 900px;
    margin: 18px 0;
    color: #d5cfda;
    font-size: 15px;
    line-height: 1.65;
}

.reading-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
}

.reading-meta > div {
    min-width: 0;
    padding: 12px;
    background: #0d0c13;
}

.reading-meta dt {
    color: #77717d;
    font-size: 9px;
    text-transform: uppercase;
}

.reading-meta dd {
    margin: 5px 0 0;
    color: #bdb6c3;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.follow-up-admin {
    margin-top: 24px;
    padding: 24px;
    border-left: 2px solid var(--oracle-gold);
    background: rgba(216, 185, 120, 0.045);
}

.follow-up-admin > strong {
    color: var(--oracle-gold-bright);
}

.follow-up-admin > p {
    margin: 10px 0 18px;
    color: #d3ccd8;
}

.follow-up-admin form {
    display: grid;
    gap: 12px;
}

.follow-up-admin textarea {
    min-height: 150px;
    padding: 14px;
    resize: vertical;
}

.follow-up-admin button {
    justify-self: start;
}

.oracle-admin-empty {
    padding: 50px 0;
    color: var(--oracle-muted);
}

@media (max-width: 780px) {
    .oracle-admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .oracle-settings-form,
    .oracle-reading-list {
        margin-left: 0;
    }

    .oracle-settings-form {
        grid-template-columns: 1fr;
    }

    .oracle-settings-form .wide,
    .oracle-settings-submit {
        grid-column: 1;
    }

    .reading-meta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* YODES Tarot */
:root {
    --yodes-bg: #050509;
    --yodes-panel: rgba(16, 13, 25, .78);
    --yodes-line: rgba(245, 207, 132, .18);
    --yodes-gold: #f2c66d;
    --yodes-violet: #9b6cff;
    --yodes-cyan: #76e4ff;
    --yodes-rose: #ff6f91;
    --yodes-text: #f8f1e4;
    --yodes-muted: #a9a0b8;
}

html[data-bs-theme="dark"] body.yodes-shell {
    min-height: 100vh;
    color: var(--yodes-text);
    background:
        linear-gradient(115deg, rgba(155, 108, 255, .14), transparent 36%),
        linear-gradient(245deg, rgba(118, 228, 255, .08), transparent 34%),
        linear-gradient(180deg, #050509 0%, #0b0812 52%, #06050b 100%);
    overflow-x: hidden;
}

.yodes-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .26;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .18));
}

.yodes-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    min-height: 72px;
    padding: 14px clamp(18px, 4vw, 58px);
    background: rgba(5, 5, 9, .62);
    border-bottom: 1px solid rgba(245, 207, 132, .12);
    backdrop-filter: blur(18px);
}

.yodes-brand,
.yodes-nav a,
.yodes-login-link {
    color: var(--yodes-text);
    text-decoration: none;
}

.yodes-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 850;
}

.yodes-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(242, 198, 109, .55);
    background: linear-gradient(145deg, rgba(242, 198, 109, .22), rgba(155, 108, 255, .28));
    color: var(--yodes-gold);
}

.yodes-nav {
    display: flex;
    justify-content: center;
    gap: clamp(14px, 3vw, 36px);
    font-size: .92rem;
}

.yodes-nav a {
    color: var(--yodes-muted);
}

.yodes-nav a:hover,
.yodes-login-link:hover {
    color: var(--yodes-gold);
}

.yodes-account {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 44px;
    justify-content: flex-end;
}

.yodes-avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 1px solid rgba(118, 228, 255, .42);
}

.yodes-avatar-fallback {
    display: grid;
    place-items: center;
    background: rgba(118, 228, 255, .16);
    color: var(--yodes-cyan);
    font-weight: 800;
}

.yodes-icon-button,
.yodes-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(245, 207, 132, .2);
    background: rgba(255, 255, 255, .04);
    color: var(--yodes-text);
}

.yodes-icon-button {
    width: 38px;
    padding: 0;
}

/* floating "Về trang chủ" pill on every inner page (hidden on the 3D home) */
.yodes-home-fab {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px 11px 15px;
    border: 1px solid rgba(245, 207, 132, .35);
    border-radius: 999px;
    background: rgba(12, 10, 22, .82);
    backdrop-filter: blur(14px);
    color: #f0d79a;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .45), 0 0 18px rgba(124, 92, 255, .18);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.yodes-home-fab i {
    font-size: 1.05rem;
}

.yodes-home-fab:hover {
    color: #fff0c8;
    border-color: rgba(245, 207, 132, .65);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 26px rgba(124, 92, 255, .32);
}

.tarot-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 112px clamp(16px, 4vw, 64px) 60px;
}

.tarot-scene {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: .72;
}

.tarot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(24px, 5vw, 72px);
    align-items: end;
    min-height: min(680px, calc(100vh - 126px));
}

.tarot-hero {
    max-width: 760px;
    padding-bottom: 48px;
}

.tarot-kicker {
    color: var(--yodes-cyan);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tarot-hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(4rem, 10vw, 9.5rem);
    line-height: .86;
    font-weight: 950;
    color: var(--yodes-text);
    text-shadow: 0 12px 44px rgba(155, 108, 255, .42);
}

.tarot-copy {
    max-width: 640px;
    color: #d9d0e4;
    font-size: 1.05rem;
    line-height: 1.7;
}

.tarot-ritual-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin-top: 26px;
    padding: 0 16px;
    border: 1px solid rgba(118, 228, 255, .24);
    background: rgba(7, 12, 20, .6);
    color: var(--yodes-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--yodes-cyan);
    box-shadow: 0 0 18px var(--yodes-cyan);
}

.fate-panel,
.reading-workbench,
.reading-result {
    border: 1px solid var(--yodes-line);
    background: linear-gradient(180deg, rgba(19, 15, 31, .82), rgba(9, 8, 15, .72));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
    backdrop-filter: blur(18px);
}

.fate-panel {
    padding: 26px;
}

.panel-heading h2,
.result-copy h2 {
    margin: 6px 0 0;
    font-size: 1.35rem;
}

.fate-wheel-wrap {
    display: grid;
    place-items: center;
    min-height: 320px;
}

.fate-wheel {
    position: relative;
    display: grid;
    place-items: center;
    width: min(270px, 72vw);
    aspect-ratio: 1;
    border: 0;
    color: var(--yodes-text);
    background: conic-gradient(from 20deg, #f2c66d, #ff6f91, #9b6cff, #76e4ff, #f2c66d);
    clip-path: polygon(50% 0, 63% 18%, 84% 16%, 82% 37%, 100% 50%, 82% 63%, 84% 84%, 63% 82%, 50% 100%, 37% 82%, 16% 84%, 18% 63%, 0 50%, 18% 37%, 16% 16%, 37% 18%);
    transition: transform .35s ease;
}

.fate-wheel:hover {
    transform: translateY(-4px) rotate(4deg);
}

.fate-wheel.spinning {
    animation: fateSpin .8s cubic-bezier(.2, .72, .2, 1) infinite;
}

.wheel-ring {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(5, 5, 9, .72);
    clip-path: inherit;
}

.wheel-core {
    display: grid;
    place-items: center;
    width: 48%;
    aspect-ratio: 1;
    background: rgba(5, 5, 9, .86);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 34px rgba(155, 108, 255, .28);
}

.wheel-core span {
    font-size: 1.45rem;
    font-weight: 900;
}

.wheel-core small {
    color: var(--yodes-muted);
}

.fate-code {
    min-height: 28px;
    color: var(--yodes-gold);
    text-align: center;
    font-weight: 700;
}

.reading-workbench {
    margin-top: 28px;
    padding: 22px;
}

.topic-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.topic-chip,
.read-button {
    min-height: 42px;
    border: 1px solid rgba(245, 207, 132, .2);
    background: rgba(255, 255, 255, .045);
    color: var(--yodes-text);
    padding: 0 16px;
    white-space: nowrap;
}

.topic-chip.active {
    color: #100b13;
    background: var(--yodes-gold);
    border-color: var(--yodes-gold);
    font-weight: 800;
}

.question-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 14px 0 22px;
}

.question-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(118, 228, 255, .22);
    background: rgba(0, 0, 0, .25);
    color: var(--yodes-text);
    padding: 0 16px;
}

.question-input:focus {
    outline: 2px solid rgba(118, 228, 255, .45);
    outline-offset: 2px;
}

.read-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    background: linear-gradient(135deg, var(--yodes-violet), var(--yodes-rose));
    border: 0;
    font-weight: 850;
}

.read-button:disabled {
    opacity: .46;
}

.read-button.loading i {
    animation: fateSpin 1s linear infinite;
}

.spread-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
    gap: 16px;
}

.tarot-card-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3.35;
    padding: 0;
    border: 0;
    background: transparent;
    perspective: 900px;
}

.tarot-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateZ(var(--tilt)) rotateY(0deg);
    transition: transform .5s ease, filter .3s ease;
}

.tarot-card-shell:hover .tarot-card-inner,
.tarot-card-shell.selected .tarot-card-inner {
    transform: translateY(-8px) rotateZ(0deg) rotateY(180deg);
}

.tarot-card-shell.selected .tarot-card-inner {
    filter: drop-shadow(0 0 24px rgba(242, 198, 109, .48));
}

.tarot-card-face {
    position: absolute;
    inset: 0;
    display: grid;
    overflow: hidden;
    backface-visibility: hidden;
    border: 1px solid rgba(245, 207, 132, .32);
    background: #130f1c;
}

.tarot-card-front {
    transform: rotateY(180deg);
}

.tarot-card-front img,
.opened-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarot-card-back {
    place-items: center;
    background:
        linear-gradient(45deg, rgba(245, 207, 132, .12) 25%, transparent 25%, transparent 75%, rgba(245, 207, 132, .12) 75%),
        linear-gradient(135deg, rgba(118, 228, 255, .1), rgba(155, 108, 255, .2)),
        #100d18;
    background-size: 18px 18px, auto, auto;
}

.back-sigil {
    width: 44%;
    aspect-ratio: 1;
    border: 2px solid var(--yodes-gold);
    transform: rotate(45deg);
    box-shadow: inset 0 0 18px rgba(242, 198, 109, .25);
}

.back-title,
.card-name {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    min-height: 24px;
    color: var(--yodes-gold);
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
}

.card-name {
    background: rgba(5, 5, 9, .72);
    color: var(--yodes-text);
}

.reading-result {
    display: grid;
    grid-template-columns: minmax(240px, 430px) 1fr;
    gap: clamp(18px, 4vw, 42px);
    margin-top: 28px;
    padding: 24px;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-content: start;
}

.opened-card {
    margin: 0;
    min-width: 0;
}

.opened-card img {
    aspect-ratio: 2 / 3.35;
    border: 1px solid rgba(245, 207, 132, .34);
    box-shadow: 0 22px 42px rgba(0, 0, 0, .34);
}

.opened-card.reversed img {
    transform: rotate(180deg);
}

.opened-card figcaption {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    color: var(--yodes-muted);
    font-size: .78rem;
}

.opened-card strong {
    color: var(--yodes-gold);
}

.result-copy {
    min-width: 0;
}

.reading-text {
    color: #e7ddec;
    line-height: 1.78;
    font-size: 1rem;
}

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

@media (max-width: 900px) {
    .yodes-topbar {
        grid-template-columns: auto auto;
    }

    .yodes-nav {
        display: none;
    }

    .tarot-grid,
    .reading-result {
        grid-template-columns: 1fr;
    }

    .tarot-hero {
        padding-bottom: 0;
    }

    .question-row {
        grid-template-columns: 1fr;
    }

    .result-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tarot-stage {
        padding: 96px 12px 42px;
    }

    .tarot-hero h1 {
        font-size: 4rem;
    }

    .spread-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .reading-workbench,
    .reading-result,
    .fate-panel {
        padding: 16px;
    }
}

/* Oracle rules intentionally win over the retired first-pass Tarot shell. */
html[data-bs-theme="dark"] body.yodes-shell {
    background: #07070d !important;
    color: var(--oracle-text);
}

body.yodes-shell::before,
body.yodes-shell::after {
    display: none !important;
}

body.yodes-shell .yodes-noise {
    z-index: 20;
    opacity: 0.035;
    background-size: auto;
    mask-image: none;
}

body.yodes-shell .yodes-topbar {
    z-index: 50;
    min-height: 68px;
    height: 68px;
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    gap: 0;
    padding: 0 28px;
    background: rgba(7, 7, 13, 0.76);
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

body.yodes-shell .yodes-brand {
    width: fit-content;
    gap: 11px;
    font-size: 12px;
    font-weight: 800;
}

body.yodes-shell .yodes-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    color: var(--oracle-gold-bright);
}

body.yodes-shell .yodes-nav {
    justify-content: initial;
    gap: 28px;
    font-size: 12px;
}

body.yodes-shell .yodes-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

body.yodes-shell .yodes-icon-button,
body.yodes-shell .yodes-login-link {
    min-height: 36px;
    border-radius: 4px;
}

body.yodes-shell > main {
    padding-top: 68px;
}

body.yodes-shell > main > .oracle-app {
    margin-top: -68px;
}

@media (max-width: 900px) {
    body.yodes-shell .yodes-topbar {
        grid-template-columns: 1fr auto;
        padding: 0 18px;
    }

    body.yodes-shell .yodes-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    body.yodes-shell .yodes-topbar {
        height: 58px;
        min-height: 58px;
    }

    body.yodes-shell > main {
        padding-top: 58px;
    }

    body.yodes-shell > main > .oracle-app {
        margin-top: -58px;
    }
}

/* Tarot visual language */
body.yodes-shell,
body.yodes-shell button,
body.yodes-shell input,
body.yodes-shell textarea {
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

body.yodes-shell .yodes-brand-mark,
body.yodes-shell .oracle-hero h1,
body.yodes-shell .ritual-heading h2,
body.yodes-shell .element-token span,
body.yodes-shell .dealt-card-back b,
body.yodes-shell .reveal-back b,
body.yodes-shell .reveal-front span,
body.yodes-shell .reveal-copy h3,
body.yodes-shell .closing-message,
body.yodes-shell .follow-up-form h3,
body.yodes-shell .fate-dialog h2,
body.yodes-shell .fate-wheel-center b,
body.yodes-shell .donation-view > strong,
body.yodes-shell .oracle-admin h1,
body.yodes-shell .oracle-admin h2,
body.yodes-shell .oracle-admin h3 {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
}

body.yodes-shell .oracle-hero h1 {
    font-size: 104px;
    font-weight: 600;
    line-height: 0.9;
}

body.yodes-shell .ritual-heading h2 {
    font-size: 62px;
    font-weight: 600;
    line-height: 1;
}

body.yodes-shell .oracle-question-wrap textarea {
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

body.yodes-shell .oracle-canvas {
    background:
        radial-gradient(ellipse at 73% 36%, rgba(91, 93, 170, 0.23), transparent 30%),
        radial-gradient(ellipse at 24% 72%, rgba(88, 42, 132, 0.13), transparent 34%),
        radial-gradient(ellipse at 55% 48%, rgba(18, 77, 128, 0.1), transparent 48%),
        #020616;
}

body.yodes-shell .oracle-vignette {
    background:
        radial-gradient(ellipse at 72% 44%, rgba(245, 205, 124, 0.06), transparent 28%),
        radial-gradient(ellipse at 70% 50%, transparent 0%, rgba(2, 5, 16, 0.2) 44%, rgba(1, 2, 8, 0.82) 100%),
        linear-gradient(90deg, rgba(2, 6, 22, 0.98) 0%, rgba(2, 6, 22, 0.78) 34%, rgba(2, 6, 22, 0.08) 72%, rgba(2, 6, 22, 0.28) 100%),
        linear-gradient(180deg, rgba(2, 6, 22, 0.08), rgba(2, 4, 16, 0.58));
}

body.yodes-shell .oracle-app::before {
    position: fixed;
    inset: 68px 0 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 72% 34%, rgba(105, 92, 178, 0.12), transparent 26%),
        radial-gradient(ellipse at 62% 68%, rgba(49, 121, 145, 0.08), transparent 32%),
        radial-gradient(ellipse at 34% 40%, rgba(86, 58, 136, 0.075), transparent 34%);
    filter: blur(18px);
    content: "";
}

body.yodes-shell .oracle-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
    gap: clamp(28px, 4vw, 60px);
    max-width: 1260px;
}

body.yodes-shell .oracle-hero-copy {
    min-width: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.36);
}

body.yodes-shell .element-compass {
    position: relative;
    z-index: 3;
    width: min(100%, 350px);
    max-width: 350px;
    align-self: end;
    margin-left: auto;
    transform: translate(28px, 54px);
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(216, 185, 120, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 12%, rgba(185, 232, 242, 0.16), transparent 28%),
        radial-gradient(circle at 82% 88%, rgba(239, 117, 109, 0.13), transparent 30%),
        rgba(4, 4, 10, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 22px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

body.yodes-shell .element-token {
    position: relative;
    min-height: 92px;
    grid-template-columns: 34px 1fr;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(5, 5, 12, 0.6);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.yodes-shell .element-token::before {
    position: absolute;
    inset: -35% auto auto -28%;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--element-glow, rgba(216, 185, 120, 0.16));
    filter: blur(18px);
    opacity: 0.58;
    content: "";
}

body.yodes-shell .element-token:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 205, 124, 0.28);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.032)),
        rgba(8, 8, 18, 0.74);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.24),
        0 0 28px var(--element-glow, rgba(216, 185, 120, 0.16));
}

body.yodes-shell .element-token i,
body.yodes-shell .element-token span,
body.yodes-shell .element-token small {
    position: relative;
    z-index: 1;
}

body.yodes-shell .element-token i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 23px;
}

body.yodes-shell .element-token span {
    font-size: 26px;
    line-height: 0.92;
}

body.yodes-shell .element-token small {
    margin-top: 6px;
    font-size: 11px;
}

body.yodes-shell .element-air { --element-glow: rgba(185, 232, 242, 0.24); }
body.yodes-shell .element-water { --element-glow: rgba(108, 166, 239, 0.22); }
body.yodes-shell .element-earth { --element-glow: rgba(216, 185, 120, 0.22); }
body.yodes-shell .element-fire { --element-glow: rgba(239, 117, 109, 0.22); }

body.yodes-shell .question-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body.yodes-shell .active-deck-note {
    color: var(--oracle-gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

body.yodes-shell .ritual-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.yodes-shell .fate-wheel-3d {
    width: min(310px, 72vw);
    border-color: var(--oracle-gold);
    background: #15111d;
    box-shadow:
        inset 0 0 0 12px #0b0910,
        inset 0 0 0 13px rgba(216, 185, 120, 0.3),
        0 36px 80px rgba(0, 0, 0, 0.55);
    transform: none;
}

body.yodes-shell .fate-wheel-runes {
    position: absolute;
    inset: 26px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(216, 185, 120, 0.46);
    border-radius: 50%;
    color: var(--oracle-gold-bright);
    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    word-spacing: 13px;
}

body.yodes-shell .fate-wheel-center {
    z-index: 2;
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
}

body.yodes-shell .fate-wheel-3d.spinning {
    animation: fate-spin 1.2s cubic-bezier(.1, .7, .2, 1);
}

body.yodes-shell .ritual-section {
    background:
        linear-gradient(180deg, rgba(3, 8, 27, 0.72), rgba(8, 5, 24, 0.78)),
        radial-gradient(ellipse at 75% 20%, rgba(66, 62, 146, 0.12), transparent 42%);
    backdrop-filter: blur(9px);
}

body.yodes-shell .fate-overlay {
    background: rgba(4, 4, 8, 0.88);
}

body.yodes-shell .fate-dialog {
    background: #0c0b12;
}

body.yodes-shell .tarot-card-art {
    position: relative;
    min-height: 0;
    flex: 1;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 1px solid rgba(216, 185, 120, 0.55);
    background:
        linear-gradient(rgba(8, 7, 14, 0.2), rgba(8, 7, 14, 0.7)),
        repeating-conic-gradient(from 20deg, rgba(216, 185, 120, 0.1) 0 8deg, transparent 8deg 30deg),
        #160f20;
    color: #f1d89c;
    text-align: center;
    overflow: hidden;
}

body.yodes-shell .tarot-card-art::before,
body.yodes-shell .tarot-card-art::after {
    position: absolute;
    inset: 11%;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.36;
    content: "";
}

body.yodes-shell .tarot-card-art::after {
    inset: 23%;
    transform: rotate(45deg);
    border-radius: 0;
}

body.yodes-shell .tarot-card-art i,
body.yodes-shell .tarot-card-art b,
body.yodes-shell .tarot-card-art small {
    position: relative;
    z-index: 1;
}

body.yodes-shell .tarot-card-art i {
    font-family: "Cormorant Garamond", serif;
    font-size: 74px;
    font-style: normal;
    line-height: 1;
}

body.yodes-shell .tarot-card-art b {
    font-size: 10px;
}

body.yodes-shell .tarot-card-art small {
    font-size: 9px;
    text-transform: uppercase;
}

body.yodes-shell .tarot-card-art.element-water { color: #92c9ef; background-color: #101b2c; }
body.yodes-shell .tarot-card-art.element-air { color: #bee7e6; background-color: #122126; }
body.yodes-shell .tarot-card-art.element-earth { color: #d7bd77; background-color: #211c12; }
body.yodes-shell .tarot-card-art.element-fire { color: #ef9780; background-color: #2a1415; }

.usage-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -18px 0 34px;
    padding: 18px 20px;
    border: 1px solid rgba(216, 185, 120, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(216, 185, 120, 0.09), rgba(110, 85, 184, 0.08)),
        rgba(9, 8, 16, 0.78);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.usage-mini-card strong {
    display: block;
    margin: 4px 0 3px;
    color: var(--oracle-text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
    line-height: 1.1;
}

.usage-mini-card p {
    margin: 0;
    color: var(--oracle-muted);
    font-size: 13px;
}

.free-limit-actions,
.reading-complete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reading-snapshot-canvas {
    display: none;
}

.upsell-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(3, 3, 8, 0.82);
    backdrop-filter: blur(12px);
}

.upsell-modal[hidden] {
    display: none;
}

.upsell-dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 34px;
    border: 1px solid rgba(216, 185, 120, 0.25);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 0, rgba(216, 185, 120, 0.13), transparent 32%),
        #090812;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

.upsell-dialog h2 {
    max-width: 720px;
    margin: 8px 0 26px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 0.95;
}

.upsell-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.upsell-plan {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(216, 185, 120, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.upsell-plan.featured {
    border-color: rgba(245, 205, 124, 0.58);
    background: linear-gradient(180deg, rgba(245, 205, 124, 0.12), rgba(255, 255, 255, 0.035));
}

.upsell-plan h3 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
}

.upsell-plan strong {
    color: var(--oracle-gold-bright);
    font-size: 22px;
}

.upsell-plan ul {
    min-height: 112px;
    margin: 0;
    padding-left: 18px;
    color: var(--oracle-muted);
}

.seo-hub-panel,
.seo-page-header,
.seo-content-block,
.seo-internal-links {
    padding: 28px;
    border: 1px solid rgba(216, 185, 120, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
}

.seo-hub-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.seo-hub-panel h2,
.seo-page-header h1,
.seo-section-heading h2,
.seo-card-hero h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
}

.seo-page-header {
    margin-bottom: 34px;
}

.seo-page-header h1 {
    max-width: 900px;
    margin: 10px 0;
    font-size: clamp(48px, 8vw, 86px);
    line-height: 0.94;
}

.seo-page-header p {
    max-width: 760px;
    color: var(--oracle-muted);
    font-size: 18px;
}

.seo-deck-grid,
.seo-card-grid,
.seo-meaning-grid,
.seo-numbered-list {
    display: grid;
    gap: 18px;
}

.seo-deck-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 42px;
}

.seo-deck-card,
.seo-card-item,
.seo-numbered-list article {
    border: 1px solid rgba(216, 185, 120, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.seo-deck-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.seo-deck-card div,
.seo-card-item div {
    padding: 18px;
}

.seo-deck-card small,
.seo-card-item small {
    color: var(--oracle-gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.seo-card-section {
    margin: 44px 0;
}

.seo-section-heading {
    max-width: 780px;
    margin-bottom: 20px;
}

.seo-section-heading p,
.seo-content-block p,
.seo-cluster-page p {
    color: var(--oracle-muted);
}

.seo-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-card-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-card-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 14px;
    background: rgba(0, 0, 0, 0.18);
}

.seo-card-item h3 {
    margin: 8px 0;
    font-size: 20px;
}

.seo-card-detail {
    max-width: 1080px;
    margin: 0 auto;
}

.seo-card-hero {
    display: grid;
    grid-template-columns: 1.1fr 340px;
    gap: 34px;
    align-items: center;
    margin-bottom: 32px;
}

.seo-card-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42));
}

.seo-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-keyword-list span {
    padding: 7px 11px;
    border: 1px solid rgba(216, 185, 120, 0.2);
    border-radius: 999px;
    color: var(--oracle-gold-bright);
    font-size: 12px;
}

.seo-meaning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px 0;
}

.seo-meaning-grid > div {
    padding: 24px;
    border: 1px solid rgba(216, 185, 120, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.seo-numbered-list {
    margin: 24px 0;
}

.seo-numbered-list article {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    padding: 22px;
}

.seo-numbered-list span {
    color: var(--oracle-gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 38px;
}

.seo-faq-list {
    display: grid;
    gap: 12px;
}

.seo-faq-list details {
    padding: 18px;
    border: 1px solid rgba(216, 185, 120, 0.14);
    border-radius: 14px;
}

.seo-faq-list summary {
    cursor: pointer;
    color: var(--oracle-text);
    font-weight: 700;
}

.seo-internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.seo-internal-links h2 {
    flex-basis: 100%;
}

.seo-internal-links a {
    padding: 9px 12px;
    border: 1px solid rgba(216, 185, 120, 0.18);
    border-radius: 999px;
}

body.yodes-shell .oracle-admin-header {
    align-items: center;
    min-height: 180px;
}

body.yodes-shell .oracle-admin-header > div {
    min-width: 0;
}

body.yodes-shell .oracle-admin-header h1 {
    font-size: 76px;
    line-height: 1;
}

body.yodes-shell .oracle-admin-header p {
    margin: 14px 0 0;
}

@keyframes zodiac-fate-spin {
    from { transform: perspective(900px) rotateX(4deg) rotateZ(0); }
    to { transform: perspective(900px) rotateX(4deg) rotateZ(1080deg); }
}

@media (max-width: 900px) {
    body.yodes-shell .oracle-hero {
        grid-template-columns: 1fr;
    }

    body.yodes-shell .oracle-hero h1 {
        font-size: 76px;
    }

    body.yodes-shell .ritual-heading h2 {
        font-size: 50px;
    }

    body.yodes-shell .element-compass {
        margin-left: 0;
        width: 100%;
        max-width: 620px;
        transform: none;
    }

    .usage-mini-card,
    .seo-hub-panel,
    .seo-card-hero {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .upsell-plan-grid,
    .seo-deck-grid,
    .seo-card-grid,
    .seo-card-grid.compact,
    .seo-meaning-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    body.yodes-shell .oracle-admin-header {
        align-items: flex-start;
        min-height: auto;
    }

    body.yodes-shell .oracle-admin-header h1 {
        font-size: 48px;
    }

    body.yodes-shell .oracle-hero h1 {
        font-size: 56px;
        line-height: 0.94;
    }

    body.yodes-shell .ritual-heading h2 {
        font-size: 40px;
        line-height: 1.05;
    }

    body.yodes-shell .question-action {
        align-items: stretch;
        flex-direction: column;
    }

    body.yodes-shell .question-action .oracle-primary {
        width: 100%;
    }

    .usage-mini-card .oracle-quiet,
    .free-limit-actions .oracle-primary,
    .free-limit-actions .oracle-quiet,
    .reading-complete-actions .oracle-primary,
    .reading-complete-actions .oracle-quiet {
        width: 100%;
        justify-content: center;
    }

    .upsell-dialog {
        padding: 24px 18px;
    }

    .upsell-plan-grid,
    .seo-deck-grid,
    .seo-card-grid,
    .seo-card-grid.compact,
    .seo-meaning-grid,
    .seo-numbered-list article {
        grid-template-columns: 1fr;
    }

    .seo-card-item {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .seo-card-item img {
        height: 100%;
        min-height: 160px;
    }

}

/* Tarot interview flow and admin tabs */
.oracle-admin-tabs {
    max-width: 1400px;
    display: flex;
    gap: 2px;
    margin: -34px auto 42px;
    border-bottom: 1px solid rgba(216, 185, 120, 0.2);
}

.oracle-admin-tabs a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 20px;
    border-bottom: 2px solid transparent;
    color: var(--oracle-muted);
    font-size: 13px;
    text-decoration: none;
}

.oracle-admin-tabs a:hover,
.oracle-admin-tabs a.active {
    color: var(--oracle-gold-bright);
    background: rgba(216, 185, 120, 0.045);
}

.oracle-admin-tabs a.active {
    border-bottom-color: var(--oracle-gold);
}

.oracle-admin-section.tab-hidden {
    display: none;
}

.api-audit-filter {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(5, minmax(130px, 1fr)) auto;
    gap: 12px;
    margin: 0 0 30px 70px;
    align-items: end;
}

.api-audit-filter label {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.api-audit-filter label > span {
    color: var(--oracle-gold);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.api-audit-filter input,
.api-audit-filter select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(216, 185, 120, 0.18);
    border-radius: 3px;
    background: #0d0c15;
    color: var(--oracle-text);
}

.api-audit-list,
.api-pagination {
    margin-left: 70px;
}

.api-audit-row {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.api-audit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.api-audit-head small {
    color: var(--oracle-gold);
    font-size: 10px;
}

.api-audit-head h3 {
    margin: 6px 0 3px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
    font-weight: 600;
}

.api-audit-head p {
    margin: 0;
    color: var(--oracle-muted);
    font-size: 12px;
}

.api-status {
    padding: 5px 9px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 9px;
    text-transform: uppercase;
}

.api-status.success {
    border-color: rgba(91, 191, 170, 0.46);
    color: #83d9c5;
}

.api-status.failed {
    border-color: rgba(214, 104, 130, 0.5);
    color: #e99aae;
}

.api-audit-meta {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    margin: 18px 0 0;
    background: rgba(255, 255, 255, 0.07);
}

.api-audit-meta > div {
    min-width: 0;
    padding: 10px 12px;
    background: #0d0c13;
}

.api-audit-meta dt {
    color: #77717d;
    font-size: 8px;
    text-transform: uppercase;
}

.api-audit-meta dd {
    margin: 4px 0 0;
    color: #c6bfcc;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.api-audit-details {
    margin-top: 16px;
}

.api-audit-details summary {
    color: var(--oracle-gold);
    cursor: pointer;
    font-size: 12px;
}

.api-payload {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.api-payload section {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(216, 185, 120, 0.13);
    background: rgba(5, 8, 20, 0.72);
}

.api-payload strong {
    display: block;
    margin-bottom: 9px;
    color: var(--oracle-gold-bright);
    font-size: 10px;
    text-transform: uppercase;
}

.api-payload pre {
    max-height: 360px;
    margin: 0;
    overflow: auto;
    color: #cfc8d5;
    font: 11px/1.65 Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.api-payload .api-error {
    border-color: rgba(214, 104, 130, 0.35);
}

.api-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 24px;
}

.api-pagination a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(216, 185, 120, 0.2);
    color: var(--oracle-gold-bright);
    text-decoration: none;
}

.api-pagination a.disabled {
    pointer-events: none;
    opacity: 0.35;
}

.api-pagination > span {
    color: var(--oracle-muted);
    font-size: 11px;
}

.reading-context,
.reading-analysis {
    max-width: 980px;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(216, 185, 120, 0.16);
    background: rgba(8, 16, 38, 0.58);
}

.reading-context > div {
    margin-top: 16px;
}

.reading-context strong {
    color: #e8dfed;
    font-size: 13px;
    font-weight: 600;
}

.reading-context p,
.reading-analysis p {
    color: var(--oracle-muted);
    line-height: 1.7;
    white-space: pre-line;
}

.reading-analysis summary {
    color: var(--oracle-gold);
    cursor: pointer;
}

.clarifying-form,
.final-analysis {
    max-width: 920px;
    margin: 54px auto;
    padding: clamp(24px, 4vw, 48px);
    border-top: 1px solid rgba(216, 185, 120, 0.55);
    border-bottom: 1px solid rgba(216, 185, 120, 0.18);
    background: linear-gradient(135deg, rgba(11, 22, 51, 0.88), rgba(23, 13, 43, 0.78));
    backdrop-filter: blur(14px);
}

.clarifying-intro h3 {
    margin: 8px 0 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}

.clarifying-intro p {
    max-width: 680px;
    color: var(--oracle-muted);
    line-height: 1.7;
}

.clarifying-questions {
    display: grid;
    gap: 22px;
    margin: 30px 0;
}

.clarifying-questions label {
    display: grid;
    gap: 10px;
}

.clarifying-questions label > span {
    color: #eee7f2;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
}

.clarifying-questions textarea {
    min-height: 92px;
    padding: 14px 16px;
    border: 1px solid rgba(216, 185, 120, 0.22);
    border-radius: 2px;
    outline: none;
    background: rgba(2, 7, 22, 0.78);
    color: var(--oracle-text);
    resize: vertical;
}

.clarifying-questions textarea:focus {
    border-color: var(--oracle-gold);
    box-shadow: 0 0 0 3px rgba(216, 185, 120, 0.07);
}

.final-analysis {
    border-left: 2px solid var(--oracle-gold);
}

.final-analysis p {
    color: #ddd6e4;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
    line-height: 1.8;
}

.reading-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: clamp(78px, 9vh, 112px) 28px 32px;
    overflow: hidden;
    isolation: isolate;
    color: var(--text-main);
    background:
        radial-gradient(ellipse at 50% 35%, rgba(86, 61, 139, 0.28) 0%, rgba(35, 31, 75, 0.14) 28%, transparent 60%),
        radial-gradient(circle at 18% 72%, rgba(43, 88, 105, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(5, 6, 17, 0.97), rgba(2, 4, 12, 0.995));
    backdrop-filter: blur(18px);
}

.reading-loading-overlay[hidden] {
    display: none;
}

body.reading-loading-open .yodes-topbar {
    background: rgba(5, 6, 15, 0.84);
    border-bottom-color: rgba(216, 186, 120, 0.13);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

body.reading-loading-open .yodes-brand-mark {
    color: #f2d79c;
    border-color: rgba(216, 186, 120, 0.58);
    box-shadow: 0 0 22px rgba(216, 186, 120, 0.12);
}

body.reading-loading-open .yodes-avatar,
body.reading-loading-open .yodes-icon-button,
body.reading-loading-open .yodes-login-link {
    border-color: rgba(216, 186, 120, 0.24);
    background: rgba(17, 17, 29, 0.7);
}

.reading-loading-overlay::before,
.reading-loading-overlay::after {
    position: absolute;
    inset: 0;
    z-index: -3;
    content: "";
    pointer-events: none;
}

.reading-loading-overlay::before {
    opacity: 0.62;
    background-image:
        radial-gradient(circle, rgba(255, 244, 211, 0.84) 0 0.7px, transparent 1px),
        radial-gradient(circle, rgba(169, 185, 224, 0.68) 0 0.55px, transparent 0.9px),
        radial-gradient(circle, rgba(216, 186, 120, 0.42) 0 0.65px, transparent 1px);
    background-position: 0 0, 37px 64px, 92px 28px;
    background-size: 137px 149px, 181px 193px, 239px 227px;
    mask-image: radial-gradient(ellipse at center, #000 10%, rgba(0, 0, 0, 0.88) 58%, transparent 100%);
    animation: reading-stars-drift 30s linear infinite;
}

.reading-loading-overlay::after {
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(2, 4, 12, 0.45), transparent 18%, transparent 80%, rgba(2, 4, 12, 0.56)),
        radial-gradient(ellipse at center, transparent 40%, rgba(1, 2, 8, 0.55) 100%);
}

.reading-galaxy {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.reading-nebula {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(56px);
    animation: reading-nebula-breathe 9s ease-in-out infinite alternate;
}

.reading-nebula-purple {
    top: 12%;
    left: 50%;
    width: min(70vw, 940px);
    height: min(42vw, 560px);
    background: radial-gradient(ellipse, rgba(108, 71, 165, 0.22), transparent 70%);
    transform: translateX(-50%) rotate(-8deg);
}

.reading-nebula-cyan {
    right: 3%;
    bottom: 4%;
    width: min(42vw, 560px);
    height: min(30vw, 400px);
    background: radial-gradient(ellipse, rgba(61, 132, 144, 0.12), transparent 70%);
    animation-delay: -4s;
}

.reading-zodiac-ring {
    position: absolute;
    top: 38%;
    left: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.22;
    transform: translate(-50%, -50%);
    mask-image: radial-gradient(circle, transparent 62%, #000 62.3% 63%, transparent 63.3%, transparent 71%, #000 71.3% 71.8%, transparent 72.1%);
    background: repeating-conic-gradient(from 2deg, rgba(216, 186, 120, 0.78) 0 0.25deg, transparent 0.25deg 15deg);
}

.reading-zodiac-ring-outer {
    width: min(78vw, 920px);
    animation: reading-ring-turn 70s linear infinite;
}

.reading-zodiac-ring-inner {
    top: 35%;
    width: min(52vw, 620px);
    opacity: 0.12;
    animation: reading-ring-turn 46s linear infinite reverse;
}

.reading-constellation {
    position: absolute;
    width: 180px;
    height: 110px;
    opacity: 0.18;
    background:
        radial-gradient(circle at 8% 76%, var(--accent-gold) 0 1px, transparent 1.8px),
        radial-gradient(circle at 31% 42%, var(--accent-gold) 0 1px, transparent 1.8px),
        radial-gradient(circle at 55% 64%, #dce8ef 0 1px, transparent 1.8px),
        radial-gradient(circle at 78% 24%, var(--accent-cyan) 0 1px, transparent 1.8px),
        linear-gradient(145deg, transparent 26%, rgba(216, 186, 120, 0.44) 26.4% 26.8%, transparent 27.2%),
        linear-gradient(20deg, transparent 48%, rgba(216, 186, 120, 0.36) 48.4% 48.8%, transparent 49.2%);
    filter: drop-shadow(0 0 8px rgba(216, 186, 120, 0.3));
}

.constellation-left {
    top: 29%;
    left: 8%;
    transform: rotate(-12deg);
}

.constellation-right {
    right: 8%;
    bottom: 20%;
    transform: rotate(168deg) scale(0.82);
}

.reading-loading-stage {
    position: relative;
    z-index: 3;
    width: min(100%, 880px);
    display: grid;
    grid-template-rows: minmax(280px, 43vh) auto;
    align-items: center;
    justify-items: center;
}

.reading-scene-shell {
    position: relative;
    width: min(86vw, 720px);
    height: min(44vh, 430px);
    min-height: 280px;
}

.reading-loading-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.reading-scene-halo {
    position: absolute;
    top: 48%;
    left: 50%;
    width: 42%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 92, 190, 0.22), rgba(216, 186, 120, 0.07) 35%, transparent 70%);
    filter: blur(22px);
    transform: translate(-50%, -50%);
    animation: reading-halo-pulse 4.8s ease-in-out infinite;
}

.reading-loading-copy {
    width: min(100%, 720px);
    padding: 0 18px 18px;
    text-align: center;
}

.reading-loading-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
}

.reading-loading-eyebrow::before,
.reading-loading-eyebrow::after {
    width: 28px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(216, 186, 120, 0.72));
}

.reading-loading-eyebrow::after {
    transform: rotate(180deg);
}

.reading-loading-copy h3 {
    max-width: 680px;
    margin: 14px auto 12px;
    color: var(--text-main);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(36px, 4.1vw, 54px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-wrap: balance;
    text-shadow: 0 2px 32px rgba(137, 105, 189, 0.18);
}

.reading-loading-copy p {
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.reading-loading-progress {
    display: block;
    width: 116px;
    height: 1px;
    margin: 22px auto 0;
    overflow: hidden;
    background: rgba(216, 186, 120, 0.12);
}

.reading-loading-progress i {
    display: block;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-cyan), transparent);
    animation: reading-progress 2.2s ease-in-out infinite;
}

@keyframes reading-stars-drift {
    to { background-position: 137px 149px, -144px 257px, 331px -199px; }
}

@keyframes reading-nebula-breathe {
    to { opacity: 0.68; filter: blur(64px); }
}

@keyframes reading-ring-turn {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes reading-halo-pulse {
    50% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes reading-progress {
    0% { transform: translateX(-110%); opacity: 0; }
    25%, 70% { opacity: 1; }
    100% { transform: translateX(345%); opacity: 0; }
}

.card-keywords {
    color: var(--oracle-muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 780px) {
    .reading-loading-overlay {
        padding: 70px 18px 22px;
    }

    .reading-loading-stage {
        grid-template-rows: minmax(250px, 42vh) auto;
    }

    .reading-scene-shell {
        width: min(104vw, 620px);
        height: min(42vh, 360px);
        min-height: 250px;
    }

    .reading-loading-copy {
        padding-inline: 4px;
    }

    .reading-loading-copy h3 {
        margin-top: 12px;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.02;
    }

    .reading-loading-copy p {
        max-width: 430px;
        font-size: 12px;
    }

    .desktop-break {
        display: none;
    }

    .reading-zodiac-ring-outer {
        width: 130vw;
    }

    .reading-zodiac-ring-inner {
        width: 92vw;
    }

    .reading-constellation {
        opacity: 0.1;
    }

    .oracle-admin-tabs {
        margin-top: -20px;
        overflow-x: auto;
    }

    .oracle-admin-tabs a {
        flex: 0 0 auto;
    }

    .clarifying-form,
    .final-analysis {
        margin: 34px 0;
        padding: 24px 18px;
    }

    .final-analysis p {
        font-size: 18px;
    }

    .tarot-card-fan {
        min-height: 330px;
        justify-content: flex-start;
        padding: 60px 54px 28px;
        overflow-x: auto;
    }

    .fan-card {
        width: 88px;
        margin-left: -42px;
    }

    .card-selection-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .api-audit-filter {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .api-audit-list,
    .api-pagination {
        margin-left: 0;
    }

    .api-audit-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .reading-loading-overlay::before,
    .reading-nebula,
    .reading-zodiac-ring,
    .reading-scene-halo,
    .reading-loading-progress i {
        animation-duration: 16s;
    }
}

/* ============================================================
   Admin shell hardening: local icons + responsive layout
   ============================================================ */
body.yodes-admin-shell {
    min-width: 0;
    overflow-x: hidden;
    background: #07070d;
    color: var(--oracle-text);
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.yodes-admin-shell .ti {
    display: inline-block;
    min-width: 1em;
    line-height: 1;
    text-align: center;
    vertical-align: -0.125em;
}

.yodes-admin-page,
.yodes-admin-wrapper,
.yodes-admin-body,
.yodes-admin-container {
    min-width: 0;
}

.yodes-admin-sidebar {
    width: 280px;
    border-right: 1px solid rgba(216, 185, 120, 0.16);
    background: #152333;
}

.yodes-admin-sidebar .navbar-brand {
    min-height: 72px;
    align-items: center;
    padding-inline: 24px;
    white-space: nowrap;
}

.yodes-admin-sidebar .navbar-brand a {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
}

.yodes-admin-sidebar .nav-link {
    gap: 12px;
    min-height: 48px;
    border-radius: 10px;
    color: rgba(244, 240, 232, 0.86);
    font-size: 16px;
}

.yodes-admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.yodes-admin-sidebar .nav-link-icon {
    width: 28px;
    min-width: 28px;
    color: var(--oracle-gold);
    font-size: 20px;
}

.yodes-admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(245, 205, 124, .12);
}

.yodes-admin-menu-heading {
    margin: 1rem 1rem .35rem;
    color: var(--oracle-gold);
    font-family: var(--font-label);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.yodes-admin-shell .oracle-admin-tabs .ti {
    font-size: 16px;
}

.yodes-admin-topbar {
    min-height: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 7, 13, 0.88);
}

.yodes-admin-body {
    margin: 0;
}

.yodes-admin-container {
    max-width: none;
    padding: 0;
}

.yodes-admin-shell .oracle-admin {
    min-width: 0;
    min-height: calc(100dvh - 58px);
    padding: clamp(34px, 5vw, 72px) clamp(18px, 4vw, 56px) 72px;
}

.yodes-admin-shell .oracle-admin-header {
    width: 100%;
    max-width: 1280px;
    min-height: auto;
    align-items: center;
    gap: 24px;
    margin: 0 auto 40px;
}

.yodes-admin-shell .oracle-admin-header > div {
    min-width: 0;
}

.yodes-admin-shell .oracle-admin-header h1 {
    max-width: 100%;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(44px, 6vw, 86px);
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.yodes-admin-shell .oracle-admin-header p {
    max-width: 760px;
    margin: 12px 0 0;
}

.yodes-admin-shell .oracle-admin-tabs,
.yodes-admin-shell .oracle-admin-section,
.yodes-admin-shell .oracle-admin-alert {
    max-width: 1280px;
}

.yodes-admin-shell .oracle-admin-tabs {
    margin-top: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.yodes-admin-shell .oracle-admin-tabs a {
    flex: 0 0 auto;
    min-width: max-content;
}

.yodes-admin-shell .api-audit-filter {
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(130px, 0.8fr)) repeat(2, minmax(150px, 0.9fr)) minmax(96px, 0.55fr) auto;
    margin-left: 70px;
}

.yodes-admin-shell .api-audit-list,
.yodes-admin-shell .api-pagination {
    max-width: calc(100% - 70px);
    margin-left: 70px;
}

.yodes-admin-shell .api-audit-list {
    overflow-x: auto;
}

.yodes-admin-shell .api-audit-card {
    min-width: 760px;
}

.yodes-admin-shell .card,
.yodes-admin-shell .table-responsive {
    min-width: 0;
}

@media (min-width: 992px) {
    .yodes-admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        overflow-y: auto;
    }

    .yodes-admin-wrapper {
        margin-left: 280px;
    }

    .yodes-admin-menu-toggle {
        display: none;
    }
}

@media (max-width: 1180px) {
    .yodes-admin-shell .api-audit-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
    }

    .yodes-admin-shell .api-audit-list,
    .yodes-admin-shell .api-pagination {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .yodes-admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 60;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(216, 185, 120, 0.16);
    }

    .yodes-admin-sidebar .container-fluid {
        min-height: 64px;
    }

    .yodes-admin-sidebar .navbar-brand {
        min-height: 64px;
        padding-inline: 0;
    }

    .yodes-admin-sidebar .navbar-brand a {
        font-size: 22px;
    }

    .yodes-admin-sidebar-menu {
        width: 100%;
        padding-bottom: 14px;
    }

    .yodes-admin-sidebar .navbar-nav {
        gap: 4px;
        padding-top: 0 !important;
    }

    .yodes-admin-topbar {
        display: none;
    }

    .yodes-admin-shell .oracle-admin {
        min-height: calc(100dvh - 64px);
        padding: 28px 16px 52px;
    }

    .yodes-admin-shell .oracle-admin-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 26px;
    }

    .yodes-admin-shell .oracle-admin-header h1 {
        font-size: clamp(42px, 12vw, 64px);
    }

    .yodes-admin-shell .oracle-admin-header .oracle-quiet {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .yodes-admin-shell .oracle-admin-section-title {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .yodes-admin-shell .oracle-admin-tabs {
        margin-bottom: 26px;
    }

    .yodes-admin-shell .api-audit-filter {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .yodes-admin-shell .api-audit-card {
        min-width: 620px;
    }

    .yodes-admin-shell .reading-meta,
    .yodes-admin-shell .api-audit-meta {
        grid-template-columns: 1fr;
    }
}

/* Final admin shell overrides */
.yodes-admin-topbar {
    backdrop-filter: blur(18px);
}

.yodes-admin-topbar .container-fluid {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.yodes-admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.yodes-admin-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: rgba(244, 240, 232, .78);
    background: rgba(255, 255, 255, .035);
    font-size: .9rem;
}

.yodes-admin-user-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #46d586;
    box-shadow: 0 0 0 4px rgba(70, 213, 134, .12);
}

.yodes-admin-logout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
}

.yodes-admin-container {
    padding: clamp(24px, 3vw, 42px);
}

.yodes-admin-container:has(> .oracle-admin) {
    padding: 0;
}

.yodes-admin-shell .page-header,
.admin-page-head {
    padding: 22px 24px;
    border: 1px solid rgba(245, 205, 124, .12);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(134, 89, 255, .16), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--oracle-gold);
    font-family: var(--font-label);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.yodes-admin-shell .page-title,
.admin-page-head .page-title {
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 3.3vw, 3.7rem);
    font-weight: 700;
    line-height: .95;
}

.yodes-admin-shell .card,
.admin-panel,
.subscription-plan-card {
    border: 1px solid rgba(245, 205, 124, .12);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025)),
        rgba(12, 11, 18, .92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
}

.yodes-admin-shell .card {
    overflow: hidden;
}

.yodes-admin-shell .card-link {
    color: inherit;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.yodes-admin-shell .card-link:hover {
    border-color: rgba(245, 205, 124, .34);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
    transform: translateY(-3px);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.45fr);
    gap: 22px;
    align-items: start;
}

.admin-panel {
    padding: 22px;
}

.admin-panel-head,
.subscription-plan-card-head,
.subscription-plan-actions,
.admin-actions,
.admin-check-row {
    display: flex;
    align-items: center;
}

.admin-panel-head,
.subscription-plan-card-head {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-panel-head h3,
.subscription-plan-card h4 {
    margin: 0;
    color: #fff;
}

.admin-pill,
.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.admin-pill {
    color: rgba(244, 240, 232, .82);
    background: rgba(255, 255, 255, .07);
}

.admin-status.success {
    color: #8ff0bd;
    background: rgba(70, 213, 134, .12);
}

.admin-status.muted {
    color: rgba(244, 240, 232, .62);
    background: rgba(255, 255, 255, .07);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-form-grid.compact {
    gap: 12px;
}

.admin-form-grid label > span {
    display: block;
    margin-bottom: 7px;
    color: var(--oracle-gold);
    font-family: var(--font-label);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-field-wide {
    grid-column: 1 / -1;
}

.admin-check-row {
    flex-wrap: wrap;
    gap: 18px;
    padding: 10px 0 2px;
}

.admin-actions,
.subscription-plan-actions {
    justify-content: flex-end;
    gap: 10px;
}

.subscription-plan-list {
    display: grid;
    gap: 16px;
}

.subscription-plan-card {
    padding: 18px;
}

.subscription-plan-card.is-inactive {
    opacity: .76;
}

.subscription-plan-actions {
    flex-wrap: wrap;
    margin-top: 16px;
}

.subscription-plan-actions form {
    margin: 0;
}

.admin-empty {
    padding: 18px;
    border: 1px dashed rgba(245, 205, 124, .22);
    border-radius: 16px;
    color: rgba(244, 240, 232, .62);
    text-align: center;
}

.yodes-admin-shell .form-control,
.yodes-admin-shell .form-select {
    border-color: rgba(245, 205, 124, .14);
    background-color: rgba(4, 4, 9, .58);
}

.yodes-admin-shell .table {
    margin-bottom: 0;
}

.yodes-admin-shell .table thead th {
    color: var(--oracle-gold);
    font-family: var(--font-label);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, .035);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 20px;
    border: 1px solid rgba(245, 205, 124, .12);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(245, 205, 124, .12), transparent 40%),
        linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.admin-stat-card span {
    color: rgba(244, 240, 232, .64);
    font-size: .86rem;
}

.admin-stat-card strong {
    display: block;
    margin-top: 12px;
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: .9;
}

.admin-stat-card i {
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: rgba(245, 205, 124, .18);
    font-size: 46px;
}

.job-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
    padding: 14px;
    border: 1px solid rgba(245, 205, 124, .12);
    border-radius: 16px;
    background: rgba(0, 0, 0, .18);
}

.job-meta div {
    min-width: 0;
}

.job-meta dt {
    color: var(--oracle-gold);
    font-family: var(--font-label);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.job-meta dd {
    margin: 5px 0 0;
    color: rgba(244, 240, 232, .82);
    word-break: break-word;
}

.job-meta .job-error {
    grid-column: 1 / -1;
}

.job-meta .job-error dd {
    color: #ff9aa9;
}

@media (max-width: 1100px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .yodes-admin-container {
        padding: 18px 14px 42px;
    }
}

@media (max-width: 640px) {
    .admin-page-head,
    .yodes-admin-shell .page-header {
        padding: 18px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel,
    .subscription-plan-card {
        padding: 16px;
    }

    .subscription-plan-actions {
        justify-content: stretch;
    }

    .subscription-plan-actions .btn,
    .subscription-plan-actions form,
    .subscription-plan-actions form .btn {
        width: 100%;
    }

    .job-meta {
        grid-template-columns: 1fr;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Phase 1 user redesign: 3D Mystical Cosmic Tarot Shop
   ============================================================ */
body.yodes-shell .yodes-topbar {
    background: rgba(3, 5, 16, .58);
    border-bottom-color: rgba(218, 181, 102, .12);
    box-shadow: 0 16px 52px rgba(0, 0, 0, .22);
}

body.yodes-shell .oracle-canvas {
    background:
        radial-gradient(ellipse at 48% 38%, rgba(113, 70, 187, .18), transparent 32%),
        radial-gradient(ellipse at 72% 18%, rgba(33, 78, 128, .16), transparent 34%),
        radial-gradient(ellipse at 20% 82%, rgba(90, 42, 126, .16), transparent 36%),
        #020513;
}

body.yodes-shell .oracle-vignette {
    background:
        radial-gradient(ellipse at 52% 46%, transparent 0%, rgba(2, 4, 15, .12) 42%, rgba(1, 2, 8, .82) 100%),
        linear-gradient(90deg, rgba(2, 4, 13, .92), rgba(2, 4, 13, .3) 35%, rgba(2, 4, 13, .18) 62%, rgba(2, 4, 13, .78)),
        linear-gradient(180deg, rgba(2, 4, 13, .08), rgba(2, 4, 13, .66));
}

body.yodes-shell .cosmic-shop-hero {
    position: relative;
    min-height: calc(100svh - 68px);
    display: grid;
    grid-template-columns: minmax(250px, .62fr) minmax(420px, 1.1fr) minmax(330px, .72fr);
    grid-template-rows: 1fr auto;
    gap: clamp(18px, 2.2vw, 34px);
    max-width: none;
    margin: 0;
    padding: clamp(34px, 5vw, 72px) clamp(18px, 3vw, 34px) 22px;
    overflow: hidden;
}

body.yodes-shell .cosmic-shop-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 61%, rgba(158, 88, 255, .16), transparent 18%),
        radial-gradient(circle at 44% 46%, rgba(228, 177, 91, .08), transparent 22%),
        linear-gradient(180deg, transparent 64%, rgba(4, 3, 12, .82));
    content: "";
}

.cosmic-shop-intro,
.journey-card,
.cosmic-bottom-status,
.shop-sign {
    position: relative;
    z-index: 4;
}

.cosmic-shop-intro {
    align-self: center;
    max-width: 350px;
    padding-top: 3vh;
    text-shadow: 0 18px 42px rgba(0, 0, 0, .5);
}

.cosmic-brand-lockup {
    display: inline-grid;
    gap: 0;
    margin-bottom: clamp(34px, 7vh, 72px);
    color: var(--oracle-gold-bright);
    text-decoration: none;
}

.cosmic-brand-lockup strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(38px, 4.2vw, 66px);
    font-weight: 700;
    line-height: .82;
    letter-spacing: .02em;
}

.cosmic-brand-lockup span {
    color: rgba(244, 231, 197, .86);
    font-size: 14px;
}

body.yodes-shell .cosmic-shop-intro .oracle-eyebrow {
    margin-bottom: 8px;
    color: rgba(244, 231, 197, .76);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

body.yodes-shell .cosmic-shop-intro h1 {
    margin: 0;
    color: #f3d8ff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(46px, 5.8vw, 88px);
    font-weight: 700;
    line-height: .82;
    text-shadow:
        0 0 18px rgba(165, 91, 255, .52),
        0 28px 70px rgba(0, 0, 0, .7);
}

.cosmic-shop-intro p {
    max-width: 300px;
    margin: 18px 0 26px;
    color: rgba(244, 240, 232, .72);
    font-size: 14px;
    line-height: 1.78;
}

.cosmic-google-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(191, 131, 255, .26);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(122, 60, 206, .18), rgba(255, 255, 255, .04));
    color: #f4f0e8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
    backdrop-filter: blur(12px);
}

.cosmic-shop-hub {
    position: relative;
    min-height: min(70vh, 720px);
    align-self: center;
    pointer-events: none;
}

.shop-sign-stack {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shop-sign {
    position: absolute;
    display: grid;
    justify-items: center;
    min-width: 154px;
    padding: 16px 18px 18px;
    border: 1px solid rgba(222, 181, 101, .48);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0, rgba(156, 84, 255, .28), transparent 54%),
        linear-gradient(145deg, rgba(25, 9, 42, .82), rgba(8, 7, 16, .7));
    color: #f4e7c5;
    text-align: center;
    text-decoration: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .04),
        0 20px 52px rgba(0, 0, 0, .36),
        0 0 30px rgba(142, 76, 255, .18);
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(14px);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}

button.shop-sign {
    border-color: rgba(222, 181, 101, .48);
}

.shop-sign:hover,
.shop-sign:focus-visible {
    transform: translateY(-5px) scale(1.025);
    border-color: rgba(248, 213, 139, .86);
    color: #fff3cc;
    filter: brightness(1.12);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .07),
        0 26px 70px rgba(0, 0, 0, .44),
        0 0 42px rgba(166, 88, 255, .36),
        0 0 24px rgba(242, 202, 128, .22);
}

.shop-sign small {
    color: rgba(242, 202, 128, .9);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shop-sign strong {
    margin-top: 3px;
    color: #f0d2ff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    line-height: .92;
    text-shadow: 0 0 18px rgba(173, 91, 255, .62);
}

.shop-sign span {
    margin-top: 5px;
    color: rgba(244, 240, 232, .72);
    font-size: 11px;
}

.shop-sign-reading {
    left: 6%;
    top: 22%;
    transform: rotate(-2deg);
}

.shop-sign-subscription {
    right: 3%;
    top: 23%;
    transform: rotate(2deg);
}

.shop-sign-blog {
    left: 12%;
    bottom: 23%;
    transform: rotate(1deg);
}

.shop-sign-history {
    right: 10%;
    bottom: 22%;
    transform: rotate(-1deg);
}

.shop-quote-sign {
    position: absolute;
    left: -2%;
    bottom: 3%;
    width: 210px;
    padding: 15px 18px;
    border: 1px solid rgba(222, 181, 101, .42);
    border-radius: 14px;
    background: rgba(7, 6, 15, .72);
    color: rgba(244, 231, 197, .86);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    line-height: 1.12;
    text-align: center;
    transform: rotate(-4deg);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .34);
    backdrop-filter: blur(12px);
}

.journey-card {
    align-self: center;
    display: grid;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(222, 181, 101, .24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 58% 0, rgba(156, 84, 255, .2), transparent 36%),
        linear-gradient(145deg, rgba(13, 10, 24, .72), rgba(5, 5, 12, .58));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 30px 80px rgba(0, 0, 0, .36);
    backdrop-filter: blur(18px);
}

.journey-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #efcaff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

.journey-title::before,
.journey-title::after {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(218, 181, 102, .55));
    content: "";
}

.journey-title::after {
    transform: rotate(180deg);
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.journey-steps span {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: rgba(244, 240, 232, .84);
    text-align: center;
}

.journey-steps span:not(:last-child)::after {
    position: absolute;
}

.journey-steps i {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(177, 91, 255, .42);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(156, 84, 255, .22), rgba(8, 8, 18, .7));
    color: #f0b9ff;
    font-size: 24px;
    box-shadow: 0 0 24px rgba(154, 86, 255, .18);
}

.journey-steps small {
    font-size: 11px;
    line-height: 1.35;
}

.journey-preview {
    position: relative;
    min-height: 250px;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(222, 181, 101, .22);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 32%, rgba(145, 72, 255, .28), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(222, 181, 101, .1), transparent 42%),
        linear-gradient(180deg, rgba(16, 10, 27, .92), rgba(5, 5, 12, .98));
}

.journey-preview::before {
    position: absolute;
    inset: 0;
    opacity: .34;
    background:
        radial-gradient(circle at 22% 70%, rgba(255, 198, 116, .6) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 24%, rgba(181, 99, 255, .7) 0 1px, transparent 2px),
        radial-gradient(circle at 56% 14%, rgba(255, 255, 255, .5) 0 1px, transparent 2px);
    content: "";
}

.astra-portrait {
    position: absolute;
    left: 50%;
    top: 36%;
    width: 164px;
    height: 164px;
    border-radius: 46% 46% 38% 38%;
    background:
        radial-gradient(circle at 44% 37%, rgba(152, 86, 255, .92) 0 3px, transparent 4px),
        radial-gradient(circle at 56% 37%, rgba(152, 86, 255, .92) 0 3px, transparent 4px),
        linear-gradient(145deg, rgba(28, 20, 42, .96), rgba(5, 5, 12, .98));
    box-shadow:
        0 0 0 1px rgba(222, 181, 101, .18),
        0 0 54px rgba(142, 76, 255, .32);
    transform: translate(-50%, -50%);
}

.astra-portrait::before {
    position: absolute;
    inset: -32px;
    border: 1px solid rgba(222, 181, 101, .26);
    border-radius: 50%;
    background:
        conic-gradient(from 30deg, transparent, rgba(222, 181, 101, .4), transparent 32%, rgba(154, 86, 255, .34), transparent 60%);
    mask: radial-gradient(circle, transparent 48%, #000 49%);
    content: "";
    animation: cosmic-slow-spin 32s linear infinite;
}

.astra-portrait i {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203, 151, 255, .96), rgba(120, 55, 255, .32) 44%, transparent 70%);
    transform: translateX(-50%);
    animation: cosmic-orb-pulse 3.8s ease-in-out infinite;
}

.journey-preview p {
    position: relative;
    z-index: 1;
    max-width: 230px;
    margin: 0 0 0 auto;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(7, 6, 15, .74);
    color: rgba(244, 240, 232, .76);
    font-size: 12px;
    line-height: 1.65;
    backdrop-filter: blur(12px);
}

.cosmic-start-button {
    min-height: 54px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, .2), transparent 44%),
        linear-gradient(135deg, #6e2dba, #3d1976 64%, #8e52dc);
    color: #fff;
    box-shadow:
        0 16px 38px rgba(117, 57, 213, .28),
        0 0 24px rgba(168, 89, 255, .24);
}

.cosmic-bottom-status {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(150px, .9fr) minmax(150px, .9fr) minmax(280px, 1.5fr) minmax(150px, .9fr) minmax(150px, .9fr);
    align-items: center;
    gap: 14px;
    min-height: 90px;
    padding: 14px 18px;
    border: 1px solid rgba(222, 181, 101, .16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 50%, rgba(152, 86, 255, .17), transparent 18%),
        linear-gradient(135deg, rgba(8, 7, 16, .72), rgba(4, 5, 13, .6));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
    backdrop-filter: blur(16px);
}

.cosmic-bottom-status > div {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    min-width: 0;
}

.cosmic-bottom-status i {
    grid-row: 1 / 3;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(174, 88, 255, .34);
    border-radius: 50%;
    color: #d9a8ff;
    font-size: 22px;
    box-shadow: 0 0 28px rgba(154, 86, 255, .18);
}

.cosmic-bottom-status span {
    color: rgba(244, 240, 232, .56);
    font-size: 11px;
}

.cosmic-bottom-status strong {
    overflow: hidden;
    color: rgba(244, 231, 197, .9);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cosmic-bottom-status p {
    margin: 0;
    color: #e7bd72;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.18;
    text-align: center;
}

body.cosmic-shop-entering .oracle-canvas {
    filter: saturate(1.16) brightness(1.12);
}

@keyframes cosmic-slow-spin {
    to { transform: rotate(360deg); }
}

@keyframes cosmic-orb-pulse {
    50% {
        filter: brightness(1.28);
        transform: translateX(-50%) scale(1.14);
    }
}

@media (max-width: 1180px) {
    body.yodes-shell .cosmic-shop-hero {
        grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        padding-top: 42px;
    }

    .cosmic-shop-hub {
        grid-column: 1 / -1;
        order: 1;
        min-height: 48vh;
    }

    .cosmic-shop-intro {
        order: 0;
        align-self: end;
    }

    .journey-card {
        order: 0;
        align-self: end;
    }

    .cosmic-bottom-status {
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cosmic-bottom-status p {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 760px) {
    body.yodes-shell .cosmic-shop-hero {
        display: block;
        min-height: auto;
        padding: 28px 16px 18px;
    }

    .cosmic-shop-intro {
        max-width: none;
        padding-top: 6px;
    }

    .cosmic-brand-lockup {
        margin-bottom: 26px;
    }

    .cosmic-shop-intro p {
        max-width: 520px;
    }

    .cosmic-shop-hub {
        min-height: 430px;
        margin: 10px -16px 18px;
    }

    .shop-sign {
        min-width: 132px;
        padding: 13px 14px 14px;
        border-radius: 15px;
    }

    .shop-sign strong {
        font-size: 27px;
    }

    .shop-sign span {
        display: none;
    }

    .shop-sign-reading {
        left: 5%;
        top: 12%;
    }

    .shop-sign-subscription {
        right: 5%;
        top: 13%;
    }

    .shop-sign-blog {
        left: 7%;
        bottom: 12%;
    }

    .shop-sign-history {
        right: 7%;
        bottom: 12%;
    }

    .shop-quote-sign {
        left: 50%;
        bottom: 1%;
        width: 190px;
        transform: translateX(-50%) rotate(-2deg);
    }

    .journey-card {
        margin-top: 14px;
    }

    .journey-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journey-preview {
        min-height: 220px;
    }

    .cosmic-bottom-status {
        grid-template-columns: 1fr;
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .astra-portrait::before,
    .astra-portrait i {
        animation-duration: 16s;
    }
}

/* ============================================================
   Phase 2 + 3: Reading Room, Astra, premium upsell, deeper shop interaction
   ============================================================ */
.reading-room-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 46px);
    min-height: 100svh;
    overflow: hidden;
    padding: clamp(78px, 8vw, 118px) clamp(18px, 4vw, 74px) 118px;
    border-top: 1px solid rgba(224, 181, 100, .18);
    background:
        radial-gradient(ellipse at 18% 38%, rgba(127, 69, 199, .22), transparent 30%),
        radial-gradient(ellipse at 78% 30%, rgba(212, 161, 82, .1), transparent 36%),
        linear-gradient(180deg, rgba(2, 5, 18, .96), rgba(7, 4, 15, .92));
    isolation: isolate;
}

.reading-room-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.room-nebula {
    position: absolute;
    width: 44vw;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .42;
    animation: room-nebula-drift 16s ease-in-out infinite alternate;
}

.room-nebula-left {
    left: -12vw;
    top: 18vh;
    background: rgba(109, 62, 196, .34);
}

.room-nebula-right {
    right: -10vw;
    bottom: 0;
    background: rgba(36, 112, 148, .2);
    animation-delay: -5s;
}

.room-zodiac-table {
    position: absolute;
    left: 57%;
    bottom: -22vh;
    width: min(78vw, 980px);
    aspect-ratio: 1;
    border: 1px solid rgba(222, 181, 101, .22);
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg, rgba(222, 181, 101, .22) 0 1deg, transparent 1deg 10deg),
        radial-gradient(circle, transparent 0 27%, rgba(163, 95, 255, .08) 28% 31%, transparent 32% 43%, rgba(222, 181, 101, .12) 44% 45%, transparent 46%),
        radial-gradient(circle, rgba(150, 85, 255, .18), transparent 58%);
    box-shadow:
        inset 0 0 60px rgba(154, 86, 255, .12),
        0 0 90px rgba(0, 0, 0, .44);
    transform: translateX(-50%) rotateX(68deg);
    transform-origin: 50% 50%;
    animation: cosmic-slow-spin 92s linear infinite;
}

.room-candle {
    position: absolute;
    bottom: 18vh;
    width: 10px;
    height: 46px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(#372013, #130c0a);
    box-shadow: 0 0 0 1px rgba(222, 181, 101, .16);
}

.room-candle::before {
    position: absolute;
    left: 50%;
    top: -22px;
    width: 18px;
    height: 28px;
    border-radius: 50% 50% 45% 45%;
    background: radial-gradient(circle at 50% 68%, #fff7c9 0 8%, #ffc067 28%, rgba(151, 80, 255, .5) 58%, transparent 72%);
    content: "";
    filter: blur(.2px);
    transform: translateX(-50%);
    animation: candle-flicker 1.8s ease-in-out infinite alternate;
}

.room-candle-one { left: 22%; }
.room-candle-two { left: 82%; bottom: 24vh; transform: scale(.84); }
.room-candle-three { left: 64%; bottom: 12vh; transform: scale(.72); }

.reading-room-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.astra-guide-panel {
    position: sticky;
    top: 94px;
    z-index: 3;
    align-self: start;
    display: grid;
    gap: 18px;
    min-height: 620px;
    padding: 22px;
    border: 1px solid rgba(222, 181, 101, .18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 8%, rgba(155, 82, 255, .24), transparent 36%),
        linear-gradient(180deg, rgba(13, 9, 24, .72), rgba(5, 5, 12, .62));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 30px 90px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
}

.astra-guide-figure {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 34%, rgba(154, 86, 255, .28), transparent 30%),
        radial-gradient(circle at 50% 78%, rgba(222, 181, 101, .08), transparent 36%),
        #070611;
}

.astra-guide-figure::before {
    position: absolute;
    inset: 8%;
    opacity: .18;
    background:
        radial-gradient(circle at 22% 78%, #f4e7c5 0 1px, transparent 2px),
        radial-gradient(circle at 70% 18%, #a964ff 0 1px, transparent 2px),
        linear-gradient(38deg, transparent 47%, rgba(222, 181, 101, .44) 47.2% 47.6%, transparent 48%);
    content: "";
}

.astra-halo {
    position: absolute;
    top: 22%;
    left: 50%;
    width: 200px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 18deg, rgba(222, 181, 101, .55) 0 3deg, transparent 3deg 18deg),
        radial-gradient(circle, transparent 0 52%, rgba(154, 86, 255, .2) 53% 57%, transparent 58%);
    filter: drop-shadow(0 0 22px rgba(154, 86, 255, .36));
    mask: radial-gradient(circle, transparent 48%, #000 49%);
    transform: translateX(-50%);
    animation: cosmic-slow-spin 48s linear infinite reverse;
}

.astra-hood {
    position: relative;
    z-index: 2;
    width: 172px;
    height: 226px;
    margin-top: 52px;
    border: 1px solid rgba(222, 181, 101, .24);
    border-radius: 48% 48% 28% 28%;
    background:
        radial-gradient(circle at 42% 36%, rgba(166, 95, 255, .9) 0 4px, transparent 5px),
        radial-gradient(circle at 58% 36%, rgba(166, 95, 255, .9) 0 4px, transparent 5px),
        linear-gradient(135deg, #1e1430, #05050d 62%, #13091f);
    box-shadow:
        inset 0 0 42px rgba(166, 95, 255, .1),
        0 30px 70px rgba(0, 0, 0, .5),
        0 0 54px rgba(154, 86, 255, .22);
}

.astra-eye {
    position: absolute;
    top: 80px;
    width: 12px;
    height: 6px;
    border-radius: 999px;
    background: #b98bff;
    box-shadow: 0 0 16px #a762ff;
    animation: astra-eyes 4.8s ease-in-out infinite;
}

.astra-eye-left { left: 62px; }
.astra-eye-right { right: 62px; }

.astra-orb {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 70px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #fff0ff 0 5%, #be7cff 22%, rgba(120, 63, 255, .4) 46%, transparent 72%);
    filter: drop-shadow(0 0 28px rgba(166, 95, 255, .72));
    transform: translateX(-50%);
    animation: astra-orb-breathe 3.2s ease-in-out infinite;
}

.astra-hand {
    position: absolute;
    z-index: 3;
    top: 260px;
    width: 58px;
    height: 20px;
    border: 1px solid rgba(222, 181, 101, .22);
    border-radius: 999px;
    background: linear-gradient(90deg, #110b1b, #2a1840);
    box-shadow: 0 0 18px rgba(154, 86, 255, .2);
}

.astra-hand-left {
    left: 60px;
    transform: rotate(18deg);
    animation: astra-hand-left 4.8s ease-in-out infinite;
}

.astra-hand-right {
    right: 60px;
    transform: rotate(-18deg);
    animation: astra-hand-right 5.2s ease-in-out infinite;
}

.astra-dialog {
    padding: 18px;
    border: 1px solid rgba(222, 181, 101, .18);
    border-radius: 18px;
    background: rgba(5, 5, 12, .58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.astra-dialog p {
    margin: 0;
    color: rgba(244, 240, 232, .76);
    font-size: 13px;
    line-height: 1.75;
}

.reading-room-section .ritual-progress {
    max-width: 1120px;
    margin-bottom: 44px;
    padding: 16px;
    border: 1px solid rgba(222, 181, 101, .16);
    border-radius: 22px;
    background: rgba(5, 5, 12, .48);
    backdrop-filter: blur(14px);
}

.reading-room-section .ritual-step {
    max-width: 1120px;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid rgba(222, 181, 101, .14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 0, rgba(154, 86, 255, .12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018)),
        rgba(5, 5, 13, .62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 28px 90px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px);
}

.reading-room-section .ritual-heading {
    margin-bottom: 32px;
}

.reading-room-section .ritual-heading h2 {
    text-shadow: 0 0 26px rgba(154, 86, 255, .16);
}

.reading-room-section .topic-selector {
    gap: 12px;
    border: 0;
}

.reading-room-section .topic-option {
    border: 1px solid rgba(222, 181, 101, .12);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0, rgba(154, 86, 255, .12), transparent 40%),
        rgba(255, 255, 255, .035);
}

.reading-room-section .oracle-question-wrap {
    padding: 18px;
    border: 1px solid rgba(222, 181, 101, .16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 18%, rgba(154, 86, 255, .14), transparent 28%),
        rgba(4, 4, 11, .64);
}

.reading-room-section .oracle-question-wrap textarea {
    min-height: 172px;
    border-color: rgba(222, 181, 101, .18);
    border-radius: 16px;
    background: rgba(0, 0, 0, .22);
}

.reading-room-section .deck-system-grid {
    gap: 16px;
    border: 0;
    background: transparent;
}

.reading-room-section .deck-system {
    border: 1px solid rgba(222, 181, 101, .15);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0, rgba(154, 86, 255, .14), transparent 36%),
        rgba(7, 6, 15, .68);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.reading-room-section .deck-system:hover,
.reading-room-section .deck-system.selected {
    border-color: rgba(244, 213, 151, .48);
    box-shadow:
        0 28px 86px rgba(0, 0, 0, .34),
        0 0 34px rgba(154, 86, 255, .16);
}

.tarot-card-fan {
    position: relative;
    min-height: 430px;
    border: 1px solid rgba(222, 181, 101, .14);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 50% 72%, rgba(222, 181, 101, .1), transparent 38%),
        radial-gradient(circle at 50% 40%, rgba(154, 86, 255, .18), transparent 36%),
        rgba(4, 4, 11, .38);
    box-shadow: inset 0 0 70px rgba(154, 86, 255, .08);
}

.tarot-card-fan::before {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: min(78%, 760px);
    height: 120px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse, rgba(154, 86, 255, .2), transparent 66%),
        repeating-conic-gradient(from 0deg, rgba(222, 181, 101, .24) 0 1deg, transparent 1deg 18deg);
    content: "";
    opacity: .5;
    transform: translateX(-50%) rotateX(68deg);
}

.fan-card {
    animation: card-shuffle-in .7s calc(var(--card-index) * .026s) cubic-bezier(.2,.8,.2,1) both;
    transform-style: preserve-3d;
}

.fan-card-back {
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 38%, rgba(154, 86, 255, .36), transparent 32%),
        repeating-conic-gradient(from 0deg, rgba(222, 181, 101, .13) 0 8deg, transparent 8deg 28deg),
        linear-gradient(145deg, #121033, #05091b 62%, #1a0d27);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, .52),
        inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.fan-card.selected .fan-card-back {
    animation: selected-card-pulse 1.9s ease-in-out infinite;
}

.reveal-grid {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(222, 181, 101, .14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 48%, rgba(154, 86, 255, .2), transparent 34%),
        rgba(4, 4, 11, .42);
}

.reveal-grid::before {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(222, 181, 101, .16);
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 18deg, rgba(222, 181, 101, .15) 0 1deg, transparent 1deg 15deg);
    content: "";
    opacity: .42;
    animation: cosmic-slow-spin 78s linear infinite reverse;
}

.reveal-item {
    position: relative;
    z-index: 1;
}

.reveal-card {
    perspective: 1200px;
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .34));
}

.reveal-card.revealed {
    animation: reveal-card-aura .8s ease both;
}

.reveal-card.revealed::after {
    position: absolute;
    inset: -20px;
    z-index: -1;
    border-radius: 18px;
    background: radial-gradient(circle, rgba(181, 105, 255, .32), transparent 64%);
    content: "";
    animation: astra-orb-breathe 2.8s ease-in-out infinite;
}

.final-analysis {
    border: 1px solid rgba(222, 181, 101, .22);
    border-left: 0;
    border-radius: 28px;
    background:
        radial-gradient(circle at 16% 0, rgba(222, 181, 101, .12), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(154, 86, 255, .14), transparent 32%),
        rgba(5, 5, 13, .72);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.final-analysis::before {
    display: block;
    margin-bottom: 18px;
    color: rgba(244, 213, 151, .86);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    content: "Astra đã nối các quỹ đạo.";
}

.upsell-modal {
    background:
        radial-gradient(circle at 50% 12%, rgba(154, 86, 255, .24), transparent 28%),
        rgba(2, 3, 10, .88);
}

.upsell-dialog {
    border-color: rgba(244, 213, 151, .28);
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 0, rgba(222, 181, 101, .16), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(154, 86, 255, .2), transparent 30%),
        linear-gradient(145deg, rgba(12, 9, 24, .98), rgba(4, 4, 12, .98));
}

.upsell-lead {
    max-width: 720px;
    margin: -10px 0 26px;
    color: rgba(244, 240, 232, .7);
    line-height: 1.7;
}

.upsell-plan {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0, rgba(154, 86, 255, .14), transparent 38%),
        rgba(255, 255, 255, .04);
}

.upsell-plan::before {
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 86, 255, .32), transparent 70%);
    content: "";
}

.upsell-plan.featured {
    transform: translateY(-8px);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .3),
        0 0 42px rgba(154, 86, 255, .16);
}

.upsell-plan-kicker {
    color: var(--oracle-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.upsell-plan ul {
    display: grid;
    gap: 8px;
    min-height: 92px;
    margin: 0;
    padding: 0;
    color: rgba(244, 240, 232, .66);
    list-style: none;
}

.upsell-plan li::before {
    margin-right: 8px;
    color: var(--oracle-gold);
    content: "✦";
}

.shop-sign.is-hovered {
    transform: translateY(-6px) scale(1.04);
    border-color: rgba(248, 213, 139, .94);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .08),
        0 30px 80px rgba(0, 0, 0, .46),
        0 0 52px rgba(166, 88, 255, .4);
}

.reading-room-section.question-has-energy .astra-orb,
.reading-room-section.cards-ready .astra-orb,
.reading-room-section.reading-connecting .astra-orb,
.reading-room-section.reading-complete .astra-orb {
    filter: brightness(1.45) drop-shadow(0 0 48px rgba(190, 124, 255, .96));
}

.reading-room-section.cards-ready .room-zodiac-table,
.reading-room-section.card-just-revealed .room-zodiac-table,
.reading-room-section.reading-connecting .room-zodiac-table {
    box-shadow:
        inset 0 0 80px rgba(154, 86, 255, .2),
        0 0 120px rgba(154, 86, 255, .18);
}

.reading-room-section.reading-connecting::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 58%, rgba(174, 96, 255, .16), transparent 26%),
        radial-gradient(circle at 50% 58%, transparent 0 18%, rgba(222, 181, 101, .12) 19% 19.4%, transparent 20%);
    content: "";
    animation: reading-room-pulse 1.7s ease-in-out infinite;
}

.reading-room-section[data-room-step="2"] .astra-guide-figure {
    background:
        radial-gradient(circle at 50% 34%, rgba(222, 181, 101, .18), transparent 30%),
        radial-gradient(circle at 50% 78%, rgba(154, 86, 255, .12), transparent 36%),
        #070611;
}

.reading-room-section[data-room-step="3"] .astra-hand-left {
    animation-duration: 3.4s;
}

.reading-room-section[data-room-step="4"] .astra-halo {
    filter: drop-shadow(0 0 34px rgba(222, 181, 101, .34));
}

@keyframes room-nebula-drift {
    to {
        opacity: .58;
        transform: translate3d(2vw, -2vh, 0) scale(1.08);
    }
}

@keyframes candle-flicker {
    50% { transform: translateX(-50%) scale(.82, 1.12); opacity: .8; }
    100% { transform: translateX(-50%) translateY(-2px) scale(1.08, .92); opacity: 1; }
}

@keyframes astra-eyes {
    45%, 50% { transform: scaleY(.12); opacity: .72; }
}

@keyframes astra-orb-breathe {
    50% {
        filter: brightness(1.3) drop-shadow(0 0 38px rgba(166, 95, 255, .9));
        transform: translateX(-50%) scale(1.12);
    }
}

@keyframes astra-hand-left {
    50% { transform: translate(10px, -8px) rotate(8deg); }
}

@keyframes astra-hand-right {
    50% { transform: translate(-10px, -10px) rotate(-8deg); }
}

@keyframes card-shuffle-in {
    0% {
        opacity: 0;
        transform: translate3d(0, -120px, 80px) rotateY(72deg) rotate(var(--fan-rotate));
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(var(--fan-lift)) rotate(var(--fan-rotate));
    }
}

@keyframes selected-card-pulse {
    50% {
        box-shadow:
            0 26px 60px rgba(0, 0, 0, .62),
            0 0 36px rgba(222, 181, 101, .36),
            0 0 54px rgba(154, 86, 255, .18);
    }
}

@keyframes reveal-card-aura {
    from {
        filter: brightness(.7) drop-shadow(0 0 0 rgba(154, 86, 255, 0));
        transform: translateY(18px) scale(.96);
    }
    to {
        filter: brightness(1.08) drop-shadow(0 0 26px rgba(154, 86, 255, .28));
        transform: none;
    }
}

@keyframes reading-room-pulse {
    50% {
        opacity: .72;
        filter: brightness(1.18);
    }
}

@media (max-width: 1120px) {
    .reading-room-section {
        grid-template-columns: 1fr;
        padding-top: 70px;
    }

    .astra-guide-panel {
        position: relative;
        top: auto;
        min-height: auto;
        grid-template-columns: minmax(240px, 340px) 1fr;
        align-items: center;
    }

    .astra-guide-figure {
        min-height: 300px;
    }
}

@media (max-width: 760px) {
    .reading-room-section {
        padding: 54px 14px 86px;
    }

    .astra-guide-panel {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 22px;
    }

    .astra-guide-figure {
        min-height: 240px;
    }

    .astra-halo {
        width: 150px;
    }

    .astra-hood {
        width: 136px;
        height: 176px;
        margin-top: 30px;
    }

    .astra-eye {
        top: 62px;
    }

    .astra-eye-left { left: 48px; }
    .astra-eye-right { right: 48px; }

    .astra-orb {
        width: 56px;
        bottom: 22px;
    }

    .astra-hand {
        display: none;
    }

    .reading-room-section .ritual-step,
    .reading-room-section .ritual-progress {
        border-radius: 20px;
    }

    .reading-room-section .topic-selector,
    .reading-room-section .deck-system-grid {
        grid-template-columns: 1fr;
    }

    .tarot-card-fan {
        min-height: 360px;
        border-radius: 22px;
    }

    .upsell-plan.featured {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .room-nebula,
    .room-zodiac-table,
    .room-candle::before,
    .astra-halo,
    .astra-eye,
    .astra-orb,
    .astra-hand,
    .fan-card,
    .fan-card.selected .fan-card-back,
    .reveal-grid::before,
    .reveal-card.revealed,
    .reveal-card.revealed::after {
        animation-duration: 16s;
    }
}

/* ============================================================
   Immersive refactor: single-screen 3D shop + in-scene reading room
   ============================================================ */
body.tarot-immersive-shell {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #02030a;
}

body.tarot-immersive-shell .yodes-topbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

body.tarot-immersive-shell > main,
body.tarot-immersive-shell .oracle-app {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

body.tarot-immersive-shell > main > .oracle-app {
    margin-top: 0;
}

body.tarot-immersive-shell .oracle-app {
    padding-top: 0;
}

body.tarot-immersive-shell .oracle-canvas {
    z-index: 0;
}

body.tarot-immersive-shell .oracle-vignette {
    z-index: 1;
}

body.tarot-immersive-shell .cosmic-shop-hero,
body.tarot-immersive-shell .reading-room-section {
    position: fixed;
    inset: 0;
}

body.tarot-immersive-shell .cosmic-shop-hero {
    z-index: 4;
    min-height: 100dvh;
    padding: clamp(24px, 4vw, 54px) clamp(20px, 3vw, 42px) 22px;
    transition: opacity .65s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .65s ease;
}

.oracle-app.reading-mode .cosmic-shop-hero,
.oracle-app.shop-entering .cosmic-shop-hero {
    opacity: 0;
    pointer-events: none;
    filter: blur(12px);
    transform: scale(1.04);
}

body.tarot-immersive-shell .cosmic-brand-lockup {
    margin-bottom: clamp(20px, 5vh, 54px);
}

body.tarot-immersive-shell .reading-room-section {
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(250px, 31vw) minmax(0, 1fr);
    gap: clamp(16px, 2.3vw, 34px);
    height: 100dvh;
    min-height: 0;
    padding: clamp(20px, 3vw, 42px);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(20px) scale(.985);
    transition: opacity .72s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}

.oracle-app.reading-mode .reading-room-section {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

body.tarot-immersive-shell .reading-room-content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
}

body.tarot-immersive-shell .reading-room-section .ritual-progress {
    width: min(100%, 980px);
    margin: 0 auto 14px;
    padding: 12px 14px;
}

body.tarot-immersive-shell .reading-room-section .ritual-step {
    width: min(100%, 1080px);
    max-height: calc(100dvh - 138px);
    overflow: auto;
    margin: 0 auto;
    padding: clamp(18px, 2.2vw, 30px);
    scrollbar-color: rgba(222, 181, 101, .36) transparent;
    scrollbar-width: thin;
}

body.tarot-immersive-shell .reading-room-section .ritual-heading {
    margin-bottom: 22px;
}

body.tarot-immersive-shell .reading-room-section .ritual-heading h2 {
    font-size: clamp(40px, 5.3vw, 78px);
}

body.tarot-immersive-shell .reading-room-section .ritual-heading p {
    margin-top: 14px;
}

body.tarot-immersive-shell .astra-guide-panel {
    position: relative;
    top: auto;
    height: calc(100dvh - clamp(40px, 6vw, 84px));
    min-height: 0;
}

body.tarot-immersive-shell .astra-guide-figure {
    min-height: 0;
    height: min(48vh, 420px);
}

.reading-room-exit {
    position: absolute;
    top: clamp(16px, 2.2vw, 30px);
    left: clamp(16px, 2.2vw, 30px);
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(222, 181, 101, .24);
    border-radius: 999px;
    background: rgba(5, 5, 12, .56);
    color: rgba(244, 240, 232, .82);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(14px);
    cursor: pointer;
}

.reading-room-exit:hover {
    color: var(--oracle-gold-bright);
    border-color: rgba(244, 213, 151, .55);
}

body.tarot-immersive-shell .tarot-card-fan {
    min-height: min(42vh, 430px);
    padding-top: 42px;
}

body.tarot-immersive-shell .reveal-grid {
    margin-top: 20px;
    padding: 22px;
}

body.tarot-immersive-shell .clarifying-form,
body.tarot-immersive-shell .final-analysis {
    margin: 24px auto 0;
}

body.tarot-immersive-shell .oracle-toast {
    z-index: 120;
}

@media (max-width: 1100px) {
    body.tarot-immersive-shell .reading-room-section {
        grid-template-columns: 1fr;
        overflow: auto;
        padding: 18px;
    }

    body.tarot-immersive-shell .astra-guide-panel {
        height: auto;
        grid-template-columns: minmax(210px, 300px) 1fr;
        margin-top: 44px;
    }

    body.tarot-immersive-shell .reading-room-content {
        overflow: visible;
    }

    body.tarot-immersive-shell .reading-room-section .ritual-step {
        max-height: none;
    }
}

@media (max-width: 760px) {
    body.tarot-immersive-shell {
        overflow: auto;
    }

    body.tarot-immersive-shell .cosmic-shop-hero,
    body.tarot-immersive-shell .reading-room-section {
        position: absolute;
        min-height: 100dvh;
    }

    body.tarot-immersive-shell .cosmic-shop-hero {
        overflow: auto;
    }

    body.tarot-immersive-shell .reading-room-section {
        padding: 14px;
    }

    body.tarot-immersive-shell .astra-guide-panel {
        grid-template-columns: 1fr;
    }

    .reading-room-exit span {
        display: none;
    }
}

