* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0088cc;
    --primary-dark: #006699;
    --secondary: #0099dd;
    --premium: #f59e0b;
    --vip: #ef4444;
    --plus: #10b981;
    --background: #f5f5f5;
    --surface: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --text-muted: #6b7280;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #e5e7eb;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Garantir que todos os elementos não ultrapassem a largura da tela */
*, *::before, *::after {
    max-width: 100%;
}

/* Garantir que imagens sejam responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Garantir que tabelas sejam scrolláveis no mobile */
table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

@media (min-width: 768px) {
    table {
        display: table;
        white-space: normal;
    }
}

/* ========================================
   HEADER - 100% IGUAL À IMAGEM
======================================== */
.header {
    background: linear-gradient(90deg, #0088cc 0%, #0099dd 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.5rem;
    gap: 1.5rem;
}

/* Logo com ícone */
.header-logo {
    flex: 0 0 auto;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
}

.header-logo svg {
    flex-shrink: 0;
}

/* Barra de pesquisa */
.header-search {
    flex: 1;
    max-width: 600px;
}

.header-search form {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-search input {
    flex: 1;
    padding: 0.55rem 1rem;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #333;
}

.header-search input::placeholder {
    color: #999;
}

.header-search button {
    background: transparent;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0088cc;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #f0f0f0;
}

/* Links de ação com ícones */
.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.header-link:hover {
    opacity: 0.9;
}

.header-link svg {
    flex-shrink: 0;
}

/* Responsivo - MOBILE ORGANIZADO */
@media (max-width: 1023px) {
    .header {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .header-search {
        display: flex; /* Mostra barra de pesquisa no mobile */
        width: 100%;
        padding: 0.5rem 0.25rem;
        box-sizing: border-box;
    }
    
    .header-search form {
        width: 100% !important;
    }
    
    .header-search input {
        width: 100%;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 0rem;
        padding: 0.65rem 0.25rem;
        max-width: none !important;
        margin: 0 !important;
        width: 100%;
    }

    .header-logo {
        flex: 0 0 auto;
    }

    .header-logo a {
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .header-logo svg {
        width: 16px;
        height: 16px;
    }

    .header-actions {
        display: flex;
        gap: 0.25rem;
        align-items: center;
        flex: 0 0 auto;
    }

    .header-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.2s;
        white-space: nowrap;
    }

    .header-link:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: white;
    }

    .header-link svg {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   MAIN WRAPPER
======================================== */
.main-wrapper {
    max-width: 100%;
    padding: 0;
    background: var(--background);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
}

.banner-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.banner-content p {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Category Filter */
.category-filter {
    background: var(--surface);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    white-space: nowrap;
}

.category-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    flex-shrink: 0;
}

.category-chip:hover,
.category-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Section Header */
.section-header {
    padding: 1.5rem 1rem 1rem;
    background: var(--background);
}

.section-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   GRID DE CARDS - 2 COLUNAS MOBILE
======================================== */
.groups-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1rem 2rem;
}

/* Card Compacto */
.group-card-compact {
    background: var(--surface);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.group-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Faixa Diagonal para Planos - MAIS GROSSA */
.plan-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--premium);
    color: white;
    padding: 0.5rem 2rem; /* AUMENTADO de 0.25rem para 0.5rem */
    font-size: 0.75rem; /* AUMENTADO de 0.65rem para 0.75rem */
    font-weight: 800; /* AUMENTADO de 700 para 800 */
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); /* AUMENTADO sombra */
    letter-spacing: 0.8px; /* AUMENTADO de 0.5px para 0.8px */
}

.plan-ribbon-plus {
    background: var(--plus);
}

.plan-ribbon-vip {
    background: var(--vip);
}

.plan-ribbon-premium {
    background: var(--premium);
}

/* Imagem do Card */
.card-image {
    width: 100%;
    height: 40px; /* SUPER REDUZIDO - 40px MUITO MENOR */
    overflow: hidden;
    background: var(--background);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.group-card-compact:hover .card-image img {
    transform: scale(1.05);
}

/* Corpo do Card */
.card-body {
    padding: 0.25rem; /* SUPER REDUZIDO - 0.25rem */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.05rem; /* SUPER REDUZIDO - 0.05rem */
}

.card-title {
    font-size: 0.6rem; /* SUPER REDUZIDO - 0.6rem */
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.card-category {
    font-size: 0.5rem; /* SUPER REDUZIDO - 0.5rem */
    color: var(--text-muted);
    margin: 0;
}

/* Footer do Card */
.card-footer {
    padding: 0 0.25rem 0.25rem; /* SUPER REDUZIDO - 0.25rem */
}

.btn-enter {
    display: block;
    width: 100%;
    padding: 0.3rem; /* SUPER REDUZIDO - 0.3rem */
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0.3rem;
    font-weight: 600;
    font-size: 0.55rem; /* SUPER REDUZIDO - 0.55rem */
    letter-spacing: 0.2px;
    transition: all 0.3s;
}

.btn-enter:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--surface);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-error {
    background: var(--error);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem 1rem;
    flex-wrap: wrap;
}

.pagination .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   HOME ACTION BUTTONS
======================================== */
.home-action-buttons {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.home-btn-enviar {
    background: #0ea5e9;
    color: white;
}

.home-btn-enviar:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.home-btn-conta {
    background: #0ea5e9;
    color: white;
}

.home-btn-conta:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.home-btn-impulsionar {
    background: #f97316;
    color: white;
}

.home-btn-impulsionar:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* ========================================
   EMPTY STATE
======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* ========================================
   FORMS
======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    box-sizing: border-box;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    max-width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

/* ========================================
   ALERTS
======================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ========================================
   CARDS
======================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

@media (min-width: 640px) {
    .card {
        padding: 1.5rem;
    }
}

/* ========================================
   CONTAINER (para páginas internas)
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ========================================
   LAYOUT COM SIDEBAR
======================================== */
.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

/* Sidebar sempre visível no mobile */
.sidebar {
    width: 100%;
    background: var(--surface);
}

/* Overlay não usado no mobile */
.sidebar-overlay {
    display: none;
}

.main-content {
    flex: 1;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sidebar-header {
    display: none; /* Não precisa de header com botão fechar no mobile */
}

.sidebar-close-btn {
    display: none;
}

.dashboard-sidebar h2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 0;
}

.dashboard-menu a {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.dashboard-menu li:last-child a {
    border-bottom: none;
}

.dashboard-menu a:hover {
    background: var(--background);
    color: var(--primary-dark);
}

.dashboard-menu a.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

/* ========================================
   FOOTER - COM DESCRIÇÃO AZUL
======================================== */
.footer {
    background: #0088cc;
    color: white;
    padding: 0;
    margin-top: 4rem;
}

/* Seção de links no topo */
.footer-links {
    background: #006699;
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 0.75rem;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Descrição principal */
.footer-description {
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-description h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description h2 span {
    color: #fbbf24;
}

.footer-description p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

/* ========================================
   TABLES
======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 0.75rem;
    overflow: hidden;
}

.table thead {
    background: var(--primary);
    color: white;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
}

.table tbody tr {
    border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
    background: var(--background);
}

/* ========================================
   PLANS
======================================== */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.plan-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border-color: var(--primary);
    position: relative;
}

.plan-card.featured::before {
    content: 'Mais Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (min-width: 640px) {
    .groups-grid-mobile {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .card-image {
        height: 160px;
    }

    .card-title {
        font-size: 1rem;
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   RESPONSIVE - DESKTOP
======================================== */
@media (min-width: 1024px) {
    .header-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0.75rem 2rem;
        gap: 2rem;
    }

    .header-logo {
        flex: 0 0 auto;
    }

    .header-logo a {
        font-size: 1.1rem;
    }

    .header-search {
        flex: 1;
        max-width: 600px;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 1.5rem;
    }

    .header-link {
        font-size: 0.95rem;
    }

    .header-menu-btn {
        display: none;
    }

    .header-search-bar {
        display: block;
        padding: 0;
        border: none;
        max-width: 400px;
        background: transparent;
    }

    .header-search-bar input {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        color: white;
    }

    .header-search-bar input::placeholder {
        color: rgba(255, 255, 255, 0.8);
    }

    .header-search-bar input:focus {
        background: white;
        color: var(--text);
    }

    .header-search-bar input:focus::placeholder {
        color: var(--text-muted);
    }

    .header-search-btn {
        display: none;
    }

    .hero-banner {
        padding: 2rem 1rem;
    }

    .banner-content h2 {
        font-size: 1.75rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .category-scroll {
        justify-content: center;
        padding: 0 2rem;
    }

    .section-header {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 2rem 1rem;
    }

    .section-header h1 {
        font-size: 2rem;
    }

    .groups-grid-mobile {
        max-width: 1200px;
        margin: 0 auto;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 0 2rem 3rem;
    }

    .card-image {
        height: 180px;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 2rem;
    }

    .container {
        padding: 0 2rem;
    }

    .layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }

    .sidebar {
        width: auto;
    }

    .dashboard-sidebar {
        padding: 1.5rem;
    }

    .dashboard-sidebar h2 {
        font-size: 1rem;
        text-align: center;
    }

    .dashboard-menu a {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto 1.5rem;
    }
}

/* ========================================
   GROUP DETAIL PAGE - Estilo MeusTelegrupos
======================================== */
.group-detail-main {
    background: var(--background);
    padding: 1rem 0 2rem;
}

.group-detail-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: hidden;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .group-detail-wrapper {
        padding: 0;
    }
}

/* ========================================
   BLOCO 1: Cabeçalho
======================================== */
.group-header-block {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .group-header-block {
        padding: 2rem 1.5rem;
    }
}

.group-banner-image {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.group-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.group-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.group-meta-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.group-meta-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
}

.group-meta-info svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.meta-author,
.meta-date,
.meta-views {
    white-space: nowrap;
}

/* Botões de Compartilhamento Social */
.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-telegram {
    background: #0088cc;
    color: white;
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-link {
    background: var(--text-muted);
    color: white;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   BLOCO 2: Corpo da Descrição
======================================== */
.group-content-block {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow-x: hidden;
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .group-content-block {
        padding: 1.75rem 1.5rem;
    }
}

.content-section {
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section-title svg {
    opacity: 0.8;
    flex-shrink: 0;
}

.content-text {
    line-height: 1.7;
    color: var(--text);
    font-size: 0.9rem;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}


/* ========================================
   BLOCO 3: Botão CTA Principal
======================================== */
.cta-block {
    margin-bottom: 1.5rem;
}

.btn-cta-main {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    background: #10b981;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: none;
}

.btn-cta-main:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ========================================
   BLOCO 4: Caixa de Aviso (Amarela)
======================================== */
.warning-box {
    background: #fef3c7;
    border-left: 5px solid #f59e0b;
    border-radius: 0.65rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .warning-box {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
}

.warning-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.warning-content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #92400e;
    padding-top: 0.15rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.warning-content strong {
    color: #78350f;
    font-weight: 700;
    word-wrap: break-word;
}

/* ========================================
   BLOCO 5: Caixa de Informação (Azul)
======================================== */
.info-box {
    background: #dbeafe;
    border-left: 5px solid #3b82f6;
    border-radius: 0.65rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.12);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .info-box {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
}

.info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    font-style: italic;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.info-content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #1e40af;
    padding-top: 0.15rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.info-content strong {
    color: #1e3a8a;
    font-weight: 700;
    word-wrap: break-word;
}

/* ========================================
   BLOCO 6: Regras do Grupo
======================================== */
.rules-block {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .rules-block {
        padding: 1.75rem 1.5rem;
    }
}

.rules-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.rules-title svg {
    opacity: 0.8;
    flex-shrink: 0;
}

.rules-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.rules-numbered-list {
    list-style: none;
    counter-reset: rule-counter;
    padding: 0;
    margin: 0;
}

.rules-numbered-list li {
    counter-increment: rule-counter;
    padding: 0.875rem 0 0.875rem 2.75rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    line-height: 1.6;
    font-size: 0.9rem;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.rules-numbered-list li:last-child {
    border-bottom: none;
}

.rules-numbered-list li::before {
    content: counter(rule-counter);
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ========================================
   BLOCO 7: Botões de Ação
======================================== */
.action-buttons-block {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .action-buttons-block {
        padding: 1.75rem 1.5rem;
    }
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn-enviar {
    background: #0ea5e9;
    color: white;
}

.action-btn-enviar:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.action-btn-conta {
    background: #0ea5e9;
    color: white;
}

.action-btn-conta:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.action-btn-impulsionar {
    background: #f97316;
    color: white;
}

.action-btn-impulsionar:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* ========================================
   BLOCO 8: Categorias (Botões Empilhados)
======================================== */
.categories-block {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .categories-block {
        padding: 1.75rem 1.5rem;
    }
}

.categories-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    text-align: center;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-button {
    display: block;
    padding: 0.875rem 1.25rem;
    background: #0ea5e9;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-button:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    border-color: #0ea5e9;
}

/* ========================================
   BLOCO 8: Seção Recomendados
======================================== */
.recommended-block {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .recommended-block {
        padding: 1.75rem 1.5rem;
    }
}

.recommended-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.recommended-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
    text-align: center;
    line-height: 1.5;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.recommended-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.recommended-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.recommended-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.recommended-image {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: var(--background);
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-card:hover .recommended-image img {
    transform: scale(1.08);
}

.recommended-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.recommended-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recommended-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    min-height: 2.5rem;
}

.recommended-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.btn-recommended-enter {
    width: 100%;
    padding: 0.625rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.25rem;
}

.btn-recommended-enter:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (min-width: 640px) {
    .group-banner-image {
        width: 220px;
        height: 220px;
    }

    .group-main-title {
        font-size: 2rem;
    }

    .recommended-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .recommended-image {
        height: 160px;
    }
}

/* ========================================
   BLOCO 6.5: Categoria e Tags
======================================== */
.category-tags-block {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .category-tags-block {
        padding: 1.75rem 1.5rem;
    }
}

.category-section {
    margin-bottom: 1.25rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

.category-icon {
    color: var(--primary);
    opacity: 0.8;
    flex-shrink: 0;
}

.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.tags-section {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.tags-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.tags-icon {
    color: var(--primary);
    opacity: 0.8;
    flex-shrink: 0;
}

.tags-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
    word-break: break-word;
    overflow-wrap: break-word;
}

.tag-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
}

/* ========================================
   RESPONSIVE - DESKTOP
======================================== */
@media (min-width: 1024px) {
    .group-detail-main {
        padding: 2rem 0 3rem;
    }

    .group-header-block {
        padding: 3rem 2rem;
    }

    .group-content-block {
        padding: 2.5rem 2rem;
    }

    .rules-block,
    .tags-cloud-block,
    .category-tags-block,
    .recommended-block {
        padding: 2.5rem 2rem;
    }

    .group-main-title {
        font-size: 2.25rem;
    }
}

/* ========================================
   BADGES DE PLANOS
======================================== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.badge-premium {
    background: var(--premium);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.badge-vip {
    background: var(--vip);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.badge-plus {
    background: var(--plus);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* ========================================
   INDEX PAGE - LAYOUT PRINCIPAL (100% IGUAL À IMAGEM)
======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .main-layout {
        padding: 2rem 0;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr 280px;
        gap: 2.5rem;
    }
}

.content-area {
    min-width: 0;
}

/* Grid de Cards - 2 COLUNAS NO MOBILE, 3 NO DESKTOP */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0;
}

@media (min-width: 768px) {
    .groups-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Card de Grupo - MUITO MENOR NO MOBILE */
.group-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Badge de Plano - FITA DIAGONAL MAIS GROSSA */
.plan-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    width: 110px; /* AUMENTADO de 100px para 110px */
    text-align: center;
    padding: 6px 0; /* AUMENTADO de 3px para 6px */
    color: white;
    font-weight: 800; /* AUMENTADO de 700 para 800 */
    font-size: 0.65rem; /* AUMENTADO de 0.55rem para 0.65rem */
    transform: rotate(45deg);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); /* AUMENTADO sombra */
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.6px; /* AUMENTADO de 0.3px para 0.6px */
}

.plan-plus {
    background: #3b82f6;
}

.plan-vip {
    background: #1f2937;
}

.plan-premium {
    background: #22c55e;
}

/* Imagem do Grupo - SUPER REDUZIDA */
.group-image {
    width: 100%;
    height: 0;
    padding-bottom: 50%; /* AJUSTADO para 50% - meio termo */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.group-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informações do Grupo - MUITO COMPACTO */
.group-info {
    padding: 0.3rem; /* REDUZIDO de 0.5rem para 0.3rem */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem; /* REDUZIDO de 0.25rem para 0.1rem */
}

.group-title {
    font-size: 0.6rem; /* REDUZIDO de 0.75rem para 0.6rem */
    font-weight: 600;
    color: #1f2937;
    line-height: 1.15;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.4em; /* REDUZIDO de 1.8em para 1.4em */
}

.group-category {
    font-size: 0.5rem; /* REDUZIDO de 0.65rem para 0.5rem */
    color: #6b7280;
    margin: 0;
}

/* Botão Entrar - COMPACTO */
.group-action {
    padding: 0 0.3rem 0.3rem; /* REDUZIDO de 0.5rem para 0.3rem */
}

.btn-join {
    display: block;
    width: 100%;
    padding: 0.3rem 0.4rem; /* REDUZIDO de 0.45rem 0.5rem para 0.3rem 0.4rem */
    background: #0088cc;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.55rem; /* REDUZIDO de 0.7rem para 0.55rem */
    letter-spacing: 0.15px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-join:hover {
    background: #006699;
}

/* Ajustes para Desktop */
@media (min-width: 768px) {
    .group-card {
        border-radius: 8px;
        font-size: 1rem;
    }

    .plan-badge {
        top: 10px;
        right: -30px;
        width: 100px;
        padding: 3px 0;
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .group-info {
        padding: 1rem;
        gap: 0.5rem;
    }

    .group-title {
        font-size: 0.95rem;
        line-height: 1.4;
        min-height: 2.8em;
    }

    .group-category {
        font-size: 0.8rem;
    }

    .group-action {
        padding: 0 1rem 1rem;
    }

    .btn-join {
        padding: 0.65rem 1rem;
        border-radius: 4px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
}

/* ========================================
   SIDEBAR - EXATO DA IMAGEM
======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Ocultar sidebar no mobile */
@media (max-width: 1023px) {
    .sidebar {
        display: none;
    }
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu de Categorias - BOTÕES AZUIS EMPILHADOS */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: white;
    background: #0088cc;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.sidebar-menu a:hover {
    background: #006699;
}

.sidebar-menu a.active {
    background: #005580;
    font-weight: 600;
}

/* Botões da Sidebar */
.sidebar-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.sidebar-btn:last-child {
    margin-bottom: 0;
}

.sidebar-btn-primary {
    background: #0088cc;
    color: white;
}

.sidebar-btn-primary:hover {
    background: #006699;
}

.sidebar-btn-secondary {
    background: #f59e0b;
    color: white;
}

.sidebar-btn-secondary:hover {
    background: #d97706;
}

.sidebar-btn-outline {
    background: white;
    color: #0088cc;
    border: 2px solid #0088cc;
}

.sidebar-btn-outline:hover {
    background: #0088cc;
    color: white;
}

/* ========================================
   PAGINATION - EXATO DA IMAGEM
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 0 2rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-link:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.page-link.active {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    font-size: 1.1rem;
}

/* ========================================
   TÍTULO DE SEÇÃO - GRUPOS REGULARES
======================================== */
.section-title-box {
    background: linear-gradient(90deg, #0088cc 0%, #0099dd 100%);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 136, 204, 0.2);
}

.section-title-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    flex: 1;
}

.section-title-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.section-title-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .section-title-box {
        padding: 1rem 1.5rem;
        margin: 2rem 0 1.5rem;
        border-radius: 10px;
    }

    .section-title-text {
        font-size: 1rem;
        font-weight: 700;
    }

    .section-title-btn {
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
    }
}

/* ========================================
   BOTÕES E CATEGORIAS INFERIORES (MOBILE)
======================================== */
.bottom-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0 1.5rem;
    padding: 0;
}

.bottom-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bottom-btn-blue {
    background: #0ea5e9;
    color: white;
}

.bottom-btn-blue:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

.bottom-btn-orange {
    background: #f97316;
    color: white;
}

.bottom-btn-orange:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.bottom-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 0;
}

.bottom-category-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #0ea5e9;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bottom-category-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

/* Ocultar no desktop (maior que 1024px) */
@media (min-width: 1024px) {
    .bottom-action-buttons,
    .bottom-categories {
        display: none;
    }
}

/* ========================================
   NAVEGAÇÃO DE ABAS DO DASHBOARD (FIXO NO TOPO MOBILE)
======================================== */
.dashboard-tabs-nav {
    position: sticky;
    top: 57px; /* Altura do header */
    background: white;
    border-bottom: 2px solid #e5e7eb;
    z-index: 900;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-tabs-container {
    display: flex;
    gap: 0;
    padding: 0;
    min-width: min-content;
}

.dashboard-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    min-width: 90px;
    gap: 0.1rem;
}

.dashboard-tab:hover {
    background: #f9fafb;
    color: #0088cc;
}

.dashboard-tab.active {
    color: #0088cc;
    border-bottom-color: #0088cc;
    background: #eff6ff;
    font-weight: 600;
}

.tab-icon {
    font-size: 1.25rem;
    line-height: 1;
    filter: drop-shadow(0 3px 8px rgba(0, 136, 204, 0.6))
            grayscale(1)
            brightness(0.7)
            sepia(1)
            hue-rotate(180deg)
            saturate(5);
    transition: all 0.3s ease;
    display: inline-block;
}

.dashboard-tab:hover .tab-icon {
    filter: drop-shadow(0 5px 15px rgba(0, 136, 204, 0.8))
            grayscale(1)
            brightness(0.8)
            sepia(1)
            hue-rotate(180deg)
            saturate(6);
    transform: scale(1.2) translateY(-3px);
}

.dashboard-tab.active .tab-icon {
    filter: drop-shadow(0 6px 20px rgba(0, 136, 204, 1))
            grayscale(1)
            brightness(0.9)
            sepia(1)
            hue-rotate(180deg)
            saturate(7);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 6px 20px rgba(0, 136, 204, 1))
                grayscale(1)
                brightness(0.9)
                sepia(1)
                hue-rotate(180deg)
                saturate(7);
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 8px 25px rgba(0, 136, 204, 1))
                grayscale(1)
                brightness(1)
                sepia(1)
                hue-rotate(180deg)
                saturate(8);
    }
}

.tab-label {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
}

/* Ocultar no desktop (mostrar sidebar normal) */
@media (min-width: 1024px) {
    .dashboard-tabs-nav {
        display: none;
    }
}

/* ========================================
   UTILITIES
======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   BARRA DE PESQUISA - DASHBOARD E INDEX
======================================== */
.search-bar-container {
    margin-bottom: 2rem;
    width: 100%;
}

.search-bar-section {
    background: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 3rem;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    color: #1f2937;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #0088cc;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: white;
}

.search-button:hover {
    background: #006699;
    transform: translateY(-50%) scale(1.05);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.no-results-message,
.no-results-search {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 1rem;
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.no-results-message p,
.no-results-search p {
    margin: 0;
}

/* ========================================
   HEADERS DE RESULTADOS DE PESQUISA
======================================== */
.search-results-header {
    background: linear-gradient(135deg, #0088cc 0%, #0099dd 100%);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 1rem;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

.search-results-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-header-premium {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.search-results-header-regular {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

@media (min-width: 768px) {
    .search-results-header {
        padding: 1.25rem 1.5rem;
        margin: 2rem 0 1.5rem;
    }

    .search-results-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   MEUS GRUPOS - DASHBOARD CARDS
======================================== */
.my-groups-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.my-group-card {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.my-group-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.my-group-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.my-group-info {
    flex: 1;
    min-width: 0;
}

.my-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.my-group-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.my-group-status,
.my-group-views {
    color: #6b7280;
    font-size: 0.8rem;
}

.status-badge-active {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.my-group-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.my-group-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.my-group-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-view {
    background: #0ea5e9;
    color: white;
}

.btn-view:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-boost,
.btn-timer {
    background: #10b981;
    color: white;
}

.btn-boost:hover,
.btn-timer:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-timer {
    cursor: default;
}

.btn-timer:hover {
    transform: none;
}

.btn-edit {
    background: #0ea5e9;
    color: white;
}

.btn-edit:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-remove {
    background: #dc2626;
    color: white;
}

.btn-remove:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ========================================
   SUPPORT PAGE - TICKETS RESPONSIVOS
======================================== */

/* Esconder cards mobile no desktop */
.tickets-cards-mobile {
    display: none;
}

/* Mostrar tabela no desktop */
.tickets-table-desktop {
    display: block;
}

/* Estilo dos cards mobile */
.ticket-card-mobile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.ticket-card-mobile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Media query para mobile */
@media (max-width: 768px) {
    /* Esconder tabela no mobile */
    .tickets-table-desktop {
        display: none;
    }
    
    /* Mostrar cards no mobile */
    .tickets-cards-mobile {
        display: block;
    }
    
    /* Ajustar padding dos cards */
    .card {
        padding: 1rem;
    }
    
    /* Ajustar títulos */
    .card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem !important;
    }
    
    /* Ajustar formulários */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-input,
    .form-textarea {
        font-size: 1rem;
    }
    
    /* Ajustar botões */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Ajustar container principal */
    .main-content > div {
        margin: 1.5rem auto !important;
        padding: 0 0.75rem !important;
    }
    
    /* Ajustar espaçamento entre cards */
    .card + .card {
        margin-top: 1.5rem;
    }
}
/* ========================================
   SEARCH DIVIDER - Barra separadora entre grupos PLUS e resultados
======================================== */
.search-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0088cc 0%, #0099dd 100%);
    margin: 1.5rem 0;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 136, 204, 0.2);
}

@media (min-width: 768px) {
    .search-divider {
        margin: 2rem 0;
        height: 4px;
    }
}

/* ========================================
   FLOATING BANNER - Banner Flutuante (REDUZIDO)
======================================== */

/* Animações para o banner */
@keyframes bannerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes bannerPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
    }
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-banner {
    background: var(--background);
    padding: 0.5rem 0;
    animation: bannerFadeIn 0.8s ease-out;
}

.floating-banner-container {
    max-width: 100%; /* Mobile ocupa largura total */
    margin: 0 auto;
    padding: 0 0.5rem; /* Menos padding no mobile para banner maior */
}

@media (min-width: 768px) {
    .floating-banner-container {
        padding: 0 1.5rem;
        max-width: 1200px; /* Desktop com largura maior */
    }
}

.banner-link {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: bannerFloat 3s ease-in-out infinite, bannerPulse 2s ease-in-out infinite;
}

.banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

.banner-image {
    width: 100%;
    height: auto; /* Altura automática para manter proporções */
    display: block;
    object-fit: contain; /* Contain para mostrar a imagem completa sem cortar */
    max-height: none; /* Remove limite de altura */
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .floating-banner {
        padding: 0.4rem 0;
    }

    .banner-image {
        height: auto; /* Altura automática no mobile também */
    }
}
