/* ===== CSS VARS ===== */
:root {
    --primary: #228B22; /* Verde Floresta */
    --primary-dark: #006400; /* Verde Escuro */
    --secondary: #F8F9FA;
    --accent: #FF6B35; /* Laranja */
    --accent-light: #FFA07A; /* Laranja Claro */
    --danger: #DC143C; /* Vermelho */
    --warning: #FFA500; /* Laranja */
    --dark: #2C3E50;
    --light: #ECF0F1;
    --blue: #87CEEB; /* Azul Céu */
    --gray: #95A5A6;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--secondary);
    color: var(--dark);
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Evita flash da home antes de confirmar login */
html.auth-pending body {
    visibility: hidden;
}

html.auth-pending::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: var(--secondary);
}

html.auth-checking::before {
    content: 'Carregando...';
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
}

.navbar-brand i {
    font-size: 2rem;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
}

.navbar-menu li a {
    padding: 10px 15px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    background: var(--primary);
    color: var(--white);
}

.btn-logout {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #C0392B;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    background: rgba(34, 139, 34, 0.2);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Garantir que o body tenha altura total */
body.auth-page {
    height: 100vh;
    overflow: hidden;
}

/* Slideshow lateral esquerdo */
.auth-slideshow-left {
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: rgba(34, 139, 34, 0.15);
}

/* Slideshow lateral direito */
.auth-slideshow-right {
    position: fixed;
    right: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: rgba(34, 139, 34, 0.15);
}

.auth-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(0.9) saturate(1);
    display: block;
    pointer-events: none;
}

.auth-slide-image.active {
    opacity: 0.8 !important;
    z-index: 1;
}

.auth-slide-image.fade-in {
    opacity: 0.8 !important;
    z-index: 1;
}

.auth-slide-image.fade-out {
    opacity: 0 !important;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

.auth-box {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header p {
    font-style: italic;
    color: var(--primary);
    font-weight: 500;
}

.auth-header h1 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.auth-header img {
    max-width: 250px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-header p {
    color: var(--gray);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 1rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

/* Input com ícone */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: var(--gray);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    padding-left: 15px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

label i {
    margin-right: 8px;
    color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-google {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--light);
    width: 100%;
    justify-content: center;
}

.btn-google:hover {
    background: var(--light);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #FFE5E5;
    color: #C0392B;
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: #E8F5E9;
    color: #27AE60;
    border-left: 4px solid var(--accent);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    display: none;
}

.divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
}

/* ===== FEED ===== */
.filters-section {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image-container {
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light);
    transition: transform 0.3s ease;
}

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

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.favorite-btn i {
    font-size: 1.2rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.favorite-btn.favorited i {
    color: #e74c3c;
}

.favorite-btn:hover i {
    color: #e74c3c;
}

.card-body {
    padding: 20px;
}

.card-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-category.trabalho { background: #E3F2FD; color: #1976D2; }
.card-category.aluguel { background: #FFE4CC; color: #FF6B35; }
.card-category.venda { background: #D5F5E3; color: #228B22; }
.card-category.serviço { background: #E3F2FD; color: #4682B4; }
.card-category.disponível { background: #FFE4CC; color: #FFA500; }
.card-category.tokens-descontos { background: #F3E5F5; color: #7B1FA2; }

/* Tokens / Descontos */
.token-settings-panel {
    background: linear-gradient(135deg, #f8f4fc 0%, #fff 100%);
    border: 1px solid #e1bee7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.token-settings-title {
    margin: 0 0 8px;
    color: #6a1b9a;
    font-size: 1.1rem;
}

.token-settings-hint {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.card-token-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f3e5f5;
    border-radius: 8px;
    border: 1px dashed #ce93d8;
}

.token-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6a1b9a;
}

.token-counter-soldout {
    color: #c62828;
}

.btn-token-redeem {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-token-redeem:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-token-redeem:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.token-section .token-counter-line {
    font-weight: 600;
    color: #6a1b9a;
    margin-bottom: 8px;
}

.token-redeemed-box {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
}

.token-redeemed-box.success {
    background: #e8f5e9;
}

.token-code-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #6a1b9a;
    letter-spacing: 1px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px dashed #ce93d8;
}

.token-status-available {
    color: #2e7d32;
    font-weight: 600;
}

.token-status-used {
    color: #c62828;
    font-weight: 600;
}

.token-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
}

.token-message.error {
    background: #ffebee;
    color: #c62828;
}

.tokens-page-grid {
    display: grid;
    gap: 16px;
}

.token-card-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.token-card-item .token-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.token-card-item h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.token-card-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 4px 0;
}

.token-card-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tokens-table-wrap {
    overflow-x: auto;
}

.tokens-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tokens-table th,
.tokens-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tokens-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.tokens-table tr:hover td {
    background: #fafafa;
}

.token-approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.token-approval-pending {
    background: #fff3e0;
    color: #e65100;
}

.token-approval-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.token-approval-rejected {
    background: #ffebee;
    color: #c62828;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.card-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

.card-location,
.card-time {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== FORM SECTION ===== */
.form-section {
    padding: 40px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    margin-bottom: 30px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full {
    flex: 1;
}

.image-upload-area {
    border: 2px dashed var(--light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: #F0F8FF;
}

.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

#imageInput {
    display: none;
}

.image-preview {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.image-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    margin: 30px auto;
    padding: 0;
    border-radius: 16px;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    color: var(--danger);
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

/* Modal Body Styling */
.modal-body-content {
    padding: 40px;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 30px 40px;
    margin: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.modal-header .category-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.modal-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
}

.modal-info-item i {
    width: 20px;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 30px;
    margin: 30px 0;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.contact-section h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 25px;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.contact-btn.whatsapp {
    background: #25D366;
    color: white;
}

.contact-btn.whatsapp:hover {
    background: #128C7E;
}

.contact-btn.email {
    background: var(--primary);
    color: white;
}

.contact-btn.email:hover {
    background: var(--primary-dark);
}

.contact-btn.phone {
    background: #007bff;
    color: white;
}

.contact-btn.phone:hover {
    background: #0056b3;
}

.contact-btn.portal {
    background: var(--accent);
    color: white;
}

.contact-btn.portal:hover {
    background: #e55a2b;
}

/* Image Gallery */
.image-gallery {
    margin: 30px 0;
}

.image-gallery img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

/* Description Section */
.description-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.description-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    white-space: pre-wrap;
}

/* Private Contact Notice */
.private-contact-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #f39c12;
}

.private-contact-notice h4 {
    color: #856404;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Comments Section */
.comments-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.comments-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.comment-author i {
    font-size: 1.1rem;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.85rem;
}

.comment-content {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.no-comments,
.error-comments {
    text-align: center;
    padding: 30px;
    color: #888;
}

.no-comments i,
.error-comments i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ccc;
}

.add-comment {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.add-comment textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s;
}

.add-comment textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Report Section */
.report-section {
    margin: 30px 0;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.report-reason {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.report-reason:hover {
    background: #f8f9fa;
    border-color: var(--primary);
}

.report-reason input[type="radio"] {
    margin: 0;
}

.report-reason input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 2px solid var(--danger);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Advanced Filters Styles */
.filter-select,
.filter-input {
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.advanced-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
}

.advanced-filters .filters-grid {
    margin-bottom: 0;
}

.date-filter,
.location-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-filter label,
.location-filter label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Share Section */
.share-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.share-section h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #128C7E;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166FE5;
}

.share-btn.copy {
    background: var(--primary);
    color: white;
}

.share-btn.copy:hover {
    background: var(--primary-dark);
}

.ad-details-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* ===== PROFILE ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.btn-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info h2 {
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--gray);
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
    line-height: 1.1;
}

.stat-label {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.1;
    word-wrap: break-word;
}

/* ===== UTILITIES ===== */
.section {
    padding: 40px 0;
}

.section h2 {
    margin-bottom: 10px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
}

.loader {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.loader i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--light);
}

.empty-state h3 {
    margin-bottom: 10px;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: all 0.3s;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-toggle {
        display: block;
    }

    .filters-grid {
        flex-direction: column;
    }

    .feed-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-item {
        padding: 15px 10px;
        min-height: 70px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-body-content {
        padding: 20px;
    }
    
    .contact-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    
    .description-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .private-contact-notice {
        padding: 20px;
        margin: 20px 0;
    }

    /* Hide slideshow on mobile */
    .auth-slideshow-left,
    .auth-slideshow-right {
        display: none;
    }

    /* Simpler gradient on mobile */
    .auth-page {
        background: rgba(34, 139, 34, 0.2);
        animation: none;
    }
}

/* ===== IMPROVED MODAL STYLES ===== */
.contact-info-box {
    animation: fadeIn 0.3s ease-in;
}

.contact-info-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-gallery img {
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

.modal-content {
    animation: slideDown 0.3s ease-out;
}

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

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

.contact-buttons .btn {
    transition: all 0.3s ease;
}

.contact-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== LAYOUT COM SIDEBAR ===== */
.feed-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 20px;
}

.feed-main {
    min-width: 0;
}

.feed-sidebar {
    display: flex;
    flex-direction: column;
}

@media (max-width: 968px) {
    /* Navbar: evitar itens "sumirem" em larguras intermediárias */
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: all 0.3s;
        flex-wrap: nowrap;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-toggle {
        display: block;
    }

    .feed-layout {
        grid-template-columns: 1fr;
    }
    
    .feed-sidebar {
        order: -1;
    }
}

/* ===== SISTEMA DE ANÚNCIOS ===== */
.ad-container {
    margin: 20px 0;
    text-align: center;
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ad-container.top-banner {
    margin: 0 0 20px 0;
    padding: 10px;
}

.ad-container.sidebar {
    position: sticky;
    top: 80px;
    margin-bottom: 20px;
}

.ad-container.footer {
    margin-top: 40px;
    padding: 20px;
}

/* Anúncios customizados */
.custom-ad {
    width: 100%;
    text-align: center;
}

.custom-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.custom-ad a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s;
}

.custom-ad a:hover {
    opacity: 0.9;
}

/* Anúncio no feed */
.ad-in-feed {
    grid-column: 1 / -1;
    margin: 30px 0;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* Placeholder para anúncios */
.ad-placeholder {
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--light) 0%, var(--secondary) 100%);
    border: 2px dashed var(--gray);
    border-radius: 8px;
    color: var(--gray);
    text-align: center;
}

.ad-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.ad-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.ad-placeholder small {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Google AdSense */
.adsbygoogle {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* Responsivo para anúncios */
@media (max-width: 768px) {
    .ad-container.sidebar {
        position: relative;
        top: 0;
    }
    
    .ad-in-feed {
        margin: 20px 0;
        padding: 15px;
    }
    
    .ad-placeholder {
        padding: 30px 15px;
    }
    
    .ad-placeholder i {
        font-size: 2rem;
    }
}

/* Cache buster */ 
