* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light SaaS tokens */
:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --muted: #f8f9fb;
    --text: #111827;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --primary: #667eea; /* mantém a identidade atual */
    --primary-600: #5b6fe0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--muted);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Shell com Sidebar */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    margin-bottom: 1rem;
}

.brand {
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav a {
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover {
    background: #f3f4f6;
}

.sidebar-separator {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.sidebar-user {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.logout-link {
    color: #991b1b;
    background: #fef2f2;
}

.app-content {
    flex: 1;
    padding: 1.25rem 1.25rem 0 1.25rem;
}

/* Remover navbar antiga no novo shell */
.navbar { display: none; }

@media (max-width: 900px) {
    .sidebar { position: fixed; left: 0; top: 0; height: 100%; z-index: 1000; transform: translateX(0); }
    .app-content { padding-left: 260px; }
}

.navbar {
    background: var(--surface);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-menu a {
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover {
    background-color: #f3f4f6;
}

.btn-logout {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

.main-content {
    flex: 1;
    padding: 0 1rem;
    width: 100%;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
    color: #111827;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background: var(--primary-600);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.22);
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid var(--border);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.btn-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #cce8ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(17,24,39,0.04);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(17,24,39,0.07);
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* Chips de Status Melhorados */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.badge-warning {
    background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
    color: #fff;
    border-color: #ffd93d;
}

.badge-info {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff;
    border-color: #4ecdc4;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

.badge-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: #fff;
    border-color: #56ab2f;
}

.badge-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    border-color: #ff6b6b;
}

.badge-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: #fff;
    border-color: #95a5a6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Melhorias na Tabela */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.25rem 1rem;
}

.table tr:hover {
    background-color: #f9fafb;
}

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

.row-urgent {
    background-color: #fff5f5 !important;
}

.row-urgent:hover {
    background-color: #ffe6e6 !important;
}

/* Grid e cards de produtos */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-seller {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}





/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-content {
    display: none;
}

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

/* Detalhes da Negociação */
.negociacao-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-details {
    display: flex;
    gap: 1rem;
}

.product-detail-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.product-detail-info {
    flex: 1;
}

.price-breakdown {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.price-breakdown p {
    margin-bottom: 0.5rem;
}

.participants {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.participant {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.participant h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.status-timeline {
    text-align: center;
    padding: 2rem;
}

.status-current {
    margin-bottom: 1rem;
}

.status-description {
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.status-actions {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.status-actions h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.status-actions ul {
    list-style: none;
    padding: 0;
}

.status-actions li {
    margin-bottom: 0.5rem;
}

/* Reembolsos */
.reembolsos-timeline {
    margin-top: 1rem;
}

.reembolso-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #f39c12;
}

.reembolso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reembolso-tipo,
.reembolso-status,
.reembolso-data {
    font-size: 0.8rem;
}

.reembolso-content p {
    margin-bottom: 0.5rem;
}

/* Ações Disponíveis */
.action-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.action-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.action-item p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: #667eea;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -0.25rem;
    top: 1.5rem;
    width: 0.25rem;
    height: calc(100% + 1rem);
    background-color: #eee;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.timeline-user {
    font-size: 0.8rem;
    color: #666;
    margin-left: 0.5rem;
}

.admin-actions {
    margin-bottom: 2rem;
    text-align: center;
}

.footer {
    background-color: #f9fafb;
    color: #6b7280;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.text-center {
    text-align: center;
}

/* Melhorias no Grid e Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-md-6,
.col-md-4,
.col-md-8,
.col-md-12 {
    padding: 0 0.75rem;
    margin-bottom: 1rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Melhorias no Espaçamento */
.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.py-5 {
    padding: 3rem 0 !important;
}

.ms-2 {
    margin-left: 0.75rem !important;
}

/* Melhorias nos Cards */
.card-body {
    padding: 2rem;
}

.card .row {
    margin: 0;
}

.card .col-md-6,
.card .col-md-4,
.card .col-md-8,
.card .col-md-12 {
    margin-bottom: 1.5rem;
}

/* Melhorias nos Formulários */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.form-row .form-group {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #000;
}
/* Responsividade */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .negociacao-details {
        grid-template-columns: 1fr;
    }
    
    .participants {
        grid-template-columns: 1fr;
    }
    
    .product-details {
        flex-direction: column;
    }
    
    .dashboard-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    
    
    .reembolso-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Fluxo de Pagamentos - Status Específicos */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Anúncio Ativo */
.status-anuncio-ativo {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-color: #00b894;
}

/* Aguardando Pagamento */
.status-aguardando-pagamento {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    border-color: #fdcb6e;
}

/* Pendente Plataforma */
.status-pendente-plataforma {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border-color: #74b9ff;
}

/* Valor Recebido pela Plataforma */
.status-valor-recebido {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
    border-color: #a29bfe;
}

/* Vendedor Deu como Entregue */
.status-vendedor-entregue {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    border-color: #fd79a8;
}

/* Entrega Confirmada */
.status-entrega-confirmada {
    background: linear-gradient(135deg, #55a3ff 0%, #0066ff 100%);
    color: white;
    border-color: #55a3ff;
}

/* Pagamento Liberado */
.status-pagamento-liberado {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    border-color: #00b894;
}

/* Em Disputa */
.status-em-disputa {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    color: white;
    border-color: #ff7675;
}

/* Reembolso Solicitado */
.status-reembolso-solicitado {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    border-color: #fdcb6e;
}

/* Em Análise */
.status-em-analise {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #2d3436;
    border-color: #ffeaa7;
}

/* Reembolso Aprovado */
.status-reembolso-aprovado {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-color: #00b894;
}

/* Reembolso Negado */
.status-reembolso-negado {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    color: white;
    border-color: #ff7675;
}

/* Valor Devolvido */
.status-valor-devolvido {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
    border-color: #a29bfe;
}

/* Timeline do Fluxo de Pagamentos */
.payment-flow-timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.payment-flow-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-50%);
}

.payment-flow-step {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.payment-flow-step:nth-child(odd) {
    flex-direction: row;
}

.payment-flow-step:nth-child(even) {
    flex-direction: row-reverse;
}

.payment-flow-step-content {
    flex: 1;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    max-width: 45%;
}

.payment-flow-step:nth-child(odd) .payment-flow-step-content {
    margin-right: 2rem;
}

.payment-flow-step:nth-child(even) .payment-flow-step-content {
    margin-left: 2rem;
}

.payment-flow-step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.payment-flow-step-icon.completed {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.payment-flow-step-icon.current {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    animation: pulse 2s infinite;
}

.payment-flow-step-icon.pending {
    background: linear-gradient(135deg, #b2bec3 0%, #95a5a6 100%);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(253, 203, 110, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(253, 203, 110, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(253, 203, 110, 0.3);
    }
}

.payment-flow-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.payment-flow-step-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.payment-flow-step-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Status Cards para Dashboard */
.status-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.status-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.status-card.anuncio-ativo {
    border-left-color: #00b894;
}

.status-card.aguardando-pagamento {
    border-left-color: #fdcb6e;
}

.status-card.pendente-plataforma {
    border-left-color: #74b9ff;
}

.status-card.valor-recebido {
    border-left-color: #a29bfe;
}

.status-card.vendedor-entregue {
    border-left-color: #fd79a8;
}

.status-card.entrega-confirmada {
    border-left-color: #55a3ff;
}

.status-card.pagamento-liberado {
    border-left-color: #00b894;
}

.status-card.em-disputa {
    border-left-color: #ff7675;
}

.status-card.reembolso-solicitado {
    border-left-color: #fdcb6e;
}

.status-card.em-analise {
    border-left-color: #ffeaa7;
}

.status-card.reembolso-aprovado {
    border-left-color: #00b894;
}

.status-card.reembolso-negado {
    border-left-color: #ff7675;
}

.status-card.valor-devolvido {
    border-left-color: #a29bfe;
}

.status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.status-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.status-card-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.status-card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Indicadores de Progresso */
.progress-indicator {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-bar.success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.progress-bar.warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.progress-bar.danger {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
}

/* Responsividade para o Fluxo de Pagamentos */
@media (max-width: 768px) {
    .payment-flow-timeline::before {
        left: 2rem;
    }
    
    .payment-flow-step {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 2rem;
    }
    
    .payment-flow-step-content {
        max-width: 100%;
        margin: 1rem 0 0 0 !important;
    }
    
    .payment-flow-step-icon {
        align-self: flex-start;
    }
    
    .status-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Botões de Ação Específicos */
.btn-detalhes {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 0.25rem;
}

.btn-detalhes:hover {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 52, 54, 0.3);
}

.btn-pagar {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-pagar:hover {
    background: linear-gradient(135deg, #00a085 0%, #00b894 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
}

.btn-confirmar {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-confirmar:hover {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

.btn-reembolso {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-reembolso:hover {
    background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.3);
}

/* Melhorias nos Modais */
.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

.modal-content h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal .card {
    margin: 1rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.modal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal .form-actions .btn {
    min-width: 120px;
}

/* QR Code Container */
#qrcode-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#pix-code code {
    font-size: 0.8rem;
    word-break: break-all;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 5px;
    display: block;
    margin: 0.5rem 0;
}

/* Ações da Tabela */
.table td:last-child {
    min-width: 120px;
}

.table .btn-sm {
    margin: 0.125rem 0;
    white-space: nowrap;
}

/* Responsividade para Modais */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal .form-actions {
        flex-direction: column;
    }
    
    .modal .form-actions .btn {
        width: 100%;
    }
    
    #qrcode {
        min-height: 150px;
    }
}

/* Garantir que botões de ação sejam clicáveis */
.btn, .btn-sm, .btn-info, .btn-success, .btn-warning, .btn-secondary {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Botões de Ação Específicos */
.btn-detalhes {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 0.25rem;
}

/* Estilos para Páginas de Autenticação */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1rem;
}

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    width: 100%;
    max-width: 950px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-logo {
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-logo p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.auth-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.auth-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.auth-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.auth-links p {
    margin-bottom: 0.5rem;
    color: #666;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-links small {
    color: #999;
    font-size: 0.85rem;
    display: block;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #667eea;
}

/* Registro em 2 colunas */
.auth-container--wide {
    max-width: 900px;
}

/* Login com largura anterior */
.auth-container--narrow {
    max-width: 450px;
}

.auth-container--wide .auth-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.auth-container--wide .auth-form .form-row .form-group {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
}

/* Grids específicas para o formulário de registro */
.auth-container--wide .auth-form .form-row.three-cols .form-group {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.auth-container--wide .auth-form .form-row.two-cols .form-group {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 768px) {
    .auth-container--wide {
        max-width: 100%;
    }
    .auth-container--wide .auth-form .form-row .form-group,
    .auth-container--wide .auth-form .form-row.three-cols .form-group,
    .auth-container--wide .auth-form .form-row.two-cols .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Alertas na página de autenticação */
.auth-container .alert {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.auth-container .alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.auth-container .alert-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.auth-container .alert-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
}

/* Responsividade para páginas de autenticação */
@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .auth-logo h1 {
        font-size: 2rem;
    }
    
    .auth-form .form-control {
        padding: 0.875rem;
    }
    
    .auth-form .btn {
        padding: 0.875rem;
        font-size: 1rem;
    }
}
