* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #818cf8;
    --primary-glow: rgba(129, 140, 248, 0.3);
    --bg-base: #0a0e1a;
    --bg-card: rgba(20, 24, 40, 0.92);
    --bg-card-solid: #141828;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(129, 140, 248, 0.2);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 20px;
    --font-size-base: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

/* === FUNDO DIÁRIO === */
.bg-daily {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3) saturate(0.8);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 26, 0.5) 0%,
        rgba(10, 14, 26, 0.75) 40%,
        rgba(10, 14, 26, 0.92) 70%,
        rgba(10, 14, 26, 0.98) 100%
    );
}

/* === CONTAINER === */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === HEADER === */
.header {
    text-align: center;
    padding: 16px 0 8px;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
}

.tagline {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* === BANNER RÁDIO === */
.radio-banner {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px 0;
}

.radio-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.radio-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

/* === DIA BADGE === */
.dia-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 8px;
}

.dia-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dia-numero {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    text-shadow: 0 0 30px var(--primary-glow);
}

.dia-total {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.data-atual {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* === CONTROLES DE TEXTO === */
.text-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.text-controls .ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.text-controls .ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: var(--border-glow);
}

.text-controls .ctrl-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    min-width: 50px;
    text-align: center;
    letter-spacing: 1px;
}

/* === CARD DEVOCIONAL === */
.devocional {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.devocional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a78bfa, #c4b5fd);
    box-shadow: 0 0 20px var(--primary-glow);
}

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

/* === VERSÍCULO === */
.versiculo-area {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.aspas {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 0.5;
    opacity: 0.25;
    margin-bottom: 8px;
}

.versiculo-texto {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.versiculo-referencia {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === REFLEXÃO === */
.reflexao-area {
    text-align: left;
}

.reflexao-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

.reflexao-titulo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: linear-gradient(180deg, #6366f1, #a78bfa);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.reflexao-texto {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: justify;
    transition: font-size 0.3s ease;
}

/* === AÇÕES === */
.acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-email {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
}

.btn-email:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-radio {
    background: rgba(231, 141, 23, 0.12);
    color: #e78d17;
    border: 1px solid rgba(231, 141, 23, 0.25);
    backdrop-filter: blur(10px);
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.02);
}

.btn-radio:hover {
    background: rgba(231, 141, 23, 0.2);
    color: #f09a2e;
    transform: translateY(1px);
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.02);
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 16px 0;
    margin-top: auto;
}

.footer p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card-solid);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-content input::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    background: #e78d17;
    color: white;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.35),
        -3px -3px 8px rgba(255, 255, 255, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.btn-submit:hover {
    background: #f09a2e;
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.35),
        -2px -2px 6px rgba(255, 255, 255, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transform: translateY(1px);
}

.btn-submit:active {
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.3),
        inset -2px -2px 6px rgba(255, 255, 255, 0.05);
    transform: translateY(2px);
}

.modal-obs {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    text-align: center;
    margin-top: 12px !important;
}

/* === PREVIEW MODE (SEM CHAVEIRO) === */
.preview-banner {
    position: relative;
    margin-top: -10px;
    padding: 30px 24px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(10, 14, 26, 0.95) 30%);
    border-radius: 0 0 var(--radius) var(--radius);
}

.preview-blur {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--bg-card));
    pointer-events: none;
}

.preview-content {
    position: relative;
    z-index: 1;
}

.preview-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.preview-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.preview-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.preview-sub {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px !important;
}

.preview-actions {
    padding: 0 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-chaveiro {
    background: #e78d17;
    color: white;
    font-weight: 600;
    border: none;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.btn-chaveiro:hover {
    background: #f09a2e;
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transform: translateY(1px);
}

.btn-chaveiro:active {
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.3),
        inset -2px -2px 6px rgba(255, 255, 255, 0.05);
    transform: translateY(2px);
}

/* === MODAL HEADER ICON === */
.modal-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* === SUCESSO NO CADASTRO === */
.cadastro-sucesso {
    text-align: center;
    padding: 20px 0;
}

.sucesso-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.cadastro-sucesso h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.cadastro-sucesso p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* === RESPONSIVO === */
@media (max-width: 480px) {
    .container {
        padding: 16px 14px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .dia-numero {
        font-size: 2.2rem;
    }

    .devocional {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .versiculo-texto {
        font-size: 1.05rem;
    }

    .reflexao-titulo {
        font-size: 1.15rem;
    }
}

/* === BOAS-VINDAS PERSONALIZADA === */
.welcome-message {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(231, 141, 23, 0.08));
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.welcome-message strong {
    color: var(--primary);
    font-weight: 600;
}

/* === SEÇÃO DE ORAÇÃO === */
.prayer-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.prayer-header {
    text-align: center;
    margin-bottom: 20px;
}

.prayer-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.prayer-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.prayer-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

#form-prayer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#form-prayer input,
#form-prayer textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    transition: border-color 0.3s;
    resize: vertical;
}

#form-prayer input:focus,
#form-prayer textarea:focus {
    outline: none;
    border-color: var(--primary);
}

#form-prayer input::placeholder,
#form-prayer textarea::placeholder {
    color: var(--text-muted);
}

.btn-prayer {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.02);
}

.btn-prayer:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    transform: translateY(1px);
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.02);
}

.btn-prayer:active {
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.3),
        inset -2px -2px 6px rgba(255, 255, 255, 0.05);
}

/* === SUCESSO ORAÇÃO === */
.prayer-success {
    text-align: center;
    padding: 20px 0;
    animation: fadeInUp 0.5s ease-out;
}

.prayer-success-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.prayer-success h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.prayer-success p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.prayer-verse {
    font-style: italic;
    color: var(--primary) !important;
    font-size: 0.82rem !important;
    margin-top: 12px !important;
    padding: 12px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
}
