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

:root {
    /* Cores principais */
    --primary: #e65100;
    --primary-light: #ff9800;
    --primary-dark: #bf360c;
    --secondary: #1a237e;
    --accent: #c62828;
    
    /* Cores de fundo */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    
    /* Cores de texto */
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    /* Gradientes */
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #2d2d44);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-primary: 0 4px 16px rgba(230, 81, 0, 0.3);
    
    /* Outros */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Safe areas */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

/* Tema Escuro */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #252540;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-light: #6b6b7b;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== SPLASH SCREEN ===== */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.splash-content {
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.splash-logo {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.splash-logo img {
    width: 90px;
    height: auto;
}

.splash-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.splash-text p {
    font-size: 1rem;
    opacity: 0.9;
}

.splash-slogan {
    margin-top: 16px;
}

.splash-slogan span {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
}

.splash-loader {
    margin-top: 40px;
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 4px;
    animation: loadProgress 2.5s ease-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ===== APP CONTAINER ===== */
.app {
    display: none;
    min-height: 100vh;
    padding-bottom: 80px;
}

.app.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* ===== TELAS ===== */
.tela {
    display: none;
    min-height: 100vh;
}

.tela.active {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* ===== HEADER HOME ===== */
.header-home {
    background: var(--gradient);
    padding: 20px 20px 30px;
    padding-top: calc(20px + var(--safe-top));
    border-radius: 0 0 32px 32px;
    position: relative;
    overflow: hidden;
}

.header-home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-info .greeting {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    display: block;
}

.header-info h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-theme {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-theme:active {
    transform: scale(0.9);
}

/* ===== BANNER CARROSSEL ===== */
.banner-container {
    padding: 0 20px;
    margin-top: -15px;
    position: relative;
    z-index: 10;
}

.banner-carousel {
    position: relative;
    height: 140px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

[data-theme="dark"] .banner-slide {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.banner-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.banner-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.banner-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-content p {
    font-size: 0.85rem;
    opacity: 0.85;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* ===== SEÇÕES ===== */
.section {
    padding: 24px 20px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ver-todos {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== ACESSO RÁPIDO ===== */
.quick-access {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.quick-item:active {
    transform: scale(0.95);
}

.quick-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.quick-icon.youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.quick-icon.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.quick-icon.facebook { background: linear-gradient(135deg, #1877f2, #0d5bbd); }
.quick-icon.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

.quick-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== CARD OFERTA ===== */
.card-oferta {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.card-oferta:active {
    transform: scale(0.98);
}

.card-oferta-bg {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.card-oferta-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.card-oferta-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.card-oferta-text {
    flex: 1;
    color: white;
}

.card-oferta-text h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-oferta-text p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.card-oferta-arrow {
    color: white;
    opacity: 0.8;
}

/* ===== PRÓXIMO CULTO ===== */
.proximo-culto-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.proximo-culto-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.proximo-culto-info {
    flex: 1;
}

.proximo-culto-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.proximo-culto-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.proximo-culto-badge {
    background: var(--bg-primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== RÁDIO CARD ===== */
.card-radio {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.card-radio:active {
    transform: scale(0.98);
}

.radio-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00c853, #009624);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
}

.radio-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-waves span {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 200, 83, 0.4);
    border-radius: 50%;
    animation: wave 2s infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-waves span:nth-child(2) { animation-delay: 0.5s; }
.radio-waves span:nth-child(3) { animation-delay: 1s; }

@keyframes wave {
    0% {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

.radio-text {
    flex: 1;
}

.radio-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.radio-play {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-primary);
}

/* ===== MINISTÉRIOS PREVIEW ===== */
.ministerios-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ministerio-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ministerio-card:active {
    transform: scale(0.95);
}

.ministerio-icon-new {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin: 0 auto 8px;
}

.ministerio-card span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== BOTTOM SPACE ===== */
.bottom-space {
    height: 100px;
}

/* ===== MENU INFERIOR ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    padding-bottom: calc(12px + var(--safe-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 24px 24px 0 0;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.bottom-nav .nav-item i {
    font-size: 1.3rem;
}

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

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

/* ===== HEADER INTERNO ===== */
.header-interno {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    padding-top: calc(16px + var(--safe-top));
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-interno h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-voltar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-voltar:active {
    transform: scale(0.9);
}

.header-spacer {
    width: 40px;
}

.content-scroll {
    padding: 0 20px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ===== CULTOS (TELA INTERNA) ===== */
.cultos-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.culto-card-new {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.culto-header {
    background: var(--gradient);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.culto-dia-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.culto-dia-info h3 {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
}

.culto-dia-info span {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
}

.culto-horarios-new {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.horario-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.horario-badge {
    background: var(--gradient);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 65px;
    text-align: center;
}

.horario-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.horario-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== MINISTÉRIOS (TELA INTERNA) ===== */
.ministerios-grid-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ministerio-card-full {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ministerio-card-full:active {
    transform: scale(0.98);
}

.ministerio-icon-big {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.ministerio-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ministerio-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== SOBRE ===== */
.sobre-header {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.sobre-logo {
    width: 100px;
    height: 100px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 15px;
}

.sobre-logo img {
    width: 70px;
    height: auto;
}

.sobre-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.sobre-slogan {
    display: inline-block;
    margin-top: 12px;
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-style: italic;
    font-size: 0.9rem;
}

.sobre-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.sobre-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.sobre-section h3 i {
    color: var(--primary);
}

.mapa-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.endereco-box {
    text-align: center;
    margin-bottom: 16px;
}

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

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.btn-primary:active {
    transform: scale(0.98);
}

.contato-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.btn-contato {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.btn-contato:active {
    transform: scale(0.95);
}

.btn-contato.telefone {
    background: var(--secondary);
}

.btn-contato.whatsapp {
    background: #25d366;
}

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

.btn-contato span {
    font-size: 0.85rem;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.social-btn:active {
    transform: scale(0.9);
}

.social-btn.youtube { background: #ff0000; }
.social-btn.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.facebook { background: #1877f2; }

/* ===== TELA MAIS ===== */
.mais-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.mais-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.mais-item:active {
    transform: scale(0.98);
    background: var(--bg-primary);
}

.mais-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.mais-icon.oferta { background: var(--gradient); }
.mais-icon.youtube { background: #ff0000; }
.mais-icon.instagram { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.mais-icon.facebook { background: #1877f2; }
.mais-icon.radio { background: #00c853; }
.mais-icon.whatsapp { background: #25d366; }
.mais-icon.share { background: var(--secondary); }

.mais-info {
    flex: 1;
}

.mais-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mais-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mais-item > i {
    color: var(--text-light);
}

.app-version {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.version-logo {
    width: 50px;
    height: auto;
    opacity: 0.5;
    margin-bottom: 10px;
}

.app-version p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.app-version span {
    font-size: 0.75rem;
}

/* ===== MODAIS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border-radius: 24px 24px 0 0;
    animation: slideUp 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header-new {
    background: var(--gradient);
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.modal-header-new.radio-header {
    background: linear-gradient(135deg, #00c853, #009624);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.modal-header-new h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-header-new p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.modal-body-new {
    padding: 24px;
}

.pix-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.pix-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.pix-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    word-break: break-all;
}

.btn-copiar-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.btn-copiar-new:active {
    transform: scale(0.95);
}

.btn-copiar-new.copied {
    background: #4caf50;
}

.pix-verse {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

.pix-verse small {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
}

/* Radio Modal */
.radio-player {
    text-align: center;
}

.radio-info {
    margin-bottom: 20px;
}

.radio-playing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.playing-dot {
    width: 8px;
    height: 8px;
    background: #00c853;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.radio-info p {
    color: var(--text-secondary);
}

.btn-ouvir {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00c853, #009624);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
}

.btn-ouvir:active {
    transform: scale(0.95);
}

.radio-note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 360px) {
    .quick-access {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .quick-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .ministerios-preview {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .ministerio-icon-new {
        width: 38px;
        height: 38px;
    }
}


/* Banner de Instalação PWA */
.install-banner {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: linear-gradient(135deg, #e65100, #ff6d00);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.4);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

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

.install-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.install-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.install-text strong {
    font-size: 16px;
}

.install-text span {
    font-size: 12px;
    opacity: 0.9;
}

.install-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-instalar {
    background: white;
    color: #e65100;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}

.btn-fechar-install {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}
