/* ==========================================================================
   ESTILOS DO INSTATERÇO - TEMA CLARO, MARIANO, DELICADO E ELEGANTE
   ========================================================================== */

:root {
    /* Paleta Clara & Serena (Pérola, Céu Mariano e Ouro Suave) */
    --it-bg-gradient: linear-gradient(180deg, #f0f7ff 0%, #fafafa 45%, #fefcf8 100%);
    --it-gold: #b4791a;
    --it-gold-soft: #d4af37;
    --it-gold-glow: rgba(212, 175, 55, 0.35);
    --it-marian-blue: #2563eb;
    --it-marian-light: #eff6ff;
    --it-card-bg: rgba(255, 255, 255, 0.94);
    --it-card-border: rgba(226, 232, 240, 0.85);
    --it-text-main: #1e293b;
    --it-text-sub: #64748b;
    --it-text-reading: #27272a;
}

/* Modal Fullscreen em Tom Claro e Eclético */
#instaterco-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--it-bg-gradient);
    z-index: 99999;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    flex-direction: column;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    color: var(--it-text-main);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

#instaterco-modal.it-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    -webkit-animation: itFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation: itFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#instaterco-modal:not(.it-open) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@-webkit-keyframes itFadeIn {
    from { opacity: 0; -webkit-transform: scale(0.99); }
    to { opacity: 1; -webkit-transform: scale(1); }
}

@keyframes itFadeIn {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

/* Barra de Progresso Superior (Delicada em Ouro e Céu) */
.it-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 100;
}

#instaterco-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f59e0b, #3b82f6);
    box-shadow: 0 0 8px var(--it-gold-glow);
    transition: width 0.3s ease-out;
}

/* Header Superior Delicado Estilo Instagram */
.it-top-bar {
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.it-top-info {
    display: flex;
    flex-direction: column;
    max-width: 60%;
}

.it-brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--it-gold);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

#it-badge-misterio {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--it-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.it-top-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.it-speed-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.it-speed-pill:hover, .it-speed-pill:active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
}

.it-icon-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.it-icon-btn:hover, .it-icon-btn:active {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: scale(1.08);
}

.it-icon-btn.it-active-btn {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.it-icon-btn.muted {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.it-btn-close {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* Área Central de Cards (Reels / TikTok Container) */
.it-cards-viewport {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#instaterco-cards-wrapper {
    width: 100%;
    height: 100%;
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

/* Slide Individual com visual Suave Estilo Reels / Stories */
.it-slide-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 68px 16px 130px 16px;
    opacity: 0;
    pointer-events: none;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    -webkit-transition: -webkit-transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease;
    transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.it-slide-card.it-active {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    z-index: 10;
}

.it-slide-card.it-past {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    z-index: 5;
}

.it-slide-card.it-future {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    z-index: 5;
}

/* Card Branco Pérola com Efeito Vidro Suave */
.it-card-inner {
    width: 100%;
    max-height: 100%;
    background: var(--it-card-bg);
    border: 1px solid var(--it-card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 45px rgba(100, 116, 139, 0.12), 0 0 25px rgba(212, 175, 55, 0.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Header do Card */
.it-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.it-card-category {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--it-marian-blue);
    background: var(--it-marian-light);
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.it-card-bead-badge {
    font-size: 0.78rem;
    color: var(--it-text-sub);
    font-weight: 600;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Card de Capa / Abertura Nobre do Santo Terço */
.it-card-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px 24px 20px;
    background: radial-gradient(circle at 50% 18%, rgba(254, 243, 199, 0.45) 0%, rgba(255, 255, 255, 0.98) 75%);
}

.it-cover-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
}

.it-cover-hero-icon {
    position: relative;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.it-cover-hero-icon .it-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.38) 0%, rgba(212, 175, 55, 0) 70%);
    animation: haloPulse 3s infinite ease-in-out;
}

@keyframes haloPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}

.it-cover-emoji {
    font-size: 3.4rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.45));
}

.it-cover-details {
    margin-bottom: 18px;
    max-width: 440px;
}

.it-cover-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #64748b;
    text-transform: uppercase;
}

.it-cover-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 2px 0;
    line-height: 1.25;
}

.it-cover-days {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 8px;
}

.it-cover-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

/* Botão Principal Iniciar Santo Terço */
.it-btn-start-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #d4af37 100%);
    color: #ffffff;
    border: none;
    padding: 15px 34px;
    border-radius: 35px;
    font-size: 1.12rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.38), 0 0 15px rgba(212, 175, 55, 0.25);
    transition: all 0.22s ease;
    letter-spacing: 0.3px;
    touch-action: manipulation;
}

.it-btn-start-hero:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.48), 0 0 20px rgba(212, 175, 55, 0.4);
}

.it-btn-start-hero:active {
    transform: translateY(1px) scale(0.98);
}

.it-start-icon {
    font-size: 1.15rem;
}

.it-cover-hint {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 500;
}

/* Opções de Início Rápido na Capa */
.it-cover-options-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.it-cover-opt-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.it-cover-opt-btn.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

/* Fileira das 10 Contas de Pérola (Rosary Beads) */
.it-beads-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 8px 0 16px 0;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    align-self: center;
}

.it-bead {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.it-bead.bead-todo {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.it-bead.bead-done {
    background: #10b981;
    border: 1.5px solid #059669;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.45);
}

.it-bead.bead-current {
    background: linear-gradient(135deg, #f59e0b, #d4af37);
    border: 2px solid #ffffff;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.85), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Centro do Card */
.it-card-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
}

.it-card-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.it-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--it-text-main);
    margin-bottom: 3px;
    line-height: 1.3;
}

.it-card-sub {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--it-gold);
    margin-bottom: 16px;
}

.it-card-text {
    font-family: 'Merriweather', -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.95;
    color: var(--it-text-reading);
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 100%;
    width: 100%;
    text-align: left;
    margin: 0 auto;
    word-break: normal;
    overflow-wrap: break-word;
}

.it-card-para {
    margin-bottom: 14px;
}

.it-card-para:last-child {
    margin-bottom: 0;
}

.it-card-text p {
    margin-bottom: 12px;
}

.it-card-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   AUXÍLIO LEITURA GUIADA (EFEITO KARAOKÊ ELEGANTE)
   A oração inteira é exibida na tela com cor suave e vai sendo reforçada
   ========================================================================== */
.it-card-text.it-karaoke-on .it-word {
    color: #64748b; /* Cor suave e nítida para palavras a serem lidas */
    font-weight: 400;
    display: inline-block;
    padding: 1px 3px;
    margin: 0 1px;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

/* Palavras já rezadas/reforçadas: fortes, escuras e com alto contraste */
.it-card-text.it-karaoke-on .it-word.it-word-done {
    color: #0f172a;
    font-weight: 700;
    background-color: transparent;
}

/* Palavra atual sendo recitada: destaque de Karaokê */
.it-card-text.it-karaoke-on .it-word.it-word-current {
    color: #92400e; /* Âmbar Mariano Nobre */
    font-weight: 850;
    background-color: #fef3c7;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    transform: scale(1.07);
}

.it-card-text.it-text-meditacao {
    font-style: italic;
    background: #fefce8;
    border-left: 3px solid var(--it-gold-soft);
    color: #451a03;
    padding: 14px 18px;
    border-radius: 0 16px 16px 0;
    text-align: left;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
}

/* Footer do Card / Dica de Deslize */
.it-card-footer {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.it-swipe-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.swipe-arrow {
    display: inline-block;
    color: var(--it-marian-blue);
    font-weight: bold;
    animation: itBounce 1.5s infinite;
}

@keyframes itBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Pulsação de destaque para Arrastar para Cima */
.it-swipe-hint.it-hint-pulse {
    background: #fef3c7 !important;
    border: 1px solid #f59e0b !important;
    color: #92400e !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    animation: bounceUpPrayer 1.2s infinite ease-in-out;
}

@keyframes bounceUpPrayer {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Pílula de Auto Pular na Top Bar */
.it-auto-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
    height: 33px;
}

.it-auto-pill.it-auto-on {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.it-auto-pill.it-auto-off {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

/* Barra Rápida de Leitura (Velocidade + Pular de Tela Automático) */
.it-reading-controls-bar {
    position: absolute;
    bottom: 66px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 520px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    z-index: 55;
    box-shadow: 0 4px 18px rgba(100, 116, 139, 0.08);
}

.it-speed-control-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.it-control-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.it-speed-btn {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.it-speed-btn:active {
    transform: scale(0.92);
    background: #f1f5f9;
}

.it-speed-badge {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 10px;
    min-width: 42px;
    text-align: center;
}

.it-btn-auto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.74rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.it-btn-auto-toggle.it-auto-active {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
    color: #1e40af;
    font-weight: 600;
}

.it-btn-auto-toggle.it-auto-inactive {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
    color: #92400e;
    font-weight: 600;
}

/* Toast de Notificação na Tela */
.it-toast {
    position: absolute;
    top: 66px;
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    text-align: center;
    white-space: nowrap;
}

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

/* Barra Inferior Fixa Delicada */
.it-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 60;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.it-nav-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.it-nav-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.it-nav-btn.it-btn-next-main {
    background: linear-gradient(135deg, #d4af37, #f59e0b);
    color: #ffffff;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.it-nav-btn.it-btn-next-main:hover {
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.55);
}

#it-passo-indicador {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 14px;
}

/* Painel de Configurações Suave (Bottom Sheet Claro) */
.it-config-panel {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 80vh;
    background: #ffffff;
    border-top: 3px solid var(--it-gold-soft);
    border-radius: 28px 28px 0 0;
    padding: 24px 22px 34px 22px;
    z-index: 200;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    color: var(--it-text-main);
}

.it-config-panel.it-config-open {
    bottom: 0;
}

.it-config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.it-config-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--it-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.it-config-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.it-config-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.it-config-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.it-config-row select, .it-config-row input[type="range"] {
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #1e293b;
    font-size: 0.95rem;
}

.it-config-row select option {
    background: #ffffff;
    color: #1e293b;
}

.it-config-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.it-config-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--it-gold);
}

/* Presets de Velocidade no Modal */
.it-speed-presets {
    display: flex;
    gap: 6px;
    margin: 4px 0 10px 0;
}

.it-preset-btn {
    flex: 1;
    padding: 8px 4px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.it-preset-btn:hover {
    background: #f1f5f9;
}

.it-preset-btn.active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

/* Responsividade Mobile */
@media (max-width: 600px) {
    .it-slide-card {
        padding: 60px 8px 118px 8px;
    }

    .it-card-inner {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .it-card-title {
        font-size: 1.25rem;
    }

    .it-card-text {
        font-size: 1.15rem;
        line-height: 1.78;
    }

    .it-bottom-bar {
        height: 52px;
        padding: 4px 10px;
    }

    .it-nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .it-btn-pause-main {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    .it-reading-controls-bar {
        bottom: 60px;
        padding: 4px 10px;
        width: 95%;
    }

    .it-control-label {
        display: none;
    }

    .it-speed-btn {
        width: 25px;
        height: 25px;
        font-size: 0.85rem;
    }

    .it-btn-auto-toggle {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .it-top-bar {
        padding: 8px 8px;
    }

    .it-top-info {
        max-width: 28%;
    }

    .it-brand {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    #it-badge-misterio {
        font-size: 0.7rem;
    }

    .it-top-actions {
        gap: 3px;
    }

    .it-icon-btn {
        width: 31px;
        height: 31px;
        font-size: 0.9rem;
    }

    .it-speed-pill {
        min-width: 34px;
        height: 31px;
        font-size: 0.68rem;
        padding: 2px 4px;
    }

    .it-auto-pill {
        height: 31px;
        font-size: 0.68rem;
        padding: 2px 4px;
    }

    .it-card-text {
        font-size: 1.08rem;
        line-height: 1.7;
    }
}

/* ==========================================================================
   DESIGN SACRO & ORNAMENTAÇÃO DAS ORAÇÕES
   ========================================================================== */
.it-sacred-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 14px 0;
    color: var(--it-gold-soft);
    font-size: 0.82rem;
    opacity: 0.85;
}

.it-sacred-divider span {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Letra Capitular Sacra na primeira palavra de cada oração */
.it-card-para:first-child .it-word[data-widx="0"] {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--it-gold);
    display: inline-block;
    padding-right: 1px;
}

/* Chips de Seleção Rápida de Mistérios na Capa */
.it-misterios-chips-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0 16px 0;
    max-width: 440px;
}

.it-misterio-chip {
    padding: 6px 12px;
    border-radius: 18px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.it-misterio-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.it-misterio-chip.active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

/* Botão Pausar / Continuar Principal */
.it-btn-pause-main {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.it-btn-pause-main:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.it-btn-pause-main.it-is-paused {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

/* Botão Alternador de Modo Noturno */
.it-btn-night {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
    font-size: 0.95rem;
}

/* ==========================================================================
   MODO NOTURNO DEVOCIONAL (ESCURECER TELA PARA REZAR À NOITE)
   Fundo escuro e sereno, texto em marfim e alto conforto visual anti-ofuscamento
   ========================================================================== */
#instaterco-modal.it-dark-mode {
    background: linear-gradient(180deg, #070b14 0%, #0f172a 50%, #050810 100%) !important;
    color: #f1f5f9 !important;
}

#instaterco-modal.it-dark-mode .it-top-bar {
    background: rgba(15, 23, 42, 0.92) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
}

#instaterco-modal.it-dark-mode .it-brand {
    color: #fde047 !important;
}

#instaterco-modal.it-dark-mode #it-badge-misterio {
    color: #94a3b8 !important;
}

#instaterco-modal.it-dark-mode .it-icon-btn {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

#instaterco-modal.it-dark-mode .it-speed-pill,
#instaterco-modal.it-dark-mode .it-auto-pill {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

#instaterco-modal.it-dark-mode .it-card-inner {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.12) !important;
}

#instaterco-modal.it-dark-mode .it-card-title {
    color: #f8fafc !important;
}

#instaterco-modal.it-dark-mode .it-card-sub {
    color: #fde047 !important;
}

#instaterco-modal.it-dark-mode .it-card-text {
    color: #f1f5f9 !important;
}

#instaterco-modal.it-dark-mode .it-card-text.it-karaoke-on .it-word {
    color: #64748b !important;
}

#instaterco-modal.it-dark-mode .it-card-text.it-karaoke-on .it-word.it-word-done {
    color: #f8fafc !important;
}

#instaterco-modal.it-dark-mode .it-card-text.it-karaoke-on .it-word.it-word-current {
    color: #fef08a !important;
    background-color: rgba(245, 158, 11, 0.32) !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.65) !important;
}

#instaterco-modal.it-dark-mode .it-card-text.it-text-meditacao {
    background: rgba(30, 41, 59, 0.88) !important;
    border-left-color: #f59e0b !important;
    color: #fef08a !important;
}

#instaterco-modal.it-dark-mode .it-beads-row {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#instaterco-modal.it-dark-mode .it-bead.bead-todo {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: #475569 !important;
}

#instaterco-modal.it-dark-mode .it-bead.bead-done {
    background: #10b981 !important;
    border-color: #059669 !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important;
}

#instaterco-modal.it-dark-mode .it-bead.bead-current {
    background: linear-gradient(135deg, #f59e0b, #d4af37) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.95) !important;
}

#instaterco-modal.it-dark-mode .it-bottom-bar,
#instaterco-modal.it-dark-mode .it-reading-controls-bar {
    background: rgba(15, 23, 42, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

#instaterco-modal.it-dark-mode .it-nav-btn,
#instaterco-modal.it-dark-mode .it-btn-pause-main {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}

#instaterco-modal.it-dark-mode .it-card-cover {
    background: radial-gradient(circle at 50% 18%, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.98) 75%) !important;
}

#instaterco-modal.it-dark-mode .it-cover-title {
    color: #f8fafc !important;
}

#instaterco-modal.it-dark-mode .it-cover-desc {
    color: #cbd5e1 !important;
}

#instaterco-modal.it-dark-mode .it-misterio-chip {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

#instaterco-modal.it-dark-mode .it-misterio-chip.active {
    background: rgba(245, 158, 11, 0.3) !important;
    border-color: #f59e0b !important;
    color: #fef08a !important;
}

#instaterco-modal.it-dark-mode .it-config-panel {
    background: #0f172a !important;
    color: #f1f5f9 !important;
}

#instaterco-modal.it-dark-mode .it-config-row select {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #333333 !important;
}

#instaterco-modal.it-dark-mode .it-config-row select option {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}
