/* RESET E VARIÁVEIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-serenity: #6A8CAF;
    --lavanda-suave: #B8A8D9;
    --dourado-acolhedor: #D8B26E;
    --branco: #FFFFFF;
    --cinza-claro: #ECEEF2;
    --cinza-texto: #A5A5A5;
    --cinza-escuro: #4a4a4a;
    --sombra-suave: 0 4px 16px rgba(106, 140, 175, 0.1);
    --sombra-media: 0 8px 24px rgba(106, 140, 175, 0.15);
    --sidebar-width: 280px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cinza-claro);
    color: #333;
    line-height: 1.7;
}

/* ========== LOGIN PAGE ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--azul-serenity) 0%, var(--lavanda-suave) 50%, var(--dourado-acolhedor) 100%);
    padding: 20px;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(184, 168, 217, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--branco);
    padding: 50px 40px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-logo {
    margin-bottom: 32px;
}

.login-logo img {
    max-width: 180px;
    height: auto;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-serenity);
    margin-bottom: 12px;
}

.login-subtitle {
    font-size: 1.05rem;
    color: var(--cinza-texto);
    margin-bottom: 40px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cinza-escuro);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cinza-claro);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--lavanda-suave);
    box-shadow: 0 0 0 3px rgba(184, 168, 217, 0.1);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cinza-escuro);
    transition: color 0.3s ease;
    border-radius: 6px;
}

.toggle-password:hover {
    color: var(--lavanda-suave);
    background: rgba(184, 168, 217, 0.1);
}

.toggle-password:focus {
    outline: 2px solid var(--lavanda-suave);
    outline-offset: 2px;
}

.eye-icon {
    pointer-events: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--cinza-escuro);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.forgot-password {
    color: var(--azul-serenity);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    color: var(--branco);
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-suave);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.login-footer {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--cinza-texto);
}

.login-footer a {
    color: var(--azul-serenity);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-page {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--branco);
    box-shadow: var(--sombra-suave);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

/* Scrollbar personalizada para a sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--cinza-claro);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--lavanda-suave);
}

.sidebar-logo {
    padding: 32px 24px;
    border-bottom: 1px solid var(--cinza-claro);
}

.sidebar-logo img {
    max-width: 140px;
    height: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--cinza-texto);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item svg {
    color: var(--cinza-texto);
    transition: color 0.3s ease;
}

.nav-item:hover {
    background: rgba(106, 140, 175, 0.05);
    color: var(--azul-serenity);
}

.nav-item:hover svg {
    color: var(--azul-serenity);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(106, 140, 175, 0.1), rgba(184, 168, 217, 0.1));
    color: var(--azul-serenity);
    font-weight: 600;
}

.nav-item.active svg {
    color: var(--azul-serenity);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--cinza-claro);
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: none;
    border: 1px solid var(--cinza-claro);
    border-radius: 12px;
    color: var(--cinza-texto);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.05);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background: var(--cinza-claro);
}

/* HEADER */
.header {
    background: var(--branco);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--sombra-suave);
}

.header-greeting h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul-serenity);
    margin-bottom: 4px;
}

.header-greeting p {
    font-size: 0.95rem;
    color: var(--cinza-texto);
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lavanda-suave), var(--dourado-acolhedor));
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: var(--sombra-suave);
}

/* DASHBOARD CONTENT */
.dashboard-content {
    padding: 40px;
    max-width: 1000px;
}

/* MESSAGE CARD */
.message-card {
    background: var(--branco);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--sombra-media);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-serenity), var(--lavanda-suave), var(--dourado-acolhedor));
}

.message-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(216, 178, 110, 0.15), rgba(184, 168, 217, 0.15));
    color: var(--dourado-acolhedor);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.message-date {
    font-size: 0.9rem;
    color: var(--cinza-texto);
    margin-bottom: 32px;
}

.message-verse {
    margin-bottom: 32px;
}

.verse-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--azul-serenity);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 12px;
}

.verse-reference {
    font-size: 1rem;
    color: var(--lavanda-suave);
    font-weight: 600;
}

.message-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--lavanda-suave), var(--dourado-acolhedor));
    margin: 32px 0;
    border-radius: 2px;
}

.message-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

.message-content p {
    margin-bottom: 20px;
}

.message-signature {
    font-style: italic;
    color: var(--cinza-texto);
    text-align: right;
    margin-top: 32px;
}

.message-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--cinza-claro);
    border: none;
    border-radius: 12px;
    color: var(--azul-serenity);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(106, 140, 175, 0.15);
    transform: translateY(-2px);
}

/* QUICK SECTIONS */
.quick-ritual,
.quick-access {
    margin-bottom: 32px;
}

.quick-ritual h3,
.quick-access h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--azul-serenity);
    margin-bottom: 20px;
}

.ritual-card {
    background: var(--branco);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    display: flex;
    align-items: center;
    gap: 24px;
}

.ritual-icon {
    flex-shrink: 0;
}

.ritual-content h4 {
    font-size: 1.2rem;
    color: var(--azul-serenity);
    margin-bottom: 8px;
}

.ritual-content p {
    color: var(--cinza-texto);
    margin-bottom: 16px;
}

.btn-primary-small {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    color: var(--branco);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-suave);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.quick-card {
    background: var(--branco);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--sombra-suave);
    text-align: center;
    text-decoration: none;
    color: var(--azul-serenity);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.quick-card span {
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 20px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .message-card {
        padding: 24px;
    }
    
    .verse-text {
        font-size: 1.2rem;
    }
    
    .ritual-card {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

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

/* ========== CHAT PAGE ========== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 90px);
    background: var(--branco);
    margin: 20px;
    border-radius: 24px;
    box-shadow: var(--sombra-media);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(236, 238, 242, 0.3) 0%, var(--branco) 100%);
}

.chat-message {
    margin-bottom: 20px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 16px 20px;
    border-radius: 20px;
    position: relative;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    color: var(--branco);
    border-bottom-right-radius: 4px;
}

.chat-message.ai .message-bubble {
    background: var(--cinza-claro);
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-bubble p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
}

/* INDICADOR DE DIGITAÇÃO */
.typing-indicator {
    animation: fadeIn 0.3s ease;
}

.typing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 8px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--azul-serenity);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input-container {
    border-top: 1px solid var(--cinza-claro);
    padding: 20px 30px;
    background: var(--branco);
}

.chat-suggestions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.suggestion-chip {
    padding: 8px 16px;
    background: rgba(184, 168, 217, 0.1);
    border: 1px solid var(--lavanda-suave);
    border-radius: 50px;
    color: var(--azul-serenity);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-chip:hover {
    background: var(--lavanda-suave);
    color: var(--branco);
}

.chat-input-box {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input-box textarea {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--cinza-claro);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    transition: all 0.3s ease;
}

.chat-input-box textarea:focus {
    outline: none;
    border-color: var(--lavanda-suave);
}

.btn-send {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    border: none;
    border-radius: 12px;
    color: var(--branco);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-suave);
}

/* ========== HISTÓRICO PAGE ========== */
.historico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.historico-card {
    background: var(--branco);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.historico-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
    border-color: var(--lavanda-suave);
}

.historico-date {
    font-size: 0.85rem;
    color: var(--cinza-texto);
    margin-bottom: 12px;
}

.historico-verse {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--azul-serenity);
    margin-bottom: 6px;
    line-height: 1.5;
}

.historico-reference {
    font-size: 0.9rem;
    color: var(--lavanda-suave);
    font-weight: 600;
    margin-bottom: 16px;
}

.historico-preview {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== RITUAIS PAGE ========== */
.rituais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ritual-card-full {
    background: var(--branco);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--sombra-suave);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.ritual-card-full:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.ritual-card-full.ritual-today {
    border: 3px solid var(--dourado-acolhedor);
    background: linear-gradient(135deg, rgba(216, 178, 110, 0.05), rgba(184, 168, 217, 0.05));
    position: relative;
    overflow: visible;
}

.ritual-card-full.ritual-today::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--dourado-acolhedor), var(--lavanda-suave));
    border-radius: 24px;
    z-index: -1;
    opacity: 0.15;
}

.ritual-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.ritual-badge.morning {
    background: linear-gradient(135deg, rgba(216, 178, 110, 0.2), rgba(216, 178, 110, 0.3));
    color: var(--dourado-acolhedor);
}

.ritual-badge.afternoon {
    background: linear-gradient(135deg, rgba(184, 168, 217, 0.2), rgba(184, 168, 217, 0.3));
    color: var(--lavanda-suave);
}

.ritual-badge.evening {
    background: linear-gradient(135deg, rgba(106, 140, 175, 0.2), rgba(106, 140, 175, 0.3));
    color: var(--azul-serenity);
}

.ritual-badge.special {
    background: linear-gradient(135deg, rgba(216, 178, 110, 0.3), rgba(184, 168, 217, 0.3));
    color: var(--azul-serenity);
}

.ritual-icon-large {
    margin-bottom: 24px;
}

.ritual-card-full h3 {
    font-size: 1.5rem;
    color: var(--azul-serenity);
    margin-bottom: 8px;
    font-weight: 700;
}

.ritual-duration {
    font-size: 0.9rem;
    color: var(--cinza-texto);
    margin-bottom: 16px;
    font-weight: 600;
}

.ritual-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ========== PERFIL PAGE ========== */
.perfil-section {
    margin-bottom: 32px;
}

.perfil-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--azul-serenity);
    margin-bottom: 20px;
}

.perfil-card {
    background: var(--branco);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--sombra-suave);
}

.perfil-avatar-large {
    text-align: center;
    margin-bottom: 32px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lavanda-suave), var(--dourado-acolhedor));
    color: var(--branco);
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--sombra-media);
}

.btn-change-photo {
    background: none;
    border: none;
    color: var(--azul-serenity);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.btn-change-photo:hover {
    color: var(--lavanda-suave);
}

.perfil-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--cinza-claro);
}

.preference-item:last-child {
    border-bottom: none;
}

.preference-info h4 {
    font-size: 1.1rem;
    color: var(--azul-serenity);
    margin-bottom: 4px;
    font-weight: 600;
}

.preference-info p {
    font-size: 0.9rem;
    color: var(--cinza-texto);
}

.preference-select {
    padding: 10px 16px;
    border: 2px solid var(--cinza-claro);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--azul-serenity);
    cursor: pointer;
    transition: all 0.3s ease;
}

.preference-select:focus {
    outline: none;
    border-color: var(--lavanda-suave);
}

.subscription-info {
    margin-bottom: 24px;
}

.subscription-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.subscription-status.active {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    font-weight: 600;
}

.subscription-details {
    padding: 20px 0;
}

.subscription-details p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.8;
}

.subscription-details strong {
    color: var(--azul-serenity);
}

.btn-cancel {
    background: none;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(231, 76, 60, 0.05);
    border-color: #e74c3c;
}

/* ========== BONUS PAGES ========== */
.nav-divider {
    height: 1px;
    background: var(--cinza-claro);
    margin: 16px 24px;
}

.bonus-label {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--dourado-acolhedor), #f39c12);
    color: var(--branco);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.bonus-hero {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(184, 168, 217, 0.1), rgba(216, 178, 110, 0.1));
    border-radius: 24px;
    margin-bottom: 32px;
}

.bonus-badge-large {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--dourado-acolhedor), #f39c12);
    color: var(--branco);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: var(--sombra-suave);
}

.bonus-value {
    font-size: 1.1rem;
    color: var(--cinza-texto);
    font-weight: 600;
}

.guia-intro,
.versiculos-intro {
    background: var(--branco);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: var(--sombra-suave);
    text-align: center;
}

.guia-intro p,
.versiculos-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Práticas do Guia */
.pratica-card {
    background: var(--branco);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    transition: all 0.3s ease;
}

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

.pratica-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--lavanda-suave), var(--azul-serenity));
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.pratica-content {
    flex: 1;
}

.pratica-content h3 {
    font-size: 1.4rem;
    color: var(--azul-serenity);
    margin-bottom: 8px;
    font-weight: 700;
}

.pratica-duration {
    font-size: 0.9rem;
    color: var(--dourado-acolhedor);
    font-weight: 600;
    margin-bottom: 12px;
}

.pratica-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.7;
}

.pratica-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.pratica-steps li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.pratica-steps li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--lavanda-suave);
    font-weight: 700;
    font-size: 1.2rem;
}

.pratica-when {
    font-size: 0.95rem;
    color: var(--azul-serenity);
    font-weight: 600;
    font-style: italic;
    padding: 12px 20px;
    background: rgba(106, 140, 175, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--azul-serenity);
}

/* Áudio Player */
.audio-player-card {
    background: var(--branco);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--sombra-media);
    text-align: center;
    margin-bottom: 32px;
}

.audio-cover {
    margin-bottom: 24px;
}

.audio-player-card h3 {
    font-size: 1.8rem;
    color: var(--azul-serenity);
    margin-bottom: 12px;
    font-weight: 700;
}

.audio-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CUSTOMIZAÇÃO DO PLAYER DE ÁUDIO ===== */
.custom-audio-player {
    width: 100%;
    height: 60px;
    margin: 32px 0;
    border-radius: 16px;
    outline: none;
    background: linear-gradient(135deg, rgba(106, 140, 175, 0.08), rgba(184, 168, 217, 0.08));
    padding: 0 12px;
    box-shadow: 0 4px 16px rgba(106, 140, 175, 0.12);
}

/* Painel de controles do áudio */
audio::-webkit-media-controls-panel {
    background: linear-gradient(135deg, rgba(106, 140, 175, 0.12), rgba(184, 168, 217, 0.12));
    border-radius: 16px;
    padding: 8px 12px;
}

/* Botão play/pause do áudio */
audio::-webkit-media-controls-play-button {
    background-color: var(--azul-serenity);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    filter: brightness(1);
    transition: all 0.3s ease;
}

audio::-webkit-media-controls-play-button:hover {
    background-color: var(--lavanda-suave);
    transform: scale(1.05);
}

/* Timeline do áudio */
audio::-webkit-media-controls-timeline {
    background-color: rgba(184, 168, 217, 0.3);
    border-radius: 8px;
    height: 6px;
    margin: 0 12px;
}

audio::-webkit-media-controls-timeline::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--lavanda-suave), var(--azul-serenity));
    border-radius: 50%;
    width: 16px;
    height: 16px;
    box-shadow: 0 2px 8px rgba(106, 140, 175, 0.4);
    border: 2px solid white;
}

/* Slider de volume do áudio */
audio::-webkit-media-controls-volume-slider {
    background-color: rgba(216, 178, 110, 0.3);
    border-radius: 8px;
    height: 5px;
}

audio::-webkit-media-controls-volume-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--dourado-acolhedor), #e8c892);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    box-shadow: 0 2px 6px rgba(216, 178, 110, 0.4);
    border: 2px solid white;
}

/* Botão de volume/mute do áudio */
audio::-webkit-media-controls-mute-button {
    background-color: rgba(216, 178, 110, 0.2);
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
}

audio::-webkit-media-controls-mute-button:hover {
    background-color: rgba(216, 178, 110, 0.4);
}

/* Ocultar elementos indesejados do áudio */
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--cinza-texto);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

audio::-internal-media-controls-download-button {
    display: none;
}

audio::-webkit-media-controls-download-button {
    display: none;
}

audio::-webkit-media-controls-overflow-button {
    display: none;
}

/* Enclosure do áudio */
audio::-webkit-media-controls-enclosure {
    border-radius: 16px;
    background: transparent;
}

/* Firefox - customização do áudio */
audio::-moz-media-controls-panel {
    background: linear-gradient(135deg, rgba(106, 140, 175, 0.12), rgba(184, 168, 217, 0.12));
    border-radius: 16px;
}

.audio-player-placeholder {
    background: linear-gradient(135deg, rgba(184, 168, 217, 0.1), rgba(106, 140, 175, 0.1));
    padding: 48px;
    border-radius: 16px;
    border: 2px dashed var(--lavanda-suave);
    margin-bottom: 32px;
}

.audio-instructions {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--azul-serenity);
    margin-bottom: 12px;
}

.audio-tip {
    font-size: 1rem;
    color: var(--cinza-texto);
    margin-bottom: 8px;
}

.audio-example {
    font-size: 0.9rem;
    color: #999;
    font-family: 'Courier New', monospace;
}

.audio-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.audio-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--azul-serenity);
    font-weight: 600;
}

.audio-benefits,
.audio-instructions-card {
    background: var(--branco);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    margin-bottom: 24px;
}

.audio-benefits h3,
.audio-instructions-card h4 {
    font-size: 1.4rem;
    color: var(--azul-serenity);
    margin-bottom: 20px;
    font-weight: 700;
}

.audio-benefits ul {
    list-style: none;
    padding: 0;
}

.audio-benefits ul li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.audio-benefits ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lavanda-suave);
    font-weight: 700;
    font-size: 1.4rem;
}

.audio-instructions-card ol {
    padding-left: 24px;
    color: #555;
}

.audio-instructions-card ol li {
    padding: 10px 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Versículos */
.categoria-versiculos {
    margin-bottom: 48px;
}

.categoria-versiculos h3 {
    font-size: 1.6rem;
    color: var(--azul-serenity);
    margin-bottom: 24px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--lavanda-suave);
}

.versiculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.versiculo-card {
    background: var(--branco);
    padding: 28px;
    border-radius: 18px;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.versiculo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
    border-left-color: var(--lavanda-suave);
}

.versiculo-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
    font-style: italic;
}

.versiculo-ref {
    font-size: 0.95rem;
    color: var(--azul-serenity);
    font-weight: 700;
    text-align: right;
}

.bonus-footer {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(184, 168, 217, 0.05), rgba(216, 178, 110, 0.05));
    border-radius: 20px;
    margin-top: 40px;
}

.bonus-footer p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ========== CUSTOM MODAL/POPUP ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--branco);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-icon.success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.2));
}

.modal-icon.warning {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(241, 196, 15, 0.2));
}

.modal-icon.info {
    background: linear-gradient(135deg, rgba(184, 168, 217, 0.1), rgba(106, 140, 175, 0.2));
}

.modal-icon svg {
    width: 32px;
    height: 32px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul-serenity);
    text-align: center;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 1rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    color: var(--branco);
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.modal-btn.secondary {
    background: transparent;
    color: var(--azul-serenity);
    border: 2px solid var(--cinza-claro);
}

.modal-btn.secondary:hover {
    border-color: var(--lavanda-suave);
    background: rgba(184, 168, 217, 0.05);
}

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

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

/* ========== RITUAL MODAL ========== */
.ritual-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.4s ease;
}

.ritual-modal.active {
    display: flex;
}

.ritual-content {
    background: linear-gradient(135deg, var(--branco), var(--cinza-claro));
    border-radius: 32px;
    padding: 60px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: scaleIn 0.4s ease;
    position: relative;
}

/* Scroll customizado para modal de rituais */
.ritual-content::-webkit-scrollbar {
    width: 8px;
}

.ritual-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.ritual-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6A8CAF, #B8A8D9);
    border-radius: 10px;
}

.ritual-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a7c9f, #a898c9);
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .ritual-content {
        padding: 40px 30px;
        max-height: 85vh;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .ritual-content {
        padding: 30px 20px;
        max-height: 80vh;
        border-radius: 24px;
    }
}

.ritual-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ritual-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.ritual-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--lavanda-suave), var(--azul-serenity));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-soft 2s infinite;
}

.ritual-title-modal {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-serenity);
    margin-bottom: 12px;
}

.ritual-subtitle-modal {
    font-size: 1.1rem;
    color: var(--cinza-texto);
    margin-bottom: 40px;
}

.ritual-step {
    display: none;
    animation: fadeInStep 0.5s ease;
}

.ritual-step.active {
    display: block;
}

.ritual-step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--dourado-acolhedor), #f39c12);
    border-radius: 50%;
    color: var(--branco);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 50px;
    margin-bottom: 20px;
}

.ritual-step-instruction {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 32px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ritual-timer {
    font-size: 3rem;
    font-weight: 700;
    color: var(--azul-serenity);
    margin-bottom: 32px;
    font-variant-numeric: tabular-nums;
}

.ritual-progress {
    width: 100%;
    height: 6px;
    background: rgba(184, 168, 217, 0.2);
    border-radius: 10px;
    margin-bottom: 32px;
    overflow: hidden;
}

.ritual-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lavanda-suave), var(--azul-serenity));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.ritual-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.ritual-btn {
    padding: 16px 40px;
    border-radius: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ritual-btn-primary {
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    color: var(--branco);
}

.ritual-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.ritual-btn-secondary {
    background: transparent;
    color: var(--azul-serenity);
    border: 2px solid var(--cinza-claro);
}

.ritual-btn-secondary:hover {
    border-color: var(--lavanda-suave);
    background: rgba(184, 168, 217, 0.05);
}

.ritual-complete {
    display: none;
}

.ritual-complete.active {
    display: block;
    animation: fadeInStep 0.5s ease;
}

.ritual-complete-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.ritual-complete-icon svg {
    width: 50px;
    height: 50px;
    stroke: #2ecc71;
}

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

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

@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ========== MESSAGE MODAL (HISTORICO) ========== */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.message-modal.active {
    display: flex;
}

.message-modal-content {
    background: var(--branco);
    border-radius: 28px;
    padding: 48px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

.message-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.message-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.message-modal-date {
    font-size: 0.9rem;
    color: var(--cinza-texto);
    margin-bottom: 20px;
    text-align: center;
}

.message-modal-verse {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--azul-serenity);
    line-height: 1.5;
    text-align: center;
    margin-bottom: 12px;
}

.message-modal-reference {
    font-size: 1rem;
    color: var(--lavanda-suave);
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
}

.message-modal-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--lavanda-suave), var(--dourado-acolhedor));
    border-radius: 10px;
    margin: 0 auto 32px;
}

.message-modal-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    white-space: pre-line;
    margin-bottom: 40px;
    text-align: justify;
}

.message-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.message-modal-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    color: var(--branco);
}

.message-modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.message-modal-actions .btn-secondary {
    background: transparent;
    color: var(--azul-serenity);
    border: 2px solid var(--cinza-claro);
}

.message-modal-actions .btn-secondary:hover {
    border-color: var(--lavanda-suave);
    background: rgba(184, 168, 217, 0.05);
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 2px solid var(--cinza-claro);
    background: var(--branco);
    color: var(--azul-serenity);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    border-color: var(--lavanda-suave);
    background: rgba(184, 168, 217, 0.05);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    border-color: transparent;
    color: var(--branco);
    box-shadow: var(--sombra-suave);
}

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

/* ========== MOBILE MENU BUTTON ========== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: var(--sombra-media);
    transition: all 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2.5px;
    background: var(--branco);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9996;
    opacity: 0;
    pointer-events: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========== RESPONSIVE PLATFORM ========== */
@media (max-width: 968px) {
    /* Mostra botão mobile */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Sidebar mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 9997;
        background: var(--branco) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar.mobile-active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    /* Main content ajustado */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Header mobile */
    .header {
        padding: 20px 20px 20px 80px;
    }
    
    .header-greeting h1 {
        font-size: 1.3rem;
    }
    
    .header-greeting p {
        font-size: 0.85rem;
    }
    
    .profile-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Dashboard content */
    .dashboard-content {
        padding: 20px 16px;
    }
    
    /* Message card */
    .message-card {
        padding: 28px;
    }
    
    .message-card h2 {
        font-size: 1.3rem;
    }
    
    .message-verse {
        font-size: 1.1rem;
    }
    
    .message-text {
        font-size: 0.95rem;
    }
    
    /* Quick access */
    .quick-access h3 {
        font-size: 1.1rem;
    }
    
    .quick-grid {
        gap: 12px;
    }
    
    .quick-card {
        padding: 16px;
    }
    
    .quick-card svg {
        width: 28px;
        height: 28px;
    }
    
    .quick-card span {
        font-size: 0.9rem;
    }
    
    /* Ritual card */
    .ritual-card {
        padding: 20px;
    }
    
    .ritual-card h4 {
        font-size: 1.1rem;
    }
    
    .ritual-card p {
        font-size: 0.9rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .preference-select {
        width: 100%;
    }
    
    .ritual-card {
        padding: 20px;
    }
    
    .chat-container {
        margin: 15px;
        height: calc(100vh - 110px);
        max-height: calc(100vh - 110px);
        display: flex;
        flex-direction: column;
    }
    
    .chat-messages {
        flex: 1 1 auto;
        overflow-y: scroll !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 20px;
        min-height: 0;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-input-container {
        flex: 0 0 auto;
        padding: 15px 20px;
        background: var(--branco);
        border-top: 1px solid var(--cinza-claro);
    }
}

@media (max-width: 768px) {
    /* Login */
    .login-card {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
    
    /* Bonus pages */
    .bonus-hero {
        padding: 28px;
    }
    
    .bonus-badge-large {
        font-size: 0.8rem;
        padding: 10px 24px;
    }
    
    .bonus-value {
        font-size: 1rem;
    }
    
    .guia-intro, .versiculos-intro {
        padding: 20px;
    }
    
    .pratica-card {
        flex-direction: column;
        padding: 24px;
    }
    
    .pratica-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        line-height: 45px;
    }
    
    .pratica-content h3 {
        font-size: 1.2rem;
    }
    
    .audio-player-card {
        padding: 32px 24px;
    }
    
    .audio-player-card h3 {
        font-size: 1.5rem;
    }
    
    .audio-description {
        font-size: 1rem;
    }
    
    .audio-benefits, .audio-instructions-card {
        padding: 24px;
    }
    
    .categoria-versiculos h3 {
        font-size: 1.3rem;
    }
    
    .versiculos-grid {
        grid-template-columns: 1fr;
    }
    
    .versiculo-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    /* Header mobile menor */
    .header {
        padding: 16px 16px 16px 75px;
    }
    
    .header-greeting h1 {
        font-size: 1.1rem;
    }
    
    .header-greeting p {
        font-size: 0.8rem;
    }
    
    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Dashboard */
    .dashboard-content {
        padding: 16px 12px;
    }
    
    /* CHAT MOBILE - Corrigido scroll */
    .chat-container {
        margin: 10px;
        height: calc(100vh - 90px);
        max-height: calc(100vh - 90px);
        display: flex;
        flex-direction: column;
    }
    
    .chat-messages {
        flex: 1 1 auto;
        overflow-y: scroll !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 16px;
        min-height: 0;
    }
    
    .chat-input-container {
        flex: 0 0 auto;
        padding: 12px 16px;
        background: var(--branco);
        border-top: 1px solid var(--cinza-claro);
    }
    
    .message-card {
        padding: 24px;
    }
    
    .message-card h2 {
        font-size: 1.2rem;
    }
    
    .message-verse {
        font-size: 1rem;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .message-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .message-actions button {
        width: 100%;
        justify-content: center;
    }
    
    /* Quick access */
    .quick-grid {
        grid-template-columns: 1fr;
    }
    
    /* Histórico */
    .historico-grid {
        grid-template-columns: 1fr;
    }
    
    .historico-card {
        padding: 20px;
    }
    
    .historico-verse {
        font-size: 1rem;
    }
    
    /* Rituais */
    .rituais-grid {
        grid-template-columns: 1fr;
    }
    
    .ritual-card-full {
        padding: 28px 20px;
    }
    
    .ritual-badge {
        font-size: 0.7rem;
        padding: 5px 14px;
    }
    
    .ritual-card-full h3 {
        font-size: 1.3rem;
    }
    
    .ritual-description {
        font-size: 0.95rem;
    }
    
    /* Perfil */
    .perfil-card {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .preference-select {
        width: 100%;
    }
    
    /* Chat */
    .message-bubble {
        max-width: 90%;
    }
    
    .chat-suggestions {
        gap: 8px;
        padding: 12px 16px;
    }
    
    .suggestion-chip {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Modal Mensagem */
    .message-modal-content {
        padding: 28px 20px;
        max-height: 90vh;
    }
    
    .message-modal-verse {
        font-size: 1.2rem;
    }
    
    .message-modal-text {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .message-modal-actions {
        flex-direction: column;
    }
    
    .message-modal-actions button {
        width: 100%;
        justify-content: center;
    }
    
    /* Paginação */
    .pagination {
        gap: 6px;
        padding: 16px 0;
    }
    
    .pagination-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    /* Bonus pages */
    .pratica-content h3 {
        font-size: 1.1rem;
    }
    
    .pratica-description {
        font-size: 0.9rem;
    }
    
    .pratica-steps li {
        font-size: 0.9rem;
    }
    
    .audio-player-card h3 {
        font-size: 1.3rem;
    }
    
    .categoria-versiculos h3 {
        font-size: 1.2rem;
    }
    
    .versiculo-card {
        padding: 20px;
    }
    
    .versiculo-text {
        font-size: 0.95rem;
    }
    
    /* Ritual Modal */
    .ritual-content {
        padding: 40px 24px;
        max-width: 95%;
    }
    
    .ritual-title-modal {
        font-size: 1.5rem;
    }
    
    .ritual-subtitle-modal {
        font-size: 1rem;
    }
    
    .ritual-step-instruction {
        font-size: 1.1rem;
        min-height: 60px;
    }
    
    .ritual-timer {
        font-size: 2.5rem;
    }
    
    .ritual-btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    /* Custom Modal */
    .modal-box {
        padding: 32px 24px;
        max-width: 95%;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-message {
        font-size: 0.95rem;
    }
}

/* ========== WELCOME MODAL ========== */
.welcome-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.welcome-modal.show {
    display: flex;
}

.welcome-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    text-align: center;
}

.welcome-message {
    font-size: 1.05rem;
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 32px;
    text-align: center;
}

.welcome-steps {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 2px solid #e8ecef;
}

.welcome-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.welcome-step:last-child {
    margin-bottom: 0;
}

.step-number {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--dourado-acolhedor), #e8c892);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 16px;
}

.step-text {
    flex: 1;
    padding-top: 4px;
}

.step-text strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.step-text span {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.welcome-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--azul-serenity), var(--lavanda-suave));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(106, 140, 175, 0.3);
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 140, 175, 0.4);
}

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

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

/* ===== FIX MOBILE INTERATIVIDADE ===== */
@media (max-width: 768px) {
    /* Garante que todos os elementos interativos funcionem no mobile */
    button, 
    a, 
    input, 
    select, 
    textarea,
    [onclick],
    [role="button"],
    .btn,
    .btn-primary,
    .btn-secondary,
    .ritual-card,
    .message-card,
    .nav-item,
    .sidebar a {
        -webkit-tap-highlight-color: rgba(106, 140, 175, 0.2);
        touch-action: manipulation;
        cursor: pointer;
        pointer-events: auto !important;
    }
    
    /* Remove qualquer overlay que possa estar bloqueando */
    body::after {
        content: none !important;
        display: none !important;
    }
    
    /* Garante que o conteúdo principal seja interativo */
    .content-area,
    .dashboard-content,
    main {
        pointer-events: auto !important;
        touch-action: pan-y !important;
    }
    
    /* Garante que cards sejam clicáveis */
    .ritual-card,
    .message-card,
    .history-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(106, 140, 175, 0.2);
    }
}

@media (max-width: 768px) {
    .welcome-content {
        padding: 36px 28px;
        max-width: 92%;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-message {
        font-size: 1rem;
    }
    
    .welcome-steps {
        padding: 20px;
    }
    
    .step-text strong {
        font-size: 0.95rem;
    }
    
    .step-text span {
        font-size: 0.9rem;
    }
}

/* ===== PRIMEIRO ACESSO (LOGIN) ===== */
.first-access-link {
    margin: 25px 0 30px;
    text-align: center;
}

.first-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #6a8caf, #b8a8d9);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(106, 140, 175, 0.3);
    width: 100%;
    max-width: 400px;
}

.first-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 140, 175, 0.4);
    background: linear-gradient(135deg, #5a7c9f, #a898c9);
}

.first-access-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(106, 140, 175, 0.3);
}

.first-access-btn svg {
    flex-shrink: 0;
}

/* Modal Primeiro Acesso */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    opacity: 1;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 90%;
    width: 100%;
}

.first-access-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #9b8bb3;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
}

.modal-close-btn:hover {
    background: rgba(155, 139, 179, 0.1);
    color: #2f1c6a;
    transform: rotate(90deg);
}

.first-access-logo {
    text-align: center;
    margin-bottom: 30px;
}

.first-access-logo img {
    height: 50px;
    width: auto;
}

.first-access-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2f1c6a;
    margin: 0 0 30px;
    text-align: center;
}

.first-access-body {
    margin-bottom: 30px;
}

.first-access-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f0edf5, #e8e3f0);
    border-radius: 16px;
    border: 2px solid #b8a8d9;
}

.first-access-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6a8caf, #b8a8d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.first-access-icon svg {
    color: white;
}

.first-access-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2f1c6a;
    margin: 0 0 15px;
}

.first-access-section p {
    font-size: 1rem;
    color: #5f4b8b;
    margin: 0;
    line-height: 1.6;
}

.first-access-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #6a8caf;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6a8caf, #b8a8d9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.step-text {
    flex: 1;
    font-size: 0.95rem;
    color: #2f1c6a;
    line-height: 1.6;
    padding-top: 5px;
}

.step-text strong {
    color: #6a8caf;
    font-weight: 600;
}

.first-access-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff9e6;
    border-left: 4px solid #ffb84d;
    border-radius: 12px;
}

.first-access-warning svg {
    flex-shrink: 0;
    color: #f39c12;
    margin-top: 2px;
}

.first-access-warning strong {
    display: block;
    font-size: 1rem;
    color: #8b6914;
    margin-bottom: 8px;
}

.first-access-warning p {
    font-size: 0.9rem;
    color: #8b6914;
    margin: 0 0 10px;
    line-height: 1.5;
}

.support-email {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    color: #6a8caf;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #6a8caf;
    transition: all 0.3s ease;
}

.support-email:hover {
    background: #6a8caf;
    color: white;
}

/* Responsivo - Modal Primeiro Acesso */
@media (max-width: 640px) {
    .first-access-modal {
        max-width: 95%;
        padding: 25px;
    }
    
    .first-access-logo img {
        height: 40px;
    }
    
    .first-access-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .first-access-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .first-access-icon {
        width: 56px;
        height: 56px;
    }
    
    .first-access-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .first-access-section h3 {
        font-size: 1.25rem;
    }
    
    .first-access-section p {
        font-size: 0.95rem;
    }
    
    .step-item {
        padding: 12px;
        gap: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .step-text {
        font-size: 0.9rem;
    }
    
    .first-access-warning {
        padding: 15px;
        gap: 12px;
    }
    
    .support-email {
        display: block;
        text-align: center;
    }
}

