@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Paleta de Cores HSL Premium */
    --bg-main: hsl(224, 71%, 4%);
    --bg-card: hsla(222, 47%, 10%, 0.6);
    --bg-card-hover: hsla(222, 47%, 14%, 0.85);
    --border-color: hsla(217, 30%, 20%, 0.5);
    --border-hover: hsla(142, 70%, 45%, 0.4);
    
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 65%);
    --text-muted: hsl(215, 16%, 47%);
    
    --color-whatsapp: hsl(142, 70%, 45%);
    --color-whatsapp-hover: hsl(142, 70%, 38%);
    --color-accent: hsl(263, 70%, 50%);
    --color-accent-hover: hsl(263, 70%, 43%);
    --color-danger: hsl(0, 72%, 51%);
    --color-danger-hover: hsl(0, 72%, 43%);
    --color-warning: hsl(38, 92%, 50%);
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 24px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px 2px hsla(142, 70%, 45%, 0.15);
    --shadow-accent-glow: 0 0 20px 2px hsla(263, 70%, 50%, 0.25);
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Kyle Zantos - Motion Principles Design Tokens */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-in-fast: cubic-bezier(0.4, 0, 1, 1);
    --duration-instant: 120ms;
    --duration-fast: 200ms;
    --duration-normal: 320ms;
    --duration-slow: 480ms;
}

/* Reset e Configurações Básicas */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Liberar seleção de texto para campos editáveis */
input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevenir o arrasto de imagens */
img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    padding-top: 80px; /* Folga superior para compensar o header fixo */
    animation: fadeInPage 0.25s ease-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0.85;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de fundo decorativo com gradientes abstratos */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, hsla(263, 70%, 50%, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, hsla(142, 70%, 45%, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--color-whatsapp), hsl(150, 70%, 40%));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.btn-whatsapp-outline {
    background-color: hsla(217, 30%, 15%, 0.3);
    color: var(--color-whatsapp);
    border: 1px solid hsla(142, 70%, 45%, 0.35);
    box-shadow: none;
    transition: var(--transition-smooth);
}

.btn-whatsapp-outline:hover {
    background-color: hsla(142, 70%, 45%, 0.12);
    border-color: var(--color-whatsapp);
    color: hsl(142, 70%, 48%);
    box-shadow: 0 0 10px hsla(142, 70%, 45%, 0.1);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Componentes Comuns: Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), hsl(280, 70%, 45%));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-glow);
    filter: brightness(1.1);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--color-whatsapp), hsl(150, 70%, 40%));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: hsla(217, 30%, 20%, 0.3);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: hsla(217, 30%, 20%, 0.6);
    border-color: var(--text-secondary);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: var(--color-danger-hover);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Header & Navegação */
header {
    background-color: hsla(224, 71%, 4%, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-top-row {
    display: contents;
}

.navbar {
    max-width: 1560px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), gap 0.3s cubic-bezier(0.4, 0, 0.2, 1), grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    order: 1;
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff; /* Branco puro */
    text-decoration: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), margin 0.25s cubic-bezier(0.4, 0, 0.2, 1), height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo span {
    color: var(--color-whatsapp) !important; /* Verde do WhatsApp puro */
    -webkit-text-fill-color: var(--color-whatsapp) !important; /* Força preenchimento verde nos navegadores Chromium */
}

.nav-links {
    display: none !important;
}

.nav-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1001;
}

.header-notif-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.header-notif-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-whatsapp);
}

.header-notif-btn svg {
    display: block;
}

.header-notif-btn .notif-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: var(--color-danger, #ef4444);
    border-radius: 50%;
    border: 1.5px solid var(--bg-main);
}

/* Hero Section — base reset (estilos detalhados estão em index.php) */
.hero {
    padding: 0;
    text-align: center;
    max-width: 100%;
    margin: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0;
    /* Sem gradient clip — o hero de vídeo usa text-shadow para destaque */
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Barra de Busca */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-box {
    width: 100%;
    display: flex;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    transition: var(--transition-smooth);
}

.search-box:focus-within {
    border-color: var(--color-whatsapp);
    box-shadow: 0 0 15px 1px hsla(142, 70%, 45%, 0.15);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 1rem;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 24px;
}

/* Categorias */
.categories-tabs {
    max-width: 1560px;
    margin: 0 auto 40px;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.categories-tabs::-webkit-scrollbar {
    display: none; /* Safari e Chrome */
}

.category-tab {
    padding: 10px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-tab:hover, .category-tab.active {
    background-color: hsla(142, 70%, 45%, 0.1);
    color: var(--color-whatsapp);
    border-color: var(--color-whatsapp);
}

/* Grid de Grupos */
.main-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 24px 80px;
    width: 100%;
}

.section-title {
    margin-bottom: 24px;
    font-size: 1.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Card de Grupo (Glassmorphism e Premium) */
.group-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.group-card:hover {
    transform: translateY(-6px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect Ratio 16:9 */
    background-color: hsla(217, 30%, 15%, 0.5);
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.group-card:hover .card-image {
    transform: scale(1.05);
}

/* Fallback de Imagem em Gradiente */
.group-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent), hsl(280, 70%, 45%));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.05em;
    user-select: none;
    transition: var(--transition-smooth);
}

.group-card:hover .group-image-fallback {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background-color: hsla(224, 71%, 4%, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-subbadge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    font-size: 0.73rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.2em; /* Mantém a altura consistente */
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    margin-top: auto; /* Empurra tags para baixo */
}

.card-tag {
    font-size: 0.75rem;
    background-color: hsla(217, 30%, 20%, 0.4);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.views-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pagination-item:hover, .pagination-item.active {
    background-color: var(--color-whatsapp);
    color: #fff;
    border-color: var(--color-whatsapp);
}

/* Página de Detalhes do Grupo - Layout Fluído PC */
.details-container {
    max-width: 1560px;
    margin: 32px auto 80px;
    padding: 0 24px;
}

.details-hero-banner {
    width: 100%;
    height: 420px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: hsla(217, 30%, 15%, 0.5);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.details-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details-hero-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2f20, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
}

.details-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-main) 0%, rgba(3, 7, 18, 0.4) 25%, transparent 40%);
    display: flex;
    align-items: flex-end;
    padding: 36px 40px;
}

.details-hero-content {
    width: 100%;
}

.details-hero-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.details-category-badge {
    padding: 6px 16px;
    background-color: rgba(37, 211, 102, 0.2);
    color: var(--color-whatsapp);
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.details-rating-badge {
    padding: 6px 14px;
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating-badge-count {
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    font-size: 0.78rem;
}

.details-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.details-subcategories-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    flex-wrap: wrap;
}

.subcat-label {
    color: rgba(255,255,255,0.5);
}

.subcat-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.subcat-link:hover {
    color: var(--color-whatsapp);
}

/* Layout Vertical Centralizado em telas PC */
.details-main-layout {
    max-width: 1000px;
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Custom details layouts for PC adaptation */
.cta-layout-pc {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.cta-left-col {
    width: 100%;
}

.cta-right-col {
    width: 100%;
}

.ratings-grid-pc {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

@media (min-width: 992px) {
    .details-main-layout {
        max-width: 1200px;
    }
    
    .cta-layout-pc {
        flex-direction: row;
        align-items: stretch;
    }
    
    .cta-left-col {
        flex: 1.3;
        display: flex;
        align-items: center;
    }
    
    .cta-right-col {
        flex: 1;
    }
    
    .ratings-grid-pc {
        flex-direction: row;
        align-items: stretch;
    }
    
    .ratings-summary-box {
        flex: 1;
        margin-bottom: 0 !important;
    }
}

.details-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.details-right-sidebar {
    width: 100%;
}

.details-box-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.box-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.details-description-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

.details-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Seção de Avaliações */
.reviews-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.reviews-count-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--bg-main);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

.ratings-summary-box {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 20px;
    background-color: hsla(217, 30%, 12%, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ratings-score-big {
    text-align: center;
    flex-shrink: 0;
    min-width: 130px;
}

.ratings-num {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.ratings-stars-gold {
    color: #f59e0b;
    font-size: 1.25rem;
    margin: 6px 0;
}

.ratings-count-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ratings-bars {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rating-bar-bg {
    flex: 1;
    height: 8px;
    background-color: var(--bg-main);
    border-radius: 999px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: #f59e0b;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.rating-form-card {
    background-color: hsla(217, 30%, 12%, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.rating-form-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.star-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.star-picker .star-item {
    font-size: 2rem;
    color: #475569;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.star-picker .star-item.active,
.star-picker .star-item:hover {
    color: #f59e0b;
    transform: scale(1.15);
}

.rating-login-banner {
    background-color: hsla(217, 30%, 12%, 0.3);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background-color: hsla(217, 30%, 12%, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-whatsapp);
    flex-shrink: 0;
}

.review-user-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-whatsapp), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.review-user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-comment {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    background-color: rgba(15,23,42,0.3);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--color-whatsapp);
}

/* Criador */
.creator-profile-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.creator-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-whatsapp);
    background-color: var(--bg-main);
}

.creator-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--color-whatsapp), var(--color-accent));
    border: 2px solid var(--border-color);
}

.creator-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}

.creator-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 2px 0 6px 0;
    color: var(--text-primary);
}

.creator-link {
    font-size: 0.85rem;
    color: var(--color-whatsapp);
    text-decoration: underline;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar Direita Sticky */
.sidebar-action-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-cta-btn {
    padding: 16px 24px;
    font-size: 1.15rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.sidebar-info-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

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

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-card {
    background-color: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.security-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.security-list li {
    line-height: 1.45;
}



@media (max-width: 600px) {
    .details-container {
        padding: 0 12px;
        margin-top: 16px;
    }
    .details-hero-banner {
        height: 220px;
    }
    .details-hero-overlay {
        padding: 16px;
    }
    .details-hero-title {
        font-size: 1.4rem;
    }
    .details-box-card {
        padding: 16px 12px;
        border-radius: var(--radius-md);
    }
    
    /* Layout CTA Mobile */
    .cta-block-new {
        gap: 10px !important;
    }
    .sidebar-cta-btn {
        min-width: 0 !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .btn-favorite, .btn-share, .btn-report {
        flex: 0 0 52px !important;
        width: 52px !important;
        height: 52px !important;
        aspect-ratio: 1 / 1 !important;
    }
    .stats-box-new {
        min-width: 0 !important;
        width: 100% !important;
        align-items: center;
        text-align: center;
        margin-top: 8px;
    }
    
    /* Seção de avaliações mobile */
    .ratings-form-side {
        min-width: 0 !important;
        width: 100% !important;
    }
    .ratings-summary-box {
        gap: 16px !important;
        padding: 16px !important;
    }
    .ratings-score-big {
        min-width: 0 !important;
        width: 100% !important;
    }
    .rating-already-done-notice {
        padding: 16px !important;
    }
}

/* Formulários (Upload / Login) */
.form-container {
    max-width: 600px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background-color: hsla(224, 71%, 4%, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 12px 1px hsla(263, 70%, 50%, 0.2);
}

.form-control-file {
    padding: 8px 12px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Alertas de Mensagem */
.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background-color: hsla(142, 70%, 45%, 0.15);
    color: var(--color-whatsapp);
    border-color: hsla(142, 70%, 45%, 0.3);
}

.alert-danger {
    background-color: hsla(0, 72%, 51%, 0.15);
    color: var(--color-danger);
    border-color: hsla(0, 72%, 51%, 0.3);
}

.alert-warning {
    background-color: hsla(38, 92%, 50%, 0.15);
    color: var(--color-warning);
    border-color: hsla(38, 92%, 50%, 0.3);
}

/* Painel de Administração / Moderação */
.admin-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

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

.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
    gap: 8px;
}

.admin-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.admin-table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    background-color: hsla(217, 30%, 15%, 0.3);
}

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

.admin-table tr:hover td {
    background-color: hsla(217, 30%, 15%, 0.15);
}

.group-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge-pending {
    background-color: hsla(38, 92%, 50%, 0.15);
    color: var(--color-warning);
}

.admin-badge-approved {
    background-color: hsla(142, 70%, 45%, 0.15);
    color: var(--color-whatsapp);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

/* Footer */
footer {
    background-color: #000000; /* Preto absoluto */
    border-top: 1px solid var(--border-color);
    padding: 40px 24px 115px !important; /* Espaço suficiente para a dock flutuante não cobrir o rodapé no PC e Mobile */
    margin-top: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff; /* Branco puro */
}

.footer-logo span {
    color: var(--color-whatsapp); /* Verde do WhatsApp puro */
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsividade móvel geral */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .details-title {
        font-size: 1.8rem;
    }
    
    .details-body {
        padding: 24px 16px;
    }
    
    .details-header-image {
        height: 200px;
    }
    
    .form-card {
        padding: 24px 16px;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-top-row {
        justify-content: flex-start;
    }
}

/* Animacao do Loader de Preview */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Barra de Pesquisa Global na Navbar */
.nav-search-form {
    order: 2;
    display: flex;
    align-items: center;
    background-color: hsla(217, 30%, 15%, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 2px 6px 2px 16px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.nav-search-form:focus-within {
    border-color: var(--color-whatsapp);
    background-color: hsla(217, 30%, 20%, 0.6);
    box-shadow: 0 0 12px hsla(142, 70%, 45%, 0.1);
}

.nav-search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
    height: 32px;
}

.nav-search-input::placeholder {
    color: var(--text-muted);
}

.nav-search-btn {
    background: none;
    border: none;
    outline: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.nav-search-btn:hover {
    color: var(--color-whatsapp);
    background-color: hsla(217, 30%, 30%, 0.3);
}

.nav-session-mobile {
    display: none;
}

/* Bottom Navigation Bar Global (Dock Flutuante Premium para PC e Celular) */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px; /* Largura compacta estilo Dock no PC */
    height: 64px;
    background-color: hsla(224, 71%, 4%, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 20px hsla(142, 70%, 45%, 0.05);
    padding: 0 16px;
    transition: var(--transition-smooth);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: var(--transition-smooth);
    border-radius: 20px;
    text-decoration: none;
}

.bottom-nav-item svg {
    opacity: 0.75;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--color-whatsapp);
}

.bottom-nav-item.active svg {
    color: var(--color-whatsapp);
    opacity: 1;
    transform: scale(1.05);
}

/* Botão Menu Hambúrguer */
.menu-toggle {
    order: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    outline: none;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* Gaveta de Menu Lateral (Escondido no Desktop) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10005;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.4s;
}

.mobile-menu.active {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: relative;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: hsl(224, 71%, 4%);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.menu-close {
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.menu-close:hover {
    color: var(--color-danger);
}

.mobile-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
    color: var(--color-whatsapp);
}

.mobile-nav-links a.btn {
    color: #ffffff !important;
}

.mobile-nav-links a.btn-secondary {
    color: var(--text-primary) !important;
}

/* Layout Responsivo do Perfil */
.profile-grid-layout > div {
    min-width: 0;
}

@media (min-width: 992px) {
    .profile-grid-layout {
        grid-template-columns: 360px 1fr !important;
    }
}

/* Duas Colunas Adaptativas no Mobile (Celulares) */
@media (max-width: 576px) {
    /* Navbar Flexbox Vertical no Mobile */
    .navbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px 16px !important;
        position: relative !important;
        transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), gap 0.3s cubic-bezier(0.4, 0, 0.2, 1), flex-direction 0.3s ease !important;
    }
    
    .nav-top-row {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        max-height: 50px !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s ease !important;
        overflow: hidden !important;
    }
    
    .nav-actions {
        position: absolute !important;
        top: 18px !important;
        right: 16px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        z-index: 1001 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .menu-toggle {
        display: flex !important;
        position: static !important;
        width: 24px !important;
        height: 18px !important;
        margin: 0 !important;
    }
    
    .nav-search-form {
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .nav-links {
        display: none !important; /* Oculta o menu de PC espremido */
    }
    
    .nav-user-greeting {
        display: none !important;
    }
    
    /* Espacamento no body no mobile para compensar header maior */
    body {
        padding-top: 132px !important;
    }
    
    /* Grid dos Grupos em 1 Coluna (Padrão Mobile 1x) */
    .groups-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .groups-grid .card-image-wrapper {
        padding-top: 50% !important;
    }
    .groups-grid .card-title {
        font-size: 1.05rem !important;
        margin-bottom: 6px !important;
    }
    .groups-grid .card-description {
        font-size: 0.84rem !important;
        height: auto !important;
        margin-bottom: 14px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    /* Alternância para 2 colunas (2x) no mobile quando ativado pelo botão */
    .groups-grid.grid-2-cols {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .groups-grid.grid-2-cols .card-image-wrapper {
        padding-top: 56.25% !important;
    }
    .groups-grid.grid-2-cols .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }
    .groups-grid.grid-2-cols .card-description {
        font-size: 0.78rem !important;
        height: 3.2em !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 2 !important;
    }
    
    /* Card de Grupo Compacto */
    .group-card {
        border-radius: var(--radius-sm) !important;
    }
    
    .card-content {
        padding: 12px !important;
    }
    
    .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }
    
    .card-description {
        font-size: 0.78rem !important;
        height: 3.2em !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .card-tags {
        display: none !important; /* Oculta tags no celular para ficar mais limpo */
    }
    
    .card-footer-new {
        padding-top: 8px !important;
        gap: 8px !important;
    }
    
    .btn-whatsapp, .btn-whatsapp-outline {
        font-size: 0.78rem !important;
        padding: 8px 6px !important;
        white-space: nowrap !important;
        gap: 4px !important;
    }
    
    .card-badge {
        font-size: 0.58rem !important;
        padding: 3px 6px !important;
        top: 6px !important;
        right: 6px !important;
        max-width: calc(100% - 12px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .card-subbadge {
        font-size: 0.62rem !important;
        padding: 1px 6px !important;
    }
    
    .views-count {
        font-size: 0.7rem !important;
    }
    
    /* Titulos mais harmoniosos no Celular para evitar quebra de layout */
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.25 !important;
    }
    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }
    .details-title {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }
    .details-body h2 {
        font-size: 1.15rem !important;
    }
    .details-description-box {
        font-size: 0.95rem !important;
        padding-left: 14px !important;
    }
    .form-title {
        font-size: 1.35rem !important;
    }
    .form-subtitle {
        font-size: 0.85rem !important;
    }
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 1.3rem !important;
    }
    .section-title h2 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    /* Efeito de barra soltando no Mobile quando scrolled */
    header.scrolled .nav-top-row {
        max-height: 50px !important;
        opacity: 1 !important;
        transform: none !important;
        margin: 0 !important;
        pointer-events: auto !important;
        width: auto !important;
    }
    
    header.scrolled .navbar .logo {
        font-size: 1.15rem !important;
    }
    
    header.scrolled .navbar {
        flex-direction: row !important;
        align-items: center !important;
        padding: 8px 16px !important;
        gap: 8px !important;
    }
    
    header.scrolled .nav-search-form {
        flex: 1 !important;
        min-width: 140px !important;
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 2px 4px 2px 10px !important;
        transform: scale(0.98) !important;
    }
    
    header.scrolled .nav-search-input {
        font-size: 0.8rem !important;
        height: 28px !important;
    }
    
    header.scrolled .nav-actions {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        order: 3 !important;
    }
    
    header.scrolled .menu-toggle {
        position: static !important;
        display: flex !important;
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 18px !important;
        margin: 0 !important;
    }
    
    header.scrolled .header-notif-btn {
        padding: 4px !important;
    }
}

/* ==========================================
   Efeito Scrolled Global (Desktop e Tablet)
   ========================================== */
header.scrolled {
    background-color: hsla(224, 71%, 4%, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom-color: hsla(142, 70%, 45%, 0.2);
}

@media (min-width: 577px) {
    header.scrolled .navbar {
        padding: 10px 24px !important;
    }
    
    header.scrolled .nav-search-form {
        max-width: 600px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
}

/* Uploader de Duas Etapas e Imagem Editável */
.step-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.edit-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edit-image-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.edit-image-container:hover {
    border-color: var(--color-whatsapp);
    transform: scale(1.03);
    box-shadow: 0 0 15px hsla(142, 70%, 45%, 0.25);
}

.edit-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.edit-image-container:hover .edit-image-overlay {
    opacity: 1;
}

.edit-image-icon {
    background-color: var(--color-whatsapp);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.step-indicator-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: var(--transition-smooth);
}

.step-dot.active {
    background-color: var(--color-whatsapp);
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--color-whatsapp);
}

.step-line {
    width: 40px;
    height: 2px;
    background-color: var(--border-color);
}

.step-line.active {
    background-color: var(--color-whatsapp);
}

/* Badge de Lapizinho Flutuante para Fotos de Perfil/Grupo */
.edit-image-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-whatsapp);
    color: #fff;
    border: 2px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 10;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.edit-image-container:hover .edit-image-badge {
    transform: scale(1.1);
    background-color: var(--color-whatsapp-hover);
}

/* Customizacao Dropdown Select de Categorias (Tema Escuro Glassmorphism) */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    cursor: pointer;
}

select.form-control option {
    background-color: #0b0e14 !important;
    color: var(--text-primary) !important;
}

/* Exibição Condicional de Tabelas e Cards de Grupos no Perfil */
.profile-groups-table-wrapper {
    display: block;
    overflow: visible;
}

.profile-groups-cards-wrapper {
    display: none;
}

@media (max-width: 768px) {
    .profile-groups-table-wrapper {
        display: none !important;
    }
    
    .profile-groups-cards-wrapper {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
    }
    
    .profile-group-card {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        box-shadow: var(--shadow-sm);
    }
    
    .profile-group-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .profile-group-card-img {
        width: 50px;
        height: 50px;
        border-radius: var(--radius-sm);
        object-fit: cover;
        border: 1px solid var(--border-color);
    }
    
    .profile-group-card-fallback {
        width: 50px;
        height: 50px;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #fff;
        background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-accent) 100%);
    }
    
    .profile-group-card-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        flex: 1;
    }
    
    .profile-group-card-title {
        color: var(--color-whatsapp);
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: underline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .profile-group-card-category {
        font-size: 0.75rem;
        color: var(--text-muted);
    }
    
    .profile-group-card-info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        font-size: 0.8rem;
    }
    
    .info-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .info-label {
        font-size: 0.7rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .info-val {
        font-weight: 600;
        color: var(--text-primary);
    }
}

/* Modal de Detalhes Administrativo (admin.php) */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2010;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--color-danger);
}

.custom-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
    .info-group {
        grid-column: span 1 !important;
    }
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-val {
    font-weight: 500;
    color: var(--text-primary);
}

.custom-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Cards Administrativos (admin.php no Mobile) & Responsividade de Abas */
.admin-cards-wrapper {
    display: none;
}

@media (max-width: 768px) {
    .admin-container {
        padding: 0 12px;
        margin: 20px auto 60px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .admin-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .admin-tab {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .admin-table-container {
        display: none;
    }
    
    .admin-cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .admin-group-card {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 16px;
        box-shadow: var(--shadow-sm);
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .admin-group-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .admin-group-card-thumb {
        width: 52px;
        height: 52px;
        border-radius: var(--radius-sm);
        object-fit: cover;
        border: 1px solid var(--border-color);
        flex-shrink: 0;
    }
    
    .admin-group-card-title-block {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }
    
    .admin-group-card-title-block a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
    }
    
    .admin-group-card-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .admin-card-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .admin-card-info-item strong {
        color: var(--text-muted);
        font-weight: 500;
        flex-shrink: 0;
    }
    
    .admin-card-info-item span {
        color: var(--text-primary);
        font-weight: 600;
        text-align: right;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }
    
    .admin-group-card-actions {
        display: flex;
        margin-top: 4px;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        align-items: center;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .admin-group-card-actions form {
        display: flex;
        flex: 1;
        min-width: 0;
    }

    .admin-group-card-actions form button {
        width: 100%;
    }
}

/* ==========================================
   Google AdSense & Banner Styling
   ========================================== */
.adsense-container {
    margin: 28px auto;
    width: 100%;
    max-width: 1560px;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.adsense-container.fluid-grid-ad {
    grid-column: 1 / -1;
    max-width: 100%;
    padding: 12px 0;
    margin: 16px 0;
}

.adsense-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 600;
}

.adsense-placeholder-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 120px;
}

.adsense-placeholder-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .adsense-container {
        padding: 0 16px;
        margin: 20px auto;
    }
}

/* Badges e Bordas Especiais Premium: Impulso (⚡) & VIP (💎) */

/* 1. Impulsionado (Dourado/Âmbar) - Borda uniforme 2px em todos os 4 lados */
.group-card.card-border-impulso,
.details-hero-banner.card-border-impulso {
    border: 2px solid rgba(245, 158, 11, 0.75) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.22), 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    position: relative;
    transition: var(--transition-smooth);
}
.group-card.card-border-impulso:hover,
.details-hero-banner.card-border-impulso:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.45), 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

/* 2. VIP (Púrpura Violeta) - Borda uniforme 2px em todos os 4 lados */
.group-card.card-border-vip,
.details-hero-banner.card-border-vip {
    border: 2px solid rgba(168, 85, 247, 0.75) !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25), 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    position: relative;
    transition: var(--transition-smooth);
}
.group-card.card-border-vip:hover,
.details-hero-banner.card-border-vip:hover {
    border-color: #a855f7 !important;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.5), 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

/* 3. Super VIP (VIP + Impulsionado) - Borda animada uniforme 2px com ciclo de cores 360° */
@keyframes superVipGlow {
    0% {
        border-color: #f59e0b;
        box-shadow: 0 0 18px rgba(245, 158, 11, 0.45), 0 0 8px rgba(168, 85, 247, 0.3), 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    33% {
        border-color: #a855f7;
        box-shadow: 0 0 18px rgba(168, 85, 247, 0.5), 0 0 8px rgba(6, 182, 212, 0.35), 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    66% {
        border-color: #06b6d4;
        box-shadow: 0 0 18px rgba(6, 182, 212, 0.45), 0 0 8px rgba(245, 158, 11, 0.35), 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    100% {
        border-color: #f59e0b;
        box-shadow: 0 0 18px rgba(245, 158, 11, 0.45), 0 0 8px rgba(168, 85, 247, 0.3), 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

.group-card.card-border-super-vip,
.details-hero-banner.card-border-super-vip {
    position: relative;
    border-width: 2.5px !important;
    border-style: solid !important;
    animation: superVipGlow 3.5s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.group-card.card-border-super-vip:hover,
.details-hero-banner.card-border-super-vip:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 20px rgba(168, 85, 247, 0.6), 0 10px 35px rgba(0, 0, 0, 0.5) !important;
}

.badge-icon-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.03em;
}

.badge-icon-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.03em;
}

.badge-icon-group-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badge-icon-group-left .badge-icon-left,
.badge-icon-group-left .badge-icon-right {
    position: static;
    top: auto;
    left: auto;
    right: auto;
}

/* Fita Inclinada Diagonal no Canto Superior Direito dos Cards */
.ribbon-corner-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 105px;
    height: 105px;
    overflow: hidden;
    border-top-right-radius: inherit;
    pointer-events: none;
    z-index: 10;
}

.ribbon-corner-tag {
    position: absolute;
    top: 18px;
    right: -39.5px;
    width: 135px;
    transform: rotate(45deg);
    text-align: center;
    font-size: 0.60rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 0;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    line-height: 1.2;
    white-space: nowrap;
}

.ribbon-corner-tag.badge-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Badges de Categoria e Subcategoria dentro do Corpo do Card */
.card-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0 8px;
}

.card-catbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--color-whatsapp);
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    line-height: 1.2;
}

.card-subbadge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    font-size: 0.73rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .ribbon-corner-wrapper {
        width: 90px;
        height: 90px;
    }
    .ribbon-corner-tag {
        top: 15px;
        right: -36px;
        width: 120px;
        font-size: 0.52rem;
        letter-spacing: 0.02em;
        padding: 2.5px 0;
    }
}

@media (max-width: 640px) {
    .badge-icon-left,
    .badge-icon-right {
        top: 6px;
        font-size: 0.63rem;
        padding: 2px 7px;
        gap: 3px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    .badge-icon-left {
        left: 6px;
    }
    .badge-icon-right {
        right: 6px;
    }
    .badge-icon-group-left {
        top: 6px;
        left: 6px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .badge-icon-left,
    .badge-icon-right {
        top: 5px;
        font-size: 0.58rem;
        padding: 2px 5px;
        gap: 2px;
        letter-spacing: 0;
    }
    .badge-icon-left {
        left: 5px;
    }
    .badge-icon-right {
        right: 5px;
    }
    .badge-icon-group-left {
        top: 5px;
        left: 5px;
        gap: 3px;
    }
    .ribbon-corner-wrapper {
        width: 80px;
        height: 80px;
    }
    .ribbon-corner-tag {
        top: 13px;
        right: -34px;
        width: 110px;
        font-size: 0.46rem;
        letter-spacing: 0.01em;
        padding: 2px 0;
    }
}

@media (max-width: 360px) {
    .ribbon-corner-wrapper {
        width: 72px;
        height: 72px;
    }
    .ribbon-corner-tag {
        top: 11px;
        right: -32px;
        width: 100px;
        font-size: 0.42rem;
        letter-spacing: 0;
        padding: 1.5px 0;
    }
}

/* ==========================================================================
   KYLE ZANTOS MOTION PRINCIPLES - SISTEMA DE MOVIMENTO E UX FLUIDA
   Baseado em https://github.com/kylezantos/design-principles
   Propósito, Continuidade Espacial, Easing Orgânico e Micro-Interações
   ========================================================================== */

/* 1. Keyframes de Animação */
@keyframes motionShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

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

@keyframes motionFadeDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes motionScaleIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes motionPulseSubtle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.82;
        transform: scale(0.98);
    }
}

@keyframes motionSpinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 2. Barra de Progresso Global Superior */
.top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-whatsapp), #10b981, #06b6d4, #8b5cf6);
    background-size: 200% 100%;
    z-index: 999999;
    box-shadow: 0 0 10px hsla(142, 70%, 45%, 0.8), 0 0 4px hsla(263, 70%, 50%, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: width 0.35s var(--ease-spring), opacity 0.25s ease;
}

.top-progress-bar.active {
    opacity: 1;
}

.top-progress-bar.done {
    width: 100% !important;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.4s 0.2s ease;
}

/* 3. Sistema de Skeleton Loaders (Kyle Zantos Continuous Flow) */
.skeleton {
    background: linear-gradient(
        90deg,
        hsla(222, 47%, 12%, 0.7) 25%,
        hsla(222, 47%, 20%, 0.9) 50%,
        hsla(222, 47%, 12%, 0.7) 75%
    );
    background-size: 200% 100%;
    animation: motionShimmer 1.8s infinite var(--ease-in-out-smooth);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 20px;
    width: 75%;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-badge {
    height: 22px;
    width: 70px;
    border-radius: 30px;
}

.skeleton-btn {
    height: 42px;
    width: 100%;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.skeleton-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 4. Lazy Loading com Revelação Progressiva Fluida */
img.lazy-img {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
    will-change: opacity, transform;
}

img.lazy-img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* 5. Classes Utilitárias de Entrada e Saída Suaves */
.motion-fade-in {
    animation: motionFadeIn 0.3s var(--ease-spring) both;
}

.motion-fade-up {
    animation: motionFadeUp 0.38s var(--ease-spring) both;
}

.motion-fade-down {
    animation: motionFadeDown 0.38s var(--ease-spring) both;
}

.motion-scale-in {
    animation: motionScaleIn 0.32s var(--ease-spring) both;
}

.motion-exit {
    opacity: 0 !important;
    transform: scale(0.96) translateY(-4px) !important;
    transition: opacity 0.18s var(--ease-in-fast), transform 0.18s var(--ease-in-fast) !important;
    pointer-events: none;
}

/* Entrada escalonada de grids */
.stagger-item {
    animation: motionFadeUp 0.4s var(--ease-spring) both;
    animation-delay: calc(var(--stagger-index, 0) * 45ms);
}

/* 6. Modais e Diálogos Flutuantes com Spring Curve */
.modal-spring-in {
    animation: motionScaleIn 0.35s var(--ease-spring) both;
}

.alert-toast-in {
    animation: motionFadeDown 0.32s var(--ease-spring) both;
}

.alert-toast-exit {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.22s var(--ease-in-fast), transform 0.22s var(--ease-in-fast) !important;
}

/* 7. Micro-Interações Táteis Orgânicas (Botoões, Chips, Cards) */
.btn, .action-btn, button[type="submit"], .badge-filter, .chip-item {
    transition: transform 0.18s var(--ease-spring), box-shadow 0.2s var(--ease-spring), background-color 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.btn:active, .action-btn:active, button[type="submit"]:active, .badge-filter:active, .chip-item:active {
    transform: scale(0.96) !important;
    transition: transform 0.08s var(--ease-in-fast) !important;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

/* Indicador de carregamento giratório em botões */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: motionSpinner 0.7s infinite linear;
    vertical-align: middle;
    margin-right: 6px;
}

/* 8. Suporte Rigoroso a Acessibilidade (Prefers-Reduced-Motion) */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .top-progress-bar {
        display: none !important;
    }
    
    .skeleton {
        animation: none !important;
        background: hsla(222, 47%, 16%, 0.8) !important;
    }

    img.lazy-img {
        opacity: 1 !important;
        transform: none !important;
    }
}

