/* ═══════════════════════════════════════════════════════════════
   PORTAL DO TEMPLO - PAI WESLEY
   MERCEDES-MAYBACH EDITION v4.0
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Outfit:wght@200;300;400;500;600&family=Cinzel+Decorative:wght@400;700&display=swap');

:root {
    /* Paleta Mercedes-Maybach */
    --obsidian: #08090c;
    --obsidian-light: #0d0f14;
    --graphite: #12141a;
    --graphite-light: #1a1d24;
    --champagne: #d4c4a8;
    --champagne-light: #e8dcc6;
    --champagne-dark: #b8a88c;
    --champagne-muted: rgba(212, 196, 168, 0.08);
    
    /* Mapeamento de compatibilidade */
    --gold: #d4c4a8;
    --gold-light: #e8dcc6;
    --gold-dark: #b8a88c;
    --gold-glow: rgba(212, 196, 168, 0.4);
    
    --primary: #08090c;
    --primary-light: #0d0f14;
    --accent: #d4c4a8;
    --accent-light: #e8dcc6;
    --accent-subtle: rgba(212, 196, 168, 0.08);
    --accent-glow: rgba(212, 196, 168, 0.2);
    
    --bg-base: #08090c;
    --bg-card: #12141a;
    --bg-elevated: #1a1d24;
    --bg-input: #0d0f14;
    
    --border-light: rgba(212, 196, 168, 0.08);
    --border-medium: rgba(212, 196, 168, 0.15);
    --border-accent: rgba(212, 196, 168, 0.3);
    --border-champagne: rgba(212, 196, 168, 0.2);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --text-tertiary: #71717a;
    
    --success: #10b981;
    --error: #f87171;
    --warning: #fbbf24;
    --info: #38bdf8;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-gold: 0 0 30px rgba(212, 196, 168, 0.15);
    --shadow-elevated: 0 16px 48px rgba(0,0,0,0.5);
    
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-luxury: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
}

/* ═══════════════════════════════════════════════════════════════
   NAVEGAÇÃO APP - TOPO E BASE
   ═══════════════════════════════════════════════════════════════ */

.app-nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(3,3,3,0.98) 0%, rgba(3,3,3,0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 196, 168, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 9999;
}

.app-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 196, 168, 0.1);
    border: 1px solid rgba(212, 196, 168, 0.3);
    color: var(--gold);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.app-nav-btn:hover, .app-nav-btn:active {
    background: rgba(212, 196, 168, 0.25);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(212, 196, 168, 0.3);
}

.app-nav-btn.home-btn {
    background: linear-gradient(135deg, rgba(212, 196, 168, 0.2) 0%, rgba(212, 196, 168, 0.1) 100%);
    border-color: var(--gold);
}

.app-nav-btn.home-btn:hover {
    background: linear-gradient(135deg, rgba(212, 196, 168, 0.35) 0%, rgba(212, 196, 168, 0.2) 100%);
    box-shadow: 0 0 25px rgba(212, 196, 168, 0.5);
}

.app-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.app-nav-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR INFERIOR - DESIGN LUXUOSO
   ═══════════════════════════════════════════════════════════════ */

.app-nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(8,8,8,0.95) 0%, rgba(3,3,3,0.99) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5), 0 -2px 20px rgba(212,196,168,0.15);
}

.app-nav-bottom::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    animation: nav-glow 2s ease-in-out infinite;
}

@keyframes nav-glow {
    0%, 100% { opacity: 0.5; width: 100px; }
    50% { opacity: 1; width: 200px; }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #555;
    padding: 12px 18px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 70px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 0 0 3px 3px;
    transition: width 0.3s ease;
}

.nav-item:hover::before,
.nav-item:active::before,
.nav-item.active::before {
    width: 40px;
}

.nav-item:hover,
.nav-item:active {
    color: var(--gold);
    background: rgba(212, 196, 168, 0.08);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--gold);
    background: linear-gradient(180deg, rgba(212,196,168,0.15) 0%, rgba(212,196,168,0.05) 100%);
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(212,196,168,0.6));
}

.nav-item .nav-icon {
    font-size: 26px;
    transition: all 0.3s ease;
    line-height: 1;
}

.nav-item .nav-label {
    font-family: 'Philosopher', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-item.active .nav-label {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212,196,168,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND MÍSTICO GLOBAL - VERSÃO LUXUOSA
   ═══════════════════════════════════════════════════════════════ */

.mystic-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: var(--bg-base);
    overflow: hidden;
}

.mystic-bg .nebula {
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    background: 
        radial-gradient(ellipse 60% 40% at 25% 30%, rgba(212, 196, 168, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 75% 70%, rgba(184, 134, 11, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(139, 115, 85, 0.04) 0%, transparent 60%);
    animation: nebulaMove 25s ease-in-out infinite;
}

@keyframes nebulaMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(3%, -2%) rotate(2deg) scale(1.02); }
    66% { transform: translate(-2%, 3%) rotate(-1deg) scale(0.98); }
}

.mystic-bg .sacred-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mystic-bg .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(212, 196, 168, 0.08);
}

.mystic-bg .ring:nth-child(1) { 
    width: 600px; 
    height: 600px; 
    animation: ringRotate 100s linear infinite;
    border-style: dashed;
    border-color: rgba(212, 196, 168, 0.05);
}

.mystic-bg .ring:nth-child(2) { 
    width: 450px; 
    height: 450px; 
    animation: ringRotate 70s linear infinite reverse;
}

.mystic-bg .ring:nth-child(3) { 
    width: 300px; 
    height: 300px; 
    animation: ringRotate 45s linear infinite;
    border-width: 2px;
    border-color: rgba(212, 196, 168, 0.1);
}

@keyframes ringRotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Partículas Flutuantes */
.mystic-bg .particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.mystic-bg .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* Estrelas Brilhantes */
.mystic-bg .stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.mystic-bg .star {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); box-shadow: 0 0 2px var(--gold); }
    50% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold); }
}

/* Flash de Luz */
.mystic-bg .light-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212,196,168,0.3) 0%, transparent 70%);
    animation: lightFlash 5s ease-in-out infinite;
    opacity: 0;
}

@keyframes lightFlash {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(2); }
}

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

body.templo-fullpage {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--primary);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGES
   ═══════════════════════════════════════════════════════════════ */

.templo-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.templo-login-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(196, 160, 82, 0.1) 0%, transparent 50%);
}

.templo-login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.templo-login-header {
    text-align: center;
    margin-bottom: 36px;
}

.templo-login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    padding: 4px;
    margin-bottom: 20px;
}

.templo-login-header h1 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.templo-login-subtitle {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.templo-login-form {
    margin-bottom: 20px;
}

.templo-field {
    margin-bottom: 20px;
}

.templo-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.templo-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.templo-input-icon > span:first-child {
    position: absolute;
    left: 16px;
    font-size: 18px;
}

.templo-input-icon input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--duration) var(--ease);
}

.templo-input-icon input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.templo-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--duration);
}

.templo-toggle-pass:hover {
    opacity: 1;
}

.templo-btn-login {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-login:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 160, 82, 0.3);
}

.templo-btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.templo-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    text-align: center;
    display: none;
}

.templo-login-links {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
}

.templo-login-links p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.templo-btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

.templo-btn-outline:hover {
    background: var(--accent-subtle);
}

.templo-login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.templo-login-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   PUBLIC PAGES (Cadastro)
   ═══════════════════════════════════════════════════════════════ */

.templo-public-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px;
    background: linear-gradient(180deg, var(--bg-base) 0%, #1a1d24 100%);
}

.templo-public-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
}

.templo-public-header {
    text-align: center;
    margin-bottom: 36px;
}

.templo-public-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    padding: 4px;
    margin-bottom: 20px;
}

.templo-public-subtitle {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.templo-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.templo-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.templo-field input,
.templo-field select,
.templo-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all var(--duration) var(--ease);
}

.templo-field input::placeholder,
.templo-field textarea::placeholder {
    color: var(--text-muted);
}

.templo-field input:focus,
.templo-field select:focus,
.templo-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.templo-field small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.templo-field .required {
    color: var(--accent);
}

.templo-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.templo-upload-box {
    position: relative;
}

.templo-upload-box input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.templo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px;
    background: var(--bg-input);
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-upload-label:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.templo-upload-icon {
    font-size: 32px;
}

.templo-upload-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.templo-foto-preview {
    width: 100%;
    max-width: 200px;
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.templo-btn-submit {
    width: 100%;
    padding: 18px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-submit:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 160, 82, 0.3);
}

.templo-message {
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 20px;
    display: none;
}

.templo-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.templo-error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.templo-public-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.templo-public-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

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

/* ═══════════════════════════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.templo-app {
    display: flex;
    min-height: 100vh;
}

.templo-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.templo-sidebar-header {
    padding: 32px 28px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.templo-sidebar-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    padding: 4px;
    margin-bottom: 16px;
}

.templo-sidebar-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.templo-sidebar-header p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.templo-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.templo-nav-section {
    margin-bottom: 8px;
}

.templo-nav-title {
    display: block;
    padding: 12px 28px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.templo-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--duration) var(--ease);
    border-left: 3px solid transparent;
}

.templo-nav-item:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
    border-left-color: var(--accent);
}

.templo-nav-item.active {
    color: var(--accent);
    background: var(--accent-subtle);
    border-left-color: var(--accent);
    font-weight: 600;
}

.templo-sidebar-footer {
    padding: 24px 28px;
    border-top: 1px solid var(--border-light);
}

.templo-user-info {
    margin-bottom: 16px;
}

.templo-user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.templo-user-role {
    font-size: 12px;
    color: var(--accent);
}

.templo-btn-logout {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-logout:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

/* Main Content */
.templo-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px 48px;
    min-height: 100vh;
}

.templo-page {
    display: none;
    animation: fadeIn 0.4s var(--ease);
}

.templo-page.active {
    display: block;
}

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

.templo-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

.templo-welcome {
    margin-bottom: 40px;
}

.templo-welcome h1 {
    font-size: 36px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.templo-welcome p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Stats */
.templo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.templo-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.templo-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.templo-stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.templo-stat-card.highlight {
    background: var(--accent-subtle);
    border-color: var(--border-accent);
}

.templo-stat-icon {
    font-size: 40px;
}

.templo-stat-info {
    display: flex;
    flex-direction: column;
}

.templo-stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.templo-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Cards */
.templo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.templo-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.templo-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.templo-empty {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Lists */
.templo-aniv-list, .templo-giras-list {
    list-style: none;
}

.templo-aniv-list li, .templo-giras-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.templo-aniv-list li:last-child, .templo-giras-list li:last-child {
    border-bottom: none;
}

.templo-giras-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.templo-giras-list li strong {
    color: var(--accent);
}

.templo-giras-list li small {
    color: var(--text-muted);
    font-size: 12px;
}

/* Buttons */
.templo-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.templo-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.templo-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-back:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.templo-btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    background: var(--accent-subtle);
    color: var(--accent);
}

.templo-btn-sm:hover {
    background: var(--accent);
    color: var(--primary);
}

.templo-btn-edit {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.templo-btn-edit:hover {
    background: #3b82f6;
    color: white;
}

.templo-btn-delete {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.templo-btn-delete:hover {
    background: var(--error);
    color: white;
}

.templo-btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Tables */
.templo-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.templo-table {
    width: 100%;
    border-collapse: collapse;
}

.templo-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-light);
}

.templo-table td {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.templo-table tbody tr:hover {
    background: var(--accent-subtle);
}

.templo-table tbody tr:last-child td {
    border-bottom: none;
}

.templo-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.templo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Filters */
.templo-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.templo-filters input,
.templo-filters select {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 200px;
}

.templo-filters input:focus,
.templo-filters select:focus {
    outline: none;
    border-color: var(--accent);
}

.templo-btn-filter {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-filter:hover {
    background: var(--accent-light);
}

/* Tabs */
.templo-tabs, .templo-ficha-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.templo-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.templo-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* Status */
.templo-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.templo-status.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.templo-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* Alerta de Pendentes */
.templo-alerta-pendentes {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.templo-alerta-pendentes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.templo-alerta-pendentes .templo-alerta-content strong {
    color: #fff;
}

.templo-alerta-pendentes .templo-alerta-content div {
    color: rgba(255,255,255,0.8);
}

.templo-alerta-btn {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

/* Badge */
.templo-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

/* Pendentes Grid */
.templo-pendentes-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    max-width: 600px !important;
}

.templo-pendente-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

.templo-pendente-foto {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.templo-pendente-foto img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.templo-pendente-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.templo-pendente-info {
    padding: 16px;
    flex: 1;
}

.templo-pendente-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--gold);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.templo-pendente-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.templo-pendente-info p strong {
    color: var(--text-muted);
    min-width: 75px;
    font-size: 11px;
}

.templo-pendente-data {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 11px !important;
    color: var(--text-muted) !important;
}

.templo-pendente-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-light);
}

@media (max-width: 600px) {
    .templo-pendente-card {
        flex-direction: column;
    }
    
    .templo-pendente-foto {
        width: 100%;
        max-width: 100%;
        height: 120px;
    }
}

.templo-btn-aprovar {
    flex: 1;
    padding: 10px 14px;
    background: var(--success);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-aprovar:hover {
    background: #1ea750;
    transform: translateY(-1px);
}

.templo-btn-rejeitar {
    flex: 1;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: var(--error);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.templo-btn-rejeitar:hover {
    background: var(--error);
    color: #fff;
}

/* Empty State */
.templo-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.templo-empty-state span {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.templo-empty-state p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Alerta de Aniversariantes */
.templo-alerta-aniversario {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    animation: pulseGlow 2s infinite;
    position: relative;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.6); }
}

.templo-alerta-icon {
    font-size: 48px;
    animation: bounce 1s infinite;
}

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

.templo-alerta-content {
    flex: 1;
}

.templo-alerta-content strong {
    display: block;
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.templo-alerta-content div {
    font-size: 15px;
    color: #422006;
    font-weight: 500;
}

.templo-alerta-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #92400e;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.templo-alerta-close:hover {
    opacity: 1;
}

/* Aniversariantes Grid */
.templo-aniversariantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.templo-aniv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--duration) var(--ease);
}

.templo-aniv-card:hover {
    border-color: var(--accent);
}

.templo-aniv-foto {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.templo-aniv-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.templo-aniv-info {
    flex: 1;
}

.templo-aniv-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.templo-aniv-info span {
    font-size: 12px;
    color: var(--accent);
}

/* Calendário */
.templo-calendario {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.templo-cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-light);
}

.templo-cal-header span {
    padding: 14px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.templo-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.templo-cal-day {
    min-height: 100px;
    padding: 10px;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--duration);
}

.templo-cal-day:nth-child(7n) {
    border-right: none;
}

.templo-cal-day.empty {
    background: rgba(0,0,0,0.2);
}

.templo-cal-day:hover:not(.empty) {
    background: var(--accent-subtle);
}

.templo-cal-day.hoje {
    background: var(--accent-subtle);
}

.templo-cal-day.hoje .templo-cal-num {
    background: var(--accent);
    color: var(--primary);
}

.templo-cal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.templo-cal-event {
    background: var(--accent);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.templo-calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.templo-calendar-nav span {
    font-size: 18px;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}

/* Ficha do Membro */
.templo-ficha-dados {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.templo-ficha-foto {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.templo-ficha-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.templo-big-avatar {
    font-size: 60px;
}

.templo-ficha-info {
    flex: 1;
    min-width: 250px;
}

.templo-ficha-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
}

.templo-ficha-row:last-child {
    border-bottom: none;
}

.templo-ficha-row label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 120px;
    text-transform: uppercase;
}

.templo-ficha-row span {
    color: var(--text-primary);
}

.templo-ficha-section {
    padding: 20px 0;
}

.templo-info-text {
    margin-top: 20px;
    padding: 16px;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
}

/* Histórico */
.templo-historico-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    margin-top: 20px;
    max-width: 600px !important;
}

/* Card de histórico estilo ficha */
.templo-historico-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex !important;
    flex-direction: row !important;
    overflow: hidden !important;
}

.templo-hist-thumb {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    position: relative;
    background: var(--bg-elevated);
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.templo-hist-thumb > img:first-child {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.templo-hist-logo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    opacity: 0.5;
    pointer-events: none;
}

.templo-hist-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.templo-hist-data {
    font-weight: 600;
    color: var(--gold);
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
}

.templo-hist-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.templo-hist-label {
    color: var(--text-muted);
    font-weight: 600;
    min-width: 70px;
    font-size: 11px;
    text-transform: uppercase;
}

.templo-hist-row span:last-child {
    color: var(--text-secondary);
}

@media (max-width: 500px) {
    .templo-historico-card {
        flex-direction: column !important;
    }
    
    .templo-hist-thumb {
        width: 100% !important;
        max-width: 100% !important;
        height: 150px !important;
    }
}

/* Estilo antigo mantido para compatibilidade */
.templo-historico-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.templo-historico-header {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-light);
}

.templo-historico-data {
    font-weight: 600;
    color: var(--accent);
}

.templo-historico-valor {
    font-weight: 700;
    color: var(--success);
}

.templo-historico-body {
    padding: 18px;
}

.templo-historico-body p {
    margin-bottom: 8px;
    font-size: 14px;
}

.templo-historico-body p:last-child {
    margin-bottom: 0;
}

.templo-historico-body strong {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.templo-historico-actions {
    padding: 12px 18px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}

/* Arquivos */
.templo-arquivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.templo-arquivo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

.templo-arquivo-card:hover {
    border-color: var(--accent);
}

.templo-arquivo-thumb {
    height: 120px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.templo-arquivo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.templo-arquivo-thumb span {
    font-size: 40px;
}

.templo-arquivo-info {
    padding: 14px;
}

.templo-arquivo-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.templo-arquivo-info small {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.templo-arquivo-actions {
    padding: 12px 14px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}

/* Membro Card */
.templo-membro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.templo-membro-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.templo-membro-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.templo-membro-info h2 {
    margin-bottom: 8px;
}

.templo-membro-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Formas de Pagamento */
.templo-formas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.templo-forma-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.templo-forma-item span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.templo-forma-item strong {
    font-size: 18px;
    color: var(--accent);
}

/* Modal */
.templo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.templo-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

.templo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-light);
}

.templo-modal-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.templo-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color var(--duration);
}

.templo-modal-close:hover {
    color: var(--text-primary);
}

.templo-modal-content form {
    padding: 28px;
}

.templo-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE HEADER E MENU - VERSÃO LUXUOSA
   ═══════════════════════════════════════════════════════════════ */

.templo-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, #12141a 0%, #0d0f14 100%);
    border-bottom: 2px solid var(--gold);
    z-index: 9998;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.templo-mobile-header h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212,196,168,0.3);
}

.templo-mobile-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(212,196,168,0.3);
}

.templo-mobile-home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.templo-mobile-home img {
    transition: all 0.3s ease;
}

.templo-mobile-home:hover img,
.templo-mobile-home:active img {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 196, 168, 0.6);
}

.templo-mobile-menu-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 196, 168, 0.2) 0%, rgba(212, 196, 168, 0.08) 100%);
    border: 2px solid var(--gold);
    border-radius: 14px;
    color: var(--gold);
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 4px 15px rgba(212,196,168,0.2);
}

.templo-mobile-menu-btn:hover,
.templo-mobile-menu-btn:active {
    background: linear-gradient(135deg, rgba(212, 196, 168, 0.4) 0%, rgba(212, 196, 168, 0.2) 100%);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(212, 196, 168, 0.5);
}

.templo-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.templo-mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - TABLETS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .templo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE (< 900px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    /* Sidebar Mobile */
    .templo-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        box-shadow: 5px 0 40px rgba(0,0,0,0.7);
        border-right: 2px solid var(--gold);
    }
    
    .templo-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .templo-mobile-header {
        display: flex;
    }
    
    .templo-main {
        margin-left: 0;
        padding: 90px 16px 30px;
        min-height: 100vh;
    }
    
    .templo-grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Botão portal no sidebar mobile */
    .templo-btn-portal {
        padding: 14px 18px;
        font-size: 14px;
        margin-top: 15px;
    }
    
    /* Tabelas Mobile */
    .templo-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .templo-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .templo-table th,
    .templo-table td {
        padding: 12px 10px;
    }
    
    /* Stats Grid Mobile */
    .templo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .templo-stat-card {
        padding: 16px;
    }
    
    .templo-stat-value {
        font-size: 24px;
    }
    
    /* Cards e Listas Mobile */
    .templo-grid-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    /* Filtros Mobile */
    .templo-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .templo-filters input,
    .templo-filters select {
        width: 100%;
    }
    
    /* Modais Mobile */
    .templo-modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }
    
    .templo-modal-body {
        padding: 20px;
    }
    
    /* Page Header Mobile */
    .templo-page-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .templo-page-header h1 {
        font-size: 22px;
        text-align: center;
    }
    
    .templo-btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    /* Ações em Massa Mobile */
    .templo-acoes-massa {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .templo-acoes-massa span {
        width: 100%;
    }
    
    .templo-btn-ativar,
    .templo-btn-desativar {
        flex: 1;
        padding: 12px 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE PEQUENO (< 640px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    /* Header Mobile Menor */
    .templo-mobile-header {
        height: 65px;
        padding: 0 12px;
    }
    
    .templo-mobile-header h2 {
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .templo-mobile-header img {
        width: 40px;
        height: 40px;
    }
    
    .templo-mobile-menu-btn {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
    
    /* Main Content */
    .templo-main {
        padding: 80px 12px 25px;
    }
    
    /* Page Titles */
    .templo-page > h1 {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* Stats Grid 2 colunas em celular */
    .templo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .templo-stat-card {
        padding: 14px 10px;
    }
    
    .templo-stat-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .templo-stat-value {
        font-size: 20px;
    }
    
    .templo-stat-label {
        font-size: 10px;
    }
    
    /* Botões Mobile */
    .templo-btn-sm {
        padding: 10px 14px;
        font-size: 14px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .templo-btn-primary,
    .templo-btn-secondary {
        padding: 14px 18px;
        font-size: 14px;
        min-height: 50px;
    }
    
    /* Form Fields Mobile */
    .templo-field input,
    .templo-field select,
    .templo-field textarea {
        padding: 14px 16px;
        font-size: 16px; /* Evita zoom no iOS */
        min-height: 50px;
    }
    
    .templo-field label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .templo-field-row {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Sidebar Mobile */
    .templo-sidebar {
        width: 85%;
        max-width: 320px;
    }
    
    .templo-sidebar-header {
        padding: 25px 20px;
    }
    
    .templo-sidebar-logo {
        width: 70px;
        height: 70px;
    }
    
    .templo-sidebar-header h2 {
        font-size: 16px;
    }
    
    .templo-nav-item {
        padding: 16px 20px;
        font-size: 14px;
        min-height: 52px;
    }
    
    .templo-btn-logout {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    /* Tabs Mobile */
    .templo-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .templo-tab {
        flex: 1;
        min-width: calc(50% - 4px);
        padding: 12px 10px;
        font-size: 12px;
        text-align: center;
        justify-content: center;
    }
    
    /* Ficha Tabs Mobile */
    .templo-ficha-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .templo-ficha-tabs .templo-tab {
        flex: 1;
        min-width: calc(33% - 4px);
        padding: 10px 8px;
        font-size: 11px;
    }
    
    /* Avatar Mobile */
    .templo-avatar {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .templo-avatar img {
        width: 45px;
        height: 45px;
    }
    
    /* Modais Mobile Pequeno */
    .templo-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .templo-modal-header {
        padding: 18px 16px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .templo-modal-header h2 {
        font-size: 16px;
    }
    
    .templo-modal-body {
        padding: 16px;
        padding-bottom: 100px;
    }
    
    .templo-modal-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px;
        background: #12141a;
        border-top: 1px solid rgba(212,196,168,0.2);
        gap: 10px;
    }
    
    .templo-modal-actions button {
        flex: 1;
        padding: 16px;
        font-size: 14px;
    }
    
    /* Empty State Mobile */
    .templo-empty {
        padding: 40px 20px;
        font-size: 14px;
    }
    
    /* Calendar Mobile */
    .templo-calendar {
        font-size: 12px;
    }
    
    .templo-calendar th,
    .templo-calendar td {
        padding: 8px 4px;
    }
    
    /* Ficha Mobile */
    .templo-ficha-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .templo-ficha-foto {
        margin: 0 auto;
    }
    
    .templo-ficha-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE MUITO PEQUENO (< 400px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 400px) {
    .templo-mobile-header h2 {
        font-size: 10px;
        max-width: 120px;
        text-align: center;
    }
    
    .templo-stats-grid {
        gap: 8px;
    }
    
    .templo-stat-card {
        padding: 12px 8px;
    }
    
    .templo-stat-value {
        font-size: 18px;
    }
    
    .templo-stat-label {
        font-size: 9px;
    }
    
    .templo-tab {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .templo-ficha-tabs .templo-tab {
        font-size: 10px;
        padding: 8px 6px;
    }
    
    .templo-field-row {
        grid-template-columns: 1fr;
    }
    
    .templo-ficha-dados {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .templo-ficha-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .templo-membro-card {
        flex-direction: column;
        text-align: center;
    }
    
    .templo-cal-day {
        min-height: 70px;
        padding: 6px;
    }
    
    .templo-cal-event {
        font-size: 9px;
        padding: 2px 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */

@media print {
    .templo-sidebar, .templo-mobile-header {
        display: none !important;
    }
    
    .templo-main {
        margin: 0;
        padding: 20px;
    }
}
