/* ===============================================
   MAIA TAROT - ANCESTRAL THEME
   Tema ancestral com pedras, egito, deserto e estrelas
   =============================================== */

/* Importação de Fontes */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Cinzel+Decorative:wght@400;700;900&family=Forum&display=swap');

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Baskerville', serif;
    background: #1A1E17;
    color: #C2B08A;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Ancestral */
.ancestral-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(194, 176, 138, 0.1) 0%, rgba(194, 176, 138, 0.05) 25%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 15%, transparent 30%),
        radial-gradient(circle at 40% 40%, rgba(139, 117, 82, 0.08) 0%, rgba(139, 117, 82, 0.03) 20%, transparent 40%);
    background-color: #1A1E17;
    z-index: -1;
}

/* Estrelas sutis */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Header */
.ancestral-header {
    text-align: center;
    padding: 60px 0 40px;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Cinzel Decorative', serif;
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    letter-spacing: 2px;
    animation: emerge 3s ease-out;
    margin-bottom: 10px;
    line-height: 1.2;
}

.fade-in {
    animation: emerge 2s ease-out;
}

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

.ancestral-header .tagline {
    font-size: 1.2rem;
    color: #B39A63;
    opacity: 0.9;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
    animation: emerge 2.5s ease-out 0.5s both;
}

.welcome-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #B39A63;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #C2B08A;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'EB Garamond', serif;
}

/* Forms */
.tarot-form-container {
    margin-bottom: 80px;
    animation: emerge 2.5s ease-out 0.8s both;
}

.ancestral-form {
    background: rgba(42, 46, 37, 0.8);
    border: 2px solid rgba(139, 117, 82, 0.4);
    border-radius: 15px;
    padding: 40px;
    box-shadow: inset 0 1px 0 rgba(194, 176, 138, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #B39A63;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.ancestral-form input,
.ancestral-form select,
.ancestral-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(26, 30, 23, 0.8);
    border: 2px solid #8B7652;
    border-radius: 10px;
    color: #C2B08A;
    font-size: 1rem;
    transition: all 1s ease;
    font-family: 'EB Garamond', serif;
}

.ancestral-form input::placeholder,
.ancestral-form textarea::placeholder {
    color: rgba(194, 176, 138, 0.6);
}

.ancestral-form input:focus,
.ancestral-form select:focus,
.ancestral-form textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    background: rgba(26, 30, 23, 0.9);
}

.ancestral-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.ancestral-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B39A63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

/* Buttons */
.ancestral-button {
    display: inline-block;
    padding: 0;
    background: linear-gradient(45deg, #8B7652, #B39A63);
    border: 2px solid #5F4A2E;
    border-radius: 10px;
    color: #1A1E17;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
    text-align: center;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.ancestral-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(95, 74, 46, 0.5);
    border-color: #D4AF37;
}

.button-text {
    display: block;
    padding: 15px 25px;
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.05);
    opacity: 0;
    transition: opacity 2s ease;
}

.ancestral-button:hover .button-glow {
    opacity: 1;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #B39A63;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 117, 82, 0.6);
    border-top: 3px solid #D4AF37;
    border-radius: 50%;
    animation: spin 3s linear infinite;
    margin: 0 auto 20px;
}

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

/* Features Section */
.features-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 80px;
}

.feature-card {
    background: rgba(42, 46, 37, 0.8);
    border: 1px solid rgba(139, 117, 82, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 300px;
    transition: all 2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(95, 74, 46, 0.3);
    border-color: rgba(139, 117, 82, 0.6);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #B39A63;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.feature-card p {
    color: #C2B08A;
    line-height: 1.6;
    font-family: 'EB Garamond', serif;
}

/* Results Page Styles */
.result-content {
    animation: emerge 2s ease-out;
}

.result-content section {
    margin-bottom: 80px;
}

/* Cards Section */
.cards-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #B39A63;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 1000px;
}

.card {
    width: 180px;
    height: 260px;
    perspective: 1000px;
    cursor: pointer;
}

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

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

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(135deg, #8B7652, #B39A63);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(95, 74, 46, 0.4);
    border: 1px solid rgba(194, 176, 138, 0.2);
}

.card-symbol {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1A1E17;
}

.card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1E17;
    line-height: 1.3;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(194, 176, 138, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 2s ease;
}

.card:hover .card-glow {
    opacity: 1;
}

/* Analysis Cards */
.analysis-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #B39A63;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.analysis-card {
    background: rgba(42, 46, 37, 0.8);
    border: 1px solid rgba(139, 117, 82, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 2s ease;
}

.analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(95, 74, 46, 0.2);
    border-color: rgba(139, 117, 82, 0.4);
}

.analysis-card.warning {
    border-color: rgba(139, 117, 82, 0.4);
    background: rgba(139, 117, 82, 0.1);
}

.analysis-card h3 {
    color: #B39A63;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.analysis-card p {
    color: #C2B08A;
    line-height: 1.6;
    font-family: 'EB Garamond', serif;
}

/* Emotion Bars */
.emotion-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emotion-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emotion-label {
    min-width: 100px;
    font-weight: 500;
    color: #C2B08A;
    font-family: 'EB Garamond', serif;
}

.emotion-progress {
    flex: 1;
    height: 8px;
    background: rgba(139, 117, 82, 0.2);
    border-radius: 4px;
    position: relative;
}

.emotion-fill {
    height: 100%;
    background: linear-gradient(90deg, #5F4A2E, #8B7652);
    border-radius: 4px;
    transition: width 3s ease-out;
}

.emotion-value {
    position: absolute;
    right: 0;
    top: -5px;
    font-size: 0.8rem;
    color: #B39A63;
}

/* Polarity Indicator */
.polarity-indicator {
    text-align: center;
}

.polarity-bar {
    height: 12px;
    background: rgba(139, 117, 82, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
}

.polarity-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 3s ease-out, background 3s ease-out;
}

.polarity-positive {
    background: linear-gradient(90deg, #8B7652, #B39A63);
}

.polarity-negative {
    background: linear-gradient(90deg, #5F4A2E, #8B7652);
}

.polarity-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.polarity-label small {
    color: #8B7652;
}

/* Theme and Archetype Tags */
.themes-list,
.archetypes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-tag,
.archetype-tag {
    background: rgba(139, 117, 82, 0.1);
    color: #B39A63;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #8B7652;
    font-family: 'Cinzel', serif;
}

/* Chaos Section */
.chaos-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #B39A63;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.chaos-metrics {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chaos-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.chaos-label {
    color: #B39A63;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    font-family: 'EB Garamond', serif;
}

.chaos-gauge {
    height: 20px;
    background: rgba(139, 117, 82, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.chaos-fill {
    height: 100%;
    background: linear-gradient(90deg, #5F4A2E, #8B7652, #D4AF37);
    border-radius: 10px;
    transition: width 4s ease-out;
}

.chaos-value {
    color: #B39A63;
    font-weight: bold;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
}

.chaos-explanation {
    text-align: center;
    color: #8B7652;
}

/* Technical Section */
.technical-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #B39A63;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-item {
    background: rgba(42, 46, 37, 0.8);
    border: 1px solid rgba(139, 117, 82, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.tech-item h4 {
    color: #B39A63;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.tech-item p {
    color: #C2B08A;
    font-family: 'EB Garamond', serif;
}

/* Error Section */
.error-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #B39A63;
}

.error-message {
    background: rgba(139, 117, 82, 0.1);
    border: 1px solid rgba(139, 117, 82, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: #C2B08A;
}

/* Back to Home */
.back-to-home {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

/* Footer */
.ancestral-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(139, 117, 82, 0.3);
    margin-top: 80px;
    color: #8B7652;
}

.api-link {
    margin-top: 10px;
}

.api-link a {
    color: #B39A63;
    text-decoration: none;
    margin: 0 10px;
}

.api-link a:hover {
    color: #D4AF37;
}

/* Risk Items */
.risks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.risk-item span {
    min-width: 120px;
    font-weight: 500;
    color: #C2B08A;
    font-family: 'EB Garamond', serif;
}

.risk-meter {
    flex: 1;
    height: 8px;
    background: rgba(139, 117, 82, 0.2);
    border-radius: 4px;
    position: relative;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(90deg, #5F4A2E, #8B7652);
    border-radius: 4px;
}

/* Maia Interpretation Section */
.maia-interpretation-section {
    background: rgba(26, 30, 23, 0.8);
    border: 2px solid rgba(139, 117, 82, 0.3);
    border-radius: 15px;
    padding: 40px;
    position: relative;
}

.maia-interpretation-section h2 {
    color: #D4AF37;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    font-family: 'Cinzel Decorative', serif;
}

.maia-interpretation-content {
    color: #C2B08A;
    line-height: 1.9;
    font-size: 1.1rem;
    text-align: justify;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'EB Garamond', serif;
}

.maia-interpretation-content h1,
.maia-interpretation-content h2,
.maia-interpretation-content h3,
.maia-interpretation-content h4 {
    color: #B39A63;
    margin-top: 60px;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    clear: both;
    font-family: 'Cinzel', serif;
}

.maia-interpretation-content h1:first-child {
    margin-top: 0;
}

.maia-interpretation-content h1 {
    font-size: 2.4rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 20px;
    padding-top: 10px;
    text-align: center;
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.maia-interpretation-content h1::after {
    content: "✡️";
    position: absolute;
    right: -60px;
    top: 15px;
    font-size: 1.8rem;
    opacity: 0.8;
}

.maia-interpretation-content h2 {
    font-size: 1.9rem;
    border-left: 3px solid #B39A63;
    padding: 15px 20px;
    margin-left: -20px;
    margin-right: -20px;
    background: rgba(139, 117, 82, 0.05);
    border-radius: 0 8px 8px 0;
}

.maia-interpretation-content h3 {
    font-size: 1.6rem;
    color: #8B7652;
    border-bottom: 2px solid rgba(139, 117, 82, 0.3);
    padding-bottom: 12px;
    margin-top: 45px;
    position: relative;
}

.maia-interpretation-content h3::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 2px;
    background: rgba(139, 117, 82, 0.4);
}

.maia-interpretation-content h4 {
    font-size: 1.4rem;
    color: #5F4A2E;
    font-style: italic;
    text-align: center;
    margin-top: 50px;
}

.maia-interpretation-content p {
    margin-bottom: 30px;
    text-indent: 0;
    padding: 15px;
    line-height: 1.8;
    background: rgba(194, 176, 138, 0.01);
    border-radius: 6px;
    border-left: 1px solid rgba(194, 176, 138, 0.1);
}

.maia-interpretation-content p:first-child {
    font-style: italic;
    border-left: 3px solid #D4AF37;
    padding-left: 25px;
    margin-top: 20px;
    margin-bottom: 40px;
    background: rgba(212, 175, 55, 0.02);
    box-shadow: inset 0 0 5px rgba(212, 175, 55, 0.05);
}

.maia-interpretation-content p:last-child {
    margin-bottom: 50px;
}

.maia-interpretation-content ul,
.maia-interpretation-content ol {
    margin: 35px 0;
    padding-left: 30px;
    background: rgba(194, 176, 138, 0.02);
    padding: 20px 25px 20px 50px;
    border-radius: 10px;
    border: 1px solid rgba(194, 176, 138, 0.1);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.maia-interpretation-content ol {
    margin-left: 10px;
    padding-left: 20px;
}

.maia-interpretation-content ul {
    margin-right: 10px;
}

.maia-interpretation-content li {
    margin-bottom: 15px;
    color: #C2B08A;
    line-height: 1.7;
}

.maia-interpretation-content li:last-child {
    margin-bottom: 0;
}

.maia-interpretation-content ol li {
    list-style-type: decimal;
}

.maia-interpretation-content ul li {
    list-style-type: disc;
}

.maia-interpretation-content ol li::marker {
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.1em;
}

.maia-interpretation-content ul li::marker {
    color: #B39A63;
    font-size: 1.2em;
}

.maia-interpretation-content blockquote {
    border-left: 4px solid #B39A63;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: #C2B08A;
    background: linear-gradient(135deg, rgba(139, 117, 82, 0.05), rgba(194, 176, 138, 0.02));
    border-radius: 8px;
    position: relative;
}

.maia-interpretation-content blockquote::before {
    content: "\"";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    color: #D4AF37;
    opacity: 0.3;
    line-height: 0.5;
}

.maia-interpretation-content blockquote::after {
    content: "\"";
    position: absolute;
    bottom: -5px;
    right: 10px;
    font-size: 2rem;
    color: #D4AF37;
    opacity: 0.3;
    transform: rotate(180deg);
    line-height: 0.5;
}

.maia-interpretation-content strong {
    color: #D4AF37;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 1.1em;
}

.maia-interpretation-content em {
    color: #C2B08A;
    font-style: italic;
    background: rgba(194, 176, 138, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
}

.maia-interpretation-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 20%,
        rgba(212, 175, 55, 0.5) 50%,
        rgba(212, 175, 55, 0.3) 80%,
        transparent 100%
    );
    margin: 50px 0;
    position: relative;
    clear: both;
}

.maia-interpretation-content hr::before {
    content: "✡️";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    background: rgba(26, 30, 23, 0.9);
    padding: 3px 8px;
    border-radius: 50%;
    color: #D4AF37;
}

.maia-signature {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(139, 117, 82, 0.3);
    color: #B39A63;
}

.maia-signature p {
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .galactic-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .features-section {
        flex-direction: column;
        align-items: center;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .chaos-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .technical-grid {
        grid-template-columns: 1fr;
    }

    .emotion-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .emotion-value {
        position: static;
    }

    .location-button {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
}

/* Utilities and Miscellaneous */
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    color: #C2B08A !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    font-family: 'EB Garamond', serif;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(194, 176, 138, 0.1);
    border: 2px solid #8B7652;
    border-radius: 4px;
    position: relative;
    transition: all 2s ease;
}

.checkbox-label input:checked ~ .checkmark {
    background: #D4AF37;
    border-color: #D4AF37;
}

.checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #1A1E17;
    font-weight: bold;
    transition: transform 0.5s ease;
}

.checkbox-label input:checked ~ .checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: rgba(194, 176, 138, 0.7);
    font-size: 0.9rem;
    font-family: 'EB Garamond', serif;
}

/* Advanced Settings */
.advanced-settings-toggle {
    text-align: center;
    margin: 30px 0 20px;
}

.settings-button {
    background: rgba(194, 176, 138, 0.08);
    border: 2px solid #8B7652;
    border-radius: 20px;
    padding: 15px 25px;
    color: #B39A63;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 2s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
}

.settings-button:hover {
    background: rgba(139, 117, 82, 0.1);
    border-color: #D4AF37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.settings-icon {
    font-size: 1.3rem;
}

.toggle-arrow {
    font-size: 0.9rem;
    transition: transform 1s ease;
}

/* Advanced Settings Section */
.advanced-settings {
    background: linear-gradient(135deg, rgba(139, 117, 82, 0.05), rgba(212, 175, 55, 0.02));
    border: 2px solid #8B7652;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 3s ease;
}

.advanced-settings:not(.collapsed) {
    opacity: 1;
    max-height: 2000px;
    padding: 30px;
}

.advanced-settings.collapsed {
    border-width: 0;
    margin-top: 0;
}

.advanced-section {
    margin-bottom: 40px;
}

.advanced-section:last-child {
    margin-bottom: 0;
}

.advanced-section h4 {
    color: #B39A63;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
}

/* ===============================================
   AUTENTICAÇÃO - TEMÁTICA ANCESTRAL
   Login, registro e componentes relacionados
   =============================================== */

/* Container de Autenticação */
.auth-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 50px;
}

.auth-header .logo h1 {
    font-size: 3.8rem;
    margin-bottom: 10px;
}

.auth-header .auth-tagline {
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    opacity: 0.8;
}

/* Card de Autenticação */
.auth-main {
    margin-bottom: 80px;
}

.auth-card {
    background: rgba(42, 46, 37, 0.9);
    border: 3px solid rgba(139, 117, 82, 0.5);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #B39A63, #8B7652, #B39A63, #D4AF37);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Sistema de Abas */
.auth-tabs {
    display: flex;
    background: rgba(26, 30, 23, 0.8);
    border-bottom: 2px solid rgba(139, 117, 82, 0.3);
}

.auth-tab {
    flex: 1;
    padding: 20px 30px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #8B7652;
    transition: all 2s ease;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
}

.auth-tab:hover {
    color: #B39A63;
    background: rgba(139, 117, 82, 0.1);
}

.auth-tab.active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    border-bottom-color: #D4AF37;
    box-shadow: inset 0 2px 10px rgba(212, 175, 55, 0.1);
}

/* Formulários de Autenticação */
.auth-form-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 3s ease;
}

.auth-form-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.auth-form {
    padding: 60px 50px 50px;
    background: rgba(26, 30, 23, 0.8);
}

.auth-form h2 {
    font-size: 2.2rem;
    color: #D4AF37;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
    font-family: 'Cinzel Decorative', serif;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-subtitle {
    text-align: center;
    color: #B39A63;
    font-size: 1rem;
    margin-bottom: 40px;
    font-family: 'EB Garamond', serif;
    font-style: italic;
}

/* Grade de Formulário */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

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

    .auth-form {
        padding: 40px 30px 40px;
    }
}

/* Grupos de Formulário */
.auth-form .form-group {
    margin-bottom: 30px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #B39A63;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Inputs de Autenticação */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="date"],
.auth-form input[type="time"] {
    width: 100%;
    padding: 18px 20px;
    background: rgba(42, 46, 37, 0.8);
    border: 2px solid rgba(139, 117, 82, 0.4);
    border-radius: 12px;
    color: #C2B08A;
    font-size: 1rem;
    transition: all 2s ease;
    font-family: 'EB Garamond', serif;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-form input::placeholder {
    color: rgba(194, 176, 138, 0.5);
    font-style: italic;
}

.auth-form input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(212, 175, 55, 0.1),
        0 0 20px rgba(212, 175, 55, 0.05);
    background: rgba(26, 30, 23, 0.9);
}

.auth-form .form-help {
    display: block;
    margin-top: 8px;
    color: rgba(194, 176, 138, 0.6);
    font-size: 0.85rem;
    font-family: 'EB Garamond', serif;
    font-style: italic;
}

/* Botões de Autenticação */
.auth-actions {
    text-align: center;
    margin-top: 40px;
}

.auth-button {
    display: inline-block;
    padding: 0;
    background: linear-gradient(45deg, #8B7652, #B39A63);
    border: 2px solid #5F4A2E;
    border-radius: 15px;
    color: #1A1E17;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
    text-align: center;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    box-shadow:
        0 8px 20px rgba(95, 74, 46, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 25px rgba(95, 74, 46, 0.7),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
    border-color: #B39A63;
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-button .button-text {
    display: block;
    padding: 18px 25px;
    position: relative;
    z-index: 2;
}

.auth-button .button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.05);
    opacity: 0;
    transition: opacity 2s ease;
}

.auth-button:hover .button-glow {
    opacity: 1;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(26, 30, 23, 0.3);
    border-top: 2px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    margin-left: -5px;
}

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

/* Mensagens de Autenticação */
.auth-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    transition: all 0.5s ease;
}

.auth-message.error {
    background: linear-gradient(135deg, rgba(95, 74, 46, 0.1), rgba(139, 117, 82, 0.05));
    border: 1px solid rgba(139, 117, 82, 0.3);
    color: #C2B08A;
}

.auth-message.success {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 117, 82, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Features de Autenticação */
.auth-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.auth-features .feature-card {
    background: rgba(42, 46, 37, 0.8);
    border: 2px solid rgba(139, 117, 82, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    min-height: 250px;
    transition: all 2s ease;
    position: relative;
    overflow: hidden;
}

.auth-features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    opacity: 0;
    transition: opacity 2s ease;
}

.auth-features .feature-card:hover::before {
    opacity: 1;
}

.auth-features .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(95, 74, 46, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(42, 46, 37, 0.9);
}

.auth-features .feature-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    transition: all 2s ease;
}

.auth-features .feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.auth-features .feature-card h3 {
    color: #B39A63;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.auth-features .feature-card p {
    color: #C2B08A;
    line-height: 1.7;
    font-family: 'EB Garamond', serif;
}

/* Footer de Autenticação */
.auth-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 2px solid rgba(139, 117, 82, 0.2);
    margin-top: 80px;
    color: #8B7652;
}

.auth-footer p {
    font-size: 0.9rem;
    font-family: 'EB Garamond', serif;
}

/* ===============================================
   DASHBOARD E COMPONENTES AUTENTICADOS
   =============================================== */

/* Navbar Principal */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(42, 46, 37, 0.95), rgba(26, 30, 23, 0.98));
    border-bottom: 2px solid rgba(139, 117, 82, 0.4);
    padding: 15px 30px;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Cinzel Decorative', serif;
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    color: #FFF;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.navbar-links {
    display: flex;
    gap: 30px;
}

.navbar-link {
    color: #C2B08A;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.navbar-link.active {
    background: rgba(212, 175, 55, 0.05);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #B39A63;
    font-size: 0.9rem;
    font-family: 'EB Garamond', serif;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-user:hover {
    background: rgba(139, 117, 82, 0.1);
}

.navbar-user-name {
    font-weight: 600;
}

.navbar-logout {
    background: linear-gradient(45deg, rgba(139, 117, 82, 0.8), rgba(185, 154, 99, 0.8));
    border: 1px solid #8B7652;
    border-radius: 8px;
    padding: 8px 16px;
    color: #C2B08A;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.navbar-logout:hover {
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.8), rgba(139, 117, 82, 0.8));
    border-color: #D4AF37;
    color: #FFF;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Ajustes para Dashboard */
.dashboard-container {
    padding-top: 100px; /* Espaço para navbar */
}

/*.main-content {
    margin-top: 50px;
}*/ /* removido pois é duplicado */

/* Cards de Estatísticas no Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.stats-card {
    background: rgba(42, 46, 37, 0.9);
    border: 2px solid rgba(139, 117, 82, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(95, 74, 46, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.stats-icon {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.stats-card h3 {
    color: #B39A63;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
}

.stats-label {
    color: #C2B08A;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
}

/* Responsividade para Navbar */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-links {
        gap: 20px;
        flex-wrap: wrap;
    }

    .navbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-container {
        padding-top: 200px;
    }
}

/* ===============================================
   PÁGINA DE HISTÓRICO
   =============================================== */

/* Container do Histórico */
.history-container {
    padding: 40px 0;
}

.history-header {
    text-align: center;
    margin-bottom: 50px;
}

.history-header h1 {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 15px;
    font-family: 'Cinzel Decorative', serif;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.history-subtitle {
    color: #B39A63;
    font-size: 1.2rem;
    font-family: 'EB Garamond', serif;
    font-style: italic;
}

/* Filtros do Histórico */
.history-filters {
    background: rgba(42, 46, 37, 0.8);
    border: 2px solid rgba(139, 117, 82, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
}

.filters-grid {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    color: #B39A63;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
}

.filter-input {
    padding: 12px 15px;
    background: rgba(26, 30, 23, 0.8);
    border: 1px solid rgba(139, 117, 82, 0.4);
    border-radius: 8px;
    color: #C2B08A;
    font-family: 'EB Garamond', serif;
}

.filter-select {
    padding: 12px 15px;
    background: rgba(26, 30, 23, 0.8);
    border: 1px solid rgba(139, 117, 82, 0.4);
    border-radius: 8px;
    color: #C2B08A;
    font-family: 'EB Garamond', serif;
    cursor: pointer;
}

.filter-button {
    background: linear-gradient(45deg, #8B7652, #B39A63);
    border: 1px solid #5F4A2E;
    padding: 12px 25px;
    color: #1A1E17;
    font-weight: 600;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(95, 74, 46, 0.4);
}

/* Grid de Consultas */
.consultas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Cards de Consulta */
.consulta-card {
    background: rgba(42, 46, 37, 0.9);
    border: 2px solid rgba(139, 117, 82, 0.3);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.consulta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consulta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(95, 74, 46, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
}

.consulta-card:hover::before {
    opacity: 1;
}

.consulta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.consulta-date {
    color: #8B7652;
    font-size: 0.9rem;
    font-family: 'EB Garamond', serif;
    margin-bottom: 8px;
}

.consulta-question {
    color: #C2B08A;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: 'EB Garamond', serif;
    line-height: 1.4;
    font-style: italic;
}

.consulta-spread {
    color: #B39A63;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}

.consulta-preview {
    background: rgba(26, 30, 23, 0.6);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.consulta-cards-summary {
    color: #C2B08A;
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: 'EB Garamond', serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.consulta-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consulta-favorite {
    background: none;
    border: none;
    color: #8B7652;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consulta-favorite.active {
    color: #D4AF37;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.consulta-favorite:hover {
    color: #D4AF37;
    transform: scale(1.1);
}

.consulta-details {
    background: linear-gradient(45deg, #8B7652, #B39A63);
    color: #1A1E17;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.consulta-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(95, 74, 46, 0.5);
}

/* Paginação do Histórico */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.page-button {
    background: rgba(42, 46, 37, 0.8);
    border: 1px solid rgba(139, 117, 82, 0.3);
    color: #C2B08A;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-button:hover,
.page-button.active {
    background: linear-gradient(45deg, #8B7652, #B39A63);
    color: #1A1E17;
    border-color: #D4AF37;
    box-shadow: 0 5px 15px rgba(95, 74, 46, 0.3);
}

.page-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    color: #8B7652;
    margin: 0 20px;
    font-family: 'EB Garamond', serif;
}

/* Modal de Detalhes da Consulta */
.consulta-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.consulta-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(42, 46, 37, 0.98);
    border: 3px solid rgba(139, 117, 82, 0.5);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #8B7652;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #D4AF37;
}

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

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .auth-form {
        padding: 30px 25px;
    }

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

    .auth-features {
        flex-direction: column;
        gap: 20px;
    }

    .navbar-links {
        gap: 15px;
    }

    .consultas-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   SCROLLBAR THEME - ANCESTRAL
   ================================ */

/* Barra de rolagem ancestral - mais fina e temática */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 30, 23, 0.8);
    border: 1px solid rgba(139, 117, 82, 0.3);
    border-radius: 9px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B7652, #B39A63);
    border-radius: 9px;
    border: 2px solid rgba(26, 30, 23, 0.8);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #B39A63, #D4AF37);
    border-color: rgba(42, 46, 37, 0.8);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #D4AF37, #F4D890);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

::-webkit-scrollbar-corner {
    background: rgba(26, 30, 23, 0.8);
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #B39A63 rgba(26, 30, 23, 0.8);
}

/* ================================
   DASHBOARD LINK STYLES
   ================================ */

.consulta-link {
    text-decoration: none;
    color: inherit;
}

.consulta-link:hover .stats-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(95, 74, 46, 0.4);
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(42, 46, 37, 0.95);
}

/* ===============================================
   LANDING PAGE STYLES
   =============================================== */

/* Landing Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(42, 46, 37, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 117, 82, 0.3);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-content .logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin: 0;
}

.header-content .tagline {
    font-size: 1rem;
    color: #B39A63;
    margin: 0;
    font-family: 'Cinzel', serif;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    border: 2px solid #B39A63;
    color: #B39A63;
}

.btn-login:hover {
    background: rgba(139, 117, 82, 0.1);
    border-color: #D4AF37;
    color: #D4AF37;
}

.btn-register {
    background: linear-gradient(45deg, #8B7652, #B39A63);
    border: 2px solid #5F4A2E;
    color: #1A1E17;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(95, 74, 46, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: center;
}

.hero-text {
    color: #C2B08A;
}

.hero-title {
    font-size: 4rem;
    font-family: 'Cinzel Decorative', serif;
    color: #D4AF37;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-title .highlight {
    color: #D4AF37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 40px;
    font-family: 'EB Garamond', serif;
    color: #C2B08A;
}

.hero-cta {
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(45deg, #8B7652, #B39A63);
    border: 2px solid #5F4A2E;
    color: #1A1E17;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(95, 74, 46, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(95, 74, 46, 0.6);
    border-color: #D4AF37;
}

/* Hero Cards */
.hero-cards {
    position: relative;
}

.cards-showcase {
    display: flex;
    gap: -20px;
    position: relative;
    justify-content: center;
}

.sample-card {
    width: 180px;
    height: 260px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(194, 176, 138, 0.2);
    animation: float 4s ease-in-out infinite;
}

.sample-card.card1 {
    transform: rotate(-8deg) translateY(-10px);
    z-index: 1;
}

.sample-card.card2 {
    transform: rotate(0deg);
    z-index: 2;
}

.sample-card.card3 {
    transform: rotate(8deg) translateY(10px);
    z-index: 1;
}

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

@keyframes float {
    0%, 100% { transform: translateY(-10px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-25px) rotate(var(--rotation, 0deg)); }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: rgba(26, 30, 23, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-family: 'EB Garamond', serif;
    color: #C2B08A;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(42, 46, 37, 0.8);
    border: 1px solid rgba(139, 117, 82, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(95, 74, 46, 0.2);
    border-color: rgba(139, 117, 82, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    color: #D4AF37;
    flex-shrink: 0;
}

.feature-item h3 {
    color: #B39A63;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
}

.feature-item p {
    color: #C2B08A;
    line-height: 1.6;
    margin: 0;
    font-family: 'EB Garamond', serif;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: rgba(42, 46, 37, 0.3);
}

.pricing-card {
    background: rgba(42, 46, 37, 0.9);
    border: 2px solid rgba(139, 117, 82, 0.4);
    border-radius: 20px;
    padding: 60px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(95, 74, 46, 0.3);
    text-align: center;
}

.pricing-header h3 {
    font-size: 2.2rem;
    color: #D4AF37;
    margin-bottom: 20px;
    font-family: 'Cinzel Decorative', serif;
}

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

.price-value {
    font-size: 4rem;
    font-weight: 700;
    color: #D4AF37;
    font-family: 'Cinzel', serif;
    display: block;
    margin-bottom: 5px;
}

.price-description {
    color: #B39A63;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.credit-info {
    display: flex;
    justify-content: space-between;
    text-align: left;
    gap: 20px;
}

.credit-cost, .credit-example {
    flex: 1;
}

.credit-cost .label,
.credit-example .label {
    font-size: 0.9rem;
    color: #8B7652;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    margin-bottom: 5px;
}

.credit-cost .value,
.credit-example .value {
    font-size: 1rem;
    color: #C2B08A;
    font-family: 'EB Garamond', serif;
}

.pricing-cta {
    margin-top: 15px;
}

.btn-pricing {
    display: inline-block;
    padding: 16px 35px;
    background: linear-gradient(45deg, #8B7652, #B39A63);
    border: 2px solid #5F4A2E;
    color: #1A1E17;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(95, 74, 46, 0.3);
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(95, 74, 46, 0.5);
    border-color: #D4AF37;
}

.pricing-note {
    margin-top: 20px;
}

/* Differentiators Section */
.differentiators-section {
    padding: 100px 0;
    background: rgba(26, 30, 23, 0.3);
}

.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.differentiator-card {
    background: rgba(42, 46, 37, 0.8);
    border: 2px solid rgba(139, 117, 82, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.differentiator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(95, 74, 46, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

.d-card-icon {
    font-size: 4rem;
    color: #D4AF37;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.differentiator-card h3 {
    color: #B39A63;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.differentiator-card p {
    color: #C2B08A;
    line-height: 1.7;
    font-family: 'EB Garamond', serif;
}

/* CTA Final Section */
.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(42, 46, 37, 0.9), rgba(26, 30, 23, 0.8));
}

.final-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.final-cta-content h2 {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 30px;
    font-family: 'Cinzel Decorative', serif;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.final-cta-content p {
    font-size: 1.2rem;
    color: #B39A63;
    margin-bottom: 50px;
    font-family: 'EB Garamond', serif;
}

.final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-final-primary {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(45deg, #8B7652, #B39A63);
    border: 2px solid #5F4A2E;
    color: #1A1E17;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(95, 74, 46, 0.4);
}

.btn-final-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(95, 74, 46, 0.6);
    border-color: #D4AF37;
}

.btn-final-secondary {
    display: inline-block;
    padding: 18px 40px;
    background: transparent;
    border: 2px solid #B39A63;
    color: #B39A63;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.btn-final-secondary:hover {
    background: rgba(139, 117, 82, 0.1);
    border-color: #D4AF37;
    color: #D4AF37;
}

/* Landing Footer */
.landing-footer {
    padding: 60px 0;
    background: rgba(26, 30, 23, 0.8);
    border-top: 1px solid rgba(139, 117, 82, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: #D4AF37;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
}

.footer-logo p {
    color: #8B7652;
    font-size: 0.9rem;
    margin: 5px 0 0;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #B39A63;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #D4AF37;
}

.footer-api {
    color: #8B7652;
    font-size: 0.9rem;
}

.footer-api a {
    color: #B39A63;
    text-decoration: none;
}

.footer-api a:hover {
    color: #D4AF37;
}

/* Landing Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cards-showcase {
        gap: -10px;
    }

    .sample-card {
        width: 120px;
        height: 170px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .pricing-card {
        padding: 40px 30px;
        margin: 0 20px;
    }

    .price-value {
        font-size: 3rem;
    }

    .differentiators-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .final-cta-content h2 {
        font-size: 2rem;
    }

    .final-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 0 20px;
    }
}

.consulta-link .stats-card {
    transition: all 0.3s ease;
}
