/* --- CORE VARIABLES --- */
:root {
    --bg-paper: #FDFBF7;
    --navy-deep: #0F172A;
    --gold-main: #B45309;
    --gold-light: #FEF3C7;
    --text-body: #334155;
    --text-muted: #64748B;
    --surface-white: #FFFFFF;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-lg: 24px;
    --radius-md: 16px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }

body {
    background-color: var(--bg-paper);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body);
    margin: 0;
    padding-bottom: 110px;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: 'Cinzel', serif; color: var(--navy-deep); margin: 0; }

/* --- UTILITIES --- */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- FLASH --- */
.flash-wrap { padding: 12px 24px 0; }
.flash {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.06);
}
.flash.success { background: #ECFDF5; border-color: #10B98133; color: #065F46; }
.flash.error { background: #FEF2F2; border-color: #EF444433; color: #991B1B; }

/* --- HEADER --- */
header {
    position: sticky; top: 0; z-index: 50;
    padding: 15px 24px;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; cursor: pointer; }
.brand span { color: var(--gold-main); }

.header-right { display: flex; gap: 10px; align-items: center; }

.lang-badge {
    font-size: 0.75rem; font-weight: 700; padding: 6px 10px;
    border: 1px solid #E2E8F0; border-radius: 20px;
    cursor: pointer; text-transform: uppercase; color: var(--text-muted);
}

.credit-badge {
    background: var(--surface-white);
    border: 1px solid var(--gold-main);
    color: var(--navy-deep);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex; align-items: center; gap: 6px;
    box-shadow: var(--shadow-card);
}

/* --- HERO SECTION --- */
.hero { padding: 24px; }
.hero h2 { font-size: 1.8rem; line-height: 1.3; }
.hero p { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }

/* --- SERVICES GRID --- */
.section-title { padding: 0 24px; font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center;}
.see-all { font-size: 0.8rem; color: var(--gold-main); cursor: pointer; }

.services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 24px 30px;
}

.service-card {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    position: relative; overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-card:hover { transform: translateY(-5px); border-color: var(--gold-main); }
.service-card i { font-size: 1.8rem; color: var(--gold-main); margin-bottom: 12px; display: block; }
.service-card h3 { font-size: 1rem; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 5px; }
.service-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

.service-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}
.service-card.featured h3, .service-card.featured p { color: white; }
.service-card.featured p { opacity: 0.8; }
.service-card.featured i { color: #FCD34D; }

/* --- EXPERTS LIST --- */
.expert-list-vertical { padding: 0 24px 30px; display: flex; flex-direction: column; gap: 15px; }
.expert-row {
    background: var(--surface-white); border-radius: 16px; padding: 15px;
    display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-card);
}
.expert-row img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-light); }
.expert-info { flex: 1; }
.expert-name { font-weight: 700; color: var(--navy-deep); }
.rating-pill { background: #FFFBEB; color: #B45309; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: bold; display: inline-block; margin-top: 5px; }

/* --- FORM VIEW --- */
.form-container { max-width: 800px; margin: 0 auto; padding: 24px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--navy-deep); }
.form-input, .form-select, textarea {
    width: 100%; padding: 14px; border-radius: 12px;
    border: 1px solid #E2E8F0; background: var(--surface-white);
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem;
    transition: 0.3s;
}
.form-input:focus { border-color: var(--gold-main); box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1); }

.photo-upload-box {
    border: 2px dashed #CBD5E1; border-radius: 16px;
    height: 120px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; color: var(--text-muted);
    cursor: pointer; background: white; text-align: center; padding: 10px;
}
.photo-upload-box.active { border-color: var(--gold-main); background: var(--gold-light); color: var(--gold-main); }

/* --- TAROT DECK --- */
.tarot-deck-container {
    overflow-x: auto; padding: 10px 0 25px; display: flex; gap: -20px;
    perspective: 1000px; min-height: 180px; scrollbar-width: none;
}
.tarot-card-back {
    min-width: 80px; height: 130px; background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 8px; border: 2px solid #6366f1; margin-right: -40px;
    box-shadow: -5px 0 10px rgba(0,0,0,0.3); cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.tarot-card-back::after { content: '☾'; color: rgba(255,255,255,0.2); font-size: 2rem; }
.tarot-card-back:hover { transform: translateY(-15px); z-index: 10; margin-right: -20px; }
.tarot-card-back.selected {
    transform: translateY(-30px); z-index: 20; border-color: var(--gold-main);
    box-shadow: 0 0 15px var(--gold-main); margin-right: 10px;
}

/* --- SELECT INTERPRETER --- */
.interpreter-selection {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 10px;
}
.interpreter-option {
    background: white; border: 2px solid transparent; border-radius: 12px;
    padding: 10px; text-align: center; cursor: pointer; transition: 0.2s;
}
.interpreter-option.selected { border-color: var(--gold-main); background: var(--gold-light); }
.interpreter-option img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-bottom: 5px; }
.interpreter-option span { display: block; font-size: 0.8rem; font-weight: 600; }

.submit-btn {
    width: 100%; padding: 16px; background: var(--navy-deep);
    color: white; border: none; border-radius: 16px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
    margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 10px;
}

/* --- TIMER & PROFILE --- */
.timer-screen { text-align: center; padding-top: 60px; }
.pulse-avatar {
    width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px;
    border: 3px solid var(--gold-main); padding: 3px; position: relative;
}
.pulse-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pulse-avatar::after {
    content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%; border: 2px solid var(--gold-main);
    animation: pulse-ring 2s infinite; opacity: 0;
}
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.countdown-timer { font-family: 'Cinzel', serif; font-size: 3rem; font-weight: 800; color: var(--navy-deep); margin: 20px 0; }

/* Profile Status Cards */
.status-card {
    background: white; border-radius: 16px; padding: 15px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-card); border-left: 4px solid #ccc;
}
.status-card.completed { border-left-color: #10B981; }
.btn-view { background: var(--navy-deep); color: white; border: none; padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; cursor: pointer; margin-left: auto; }

/* --- SPECIALIZED RESULT STYLES (NEW) --- */
.res-container { background: white; padding: 20px; border-radius: 20px; box-shadow: var(--shadow-card); margin-bottom: 20px; }

/* Tarot Layout */
.res-tarot-grid { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.res-tarot-card { width: 90px; height: 140px; border-radius: 8px; background-size: cover; background-position: center; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: flipIn 0.6s ease-out; }
.res-tarot-label { text-align: center; font-size: 0.75rem; font-weight: bold; margin-top: 5px; color: var(--navy-deep); }
@keyframes flipIn { from { transform: rotateY(90deg); opacity: 0; } to { transform: rotateY(0); opacity: 1; } }

/* Astro Layout */
.res-astro-map { width: 100%; height: 150px; background: #eee url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/World_map_blank_without_borders.svg/1000px-World_map_blank_without_borders.svg.png') center/cover; border-radius: 12px; margin-bottom: 15px; position: relative; }
.map-pin { position: absolute; font-size: 1.2rem; color: #EF4444; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.res-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.res-bar-bg { flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.res-bar-fill { height: 100%; background: var(--gold-main); border-radius: 4px; }

/* Coffee/Symbol Layout */
.symbol-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.symbol-tag { background: var(--gold-light); color: var(--gold-main); padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 600; }

/* Common Result Elements */
.result-content { padding: 20px; line-height: 1.6; color: var(--text-body); }
.rating-area { text-align: center; padding: 20px; background: white; margin: 20px; border-radius: 16px; }
.stars { font-size: 2rem; color: #ddd; cursor: pointer; }
.stars i.active { color: #F59E0B; }

/* --- NAV CAPSULE --- */
.nav-capsule {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: var(--navy-deep); padding: 12px 35px;
    border-radius: 40px; display: flex; gap: 40px; align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4); z-index: 100;
}
.nav-item { color: rgba(255,255,255,0.4); font-size: 1.4rem; cursor: pointer; transition: 0.3s; position: relative; }
.nav-item.active { color: var(--gold-main); }
.nav-center-btn {
    width: 50px; height: 50px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy-deep); font-size: 1.2rem; margin-top: -30px;
    border: 4px solid var(--bg-paper); cursor: pointer;
}
.qtx-file-input{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}