:root {
    --bg-color-start: #1a0b2e;
    --bg-color-end: #000000;
    --accent-gold: #ffd700;
    --accent-purple: #4b0082;
    --text-main: #ffffff;
    --text-secondary: #cccccc;
    --card-width: 150px;
    /* Reduced from 200px */
    --card-height: 240px;
    /* Reduced from 320px */
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background: radial-gradient(circle at center, var(--bg-color-start), var(--bg-color-end));
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

.app-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    text-align: center;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home */
.deck-container {
    margin-top: 20px;
    perspective: 1000px;
    cursor: pointer;
}

.card-back {
    width: var(--card-width);
    height: var(--card-height);
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0b2e 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(75, 0, 130, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    animation: breath 3s infinite ease-in-out;
}

.card-back::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 90%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.card-back i {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.8;
}

@keyframes breath {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(75, 0, 130, 0.5);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    }
}

/* Deck Card Flip Animation */
.deck-card {
    width: var(--card-width);
    height: var(--card-height);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.deck-card.flipped {
    transform: rotateY(180deg);
}

.deck-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
    overflow: hidden;
}

.deck-back {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0b2e 100%);
    box-shadow: 0 0 20px rgba(75, 0, 130, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: breath 3s infinite ease-in-out;
    z-index: 2;
}

.deck-back::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 90%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.deck-back i {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.8;
}

.deck-front {
    background: #1a0b2e;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), 0 10px 40px rgba(0, 0, 0, 0.5);
}

.deck-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.deck-card.flipped .deck-back {
    animation: none;
}

/* Home result container */
.home-result-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-shaking {
    animation: flipCard 1s ease-in-out both;
}

@keyframes flipCard {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(180deg);
    }
}

/* Spread Selector */
.spread-selector {
    margin-top: 30px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spread-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.spread-option.selected {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
}

.spread-option.locked {
    opacity: 0.6;
}

.spread-option i {
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--accent-gold);
    width: 25px;
    text-align: center;
}

/* Status Badges */
.badge {
    position: absolute;
    right: 10px;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid;
}

.badge-ad {
    color: #aaaaff;
    border-color: #aaaaff;
}

.badge-premium {
    color: #ffaa00;
    border-color: #ffaa00;
}

.badge-locked {
    color: #ff4444;
    border-color: #ff4444;
}

.spread-info h4 {
    margin: 0;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
}

.spread-info p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Result */
.cards-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
    /* Reduced from 40px */
    margin-bottom: 20px;
}

.spread-position-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 10px;
    opacity: 0.8;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 5px;
    width: 80%;
}

.result-card-container {
    perspective: 1200px;
    width: var(--card-width);
    height: var(--card-height);
}

.result-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-face.front {
    background: #1a0b2e;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.card-face.back {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0b2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 0 60px rgba(75, 0, 130, 0.3);
}

.card-face.back i {
    font-size: 3rem;
    color: var(--accent-gold);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    }
}

.result-card.flipped {
    transform: rotateY(180deg);
}

.result-card.flipped .card-face.front {
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    background: #1a0b2e;
    /* Match card background */

}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-info {
    text-align: center;
    width: 100%;
    padding: 0 10px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.card-info.visible {
    opacity: 1;
}

/* Scroll offset for top bar */
[data-card-index] {
    scroll-margin-top: 60px;
}

.card-short {
    margin-bottom: 10px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Premium synthesis block animation */
.synthesis-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.synthesis-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    background: linear-gradient(45deg, #4b0082, #2d1b4e);
    border: 1px solid var(--accent-gold);
    color: var(--text-main);
    padding: 10px 20px;
    /* Reduced padding */
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin: 5px 0;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-share {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.btn-gold {
    background: linear-gradient(45deg, var(--accent-gold), #b8860b);
    color: #000;
    border: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.advice-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.advice-label {
    color: var(--accent-gold);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Dev Button */
.dev-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    font-size: 0.7rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

.premium-badge {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    opacity: 1;
}

/* Premium Content Blur Effect */
.premium-content {
    transition: filter 0.5s ease;
}

.premium-content.blurred {
    filter: blur(8px);
    user-select: none;
}

.unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
    transition: opacity 0.3s;
    border-radius: 12px;
}

.unlock-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.ad-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--accent-gold);
}

.ad-loader.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =================== MODALS =================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: linear-gradient(160deg, #1f0d3a 0%, #0d0a1e 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 22px;
    padding: 32px 24px 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow:
        0 0 60px rgba(75, 0, 130, 0.5),
        0 0 120px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.visible .modal-card {
    transform: translateY(0) scale(1);
}

.modal-orb {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
    animation: float-orb 4s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.modal-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.modal-card > p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    margin: 0 0 22px 0;
    line-height: 1.55;
}

.modal-field {
    margin-bottom: 14px;
    text-align: left;
}

.modal-field label {
    display: block;
    font-size: 0.72rem;
    color: rgba(212, 175, 55, 0.75);
    margin-bottom: 6px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.modal-field input[type="date"],
.modal-field input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 13px 15px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    color-scheme: dark;
    font-family: 'Open Sans', sans-serif;
}

.modal-field input:focus {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.modal-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 14px 15px;
    color: #fff;
    font-size: 0.92rem;
    outline: none;
    resize: none;
    height: 110px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.55;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 14px;
    display: block;
}

.modal-textarea:focus {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.modal-btn {
    width: 100%;
    margin: 0 0 10px 0;
}

.modal-skip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.25s;
    font-family: 'Open Sans', sans-serif;
}

.modal-skip:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* =================== SPREAD INVITE (replaces sticky promo) =================== */
.spread-invite {
    width: 100%;
    margin-top: 28px;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    padding-bottom: 30px;
}

.spread-invite.visible {
    opacity: 1;
    transform: translateY(0);
}

.spread-invite-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.spread-invite-divider::before,
.spread-invite-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
}

.spread-invite-stars {
    color: var(--accent-gold);
    font-size: 0.75rem;
    letter-spacing: 5px;
    animation: twinkle 5s infinite ease-in-out;
}

.spread-invite-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
    font-style: italic;
}

.spread-invite-title {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    font-size: 1.7rem;
    letter-spacing: 7px;
    margin: 0 0 10px 0;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.spread-invite-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
    line-height: 1.65;
    margin: 0 0 22px 0;
    padding: 0 10px;
}

.spread-invite-cards {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 22px;
}

.spread-mini-card {
    width: 54px;
    height: 82px;
    background: linear-gradient(145deg, #2d1b4e 0%, #1a0b2e 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 7px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 7px;
    font-size: 0.58rem;
    color: rgba(212, 175, 55, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spread-mini-card::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 1.3rem;
    color: rgba(212, 175, 55, 0.35);
}

.spread-mini-card.center {
    height: 94px;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.spread-mini-card.center::before {
    color: rgba(212, 175, 55, 0.75);
    font-size: 1.5rem;
}

.spread-mini-card.side {
    opacity: 0.5;
    filter: blur(0.5px);
    transform: rotate(-5deg);
}

.spread-mini-card.side:last-child {
    transform: rotate(5deg);
}

.spread-invite-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: pulse-invite 3.5s infinite ease-in-out;
}

@keyframes pulse-invite {
    0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 35px rgba(212, 175, 55, 0.75), 0 0 70px rgba(212, 175, 55, 0.15); }
}

.spread-invite-note {
    margin: 10px 0 0 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.28);
}

/* =================== AI INTERPRETATION =================== */
.ai-interpret-section {
    width: 100%;
    margin-top: 20px;
    padding: 24px;
    background: linear-gradient(160deg, rgba(75, 0, 130, 0.35) 0%, rgba(13, 10, 30, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.06);
}

.ai-interpret-header {
    text-align: center;
    margin-bottom: 20px;
}

.ai-interpret-header h3 {
    color: var(--accent-gold);
    font-size: 1.05rem;
    margin: 0 0 6px 0;
}

.ai-interpret-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.btn-ai {
    background: linear-gradient(135deg, #2d0f5e, #1a0b2e);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.btn-ai::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -80%; }
    100% { left: 160%; }
}

.btn-ai:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

/* AI Loading */
.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.ai-loading-visual {
    position: relative;
    width: 64px;
    height: 64px;
}

.ai-loading-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
    animation: pulse-glow 2s ease-in-out infinite;
    position: absolute;
    top: 0; left: 0;
}

.ai-orb {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gold);
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -5px;
}

.ai-orb:nth-child(1) {
    animation: orbit 2s linear infinite;
    transform-origin: 0 -24px;
}

.ai-orb:nth-child(2) {
    animation: orbit 2s linear infinite 0.67s;
    transform-origin: 0 -24px;
    opacity: 0.6;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
}

.ai-orb:nth-child(3) {
    animation: orbit 2s linear infinite 1.33s;
    transform-origin: 0 -24px;
    opacity: 0.3;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateY(-24px); }
    to { transform: rotate(360deg) translateY(-24px); }
}

.ai-loading-text {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 0.88rem;
    text-align: center;
    animation: fade-cycle 6s infinite ease-in-out;
}

@keyframes fade-cycle {
    0%, 18%, 100% { opacity: 0.6; }
    10% { opacity: 1; }
}

/* AI Result */
.ai-position {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    animation: fadeInUp 0.5s ease-out both;
}

.ai-position:last-of-type {
    border-bottom: none;
}

.ai-position-name {
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.ai-position-text {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #ddd;
}

.ai-conclusion {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(75, 0, 130, 0.15));
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 14px;
    padding: 18px;
    margin-top: 18px;
    animation: fadeInUp 0.6s ease-out both;
}

.ai-conclusion-title {
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ai-conclusion-text {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #f0f0f0;
}

.ai-error {
    text-align: center;
    color: rgba(255, 100, 100, 0.8);
    font-size: 0.85rem;
    padding: 15px;
}

/* =================== STREAK BADGE =================== */

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.15), rgba(255, 60, 0, 0.08));
    border: 1px solid rgba(255, 120, 0, 0.35);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffb066;
    margin: 6px auto 0;
    animation: fadeInUp 0.5s ease-out both;
    letter-spacing: 0.3px;
}

/* =================== PREMIUM UPSELL =================== */

.premium-upsell {
    margin-top: 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(75, 0, 130, 0.35) 0%, rgba(26, 11, 46, 0.7) 100%);
    overflow: hidden;
    text-align: center;
    padding: 20px 18px 18px;
    position: relative;
}

.premium-upsell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.upsell-lock-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    text-align: left;
}

.upsell-lock-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.upsell-lock-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.upsell-lock-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

/* Blurred card grid preview */
.upsell-cards-preview {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
}

.upsell-card-preview {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.6), rgba(26, 11, 46, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.3);
    font-size: 1.1rem;
    animation: fadeInUp 0.4s ease-out both;
}

.upsell-cards-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: linear-gradient(180deg, transparent 0%, rgba(26, 11, 46, 0.85) 80%);
    border-radius: 10px;
}

/* Streak FOMO line */
.upsell-streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 100, 0, 0.12);
    border: 1px solid rgba(255, 120, 0, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    color: #ffb066;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Benefits list */
.upsell-benefits {
    text-align: left;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.upsell-benefit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.upsell-benefit i {
    color: #5dde78;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Price row */
.upsell-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.upsell-price-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    line-height: 1;
}

.upsell-price-badge span {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
    font-family: 'Open Sans', sans-serif;
}

.upsell-price-badge.stars {
    background: linear-gradient(135deg, rgba(100, 160, 255, 0.15), rgba(80, 120, 255, 0.06));
    border-color: rgba(100, 160, 255, 0.4);
    color: #aad4ff;
}

.upsell-price-or {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* CTA button */
.upsell-cta {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px;
    animation: pulse-invite 3s ease-in-out infinite;
}

.upsell-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 8px 0 0;
}