:root {
    --bg-main: #FCFAF5;
    --bg-secondary: #F3EEDB;
    --bg-card-locked: #EBE6DC;
    --text-locked: #A59B8B;
    --gold-primary: #D1A94D;
    --gold-dark: #B58A32;
    --green-complete: #1A6953;
    --purple-verse: #534AB7;
    --amber-action: #854F0B;
    --coral-alert: #993C1D;
    --blue-identity: #185FA5;
    --blue-identity-bg: #E8F0F8;
    --text-main: #111827;
    --text-secondary: #6B7280;
    --border-color: #EBE6DC;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --radius-card: 16px;
    --radius-btn: 12px;
    --transition-fast: 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-family: var(--font-heading);
}

.title-large {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

/* Layout */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
}

.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }

/* Inputs and Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    background-color: #fff;
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 16px 32px;
    background-color: var(--gold-primary);
    color: var(--text-main);
    border: none;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #B5953F;
}

.btn-complete {
    background-color: var(--green-complete);
    color: white;
}

.btn-complete:hover {
    background-color: #0c5945;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background-color: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 16px;
}

.btn-google:hover {
    background-color: #f9f9f9;
}

.btn-link {
    background: none;
    border: none;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.btn-link:hover {
    color: var(--text-main);
}

.btn-small {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-small:hover {
    background-color: #E8E2D8;
}

/* Auth View */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card {
    background-color: var(--bg-main);
    padding: 32px 24px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.auth-tab.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-primary);
}

/* Dashboard View */
.app-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-circle {
    width: 36px;
    height: 36px;
    background-color: var(--bg-secondary);
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-main);
}

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

.greeting-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-main);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}
.progress-current {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
}
.progress-total {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar-container {
    background-color: var(--bg-card-locked);
    height: 14px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--gold-primary);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 8px;
}

.progress-quote {
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-bottom: 24px;
}

.day-card {
    aspect-ratio: 0.9;
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.day-card.completed {
    background-color: var(--green-complete);
    color: white;
}
.day-card.completed .icon-circle {
    width: 28px;
    height: 28px;
    border: 1.5px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.day-card.completed .card-day-text {
    font-weight: 600;
    font-size: 14px;
}

.day-card.current {
    background-color: var(--gold-primary);
    color: white;
}
.day-card.current .card-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}
.day-card.current .card-day-text {
    font-size: 13px;
    font-weight: 500;
}

.day-card.locked {
    background-color: var(--bg-card-locked);
    color: var(--text-locked);
    cursor: not-allowed;
}
.day-card.locked .lock-icon-card {
    stroke-width: 1.5;
    margin-bottom: 4px;
}
.day-card.locked .card-day-text {
    font-size: 13px;
    font-weight: 500;
}

/* Day Content View */
.content-header {
    margin-bottom: 32px;
}

.day-badge {
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.content-block {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    border-left: 4px solid transparent;
}

.block-reflexao { border-left-color: var(--green-complete); }
.block-reflexao .section-label { color: var(--green-complete); }

.block-versiculo { border-left-color: var(--purple-verse); }
.block-versiculo .section-label { color: var(--purple-verse); }
.verse-text { font-style: italic; font-size: 18px; margin-bottom: 16px; }

.block-acao { border-left-color: var(--amber-action); }
.block-acao .section-label { color: var(--amber-action); }

.block-alerta { border-left-color: var(--coral-alert); }
.block-alerta .section-label { color: var(--coral-alert); }

.block-identidade { 
    background-color: var(--blue-identity-bg); 
    border-left: none;
    text-align: center;
}
.block-identidade .section-label { color: var(--blue-identity); }
.identidade-text {
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    color: var(--blue-identity);
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--amber-action);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox.checked {
    background-color: var(--amber-action);
}

.custom-checkbox i {
    color: white;
    display: none;
}

.custom-checkbox.checked i {
    display: block;
}

.checkbox-label {
    font-weight: 500;
    cursor: pointer;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 40;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

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

.nav-btn i {
    width: 24px;
    height: 24px;
}

.icon-wrapper {
    position: relative;
    display: inline-flex;
}

.lock-icon {
    position: absolute;
    top: -4px;
    right: -8px;
    width: 14px !important;
    height: 14px !important;
    color: var(--text-secondary);
    background: #fff;
    border-radius: 50%;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 24px;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.modal-content {
    background-color: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    position: relative;
    padding: 32px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: transform var(--transition-fast);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.lock-large {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--text-main);
}

.benefits-list {
    list-style: none;
    margin: 24px 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.check-icon {
    color: var(--gold-dark);
    flex-shrink: 0;
}

.price-tag {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    padding: 12px;
    background-color: var(--bg-main);
    border-radius: var(--radius-btn);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-main);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    z-index: 60;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity 0.3s, transform 0.3s;
}

/* Profile and Progress */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.stat-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 16px;
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.list-item {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-content h4 {
    margin-bottom: 4px;
}

.list-item-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Celebration */
.celebration-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    text-align: center;
    padding: 24px;
}

.celebration-title {
    font-size: 32px;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 8px 0;
}

.back-button:hover {
    color: var(--text-main);
}
