/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* SageDeck Color Palette */
    --app-gold: rgb(215, 195, 130);
    --app-purple: rgb(112, 48, 160);
    --app-soft-gold: rgb(215, 195, 130);
    --app-soft-gold-backup: rgb(255, 240, 217);
    --app-navy: rgb(8, 16, 32);
    --app-teal: rgb(14, 42, 66);

    /* Semantic Colors */
    --primary-bg: var(--app-teal);
    --text-primary: var(--app-gold);
    --text-secondary: var(--app-soft-gold-backup);
    --accent: var(--app-purple);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(215, 195, 130, 0.15);
    --card-selected: rgba(215, 195, 130, 0.3);
}

body {
    font-family: 'Cormorant', serif;
    background: linear-gradient(135deg, var(--app-navy) 0%, var(--app-teal) 100%);
    color: var(--text-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.screen {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
    padding: 20px 0;
}

.screen.active {
    display: block;
}

/* Center welcome and question screens */
#questionScreen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#welcomeScreen.active {
    display: block;
}

#welcomeScreen .home-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--app-gold);
    border-bottom: 2px solid var(--app-gold);
    transform: rotate(45deg);
    animation: scrollArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.5;
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

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

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

.content-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   WELCOME SCREEN
   ======================================== */

.logo-container {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(215, 195, 130, 0.3);
}

.logo-large {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(215, 195, 130, 0.4);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--app-gold) 0%, var(--app-soft-gold-backup) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

/* Hero Headlines */
.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero-subheadline {
    font-family: 'Cormorant', serif;
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* Hero Floating Cards */
.hero-floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-card {
    position: absolute;
    width: 120px;
    height: 180px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.hero-card-1 {
    top: 15%;
    left: 5%;
    transform: rotate(-12deg);
    animation: floatCard1 6s ease-in-out infinite;
}

.hero-card-2 {
    top: 20%;
    right: 5%;
    transform: rotate(8deg);
    animation: floatCard2 7s ease-in-out infinite;
}

.hero-card-3 {
    bottom: 20%;
    left: 8%;
    transform: rotate(5deg);
    animation: floatCard3 5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-15px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50% { transform: rotate(8deg) translateY(-20px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-12px); }
}

/* Additional Hero Cards 4-8 */
.hero-card-4 {
    bottom: 25%;
    right: 8%;
    transform: rotate(-6deg);
    animation: floatCard4 5.5s ease-in-out infinite;
}

.hero-card-5 {
    top: 35%;
    left: 12%;
    transform: rotate(10deg);
    animation: floatCard5 6.5s ease-in-out infinite;
}

.hero-card-6 {
    top: 40%;
    right: 10%;
    transform: rotate(-8deg);
    animation: floatCard6 7s ease-in-out infinite;
}

.hero-card-7 {
    bottom: 35%;
    left: 3%;
    transform: rotate(4deg);
    animation: floatCard7 5.8s ease-in-out infinite;
}

.hero-card-8 {
    bottom: 15%;
    right: 3%;
    transform: rotate(-10deg);
    animation: floatCard8 6.2s ease-in-out infinite;
}

@keyframes floatCard4 {
    0%, 100% { transform: rotate(-6deg) translateY(0) scale(1); }
    50% { transform: rotate(-6deg) translateY(-18px) scale(1.02); }
}

@keyframes floatCard5 {
    0%, 100% { transform: rotate(10deg) translateY(0) scale(1); }
    50% { transform: rotate(10deg) translateY(-14px) scale(1.03); }
}

@keyframes floatCard6 {
    0%, 100% { transform: rotate(-8deg) translateY(0) scale(1); }
    50% { transform: rotate(-8deg) translateY(-16px) scale(1.02); }
}

@keyframes floatCard7 {
    0%, 100% { transform: rotate(4deg) translateY(0) scale(1); }
    50% { transform: rotate(4deg) translateY(-20px) scale(1.03); }
}

@keyframes floatCard8 {
    0%, 100% { transform: rotate(-10deg) translateY(0) scale(1); }
    50% { transform: rotate(-10deg) translateY(-15px) scale(1.02); }
}

/* Add subtle scale animation to existing hero cards too */
@keyframes floatCard1 {
    0%, 100% { transform: rotate(-12deg) translateY(0) scale(1); }
    50% { transform: rotate(-12deg) translateY(-15px) scale(1.02); }
}

@keyframes floatCard2 {
    0%, 100% { transform: rotate(8deg) translateY(0) scale(1); }
    50% { transform: rotate(8deg) translateY(-20px) scale(1.03); }
}

@keyframes floatCard3-updated {
    0%, 100% { transform: rotate(5deg) translateY(0) scale(1); }
    50% { transform: rotate(5deg) translateY(-12px) scale(1.02); }
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
    font-style: italic;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.screen-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.screen-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
    font-style: italic;
}

/* ========================================
   BUTTONS
   ======================================== */

.primary-button,
.secondary-button {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    padding: 16px 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.primary-button {
    background: var(--app-gold);
    color: var(--app-navy);
}

.primary-button:hover:not(:disabled) {
    background: var(--app-soft-gold-backup);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(215, 195, 130, 0.3);
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-button {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--app-gold);
}

.secondary-button:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* ========================================
   QUESTION INPUT
   ======================================== */

.question-input-container {
    margin: 40px 0;
}

.question-input {
    width: 100%;
    background: var(--card-bg);
    border: 2px solid var(--app-gold);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-secondary);
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    resize: vertical;
    min-height: 120px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.question-input:focus {
    outline: none;
    border-color: var(--app-soft-gold-backup);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(215, 195, 130, 0.2);
}

.question-input::placeholder {
    color: rgba(255, 240, 217, 0.5);
    font-style: italic;
}

/* ========================================
   CARD GRID
   ======================================== */

.layout-name {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 10px 0 20px 0;
    font-style: italic;
    opacity: 0.8;
}

.layout-name span {
    color: var(--text-primary);
    font-weight: 600;
    font-style: normal;
}

.card-grid {
    position: relative;
    margin: 40px 0;
    min-height: 600px;
    width: 100%;
}

/* ========================================
   CARD ITEMS
   ======================================== */

.card-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--card-bg);
}

.card-item-positioned {
    /* Positioned cards use absolute positioning set via JS */
    position: absolute;
}

.card-item:hover {
    border-color: var(--app-gold);
    box-shadow: 0 10px 30px rgba(215, 195, 130, 0.4);
    transform-origin: center;
    z-index: 9999 !important;
}

.card-item.selected {
    border-color: var(--app-gold);
    background: var(--card-selected);
    box-shadow: 0 0 20px rgba(215, 195, 130, 0.6);
    z-index: 9998 !important;
}

.card-item.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--app-gold);
    color: var(--app-navy);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

.card-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.card-back {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* ========================================
   SELECTED CARDS DISPLAY
   ======================================== */

.selected-cards-display {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.selected-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--app-gold);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.selected-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(215, 195, 130, 0.2);
}

.card-image-container {
    flex-shrink: 0;
    width: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--app-gold);
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

.card-details {
    flex: 1;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.card-short-meaning {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 15px;
    opacity: 0.9;
}

.card-long-meaning {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   READING INFO
   ======================================== */

.reading-info {
    background: rgba(112, 48, 160, 0.2);
    border: 2px solid var(--app-purple);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.info-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-text strong {
    color: var(--text-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .screen-title {
        font-size: 1.8rem;
    }

    .screen-subtitle {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        max-height: 500px;
    }

    .selected-card {
        flex-direction: column;
        padding: 20px;
    }

    .card-image-container {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .logo {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
        padding: 15px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .card-short-meaning,
    .card-long-meaning {
        font-size: 1rem;
    }
}

/* ========================================
   LOADING & ANIMATIONS
   ======================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        90deg,
        var(--card-bg) 0%,
        rgba(215, 195, 130, 0.1) 50%,
        var(--card-bg) 100%
    );
    background-size: 1000px 100%;
}

/* ========================================
   BANNER IMAGE
   ======================================== */

.banner-container {
    margin: 30px 0;
    text-align: center;
}

.banner-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--app-gold);
    box-shadow: 0 8px 30px rgba(215, 195, 130, 0.2);
    transition: all 0.3s ease;
}

.banner-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(215, 195, 130, 0.3);
}

/* Modern Small Banner */
.banner-container-small {
    margin: 0 auto 50px auto;
    text-align: center;
}

.banner-image-small {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 16px;
    border: 2px solid var(--app-gold);
    box-shadow: 0 8px 30px rgba(215, 195, 130, 0.25);
    transition: all 0.4s ease;
    opacity: 0.95;
}

.banner-image-small:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(215, 195, 130, 0.4);
    opacity: 1;
}

/* ========================================
   HOME SCREEN QUESTION
   ======================================== */

.question-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    text-align: center;
    margin: 30px 0 20px 0;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(215, 195, 130, 0.3);
}

.question-title-large {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-primary);
    text-align: center;
    margin: 60px 0 40px 0;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(215, 195, 130, 0.3);
}

.home-wrapper {
    max-width: 700px !important;
}

.question-input-container-home {
    margin: 0 0 40px 0;
}

.question-input-modern {
    width: 100%;
    background: rgba(8, 16, 32, 0.6);
    border: 2px solid var(--app-gold);
    border-radius: 16px;
    padding: 24px;
    color: var(--text-secondary);
    font-family: 'Cormorant', serif;
    font-size: 1.4rem;
    resize: none;
    min-height: 100px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    line-height: 1.6;
}

.question-input-modern:focus {
    outline: none;
    border-color: var(--app-soft-gold-backup);
    background: rgba(8, 16, 32, 0.8);
    box-shadow: 0 0 30px rgba(215, 195, 130, 0.3);
    transform: translateY(-2px);
}

.question-input-modern::placeholder {
    color: rgba(255, 240, 217, 0.4);
    font-style: italic;
    font-size: 1.3rem;
}

.draw-button {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
    padding: 20px 48px;
}

.button-icon {
    font-size: 1.6rem;
}

/* Modern Gradient Button */
.draw-button-modern {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    padding: 24px 60px;
    font-family: 'Cormorant', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--app-navy);
    background: var(--app-gold);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(215, 195, 130, 0.4);
}

.draw-button-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(215, 195, 130, 0.6);
}

.draw-button-modern:active {
    transform: translateY(-2px);
}

.draw-button-modern .gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        var(--app-gold) 0%,
        var(--app-soft-gold-backup) 50%,
        var(--app-gold) 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.draw-button-modern:hover .gradient-bg {
    opacity: 1;
}

.draw-button-modern .button-text {
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.browse-button {
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--app-gold);
    border-radius: 12px;
    padding: 14px 24px;
    margin-top: 16px;
    cursor: pointer;
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.browse-button:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 195, 130, 0.25);
}

/* ========================================
   SUGGESTIONS MODAL
   ======================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, rgba(14, 42, 66, 0.95) 0%, rgba(8, 16, 32, 0.95) 100%);
    border: 2px solid var(--app-gold);
    border-radius: 24px;
    padding: 0;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(215, 195, 130, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px;
    border-bottom: 2px solid rgba(215, 195, 130, 0.3);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: 2px solid var(--app-gold);
    color: var(--text-primary);
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: var(--app-gold);
    color: var(--app-navy);
    transform: rotate(90deg);
}

.suggestions-grid {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.suggestion-item {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(215, 195, 130, 0.3);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-family: 'Cormorant', serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(215, 195, 130, 0.1) 0%, rgba(215, 195, 130, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(215, 195, 130, 0.15);
    border-color: var(--app-gold);
    color: var(--text-primary);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(215, 195, 130, 0.2);
}

.suggestion-item:hover::before {
    opacity: 1;
}

/* Reshuffle Button */
.reshuffle-container {
    padding: 20px 0 10px 0;
    border-top: 1px solid rgba(215, 195, 130, 0.2);
    margin-top: 10px;
}

.reshuffle-button {
    width: 100%;
    background: transparent;
    border: 2px dashed rgba(215, 195, 130, 0.5);
    border-radius: 12px;
    padding: 16px 24px;
    color: rgba(215, 195, 130, 0.8);
    font-family: 'Cormorant', serif;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reshuffle-button:hover {
    background: rgba(215, 195, 130, 0.1);
    border-color: rgba(215, 195, 130, 0.8);
    color: rgb(215, 195, 130);
    transform: scale(1.02);
}

.reshuffle-icon {
    font-size: 1.4rem;
    display: inline-block;
    transition: transform 0.5s ease;
}

.reshuffle-button:hover .reshuffle-icon {
    transform: rotate(360deg);
}

/* Custom scrollbar for modal */
.suggestions-grid::-webkit-scrollbar {
    width: 10px;
}

.suggestions-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin: 10px 0;
}

.suggestions-grid::-webkit-scrollbar-thumb {
    background: var(--app-gold);
    border-radius: 5px;
}

.suggestions-grid::-webkit-scrollbar-thumb:hover {
    background: var(--app-soft-gold-backup);
}

/* ========================================
   WELCOME SCREEN UPDATES
   ======================================== */

#welcomeScreen .content-wrapper {
    text-align: center;
}

#welcomeScreen .logo {
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE UPDATES
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo-large {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    .banner-image-small {
        max-width: 200px;
    }

    .question-title-large {
        font-size: 2rem;
        margin: 40px 0 30px 0;
    }

    .question-input-modern {
        font-size: 1.2rem;
        padding: 20px;
    }

    .draw-button-modern {
        font-size: 1.3rem;
        padding: 20px 48px;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .suggestion-item {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .question-title {
        font-size: 1.6rem;
    }

    .banner-image {
        max-width: 100%;
    }

    .draw-button {
        font-size: 1.2rem;
        padding: 16px 32px;
    }

    .card-grid {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .logo-large {
        font-size: 2.8rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .banner-image-small {
        max-width: 160px;
    }

    .banner-container-small {
        margin-bottom: 30px;
    }

    .question-title-large {
        font-size: 1.6rem;
        margin: 30px 0 25px 0;
    }

    .question-input-modern {
        font-size: 1.1rem;
        padding: 18px;
        min-height: 80px;
    }

    .browse-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .draw-button-modern {
        font-size: 1.2rem;
        padding: 18px 36px;
    }

    .modal-content {
        max-width: 95%;
        border-radius: 20px;
    }

    .modal-header {
        padding: 20px 25px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-close {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }

    .suggestions-grid {
        padding: 20px;
        gap: 10px;
    }

    .suggestion-item {
        font-size: 1rem;
        padding: 16px 18px;
    }

    .question-title {
        font-size: 1.3rem;
    }

    .draw-button {
        font-size: 1.1rem;
        padding: 14px 24px;
    }
}

/* ========================================
   AI INTERPRETATION STYLES
   ======================================== */

.ai-interpretation {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.15) 0%, rgba(215, 195, 130, 0.1) 100%);
    border: 1px solid rgba(215, 195, 130, 0.3);
    border-radius: 16px;
    text-align: center;
}

.interpretation-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(215, 195, 130, 0.2);
    border-top-color: rgb(215, 195, 130);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.interpretation-loading p {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: rgba(215, 195, 130, 0.8);
    font-style: italic;
}

.interpretation-content {
    text-align: left;
}

.interpretation-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: rgb(215, 195, 130);
    margin-bottom: 20px;
    text-align: center;
}

.interpretation-text {
    font-family: 'Cormorant', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
}

.interpretation-error {
    text-align: center;
    padding: 20px;
}

.interpretation-error p {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.error-detail {
    font-size: 0.9rem;
    color: rgba(255, 150, 150, 0.8);
    margin-bottom: 20px;
}

.retry-button {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgb(112, 48, 160), rgb(160, 80, 200));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(112, 48, 160, 0.4);
}

.ai-interpretation.hidden {
    display: none;
}

/* Mobile adjustments for AI interpretation */
@media (max-width: 768px) {
    .ai-interpretation {
        padding: 20px;
        margin-bottom: 30px;
    }

    .interpretation-title {
        font-size: 1.4rem;
    }

    .interpretation-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
}

/* ========================================
   iOS-STYLE READING EXPERIENCE
   ======================================== */

.reading-wrapper {
    padding-bottom: 40px;
    text-align: center;
}

#readingScreen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#readingScreen .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ========================================
   MYSTICAL LOADING ANIMATION
   ======================================== */

.mystical-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    position: relative;
    transition: opacity 0.5s ease;
}

.mystical-loading.hidden {
    display: none;
}

/* Floating Cards Animation */
.floating-cards-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 90px;
    background: linear-gradient(135deg,
        rgba(215, 195, 130, 0.9) 0%,
        rgba(160, 140, 100, 0.9) 50%,
        rgba(215, 195, 130, 0.9) 100%);
    border-radius: 6px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(215, 195, 130, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(215, 195, 130, 0.6);
}

.floating-card::before {
    content: '✧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: rgba(112, 48, 160, 0.8);
}

.card-1 {
    animation: floatCard1 3s ease-in-out infinite;
}

.card-2 {
    animation: floatCard2 3s ease-in-out infinite;
    animation-delay: 0.3s;
}

.card-3 {
    animation: floatCard3 3s ease-in-out infinite;
    animation-delay: 0.6s;
}

.card-4 {
    animation: floatCard4 3s ease-in-out infinite;
    animation-delay: 0.9s;
}

.card-5 {
    animation: floatCard5 3s ease-in-out infinite;
    animation-delay: 1.2s;
}

@keyframes floatCard1 {
    0%, 100% { transform: translate(-60px, -40px) rotate(-15deg); opacity: 0.7; }
    50% { transform: translate(-65px, -50px) rotate(-20deg); opacity: 1; }
}

@keyframes floatCard2 {
    0%, 100% { transform: translate(60px, -40px) rotate(15deg); opacity: 0.7; }
    50% { transform: translate(65px, -50px) rotate(20deg); opacity: 1; }
}

@keyframes floatCard3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1.1); opacity: 1; }
    50% { transform: translate(0, -10px) rotate(5deg) scale(1.15); opacity: 1; }
}

@keyframes floatCard4 {
    0%, 100% { transform: translate(-60px, 50px) rotate(-10deg); opacity: 0.7; }
    50% { transform: translate(-55px, 40px) rotate(-5deg); opacity: 1; }
}

@keyframes floatCard5 {
    0%, 100% { transform: translate(60px, 50px) rotate(10deg); opacity: 0.7; }
    50% { transform: translate(55px, 40px) rotate(5deg); opacity: 1; }
}

.mystical-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle,
        rgba(112, 48, 160, 0.3) 0%,
        rgba(215, 195, 130, 0.1) 40%,
        transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

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

.mystical-message {
    font-family: 'Cormorant', serif;
    font-size: 1.4rem;
    color: rgba(215, 195, 130, 0.9);
    font-style: italic;
    text-align: center;
    margin-top: 40px;
    transition: opacity 0.3s ease;
}

/* Reading Cards Container (X Layout) */
.reading-cards-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 400px;
}

/* Individual Reading Card Wrapper */
.reading-card-wrapper {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reading-card-wrapper:hover {
    transform: scale(1.05) !important;
    z-index: 100 !important;
}

/* Reading Card (3D Flip) */
.reading-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.reading-card[data-flipped="true"] {
    transform: rotateY(180deg);
}

.reading-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.reading-card-back,
.reading-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

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

/* Tap Hint */
.tap-hint {
    text-align: center;
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: rgba(215, 195, 130, 0.7);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tap-hint.visible {
    opacity: 1;
}

/* Card Detail Overlay - Semi-transparent backdrop */
.card-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 16, 32, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    transition: background 0.3s ease;
}

.card-detail-overlay.hidden {
    display: none;
}

.card-detail-overlay.backdrop-only {
    background: rgba(8, 16, 32, 0.8);
}

.card-detail-content {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-detail-content.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Reading Panel - positioned to the right of the card */
.reading-panel-side {
    background: linear-gradient(135deg, rgba(14, 42, 66, 0.97), rgba(8, 16, 32, 0.98));
    border: 2px solid rgba(215, 195, 130, 0.4);
    border-radius: 20px;
    padding: 35px 40px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.reading-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: rgb(215, 195, 130);
    margin-bottom: 12px;
    text-align: left;
    opacity: 0;
}

.reading-panel-theme {
    font-family: 'Cormorant', serif;
    font-size: 1.3rem;
    color: rgba(215, 195, 130, 0.9);
    margin-bottom: 20px;
    text-align: left;
    opacity: 0;
}

.reading-panel-interpretation {
    font-family: 'Cormorant', serif;
    font-size: 1.35rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 20px;
    min-height: 50px;
    text-align: left;
}

.reading-panel-message {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: rgba(215, 195, 130, 0.95);
    font-style: italic;
    text-align: left;
    padding-top: 18px;
    border-top: 1px solid rgba(215, 195, 130, 0.2);
    opacity: 0;
}

.tap-to-dismiss {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.5);
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

/* Mobile: Stack card and panel vertically */
@media (max-width: 768px) {
    .card-detail-content {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        max-width: none;
        transform: none;
        max-height: 45vh;
    }

    .reading-panel-side {
        padding: 20px;
        max-height: 40vh;
    }

    .reading-panel-title {
        font-size: 1.4rem;
    }

    .reading-panel-interpretation {
        font-size: 1.05rem;
    }

    .reading-panel-message {
        font-size: 1rem;
    }
}

/* Summary Section */
.summary-section {
    max-width: 700px;
    width: 100%;
    margin: 40px auto 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.15) 0%, rgba(215, 195, 130, 0.1) 100%);
    border: 1px solid rgba(215, 195, 130, 0.3);
    border-radius: 16px;
    text-align: center;
}

.summary-section.hidden {
    display: none;
}

.summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: rgb(215, 195, 130);
    margin-bottom: 20px;
    text-align: center;
}

.summary-text {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-align: left;
}

.summary-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.summary-buttons.visible {
    opacity: 1;
}

/* Full Reading Screen */
.full-reading-wrapper {
    padding: 0;
}

.full-reading-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(8, 16, 32, 0.95);
    border-bottom: 1px solid rgba(215, 195, 130, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-button,
.share-button {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button {
    background: transparent;
    border: 1px solid rgba(215, 195, 130, 0.5);
    color: rgb(215, 195, 130);
}

.share-button {
    background: linear-gradient(135deg, rgb(112, 48, 160), rgb(160, 80, 200));
    border: none;
    color: white;
}

.full-reading-content {
    padding: 30px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.full-reading-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(215, 195, 130, 0.2);
}

.full-reading-date {
    font-family: 'Cormorant', serif;
    font-size: 0.95rem;
    color: rgba(215, 195, 130, 0.6);
    margin-bottom: 5px;
}

.full-reading-type {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.8);
    margin-bottom: 15px;
}

.full-reading-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: rgb(215, 195, 130);
    font-style: italic;
}

.full-reading-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.full-reading-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(14, 42, 66, 0.5);
    border: 1px solid rgba(215, 195, 130, 0.2);
    border-radius: 12px;
}

.full-reading-card-image {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.full-reading-card-details {
    flex: 1;
}

.full-reading-card-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: rgb(215, 195, 130);
    margin-bottom: 10px;
}

.full-reading-card-details .theme {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.8);
    margin-bottom: 10px;
}

.full-reading-card-details .interpretation {
    font-family: 'Cormorant', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.full-reading-card-details .message {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.9);
    font-style: italic;
}

.full-reading-summary {
    padding: 25px;
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.15) 0%, rgba(215, 195, 130, 0.1) 100%);
    border: 1px solid rgba(215, 195, 130, 0.3);
    border-radius: 12px;
}

.full-reading-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: rgb(215, 195, 130);
    margin-bottom: 15px;
    text-align: center;
}

.full-reading-summary p {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Full Reading Screen (after View Entire Reading) */
.full-reading-wrapper {
    padding: 20px;
    min-height: 100vh;
}

.full-reading-content {
    max-width: 800px;
    margin: 0 auto;
}

.full-reading-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(215, 195, 130, 0.3);
}

.full-reading-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: rgb(215, 195, 130);
    margin-bottom: 15px;
}

.full-reading-question {
    font-family: 'Cormorant', serif;
    font-size: 1.4rem;
    color: rgba(215, 195, 130, 0.8);
    font-style: italic;
}

.full-reading-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.full-reading-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(215, 195, 130, 0.2);
}

@media (max-width: 768px) {
    .full-reading-actions {
        flex-direction: column;
    }

    .full-reading-actions button {
        width: 100%;
    }

    .full-reading-logo {
        font-size: 2rem;
    }

    .full-reading-question {
        font-size: 1.2rem;
    }
}

/* Loading Error */
.loading-error {
    text-align: center;
    padding: 40px 20px;
}

.loading-error p {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

/* Mobile Adjustments for Reading */
@media (max-width: 768px) {
    .reading-cards-container {
        min-height: 350px;
    }

    .card-detail-layout {
        flex-direction: column;
    }

    .card-detail-image-container {
        width: 140px;
        height: 210px;
    }

    .card-detail-text {
        padding: 20px;
        max-height: 45vh;
    }

    .card-detail-title {
        font-size: 1.5rem;
    }

    .full-reading-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .full-reading-card-image {
        width: 120px;
        height: 180px;
    }

    .summary-buttons {
        flex-direction: column;
    }
}


/* ========================================
   SHARED READING SCREEN
   ======================================== */

.shared-reading-wrapper {
    padding: 20px;
    min-height: 100vh;
}

.shared-reading-content {
    max-width: 800px;
    margin: 0 auto;
}

.shared-reading-header {
    text-align: center;
    margin-bottom: 40px;
}

.shared-reading-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: rgb(215, 195, 130);
    margin-bottom: 10px;
}

.shared-reading-intro {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: rgba(215, 195, 130, 0.7);
    font-style: italic;
}

.shared-reading-question {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.15) 0%, rgba(215, 195, 130, 0.1) 100%);
    border: 1px solid rgba(215, 195, 130, 0.3);
    border-radius: 12px;
}

.shared-reading-question .question-label {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shared-reading-question h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: rgb(215, 195, 130);
    font-style: italic;
}

.shared-reading-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.shared-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(14, 42, 66, 0.5);
    border: 1px solid rgba(215, 195, 130, 0.2);
    border-radius: 12px;
}

.shared-card-image {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.shared-card-details {
    flex: 1;
}

.shared-card-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: rgb(215, 195, 130);
    margin-bottom: 8px;
}

.shared-card-details .theme {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.8);
    margin-bottom: 10px;
}

.shared-card-details .interpretation {
    font-family: 'Cormorant', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.shared-card-details .message {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.9);
    font-style: italic;
}

.shared-reading-summary {
    padding: 25px;
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.15) 0%, rgba(215, 195, 130, 0.1) 100%);
    border: 1px solid rgba(215, 195, 130, 0.3);
    border-radius: 12px;
    margin-bottom: 40px;
}

.shared-reading-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: rgb(215, 195, 130);
    margin-bottom: 15px;
    text-align: center;
}

.shared-reading-summary p {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.shared-reading-cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(8, 16, 32, 0.9), rgba(14, 42, 66, 0.9));
    border: 1px solid rgba(215, 195, 130, 0.3);
    border-radius: 16px;
}

.shared-reading-cta p {
    font-family: 'Cormorant', serif;
    font-size: 1.3rem;
    color: rgba(215, 195, 130, 0.9);
    margin-bottom: 20px;
}

.cta-button {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, rgb(112, 48, 160), rgb(160, 80, 200));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(112, 48, 160, 0.4);
}

/* Share button copied state */
.share-reading-btn.copied {
    background: linear-gradient(135deg, rgb(50, 150, 80), rgb(80, 180, 100)) !important;
}

/* ========================================
   SHARE MODAL
   ======================================== */

.share-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 16, 32, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: linear-gradient(135deg, rgba(14, 42, 66, 0.98), rgba(8, 16, 32, 0.98));
    border: 2px solid rgba(215, 195, 130, 0.5);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.share-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: rgb(215, 195, 130);
    margin-bottom: 10px;
}

.share-modal-subtitle {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.share-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.share-link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(215, 195, 130, 0.4);
    border-radius: 8px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Cormorant', serif;
    font-size: 1rem;
}

.share-link-input:focus {
    outline: none;
    border-color: rgba(215, 195, 130, 0.8);
}

.copy-link-btn {
    background: var(--app-gold);
    color: var(--app-navy);
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.copy-link-btn:hover {
    background: var(--app-soft-gold-backup);
    transform: translateY(-2px);
}

.copy-link-btn.copied {
    background: linear-gradient(135deg, rgb(50, 150, 80), rgb(80, 180, 100));
    color: white;
}

.share-modal-close {
    background: transparent;
    border: 2px solid rgba(215, 195, 130, 0.5);
    color: rgb(215, 195, 130);
    border-radius: 8px;
    padding: 12px 40px;
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: rgba(215, 195, 130, 0.1);
    border-color: rgb(215, 195, 130);
}

@media (max-width: 480px) {
    .share-link-container {
        flex-direction: column;
    }

    .copy-link-btn {
        width: 100%;
    }
}

/* Loading error styling */
.error-icon {
    font-size: 3rem;
    color: rgba(215, 195, 130, 0.6);
    margin-bottom: 20px;
}

/* Mobile adjustments for shared reading */
@media (max-width: 768px) {
    .shared-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .shared-card-image {
        width: 120px;
        height: 180px;
    }

    .shared-reading-logo {
        font-size: 2rem;
    }
}

/* ========================================
   LANDING PAGE / MARKETING SECTIONS
   ======================================== */

.landing-sections {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

/* Section common styles */
.landing-sections section {
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.landing-sections section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-family: 'Cormorant', serif;
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 50px;
    font-style: italic;
    opacity: 0.9;
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 50px 20px !important;
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.15) 0%, rgba(215, 195, 130, 0.1) 100%);
    border-top: 1px solid rgba(215, 195, 130, 0.2);
    border-bottom: 1px solid rgba(215, 195, 130, 0.2);
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(215, 195, 130, 0.5), transparent);
}

/* ========================================
   FEATURED CARDS SHOWCASE
   ======================================== */

.featured-cards-section {
    background: transparent;
    text-align: center;
}

.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.featured-card-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 2/3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.featured-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(215, 195, 130, 0.3);
    z-index: 10;
}

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

.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(transparent, rgba(8, 16, 32, 0.95));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.featured-card-item:hover .featured-card-overlay {
    transform: translateY(0);
}

.featured-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.featured-card-meaning {
    font-family: 'Cormorant', serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works-section {
    background: linear-gradient(180deg, transparent 0%, rgba(8, 16, 32, 0.3) 50%, transparent 100%);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(215, 195, 130, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(215, 195, 130, 0.08);
    border-color: rgba(215, 195, 130, 0.4);
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--app-gold), var(--app-soft-gold-backup));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(215, 195, 130, 0.3);
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--app-navy);
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.step-description {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(215, 195, 130, 0.5), rgba(215, 195, 130, 0.2));
    margin-top: 70px;
    flex-shrink: 0;
}

/* ========================================
   SAMPLE READING SECTION
   ======================================== */

.sample-reading-section {
    background: linear-gradient(180deg, transparent 0%, rgba(112, 48, 160, 0.08) 50%, transparent 100%);
}

.sample-reading-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(215, 195, 130, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.sample-question {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(215, 195, 130, 0.15);
}

.sample-label {
    font-family: 'Cormorant', serif;
    font-size: 0.9rem;
    color: var(--app-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.sample-question-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.5;
}

.sample-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.sample-card {
    text-align: center;
}

.sample-card img {
    width: 140px;
    height: 210px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.sample-card:hover img {
    transform: translateY(-5px);
}

.sample-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.sample-interpretation {
    text-align: left;
    padding-top: 25px;
    border-top: 1px solid rgba(215, 195, 130, 0.15);
}

.sample-reading-text {
    font-family: 'Cormorant', serif;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.sample-reading-highlight {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--app-gold);
    text-align: center;
    font-style: italic;
    margin-top: 25px;
}

/* ========================================
   PRICING SECTION
   ======================================== */

.pricing-section {
    background: linear-gradient(180deg, transparent 0%, rgba(8, 16, 32, 0.5) 50%, transparent 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(215, 195, 130, 0.2);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(215, 195, 130, 0.4);
}

.pricing-unlimited {
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.15) 0%, rgba(215, 195, 130, 0.1) 100%);
    border-color: var(--app-gold);
    transform: scale(1.05);
}

.pricing-unlimited:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--app-gold), var(--app-soft-gold-backup));
    color: var(--app-navy);
    font-family: 'Cormorant', serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-badge-save {
    background: linear-gradient(135deg, #4a9c6d, #2d7a4f);
    color: white;
}

.pricing-tier {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.pricing-price {
    margin-bottom: 15px;
}

.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.pricing-description {
    font-family: 'Cormorant', serif;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.pricing-features li {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid rgba(215, 195, 130, 0.1);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--app-gold);
    font-weight: bold;
}

.pricing-button {
    width: 100%;
    padding: 16px 30px;
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-button-free {
    background: transparent;
    border: 2px solid rgba(215, 195, 130, 0.5);
    color: var(--text-primary);
}

.pricing-button-free:hover {
    background: rgba(215, 195, 130, 0.1);
    border-color: var(--app-gold);
}

.pricing-button-unlimited {
    background: linear-gradient(135deg, var(--app-gold), var(--app-soft-gold-backup));
    color: var(--app-navy);
    box-shadow: 0 8px 25px rgba(215, 195, 130, 0.3);
}

.pricing-button-unlimited:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(215, 195, 130, 0.4);
}

.pricing-button-annual {
    background: rgba(74, 156, 109, 0.2);
    border: 2px solid rgba(74, 156, 109, 0.5);
    color: var(--text-primary);
}

.pricing-button-annual:hover {
    background: rgba(74, 156, 109, 0.3);
    border-color: #4a9c6d;
}

.pricing-note {
    font-family: 'Cormorant', serif;
    font-size: 0.9rem;
    color: rgba(215, 195, 130, 0.6);
    margin-top: 15px;
}

/* ========================================
   CARD BACKS SECTION
   ======================================== */

.card-backs-section {
    background: transparent;
}

.card-backs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.card-back-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 2/3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(215, 195, 130, 0.3);
}

.card-back-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back-item:hover {
    transform: translateY(-8px) rotate(-2deg);
    box-shadow: 0 15px 35px rgba(215, 195, 130, 0.25);
    border-color: var(--app-gold);
}

.card-back-item:nth-child(even):hover {
    transform: translateY(-8px) rotate(2deg);
}

/* ========================================
   CARD MEANINGS PREVIEW
   ======================================== */

.card-meanings-section {
    background: linear-gradient(180deg, transparent 0%, rgba(112, 48, 160, 0.1) 50%, transparent 100%);
    text-align: center;
}

.meanings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.meaning-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(215, 195, 130, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.meaning-card:hover {
    background: rgba(215, 195, 130, 0.08);
    border-color: rgba(215, 195, 130, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.meaning-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.meaning-card-content {
    padding: 20px;
}

.meaning-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.meaning-card-text {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-section {
    background: transparent;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(14, 42, 66, 0.8) 0%, rgba(8, 16, 32, 0.9) 100%);
    border: 1px solid rgba(215, 195, 130, 0.25);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(215, 195, 130, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    font-size: 1.3rem;
    color: var(--app-gold);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.testimonial-text {
    font-family: 'Cormorant', serif;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.author-detail {
    font-family: 'Cormorant', serif;
    font-size: 0.95rem;
    color: rgba(215, 195, 130, 0.6);
}

/* ========================================
   FEATURES GRID
   ======================================== */

.features-section {
    background: linear-gradient(180deg, transparent 0%, rgba(8, 16, 32, 0.5) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(215, 195, 130, 0.2);
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(215, 195, 130, 0.08);
    border-color: rgba(215, 195, 130, 0.4);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-description {
    font-family: 'Cormorant', serif;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    background: transparent;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(215, 195, 130, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(215, 195, 130, 0.4);
}

.faq-item.active {
    border-color: var(--app-gold);
    background: rgba(215, 195, 130, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(215, 195, 130, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--app-gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 25px 25px;
}

.faq-answer p {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */

.final-cta-section {
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.2) 0%, rgba(215, 195, 130, 0.15) 100%);
    border-top: 1px solid rgba(215, 195, 130, 0.2);
    border-bottom: 1px solid rgba(215, 195, 130, 0.2);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-subtitle {
    font-family: 'Cormorant', serif;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-button-large {
    position: relative;
    display: inline-block;
    padding: 22px 60px;
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--app-navy);
    background: linear-gradient(135deg, var(--app-gold), var(--app-soft-gold-backup));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 35px rgba(215, 195, 130, 0.4);
}

.cta-button-large:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(215, 195, 130, 0.5);
}

.cta-button-large:active {
    transform: translateY(-2px);
}

.cta-note {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.6);
    margin-top: 25px;
}

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

.site-footer {
    background: rgba(8, 16, 32, 0.8);
    padding: 50px 20px 30px !important;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-link {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    color: rgba(215, 195, 130, 0.8);
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--app-gold);
}

.footer-divider {
    color: rgba(215, 195, 130, 0.3);
    margin: 0 15px;
}

.footer-copyright {
    font-family: 'Cormorant', serif;
    font-size: 0.95rem;
    color: rgba(215, 195, 130, 0.4);
}

.footer-social {
    margin: 20px 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(215, 195, 130, 0.1);
    color: var(--app-gold);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(215, 195, 130, 0.2);
    transform: translateY(-3px);
}

.footer-legal {
    margin: 15px 0;
}

.footer-legal-link {
    font-family: 'Cormorant', serif;
    font-size: 0.9rem;
    color: rgba(215, 195, 130, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--app-gold);
}

/* ========================================
   LANDING PAGE RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .featured-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

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

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

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .pricing-unlimited {
        transform: scale(1.02);
    }

    .pricing-unlimited:hover {
        transform: scale(1.02) translateY(-5px);
    }

    /* Hide floating cards on tablet */
    .hero-floating-cards {
        display: none;
    }
}

@media (max-width: 768px) {
    .landing-sections {
        padding-top: 60px;
    }

    .landing-sections section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    /* Hero */
    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }

    .hero-floating-cards {
        display: none;
    }

    /* Featured Cards */
    .featured-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* How It Works */
    .steps-container {
        flex-direction: column;
        gap: 25px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
        background: linear-gradient(180deg, rgba(215, 195, 130, 0.5), rgba(215, 195, 130, 0.2));
    }

    .step-item {
        max-width: 100%;
    }

    /* Sample Reading */
    .sample-reading-container {
        padding: 30px 20px;
    }

    .sample-question-text {
        font-size: 1.2rem;
    }

    .sample-cards {
        flex-direction: row;
        gap: 20px;
    }

    .sample-card img {
        width: 100px;
        height: 150px;
    }

    .sample-reading-text {
        font-size: 1.05rem;
    }

    .sample-reading-highlight {
        font-size: 1.15rem;
    }

    /* Card Backs */
    .card-backs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Meanings */
    .meanings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
    }

    .pricing-unlimited {
        transform: none;
        order: -1;
    }

    .pricing-unlimited:hover {
        transform: translateY(-5px);
    }

    .price-amount {
        font-size: 2.5rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* CTA */
    .cta-title {
        font-size: 2rem;
    }

    .cta-button-large {
        padding: 18px 40px;
        font-size: 1.2rem;
    }

    /* Footer legal */
    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-legal .footer-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .landing-sections section {
        padding: 50px 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Featured Cards */
    .featured-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .featured-card-name {
        font-size: 0.95rem;
    }

    /* Card Backs */
    .card-backs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    /* Steps */
    .step-icon {
        width: 65px;
        height: 65px;
    }

    .step-number {
        font-size: 1.6rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 1.05rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 1.05rem;
        padding: 18px 20px;
    }

    .faq-answer p {
        font-size: 1rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.6rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .cta-button-large {
        padding: 16px 35px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }

    /* Footer */
    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-divider {
        display: none;
    }
}

/* ========================================
   SEE ALL CARDS BUTTON
   ======================================== */

.see-all-cards-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid var(--app-gold);
    border-radius: 50px;
    color: var(--app-gold);
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.see-all-cards-button:hover {
    background: var(--app-gold);
    color: var(--app-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 195, 130, 0.3);
}

.see-all-cards-button svg {
    transition: transform 0.3s ease;
}

.see-all-cards-button:hover svg {
    transform: translateX(5px);
}

/* ========================================
   ALL CARDS MODAL
   ======================================== */

.all-cards-modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    background: linear-gradient(135deg, var(--app-navy) 0%, var(--app-teal) 100%);
    border: 1px solid rgba(215, 195, 130, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.all-cards-modal-content .modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(215, 195, 130, 0.2);
    position: relative;
}

.all-cards-modal-content .modal-subtitle {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

.all-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 40px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.all-cards-grid::-webkit-scrollbar {
    width: 8px;
}

.all-cards-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.all-cards-grid::-webkit-scrollbar-thumb {
    background: var(--app-gold);
    border-radius: 4px;
}

.all-cards-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 2/3;
    background: var(--card-bg);
}

.all-cards-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.all-cards-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(215, 195, 130, 0.3);
}

.all-cards-item:hover img {
    transform: scale(1.05);
}

.all-cards-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: linear-gradient(transparent, rgba(8, 16, 32, 0.95));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.all-cards-item:hover .all-cards-item-overlay {
    opacity: 1;
}

.all-cards-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--app-gold);
    text-align: center;
}

/* ========================================
   CARD DETAIL MODAL
   ======================================== */

.card-detail-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    background: linear-gradient(135deg, var(--app-navy) 0%, var(--app-teal) 100%);
    border: 1px solid rgba(215, 195, 130, 0.3);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.card-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.card-detail-modal-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.card-detail-image-container {
    flex: 0 0 300px;
}

.card-detail-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card-detail-info {
    flex: 1;
    padding-top: 10px;
}

.card-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--app-gold);
    margin-bottom: 15px;
}

.card-detail-short-meaning {
    font-family: 'Cormorant', serif;
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(215, 195, 130, 0.2);
}

.card-detail-long-meaning {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.card-detail-cta {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(215, 195, 130, 0.2);
}

.card-detail-cta-text {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.card-detail-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--app-gold);
    color: var(--app-navy);
    border: none;
    border-radius: 8px;
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-detail-cta-button:hover {
    background: var(--app-soft-gold-backup);
    transform: translateY(-2px);
}

/* Responsive styles for modals */
@media (max-width: 900px) {
    .all-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .card-detail-modal-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-detail-image-container {
        flex: none;
        width: 200px;
    }

    .card-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .all-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .all-cards-modal-content .modal-header {
        padding: 20px;
    }

    .card-detail-modal-content {
        padding: 20px;
    }

    .card-detail-image-container {
        width: 160px;
    }

    .card-detail-title {
        font-size: 1.6rem;
    }

    .card-detail-short-meaning {
        font-size: 1.1rem;
    }

    .card-detail-long-meaning {
        font-size: 1rem;
    }
}

/* ========================================
   SUGGESTIONS MODAL - ALL 100 QUESTIONS
   ======================================== */

.suggestions-grid-all {
    max-height: 60vh;
    overflow-y: auto;
}

.suggestions-grid-all::-webkit-scrollbar {
    width: 8px;
}

.suggestions-grid-all::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.suggestions-grid-all::-webkit-scrollbar-thumb {
    background: var(--app-gold);
    border-radius: 4px;
}

/* ========================================
   FIX WHITE BACKGROUND ON SCROLL
   ======================================== */

html {
    background: var(--app-navy);
}

html, body {
    background: linear-gradient(135deg, var(--app-navy) 0%, var(--app-teal) 100%);
    background-attachment: fixed;
}

/* ========================================
   REDUCE GAP AFTER SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    margin-top: 30px;
    margin-bottom: 0;
}

.landing-sections {
    margin-top: 0;
}

.featured-cards-section {
    padding-top: 60px;
}
