/* public/style.css - Premium Tarot Design */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #d69e2e; /* Gold */
    --secondary: #ecc94b; /* Lighter Gold */
    --purple-glow: #6b21a8;
    --pink-glow: #db2777;
    --background: #0b001a; /* Very Dark Background */
    --surface: #12122b;
    --surface-light: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

.container-fluid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(107, 33, 168, 0.2), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(219, 39, 119, 0.05), transparent 50%);
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(90deg, #db2777 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Glass Card */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

/* Auth Section */
.auth-section {
    max-width: 600px;
    margin: 0 auto 4rem;
    display: none; /* Hidden until expert selection */
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

input[type="email"], input[type="text"] {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--secondary);
}

button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--accent);
    filter: brightness(1.1);
}

/* Tarot Display Area */
.draw-area {
    display: none; /* Hidden until checkout */
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.chat-wrapper {
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.chat-feed {
    max-height: 60vh; /* Aumentado */
    min-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-right: 0.3rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.chat-bubble.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(214, 158, 46, 0.6);
}

.chat-input-area {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chat-input-area input,
.chat-input-area textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    color: #f8fafc;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s ease;
}

.chat-input-area input:focus,
.chat-input-area textarea:focus {
    border-color: var(--secondary);
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-chat,
.btn-chat-secondary {
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-chat {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f172a;
}

.btn-chat-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text);
}

.btn-chat:hover,
.btn-chat-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chat-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.tarot-card {
    width: 200px;
    height: 320px;
    background: #1e293b;
    border-radius: 15px;
    border: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.tarot-card:hover {
    transform: translateY(-10px) rotate(2deg);
}

.tarot-card .card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

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

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
}

.card-back {
    background: linear-gradient(45deg, #1e1b4b, #312e81);
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
}

.card-front {
    background: #fff;
    color: #1e293b;
    transform: rotateY(180deg);
}

.card-front img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.card-name {
    padding: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Loading Overlay */
#loader {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--glass);
    border-top: 5px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Explanation Section */
.explanation-section {
    margin: 4rem 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    width: 100%;
    text-align: center;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    width: 100%;
    margin-top: 4rem;
}

.explanation-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 5rem 0;
}

.expert-card {
    background: #1c1c3c;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(124, 58, 237, 0.3);
}

.main-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}
\n.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn-current {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.lang-btn-current:hover,
.lang-btn-current:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 0.35rem;
    display: none;
    flex-direction: column;
    min-width: 160px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lang-dropdown.open {
    display: flex;
}

.lang-dropdown-item {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    width: 100%;
    white-space: nowrap;
}

.lang-dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    transform: none;
    box-shadow: none;
    filter: none;
}

.lang-dropdown-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f172a;
    font-weight: 800;
}

.expert-card-header {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    padding: 0 15px;
}

.icon-heart, .icon-bell {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
}

.expert-photo-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    padding: 4px;
    background: linear-gradient(45deg, #7c3aed, #db2777);
    border-radius: 50%;
}

.expert-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
}

.expert-card .status-badge {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-top: -10px;
    margin-bottom: 1rem;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
}

.expert-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.expert-tag {
    color: #4ade80;
    font-size: 0.7rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.expert-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.expert-bio-short {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 2rem;
    min-height: 4rem;
}

.expert-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.btn-msg-main {
    background: #d69e2e;
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.btn-msg-main:hover {
    background: #ecc94b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 158, 46, 0.3);
}

.expert-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.expert-card.selected {
    border: 2px solid var(--secondary);
    background: rgba(214, 158, 46, 0.1);
}

.expert-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--glass-border);
    object-fit: cover;
    background: #2d3748;
}

.status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-online { background: #10b981; color: white; }
.status-offline { background: #64748b; color: white; }

.expert-name {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.expert-specialty {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

/* Dual Buttons Style */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

.btn-video, .btn-msg {
    padding: 0.6rem 0.2rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-video {
    background: var(--primary);
    color: #000;
    border: none;
}

.btn-msg {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-video:hover, .btn-msg:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Navigation & Filter Bar */
.navigation-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #11112b;
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    margin-top: -40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    position: relative;
    z-index: 10;
}

/* Payment Section */
.payment-methods {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.method-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.method-card.active {
    border-color: var(--secondary);
    background: rgba(214, 158, 46, 0.1);
}

.pix-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-top: 2rem;
    color: #0f172a;
    display: none;
    text-align: center;
}

.pix-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-key {
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 1rem 0;
    border: 1px dashed #cbd5e1;
}

.summary-order {
    text-align: left;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* Readings Section */
.readings-section {
    width: 100%;
    padding: 4rem 0;
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.readings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.reading-card {
    background: #1c1c3c;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.reading-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(214, 158, 46, 0.3);
}

.reading-card.highlighted {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.1), rgba(124, 58, 237, 0.1));
}

.reading-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.reading-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.reading-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.reading-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn:hover {
    border-color: var(--secondary);
    color: var(--text);
}

.filter-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

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

/* Tablets */
@media (max-width: 1024px) {
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 12px;
    }
    .container {
        padding: 1rem;
    }

    /* Header */
    .main-header {
        flex-wrap: wrap;
        padding: 1rem 0;
        gap: 0.75rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo-icon {
        font-size: 1.2rem;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }
    .lang-btn-current {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    .btn-portal {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-section {
        padding: 2rem 0;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    .feature-cards {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    /* Navigation Bar */
    .navigation-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
        margin-top: -20px;
        border-radius: 16px;
    }
    .search-cell {
        width: 100%;
    }
    .search-cell input {
        width: 100%;
        font-size: 16px; /* Prevents iOS zoom */
    }
    .status-toggle-cell {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    #oracle-dropdown,
    #theme-dropdown {
        width: 100%;
    }
    .dropdown-select {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    .mode-toggles {
        justify-content: center;
    }

    /* Filter Bar */
    .filter-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Experts Grid */
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    .expert-card {
        padding: 1.5rem 1rem;
    }
    .expert-photo-container {
        width: 80px;
        height: 80px;
    }
    .expert-name {
        font-size: 1.15rem;
    }
    .expert-bio-short {
        min-height: auto;
        margin-bottom: 1rem;
    }

    /* Readings Grid */
    .readings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .reading-card {
        padding: 1.5rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    .explanation-section {
        margin: 2rem 0;
    }
    .explanation-section h2 {
        font-size: 1.4rem;
    }
    .explanation-section p {
        font-size: 1rem;
    }

    /* Chat */
    .wa-feed .chat-bubble {
        max-width: 92%;
        font-size: 0.9rem;
    }
    .wa-header {
        padding: 0.6rem 0.75rem;
    }
    .wa-input-bar {
        padding: 0.5rem 0.75rem;
    }
    .wa-input {
        padding: 0.6rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    .wa-send-btn {
        width: 42px;
        height: 42px;
    }
    .wa-questions-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    /* Modal */
    .modal-overlay > .glass-panel {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
    }
    #modal-title {
        font-size: 1.2rem;
    }

    /* Buttons */
    .btn-msg-main {
        padding: 0.85rem;
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-section {
        padding: 1.5rem 0;
    }
    .logo {
        font-size: 1rem;
    }
    .header-actions {
        flex-wrap: wrap;
    }
    .navigation-bar {
        padding: 0.75rem;
    }
    .expert-card {
        padding: 1.25rem 0.75rem;
    }
    .expert-photo-container {
        width: 70px;
        height: 70px;
    }
    .wa-header-info strong {
        font-size: 0.9rem;
    }
}

/* Legacy responsive - keep for compatibility */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .input-group { flex-direction: column; }
    .tarot-card { width: 150px; height: 240px; }
}

/* ===== WhatsApp-Style Chat Layout ===== */
#tarot-section.draw-area {
    padding: 0 !important;
    margin: 0 !important;
}

.wa-chat-container {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    background: #0f172a;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 500;
}

/* Header bar */
.wa-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    background: #1e293b;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.wa-header-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}
.wa-header-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.wa-header-info strong {
    color: var(--text);
    font-size: 1rem;
}
.wa-status {
    color: #86efac;
    font-size: 0.75rem;
}
.wa-questions-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f172a;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 30px;
    white-space: nowrap;
}

/* Chat feed */
.wa-feed {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.05) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.05) 0%, transparent 60%);
}
.wa-feed .chat-bubble {
    max-width: 80%;
    padding: 0.65rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}
.wa-feed .bubble-bot {
    align-self: flex-start;
    background: #1e293b;
    border-top-left-radius: 4px;
    color: var(--text);
}
.wa-feed .bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-top-right-radius: 4px;
    color: white;
}

/* Input bar */
.wa-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.wa-input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    color: white;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}
.wa-input:focus {
    border-color: var(--primary);
}
.wa-textarea {
    min-height: 48px;
    max-height: 120px;
    overflow-y: auto;
}
.wa-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
}
.wa-send-btn:hover { transform: scale(1.08); }
.wa-skip-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.wa-skip-btn:hover { background: rgba(255,255,255,0.12); }
.wa-chat-status {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0.2rem 0 0.4rem;
    flex-shrink: 0;
    background: #1e293b;
}
