/* ============================================
   XIPATCHI MARKET - CSS PRINCIPAL
   ============================================ */

:root {
    /* Cores principais */
    --primary-dark: #0f2a38;
    --primary: #1A3B4F;
    --primary-light: #2c4d63;
    --primary-lighter: #3e5f77;
    
    /* Cores de destaque */
    --accent: #00b4d8;
    --accent-hover: #48cae4;
    --success: #06d6a0;
    --success-hover: #2ce0ac;
    --warning: #ffb703;
    --danger: #e63946;
    --info: #4895ef;
    
    /* Cores de texto */
    --text-primary: #f8f9fa;
    --text-secondary: #e9ecef;
    --text-muted: #adb5bd;
    --text-dark: #212529;
    
    /* Fundos */
    --bg-primary: #0a1a24;
    --bg-secondary: #0f2a38;
    --bg-tertiary: #1A3B4F;
    --bg-card: #0f2a38;
    --bg-input: #1a2f3a;
    
    /* Bordas */
    --border: #2c4d63;
    --border-light: #3e5f77;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    
    /* ============================================
       ESPAÇAMENTOS (ADICIONAR)
       ============================================ */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* ============================================
       TAMANHOS DE FONTE (ADICIONAR)
       ============================================ */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-md: 16px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 24px;
    --font-3xl: 32px;
    --font-4xl: 40px;

    /* ============================================
       OUTROS
       ============================================ */
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}
/* main{
    padding-top: var(--navbar-height);
} */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVEGAÇÃO - FIXA NO TOPO
   ============================================ */

/* Navbar fixa */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Espaçamento para compensar a navbar fixa */
body {
    padding-top: var(--navbar-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent);
}

.btn-register {
    background: var(--accent);
    color: var(--primary-dark) !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   HEADER/HERO - NORMAL (rola normalmente)
   ============================================ */

/* Header não é mais fixo, rola normalmente */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.hero {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    padding: 14px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}
.btn-success {
    background: var(--success);
    color: var(--primary-dark);
}
.btn-warning{
    background: var(--warning);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 80px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 220px;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .hero {
        padding: 40px 20px;
    }
}

/* ============================================
   SCROLL PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.8s ease forwards;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-dark);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer h3 i {
    color: var(--accent);
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent);
}

.footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer .social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer .social-links a:hover i {
    color: var(--primary-dark);
}

.footer .social-links i {
    font-size: 20px;
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-bottom p {
    justify-content: center;
    margin-bottom: 5px;
}

/* Newsletter */
.newsletter {
    margin-top: 20px;
}

.newsletter-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 14px;
}

.newsletter-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-input button {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: 30px;
    color: var(--primary-dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-input button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Pagamento Ícones */
.payment-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.payment-icons i {
    font-size: 32px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.payment-icons i:hover {
    color: var(--accent);
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer p {
        justify-content: center;
    }
    
    .footer h3 {
        justify-content: center;
    }
    
    .footer h4 {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-input {
        flex-direction: column;
    }
    
    .payment-icons {
        justify-content: center;
    }
    
    .footer-bottom p {
        flex-direction: column;
        gap: 5px;
    }
}
/* ============================================
   CONTAINER GERAL
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   PÁGINA DE PRODUTOS
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
}

/* Grid de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0 60px 0;
}

/* Card do Produto */
.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Imagem do Produto */
.product-image {
    height: 220px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Placeholder para imagem não encontrada */
.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    width: 100%;
    height: 100%;
}

.no-image i {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--accent);
}

.no-image span {
    font-size: 14px;
}

/* Informações do Produto */
.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    margin: 10px 0;
}

.price small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
}

.stock {
    font-size: 13px;
    margin-bottom: 15px;
}

.stock i {
    margin-right: 5px;
}

.stock .fa-check-circle {
    color: var(--success);
}

.stock .fa-times-circle {
    color: var(--danger);
}

.stock .fa-exclamation-circle {
    color: var(--warning);
}

/* Botões */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
}

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
}

/* Seção de Destaques */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

/* Seção de Afiliados */
.affiliate-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    margin: 40px 0;
    text-align: center;
    border-radius: 20px;
}

.affiliate-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.affiliate-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .products-grid {
        gap: 20px;
        padding: 10px 0 40px 0;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .affiliate-section {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .affiliate-content h2 {
        font-size: 24px;
    }
    
    .affiliate-content p {
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}
/* ============================================
   HOME PAGE
   ============================================ */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0;
    margin-bottom: 40px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Seção de Destaques */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title h2 i {
    color: var(--accent);
    margin-right: 10px;
}

.section-title p {
    color: var(--text-muted);
}

/* Seção de Afiliados */
.affiliate-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    margin: 60px 0 0;
    text-align: center;
    border-radius: 30px;
}

.affiliate-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.affiliate-content h2 i {
    margin-right: 10px;
}

.affiliate-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.affiliate-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsividade da Home */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 200px;
        justify-content: center;
    }
    
    .section-title {
        margin: 30px 0 20px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .affiliate-section {
        padding: 40px 20px;
        margin: 40px 0 0;
        border-radius: 20px;
    }
    
    .affiliate-content h2 {
        font-size: 24px;
    }
    
    .affiliate-content p {
        font-size: 16px;
    }
    
    .affiliate-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .affiliate-buttons .btn {
        width: 220px;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 38px;
    }
}

/* ============================================
   PÁGINA DE DETALHES DO PRODUTO
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 15px 0;
    margin-top: var(--navbar-height);
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.breadcrumb span {
    color: var(--accent);
}

/* Grid de Detalhes */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Galeria */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: center;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

/* Informações */
.product-info-detail h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-rating {
    color: var(--warning);
    margin-bottom: 20px;
}

.product-rating span {
    color: var(--text-muted);
    margin-left: 10px;
}

.product-price-detail {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 15px;
}

.product-price-detail small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

.product-stock-detail {
    margin-bottom: 20px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
}

.stock-badge.in-stock {
    background: rgba(6, 214, 160, 0.1);
    color: var(--success);
}

.stock-badge.low-stock {
    background: rgba(255, 183, 3, 0.1);
    color: var(--warning);
}

.stock-badge.out-stock {
    background: rgba(230, 57, 70, 0.1);
    color: var(--danger);
}

.product-description {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-description h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.product-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Seletor de Quantidade */
.quantity-selector {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    border-color: var(--accent);
}

.quantity-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
}

.stock-info {
    font-size: 14px;
    color: var(--text-muted);
}

/* Botões de Ação */
.product-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-lg i {
    font-size: 16px;
}

/* Compartilhar */
.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-share span {
    color: var(--text-muted);
}

.product-share a {
    width: 36px;
    height: 36px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.product-share a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* Produtos Relacionados */
.related-products {
    background: var(--bg-secondary);
    padding: 40px 0;
    margin-top: 40px;
}

/* Responsividade */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image img {
        height: 250px;
    }
    
    .product-info-detail h1 {
        font-size: 24px;
    }
    
    .product-price-detail {
        font-size: 28px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .quantity-selector {
        justify-content: space-between;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-detail-grid {
        gap: 30px;
    }
    
    .main-image img {
        height: 350px;
    }
}
/* ============================================
   GALERIA DE IMAGENS (Múltiplas)
   ============================================ */

/* Thumbnails */
.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    background: var(--bg-card);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.thumbnail.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

/* Modal para zoom (opcional) */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
/* ============================================
   PÁGINAS DE AUTENTICAÇÃO
   ============================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 28px;
}

.auth-card h2 i {
    color: var(--accent);
    margin-right: 10px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-card .form-group label i {
    margin-right: 8px;
    color: var(--accent);
}

.auth-card .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.auth-card .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.auth-card .form-group.has-error input {
    border-color: var(--danger);
}

.auth-card .error-msg {
    display: block;
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
}

.auth-card .text-muted {
    color: var(--text-muted);
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.auth-card .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-card .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.auth-card .checkbox input {
    width: auto;
    margin: 0;
}

.auth-card .form-options a {
    color: var(--accent);
    text-decoration: none;
}

.auth-card .form-options a:hover {
    text-decoration: underline;
}

.auth-card .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.auth-card .btn-block i {
    margin-right: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alertas */
.auth-card .alert {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 14px;
}

.auth-card .alert-success {
    background: rgba(6, 214, 160, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.auth-card .alert-error {
    background: rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.auth-card .alert-info {
    background: rgba(72, 149, 239, 0.1);
    border-left: 4px solid var(--info);
    color: var(--info);
}

.auth-card .alert i {
    margin-right: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-card h2 {
        font-size: 24px;
    }
    
    .auth-card .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
/* ============================================
   TOAST NOTIFICATIONS (POPUPS)
   ============================================ */

.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
    width: 100%;
}

.toast {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease forwards;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast-success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, var(--bg-card), rgba(6, 214, 160, 0.05));
}

.toast-error {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, var(--bg-card), rgba(230, 57, 70, 0.05));
}

.toast-warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 183, 3, 0.05));
}

.toast-info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, var(--bg-card), rgba(72, 149, 239, 0.05));
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-warning .toast-icon {
    color: var(--warning);
}

.toast-info .toast-icon {
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 100%;
    animation: progress 3s linear forwards;
}

.toast-success .toast-progress {
    background: var(--success);
}

.toast-error .toast-progress {
    background: var(--danger);
}

.toast-warning .toast-progress {
    background: var(--warning);
}

.toast-info .toast-progress {
    background: var(--info);
}

/* Animações */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* Responsividade */
@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 12px 16px;
    }
}

.affiliate-invite-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.affiliate-invite-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.affiliate-invite-icon {
    font-size: 60px;
    color: var(--accent);
    flex-shrink: 0;
}

.affiliate-invite-text {
    flex: 1;
}

.affiliate-invite-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.affiliate-invite-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.affiliate-invite-benefits {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.affiliate-invite-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 180, 216, 0.1);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: var(--accent);
}

.affiliate-invite-button {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .affiliate-invite-content {
        flex-direction: column;
        text-align: center;
    }
    
    .affiliate-invite-benefits {
        justify-content: center;
    }
    
    .affiliate-invite-text h3 {
        font-size: 20px;
    }
}
/* ============================================
   MODAL CUSTOMIZADO
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    border: 1px solid var(--border);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header i {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 10px;
}

.modal-header h3 {
    font-size: 24px;
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin: 8px 0;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-footer .btn {
    min-width: 120px;
}

.modal-loading {
    text-align: center;
    padding: 20px;
}

.modal-loading i {
    font-size: 40px;
    color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-success {
    text-align: center;
}

.modal-success i {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 15px;
}

.modal-success p {
    margin: 10px 0;
}

.modal-success code {
    display: block;
    background: var(--bg-input);
    padding: 10px;
    border-radius: 8px;
    word-break: break-all;
    margin: 15px 0;
    font-family: monospace;
}

/* ============================================
   FORMULÁRIOS - SELECT ESTILIZADO
   ============================================ */

.form-group select,
.form-control select,
select.form-control {
    width: 100%;
    padding: 14px var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: var(--font-md);
    color: var(--text-primary);
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300b4d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-group select:focus,
.form-control select:focus,
select.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

/* Estilo para as opções do select */
.form-group select option,
.form-control select option,
select.form-control option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
}

/* Hover nas opções */
.form-group select option:hover,
.form-control select option:hover,
select.form-control option:hover {
    background: var(--primary);
}

/* Select desabilitado */
.form-group select:disabled,
.form-control select:disabled,
select.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Garantir consistência em todos os selects */
select {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

select option:hover {
    background-color: var(--primary);
}

/* ============================================
   TABELAS COM SCROLL HORIZONTAL
   ============================================ */

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tabela padrão */
.data-table,
.admin-table,
.commissions-table,
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th,
.data-table td,
.admin-table th,
.admin-table td,
.commissions-table th,
.commissions-table td,
.ranking-table th,
.ranking-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th,
.admin-table th,
.commissions-table th,
.ranking-table th {
    background: var(--primary);
    font-weight: 600;
    color: var(--text-primary);
}

.data-table td,
.admin-table td,
.commissions-table td,
.ranking-table td {
    color: var(--text-secondary);
}

/* Tabela compacta para mobile */
@media (max-width: 768px) {
    .data-table th,
    .data-table td,
    .admin-table th,
    .admin-table td,
    .commissions-table th,
    .commissions-table td,
    .ranking-table th,
    .ranking-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .data-table,
    .admin-table,
    .commissions-table,
    .ranking-table {
        min-width: 500px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .data-table,
    .admin-table,
    .commissions-table,
    .ranking-table {
        min-width: 450px;
    }
    
    .data-table th,
    .data-table td,
    .admin-table th,
    .admin-table td,
    .commissions-table th,
    .commissions-table td,
    .ranking-table th,
    .ranking-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}