:root {
  --bg: #0a0b14;
  --card-bg: #161b2d;
  --accent: #3b82f6; 
  --text: #ffffff;
  --text-dim: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s;
}

header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 10px 5%; 
  background: rgba(10, 11, 20, 0.95);
  position: sticky; 
  top: 0; 
  z-index: 2000;
  border-bottom: 2px solid var(--accent);
  height: 70px;
  backdrop-filter: blur(10px);
}

.container { padding: 40px 5%; max-width: 1200px; margin: 0 auto; }

/* --- BOTÕES E MENUS --- */
.btn-tab {
  background: #1e293b; color: var(--text-dim); border: 1px solid #334155;
  padding: 10px 22px; border-radius: 12px; cursor: pointer; transition: 0.3s;
  white-space: nowrap; font-weight: 600;
}
.btn-tab:hover { background: #2d3748; color: white; }
.btn-tab.active {
  background: var(--accent); color: white; border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary {
  background: var(--accent); color: white; border: none; padding: 12px 20px;
  border-radius: 10px; font-weight: bold; cursor: pointer; width: 100%; transition: 0.3s;
}
.btn-primary:hover { filter: brightness(1.2); }

.input-modern {
  width: 100%; padding: 12px; background: #0f172a; border: 1px solid #334155;
  border-radius: 10px; color: white; margin-bottom: 15px;
}

/* --- BLOCOS DO PAINEL DO DONO --- */
.dashboard-section, .admin-panel, .aba-config-content {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- CARDS DE TEMPLATES NO PAINEL --- */
.template-card {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #334155;
    text-align: center;
}
.template-preview {
    width: 100%; height: 100px; border-radius: 10px; margin-bottom: 10px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

/* --- CARDS DE PLANOS (AO VIVO) --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .plans-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    overflow-x: visible !important;
  }
  
  .card {
    min-width: 100% !important;
    margin: 0 !important;
  }
}
.card {
  background: var(--card-bg); 
  border-radius: 24px; padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05); 
  transition: 0.4s; position: relative; text-align: left;
}
.card.featured { border: 2px solid var(--accent); transform: scale(1.03); }

/* --- HERO BANNER (CAPA DO SITE) - AGORA DE PONTA A PONTA --- */
#hero-banner {
    width: 100vw; 
    height: 55vh; 
    min-height: 400px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; 
    margin-right: -50vw;
    margin-top: -40px; /* Anula o espaço do container e cola lá no topo */
    margin-bottom: 50px;
    border-radius: 0; /* Remove a borda redonda */
    overflow: hidden;
}
#hero-img-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { 
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, var(--bg) 100%); /* Degradê que some no fundo */
}
.hero-content { position: absolute; top:50%; left:50%; transform: translate(-50%, -50%); text-align: center; width: 90%; max-width: 800px; }
#hero-title { font-size: 3.2rem; font-weight: 900; color: white; text-shadow: 2px 2px 20px rgba(0,0,0,0.9); margin-bottom: 10px; line-height: 1.1; }
#hero-subtitle { font-size: 1.3rem; color: #cbd5e1; text-shadow: 1px 1px 10px rgba(0,0,0,0.9); }

/* --- OUTROS (MODAIS E ZAP) --- */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; border-radius: 50px; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); display:flex; align-items:center; justify-content:center; z-index:3000; }
.modal-content { background: #161b2d; padding: 30px; border-radius: 20px; width: 90%; max-width: 500px; }

/* =========================================
   DEFINIÇÕES DOS 4 TEMPLATES
   ========================================= */

/* 1. CLEAN LIGHT */
body.theme-minimalista { background-color: #f8fafc !important; color: #334155 !important; }
.theme-minimalista header { background: rgba(255,255,255,0.95) !important; border-bottom: 1px solid #e2e8f0 !important; }
.theme-minimalista #store-name, .theme-minimalista h2, .theme-minimalista h3, .theme-minimalista h4 { color: #0f172a !important; }
.theme-minimalista p, .theme-minimalista span, .theme-minimalista label { color: #64748b !important; }
.theme-minimalista #hero-banner { display: none !important; }

.theme-minimalista .card { 
    background-color: #ffffff !important; 
    border: 1px solid #f1f5f9 !important; 
    border-radius: 16px !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.03) !important; 
    padding: 40px 25px !important; 
    text-align: center; 
}
.theme-minimalista .card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.theme-minimalista .card .price { color: var(--accent) !important; font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; display: block;}
.theme-minimalista .card ul { text-align: left; margin-bottom: 25px; color: #475569 !important; }
.theme-minimalista .btn-primary { background-color: #0f172a !important; color: #fff !important; border-radius: 8px !important; font-weight: 600; }
.theme-minimalista .btn-primary:hover { background-color: #334155 !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.theme-minimalista .admin-edit-zone { background: #ffffff !important; border: 2px dashed #94a3b8 !important; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* 2. STREAMING BLACK */
body.theme-netflix { background-color: #141414 !important; color: #e5e5e5 !important; }
.theme-netflix header { background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%) !important; border: none !important; }
.theme-netflix #hero-banner { margin-top: -70px !important; height: 65vh !important; }
.theme-netflix #store-name { text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }

.theme-netflix .plans-grid { gap: 15px; }
.theme-netflix .card { 
    background-color: transparent !important; 
    border-radius: 8px !important; 
    border: none !important; 
    padding: 0 !important; 
    overflow: hidden; 
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: none !important;
}
.theme-netflix .card:hover { transform: scale(1.05); z-index: 10; }
.theme-netflix .card img { border-radius: 0 !important; margin-bottom: 15px !important; height: 320px; filter: brightness(0.9); transition: 0.3s; }
.theme-netflix .card:hover img { filter: brightness(1.1); }
.theme-netflix .card h3, .theme-netflix .card .price, .theme-netflix .card ul { padding: 0 15px; }
.theme-netflix .card h3 { font-size: 1.3rem; }
.theme-netflix .card .price { font-size: 1.1rem; color: #fff !important; }
.theme-netflix .card ul { font-size: 0.85rem; color: #a3a3a3; margin-bottom: 15px; }
.theme-netflix .card .btn-primary { width: calc(100% - 30px); margin: 0 15px 20px 15px; border-radius: 4px !important; background-color: #e50914 !important; color: white !important; font-weight: bold; }
.theme-netflix .card.featured { border: 1px solid #e50914 !important; }

/* 3. NEON MATRIX */
body.theme-neon { background-color: #050608 !important; font-family: 'Courier New', Courier, monospace !important; text-transform: uppercase; }
.theme-neon header { border-bottom: 2px solid #00ff41 !important; background: #000 !important; }
.theme-neon h2, .theme-neon h3 { letter-spacing: 2px; }

.theme-neon .card { 
    background-color: #0a0c12 !important; 
    border: 1px solid #00ff41 !important; 
    border-radius: 0 !important; 
    box-shadow: 6px 6px 0px rgba(0, 255, 65, 0.4) !important; 
    transition: 0.2s;
}
.theme-neon .card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0px rgba(0, 255, 65, 0.6) !important; }
.theme-neon .card img { border-radius: 0 !important; filter: contrast(1.2) grayscale(0.2); }
.theme-neon .card.featured { border: 2px solid #00ff41 !important; box-shadow: 10px 10px 0px #00ff41 !important; transform: none !important; margin-top: -10px; }
.theme-neon .btn-primary { 
    background: transparent !important; 
    border: 1px solid #00ff41 !important; 
    color: #00ff41 !important; 
    border-radius: 0 !important; 
    font-weight: bold; 
    letter-spacing: 1px;
}
.theme-neon .btn-primary:hover { background: #00ff41 !important; color: #000 !important; box-shadow: 0 0 15px #00ff41 !important; }
.theme-neon .admin-edit-zone { border-radius: 0 !important; border: 1px solid #00ff41 !important; background: repeating-linear-gradient(45deg, rgba(0,255,65,0.05), rgba(0,255,65,0.05) 10px, transparent 10px, transparent 20px) !important; }
.theme-neon .modal-content { border-radius: 0 !important; border: 1px solid #00ff41; box-shadow: 10px 10px 0px rgba(0, 255, 65, 0.3); }