/**
 * Estado Espiritual - Styles
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 * Todos os direitos reservados
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Paleta Lavender & Sage */
    --primary-color: #E6E6FA;
    --primary-dark: #6A1B9A;
    --secondary-color: #D8BFD8;
    --accent-color: #8E24AA;
    --surface-color: #FAFAFF;
    --background-color: #F5F0FF;
    --text-primary: #4A4063;
    --text-secondary: #6B5B7A;
    --text-muted: #8B7B9A;
    
    /* Semantic Colors */
    --success-color: #7CB342;
    --warning-color: #FFB74D;
    --error-color: #E57373;
    --info-color: #64B5F6;
    
    /* Score Level Colors */
    --level-excellent: #66BB6A;
    --level-good: #9CCC65;
    --level-moderate: #FFD54F;
    --level-attention: #FF8A65;
    --level-critical: #EF5350;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(74, 64, 99, 0.08);
    --shadow-md: 0 4px 12px rgba(74, 64, 99, 0.12);
    --shadow-lg: 0 8px 24px rgba(74, 64, 99, 0.16);
    --shadow-xl: 0 12px 32px rgba(74, 64, 99, 0.2);
    
    /* Typography */
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Merriweather', Georgia, serif;
    
    /* Layout */
    --header-height: 60px;
    --bottom-nav-height: 65px;
    --black-bar-height: 55px;
    --container-max-width: 800px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #9575CD;
    --primary-dark: #7E57C2;
    --secondary-color: #B39DDB;
    --accent-color: #CE93D8;
    --surface-color: #2D2640;
    --background-color: #1E1A2E;
    --text-primary: #E8E0F0;
    --text-secondary: #C5B8D8;
    --text-muted: #9E8FB8;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: clamp(14px, 2.5vw, 16px);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + var(--black-bar-height) + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.black-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 55px;
background-color: #000000;
z-index: 1001;
}
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-md);
}

.section {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    padding: var(--spacing-lg) 0;
    animation: fadeIn var(--transition-normal);
}

.section.hidden {
    display: none;
}

.section.active {
    display: block;
}

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

/* ===== HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    box-shadow: var(--shadow-md);
    z-index: var(--z-fixed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    font-size: 1.5rem;
}

.header-logo h1 {
    font-size: 1.125rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-primary);
}

.desktop-nav {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: var(--spacing-xs);
    }
    
    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-md);
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.875rem;
        transition: all var(--transition-fast);
    }
    
    .desktop-nav .nav-link:hover {
        background: var(--primary-color);
        color: var(--text-primary);
    }
    
    .desktop-nav .nav-link.active {
        background: var(--accent-color);
        color: white;
    }
    
    .desktop-nav .nav-link i {
        font-size: 1rem;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .bottom-nav {
        display: none !important;
    }
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: var(--black-bar-height);
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--surface-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(74, 64, 99, 0.1);
    z-index: var(--z-fixed);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-width: 64px;
    border-radius: var(--radius-md);
}

.nav-item i {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.nav-item.active {
    color: var(--accent-color);
}

.nav-item.active i {
    transform: scale(1.15);
}

.nav-item:active {
    transform: scale(0.95);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    text-decoration: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover:not(:disabled) {
    background: var(--accent-color);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #D32F2F;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    min-height: 52px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.btn-back {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-back:hover {
    background: var(--accent-color);
    color: white;
}

/* ===== CARDS ===== */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ===== HERO SECTION ===== */
.modern-hero {
    position: relative;
    text-align: center;
    padding: 6rem 1rem 4rem;
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
    background: transparent;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 5s infinite alternate;
}

@keyframes pulseGlow {
    from { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    to { transform: translate(-50%, -50%) scale(1.3); opacity: 0.25; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-color), #E0B0FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.shine-effect {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ===== LAST ASSESSMENT CARD ===== */
.last-assessment-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    color: white;
    margin-bottom: var(--spacing-xl);
}

.last-assessment-card h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.summary-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.summary-details {
    flex: 1;
}

.summary-level {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.summary-date {
    font-size: 0.8125rem;
    opacity: 0.9;
    margin: 0;
}

.last-assessment-card .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    width: 100%;
}

.last-assessment-card .btn-secondary:hover {
    background: white;
    color: var(--accent-color);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-top: var(--spacing-xl);
}

.faq-section h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 1.25rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--primary-color);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent-color);
    transition: transform var(--transition-fast);
}

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

.faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    animation: slideDown var(--transition-fast);
}

.faq-answer[hidden] {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== QUESTIONNAIRE ===== */
.questionnaire-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.questionnaire-header h2 {
    font-size: 1.125rem;
    flex: 1;
    text-align: center;
}

.progress-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.progress-bar-container {
    height: 8px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-dark));
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
    width: 0%;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--surface-color);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.question-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    min-height: 300px;
}

.question-text {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.option-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.option-btn:hover {
    background: var(--primary-color);
    border-color: var(--accent-color);
}

.option-btn.selected {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.option-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.option-btn.selected .option-indicator {
    background: white;
    border-color: white;
}

.option-btn.selected .option-indicator::after {
    content: '✓';
    color: var(--accent-color);
    font-weight: 700;
}

.questionnaire-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.questionnaire-navigation .btn {
    flex: 1;
}

/* ===== RESULTS ===== */
.results-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.results-header h2 {
    margin-bottom: var(--spacing-xs);
}

.results-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.score-display {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto var(--spacing-md);
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s ease;
}

.score-value-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    color: var(--text-muted);
}

.score-level {
    font-size: 1.5rem;
    font-weight: 700;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    display: inline-block;
}

.score-level.excellent { background: var(--level-excellent); color: white; }
.score-level.good { background: var(--level-good); color: white; }
.score-level.moderate { background: var(--level-moderate); color: var(--text-primary); }
.score-level.attention { background: var(--level-attention); color: white; }
.score-level.critical { background: var(--level-critical); color: white; }

.categories-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.category-score-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.category-score-card .category-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.category-score-card .category-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.category-score-card .category-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-bar {
    height: 6px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    margin-top: var(--spacing-sm);
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.diagnosis-card,
.verse-card,
.advice-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.diagnosis-card h3,
.advice-card h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.diagnosis-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.verse-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--surface-color) 100%);
}

.verse-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.verse-text {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md);
    quotes: """ """ "'" "'";
}

.verse-text::before {
    content: open-quote;
}

.verse-text::after {
    content: close-quote;
}

.verse-reference {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    font-style: normal;
}

.advice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advice-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--primary-color);
}

.advice-list li:last-child {
    border-bottom: none;
}

.advice-list li::before {
    content: '✨';
    flex-shrink: 0;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 480px) {
    .results-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .results-actions .btn {
        flex: 0 1 auto;
    }
}

/* ===== HISTORY ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--text-secondary);
    margin: 0;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evolution-chart-container {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.evolution-chart-container h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.chart-wrapper {
    height: 200px;
    position: relative;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    gap: var(--spacing-xs);
    padding-bottom: var(--spacing-lg);
}

.chart-bar {
    flex: 1;
    max-width: 40px;
    background: linear-gradient(to top, var(--accent-color), var(--primary-color));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    transition: height var(--transition-slow);
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-bar-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.chart-bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.history-item {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.history-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.history-item-score {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.history-item-details {
    flex: 1;
}

.history-item-level {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.history-item-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.history-item-arrow {
    color: var(--text-muted);
}

.history-actions {
    text-align: center;
}

/* ===== PLAN ===== */
.plan-overview {
    margin-bottom: var(--spacing-xl);
}

.plan-progress-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    color: white;
}

.plan-progress-card h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.weekly-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring .progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 6;
}

.progress-ring .progress-fill {
    fill: none;
    stroke: white;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transition: stroke-dashoffset var(--transition-slow);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 700;
}

.progress-details p {
    margin: 0 0 var(--spacing-xs);
    font-size: 0.875rem;
}

.streak-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.streak-info i {
    color: #FF9800;
}

.daily-checklist {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.checklist-header h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    margin: 0;
}

.date-badge {
    font-size: 0.75rem;
    background: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--background-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checklist-item:hover {
    background: var(--primary-color);
}

.checklist-item.completed {
    opacity: 0.7;
}

.checklist-item.completed .checklist-text {
    text-decoration: line-through;
}

.checklist-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.checklist-item.completed .checklist-checkbox {
    background: var(--accent-color);
    color: white;
}

.checklist-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.checklist-content {
    flex: 1;
}

.checklist-text {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.checklist-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.weekly-goals {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.weekly-goals h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.goal-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.goal-progress {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    flex-shrink: 0;
}

.goal-content {
    flex: 1;
}

.goal-text {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.goal-bar {
    height: 6px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.goal-bar-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.daily-verse {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--surface-color) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.daily-verse h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.verse-content {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 var(--spacing-sm);
    quotes: """ """ "'" "'";
}

.verse-content::before {
    content: open-quote;
}

.verse-content::after {
    content: close-quote;
}

.verse-ref {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    font-style: normal;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 300px;
    margin: 0 auto var(--spacing-lg);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--spacing-md) + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: calc(100% - var(--spacing-lg) * 2);
    max-width: 400px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .toast-container {
        bottom: var(--spacing-lg);
    }
}

.toast {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: slideUp var(--transition-normal);
    pointer-events: auto;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success-color); }
.toast.error .toast-icon { color: var(--error-color); }
.toast.warning .toast-icon { color: var(--warning-color); }
.toast.info .toast-icon { color: var(--info-color); }

.toast-message {
    flex: 1;
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    font-size: 1rem;
}

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

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--spacing-md);
    animation: fadeIn var(--transition-fast);
}

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

.modal {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn var(--transition-normal);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--primary-color);
}

.modal-header h3 {
    font-size: 1.125rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-body p {
    margin: 0;
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--primary-color);
}

/* ===== FOOTER ===== */
.app-footer {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--surface-color);
    border-top: 1px solid var(--primary-color);
    margin-bottom: var(--bottom-nav-height);
}

@media (min-width: 768px) {
    .app-footer {
        margin-bottom: 0;
    }
}

.app-footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0 0 var(--spacing-xs);
}

.app-footer .b20-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.app-footer .b20-link:hover {
    text-decoration: underline;
    transform: scale(1.05);
    display: inline-block;
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

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

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--primary-color) 25%, var(--surface-color) 50%, var(--primary-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

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

.skeleton-text {
    height: 1em;
    margin-bottom: var(--spacing-sm);
}

.skeleton-text:last-child {
    width: 60%;
}

/* ===== PRINT STYLES ===== */
@media print {
    .app-header,
    .bottom-nav,
    .app-footer,
    .btn {
        display: none !important;
    }
    
    body {
        padding: 0;
    }
    
    .section {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* Icon Fixes */
svg[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}
.category-badge svg {
    width: 1em;
    height: 1em;
    margin-right: 4px;
}
.category-icon svg {
    width: 2em;
    height: 2em;
    color: var(--accent-color);
}
.history-item-level svg {
    width: 1.2em !important;
    height: 1.2em !important;
    margin-right: 6px;
}
.score-level svg {
    width: 1.5em;
    height: 1.5em;
    margin-right: 6px;
}

/* GSAP Animations Default States */
[data-gsap-reveal] {
    opacity: 0;
    visibility: hidden;
}

/* Navigation items adjustment for 5 items */
.bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}


/* Modern Showcase Layout */
.modern-showcase {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding: 4rem 0;
}

.showcase-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    .showcase-section {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .showcase-section.reversed {
        flex-direction: row-reverse;
    }
}

.showcase-content {
    flex: 1;
    max-width: 500px;
}

.showcase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.showcase-icon i {
    width: 32px;
    height: 32px;
}

.showcase-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.showcase-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.showcase-visual {
    flex: 1;
    aspect-ratio: 1 / 1;
    max-height: 450px;
    width: 100%;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-color);
}

.showcase-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.showcase-section:hover .showcase-image {
    transform: scale(1.05);
}

