:root {
    --primary: #19c463;
    --primary-dark: #0d9f4c;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f5f7fb;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --border: #e2e8f0;
    --danger: #ef4444;
    --featured: #ffca28; /* Amarelo adicionado */
}
 
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--light); color: var(--dark); transition: 0.3s; line-height: 1.6; }
 
/* DARK MODE */
body.dark { background: #020617; color: #fff; --border: #1e293b; --white: #0f172a; }
body.dark .header { background: rgba(15, 23, 42, 0.8); border-bottom-color: #1e293b; }
body.dark .search-box, body.dark .cat-circle { background: #0f172a; border: 1px solid #1e293b; }
body.dark .search-box input { color: #fff; }
body.dark .cat-name { color: #cbd5e1; }
body.dark .btn-outline { color: #fff !important; border-color: #1e293b; background: #1e293b; }
body.dark .card { background: #0f172a; border-color: #1e293b; }
 
.container { width: 92%; max-width: 1300px; margin: auto; }
 
/* HEADER */
 .header { position: sticky; top: 0; z-index: 999; backdrop-filter: blur(14px); background: rgba(255,255,255,.75); border-bottom: 1px solid var(--border); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo { font-size: 26px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--featured); }
body.dark .logo span { color: var(--featured); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
 
/* BOTÕES */
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: .3s; font-weight: 700; border-radius: 12px; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #35e47e); color: white !important; padding: 12px 20px; box-shadow: 0 10px 25px rgba(25,196,99,.25); font-size: 14px; }
.btn-outline { border: 1px solid var(--border); background: var(--white); color: var(--dark) !important; padding: 10px 18px; font-size: 14px; }
.dark-toggle { width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
 
/* HERO & BUSCA */
.hero { padding: 60px 0 20px; text-align: center; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), #4ade80); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.search-box { margin: 30px auto; background: white; border-radius: 20px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; max-width: 600px; box-shadow: var(--shadow); border: 1px solid transparent; }
.search-box input { flex: 1; border: none; outline: none; font-size: 16px; background: transparent; padding-left: 10px; }
.search-btn { background: var(--primary); color: white; padding: 12px 24px; border: none; border-radius: 14px; font-weight: 700; cursor: pointer; }
 
/* CATEGORIAS CENTRALIZADAS */
.categories-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 30px auto; padding: 10px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: 0.3s; min-width: 90px; }
.cat-circle { width: 70px; height: 70px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--shadow); border: 2px solid transparent; transition: 0.3s; }
.cat-item:hover .cat-circle { border-color: var(--primary); transform: translateY(-5px); }
.cat-name { font-size: 14px; font-weight: 700; color: var(--gray); text-align: center; }
 
.more-categories-btn { margin: 0 auto 30px; display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); padding: 12px 25px; border-radius: 50px; cursor: pointer; font-weight: 600; color: var(--gray); transition: 0.3s; }
.more-categories-btn:hover { background: var(--primary); color: white; }
 
.extra-categories { display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin: 20px auto 50px; padding: 30px; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); }
.extra-categories.show { display: grid; animation: fadeIn 0.4s ease; }
.cat-tag { padding: 14px; background: var(--light); border-radius: 12px; text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
body.dark .cat-tag { background: #1e293b; }
.cat-tag:hover { border-color: var(--primary); color: var(--primary); }
 
/* GRID GRUPOS */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding-bottom: 60px; }
.card { background: var(--white); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: 0.4s; border: 1px solid var(--border); position: relative; height: 100%; }
.card.featured { border: 2.5px solid var(--featured); }
.star-badge { position: absolute; top: 12px; right: 12px; background: var(--featured); color: #000; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 18px; z-index: 10; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
 
.image-wrapper { position: relative; height: 180px; overflow: hidden; background: #e2e8f0; }
.group-image { width: 100%; height: 100%; object-fit: cover; }
.category-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: white; padding: 6px 14px; border-radius: 50px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.group-title {
    font-size: 20px; font-weight: 800; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}
.group-description {
    font-size: 14px; color: var(--gray); margin-bottom: 25px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
    min-height: calc(1.6em * 3); /* reserva o espaço de 3 linhas mesmo em descrições curtas */
}
.group-btn { margin-top: auto; background: linear-gradient(135deg, var(--primary), #35e47e); color: white !important; text-align: center; padding: 14px; border-radius: 14px; text-decoration: none; font-weight: 800; }
 
/* PÁGINAS DE CONTEÚDO (Sobre, Contato, Privacidade) */
.page-content { padding: 60px 0; min-height: 70vh; }
.page-content h1, .page-content h2 { font-size: 32px; margin-bottom: 20px; color: var(--primary); }
.page-content p { margin-bottom: 15px; color: var(--gray); font-size: 16px; }
.page-content ul { margin: 15px 0 25px 20px; color: var(--gray); }
body.dark .page-content p, body.dark .page-content li { color: #cbd5e1; }
 
/* FOOTER */
.footer { background: #020617; color: white; padding: 40px 0; text-align: center; border-top: 1px solid #1e293b; }
.footer-links { margin-top: 20px; display: flex; justify-content: center; gap: 20px; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }
 
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeIn 0.5s forwards; }
 