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

/* CSS Variables - Aurora Borealis Theme */
:root {
    /* Cores da paleta Aurora Borealis */
    --primary-color: #00FF7F;
    --secondary-color: #00FFFF;
    --accent-color: #0080FF;

    /* Light Theme Defaults */
    --surface-color: #F8FAFC;
    --text-color: #1F2937;
    --bg-color: #FFFFFF;

    /* Variações automáticas */
    --primary-hover: color-mix(in srgb, var(--primary-color) 85%, black);
    --primary-light: color-mix(in srgb, var(--primary-color) 15%, white);
    --text-muted: color-mix(in srgb, var(--text-color) 60%, transparent);
    --text-secondary: #64748B;

    /* Layout */
    --border-radius: 12px;
    --spacing-unit: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-reading: 'Crimson Pro', Georgia, serif;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #00FF7F 0%, #00FFFF 100%);
    --card-gradient: linear-gradient(145deg, var(--surface-color), color-mix(in srgb, var(--surface-color) 95%, black));
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: rgba(255, 255, 255, 0.6);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

html {
    font-size: clamp(14px, 2.5vw, 18px);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: calc(60px + env(safe-area-inset-top, 0));
    transition: var(--transition);
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0));
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-secondary);
}

/* Header Fixo */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-top, 0));
    padding-top: env(safe-area-inset-top, 0);
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
    box-shadow: var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.header-logo h1 {
    font-size: 1.2rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navegação Desktop */
.desktop-nav {
    display: none;
    gap: 8px;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .desktop-nav .nav-link {
        padding: 6px 12px;
        border-radius: var(--border-radius);
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition);
        font-weight: 500;
        font-size: 0.95rem;
    }

    .desktop-nav .nav-link:hover,
    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

    .bottom-nav {
        display: none !important;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    min-width: 64px;
    min-height: 48px;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

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

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

/* Container */
.container {
    padding: 16px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 24px;
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* Sections */
.section {
    display: none;
    min-height: calc(100vh - 60px);
    padding: calc(var(--spacing-unit) * 3) 0;
}

.section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.section-header h2 {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto calc(var(--spacing-unit) * 4);
}

/* Progress Overview */
.progress-overview {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

@media (max-width: 767px) {
    .progress-overview {
        flex-direction: column;
        text-align: center;
    }
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 8;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.5s ease;
}

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

.progress-percentage {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-self: center;
}

.progress-info h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(200px, auto);
        /* Allows rows to grow if content is larger than 200px */
        /* removed explicit grid-template-rows to allow flexibility */
    }

    .bento-card.large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-card.medium {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-card.small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.bento-card {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.card-icon i {
    font-size: 20px;
    color: white;
}

.bento-card h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--text-muted);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: calc(var(--spacing-unit));
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.card-progress .progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--text-muted);
    color: var(--bg-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.goals-count,
.dreams-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00e070 100%);
    color: #000;
    /* Dark text for contrast on bright green */
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 255, 127, 0.4);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--text-muted);
    transform: translateY(-2px);
}

.btn-success {
    background: #10B981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

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

/* Journey Timeline */
.journey-timeline {
    display: grid;
    gap: calc(var(--spacing-unit) * 3);
}

.stage-card {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.stage-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stage-card.completed {
    border-left: 4px solid var(--primary-color);
}

.stage-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.stage-header {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.stage-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.stage-card.completed .stage-number {
    background: #10B981;
}

.stage-card.locked .stage-number {
    background: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid var(--text-muted);
}

.modal-header h3 {
    margin: 0;
}

.btn-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-close:hover {
    background: var(--text-muted);
    color: var(--text-color);
}

.modal-body {
    padding: calc(var(--spacing-unit) * 3);
}

.modal-footer {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 3);
    border-top: 1px solid var(--text-muted);
    justify-content: flex-end;
}

/* Stage Content */
.stage-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
}

.bible-reading,
.reflection-exercise,
.prayer-section {
    padding: calc(var(--spacing-unit) * 3);
    background: var(--surface-color);
    border-radius: var(--border-radius);
}

.bible-reading h4,
.reflection-exercise h4,
.prayer-section h4 {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
}

.verse-card,
.prayer-card {
    background: var(--bg-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    font-family: var(--font-reading);
    font-style: italic;
    border-left: 4px solid var(--primary-color);
}

.verse-card cite {
    display: block;
    margin-top: calc(var(--spacing-unit) * 2);
    font-weight: 600;
    color: var(--primary-color);
}

.reflection-questions {
    margin-top: calc(var(--spacing-unit) * 3);
}

.question-item {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.question-item label {
    display: block;
    margin-bottom: calc(var(--spacing-unit));
    font-weight: 500;
}

.question-item textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--text-muted);
    border-radius: var(--border-radius);
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    resize: vertical;
}

/* Gifts Test */
.gifts-test-container {
    max-width: 600px;
    margin: 0 auto;
}

.intro-card {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    text-align: center;
}

.intro-card ul {
    text-align: left;
    margin: calc(var(--spacing-unit) * 3) 0;
    padding-left: calc(var(--spacing-unit) * 3);
}

.intro-card li {
    margin-bottom: calc(var(--spacing-unit));
    color: var(--text-secondary);
}

.question-progress {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.question-counter {
    display: block;
    text-align: center;
    margin-top: calc(var(--spacing-unit));
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.question-card {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.question-card h3 {
    margin-bottom: calc(var(--spacing-unit) * 3);
    text-align: center;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.answer-option {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    padding: 12px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.answer-option:hover {
    background: var(--primary-light);
}

.answer-option input[type="radio"] {
    margin: 0;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 2);
}

/* Gifts Results */
.gifts-ranking {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.gift-result {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2);
    background: var(--surface-color);
    border-radius: var(--border-radius);
}

.gift-rank {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.gift-info {
    flex: 1;
}

.gift-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.gift-score {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Goals Dashboard */
.goals-dashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: calc(var(--spacing-unit) * 4);
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
}

.goals-stats {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.stat-card {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--surface-color);
    border-radius: var(--border-radius);
    min-width: 80px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Goals List */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.goal-card {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.goal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.goal-title {
    font-weight: 600;
    margin: 0;
}

.goal-category {
    padding: 4px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
}

.goal-description {
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.goal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 2);
}

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

.form-group label {
    display: block;
    margin-bottom: calc(var(--spacing-unit));
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text-muted);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Dreams Timeline */
.dreams-timeline {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.dream-card {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.dream-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px 0 0 2px;
}

.dream-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.dream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.dream-title {
    font-weight: 600;
    margin: 0;
}

.dream-type {
    padding: 4px 8px;
    background: var(--accent-color);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
}

.dream-description {
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.dream-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dream-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.dream-status.dreaming {
    background: #FEF3C7;
    color: #92400E;
}

.dream-status.praying {
    background: #DBEAFE;
    color: #1E40AF;
}

.dream-status.planning {
    background: #F3E8FF;
    color: #7C2D12;
}

.dream-status.acting {
    background: #DCFCE7;
    color: #166534;
}

.dream-status.achieved {
    background: #D1FAE5;
    color: #065F46;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: calc(var(--spacing-unit) * 6);
    color: var(--text-secondary);
}

.empty-state h3 {
    margin: calc(var(--spacing-unit) * 2) 0;
}

/* FAQ */
.faq-section {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 6) 0;
    margin-top: calc(var(--spacing-unit) * 6);
}

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

.faq-item {
    border-bottom: 1px solid var(--text-muted);
}

.faq-question {
    width: 100%;
    padding: calc(var(--spacing-unit) * 3);
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

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

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3);
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    font-weight: 500;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer */
.app-footer {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 4);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.app-footer .footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 8px;
    font-size: 0.9rem;
}

.app-footer .footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.app-footer p {
    margin-bottom: calc(var(--spacing-unit));
}

.app-footer p:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .progress-overview {
        padding: calc(var(--spacing-unit) * 2);
    }

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

    .modal-content {
        margin: 8px;
        max-height: calc(100vh - 16px);
    }

    .goals-dashboard {
        flex-direction: column;
        align-items: stretch;
    }

    .goals-stats {
        justify-content: space-around;
    }
}

/* Print Styles */
@media print {

    .app-header,
    .bottom-nav,
    .btn,
    .modal {
        display: none !important;
    }

    body {
        padding: 0;
        background: white;
        color: black;
    }

    .section {
        display: block !important;
        page-break-after: always;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.6);
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced Results Interpretation */
.results-interpretation {
    margin-top: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 3);
    background: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--text-muted);
}

.results-interpretation h4 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.interpretation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin: calc(var(--spacing-unit) * 3) 0;
}

.interp-card {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.interp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Share Modal Styles */
.share-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.social-share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn i {
    font-size: 1.5rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #000000;
}

.copy-link-container label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--text-muted);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
}

.btn-copy {
    padding: 0 16px;
    background: var(--surface-color);
    border: 1px solid var(--text-muted);
    border-radius: var(--border-radius);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.interp-card h5 {
    margin-bottom: calc(var(--spacing-unit));
    color: var(--text-color);
    font-weight: 600;
}

.interp-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.final-blessing {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3);
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-top: calc(var(--spacing-unit) * 3);
}

.final-blessing p {
    margin: 0;
    color: var(--text-color);
    font-style: italic;
}