@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007BFF;
    --primary-dark: #0056B3;
    --secondary-color: #f8f9fa;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --error-color: #dc3545;
    --success-color: #007BFF;
    --warning-color: #ffc107;
    --blue-light: #007BFF;
    --blue-dark: #0056B3;
    --black: #000000;
    --white: #ffffff;
    --gray-dark: #343a40;
    --gray-medium: #6c757d;
    --gray-light: #adb5bd;
}

body {
    font-family: 'Geist', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1, h2, h3, h4, h5, h6,
.product-name,
.product-price,
.nav-link,
.category-btn,
.auth-form .logo h1,
.dashboard-section h2,
.stat-content h3,
.revenue-section h3,
.balance-section h3,
.seller-info h3,
.product-guarantee h3,
.related-products h3,
.product-rating-section h3,
.rating-form h4 {
    font-weight: 600;
}

button,
.auth-btn,
.purchase-btn,
.rating-btn,
.deposit-btn,
.withdraw-btn,
.check-btn,
.copy-btn,
.quick-btn,
.mobile-menu-item {
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav-link,
.mobile-menu-item,
.back-btn {
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #efefef;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    gap: 0.75rem;
}

.site-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    max-width: 200px;
    background: transparent;
}


.search-bar {
    display: flex;
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-bar button:hover {
    color: #444444;
}

.balance-display {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.balance-text {
    font-weight: 500;
    color: var(--primary-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.notification-btn, .cart-btn {
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.notifications-dropdown {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.notifications-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.notifications-menu.show {
    display: block;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.notifications-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Geist', sans-serif;
}


.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    /* Esconder scrollbar mas manter funcionalidade */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.notifications-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: transparent;
    border-left: none;
}


.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-family: 'Geist', sans-serif;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-family: 'Geist', sans-serif;
    font-weight: 400;
}

.btn-copy:hover {
    background: #0056b3 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.product-reviews-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.product-reviews-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-text {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.total-sales {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
}

.review-stars .star {
    font-size: 0.8rem;
    color: #ffc107;
}

.review-stars .star.empty {
    color: #e0e0e0;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
}

.review-comment {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

.no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-reviews p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.no-reviews small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-notifications {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-notifications i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.cart-dropdown {
    position: relative;
}

.cart-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

.cart-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.menu-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}


.mobile-main-options {
    display: none;
}

.mobile-auth-options {
    display: none;
}

.balance-display-mobile {
    color: var(--primary-color) !important;
}

.balance-display-mobile i {
    color: var(--primary-color);
}



.menu-item {
    display: block;
    padding: 0.5rem 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-align: center;
}

.menu-item.active {
    color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.1);
}

.back-btn {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--primary-dark);
}

.main-container {
    display: flex;
    min-height: calc(100vh - 80px);
    overflow: visible;
}

body.product-page .main-container {
    height: auto;
    overflow: visible;
    min-height: calc(100vh - 80px);
    display: block; /* Remove flex layout para permitir scroll normal */
    padding: 0; /* Remove padding conflitante */
}

.sidebar {
    width: 300px;
    background: #efefef;
    padding: 2rem 1rem;
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    /* Esconder scrollbar mas manter funcionalidade */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.marketplace-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.refresh-btn {
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.categories h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.category-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sort-section {
    margin-top: 2rem;
}

.sort-section h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

#sortSelect {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
}

.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 300px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.pagination {
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: row;
}

.product-card {
    background: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-price {
    color: #666666;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.price-original {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: line-through;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.product-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    order: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.3;
    order: 3;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Limitações apenas para cards da página inicial */
.product-card .product-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-details .product-description {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.product-details .product-description p {
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    white-space: normal;
    line-height: 1.6;
}

.product-details .product-description h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}


.product-rating {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    order: 1;
}

.stars-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.stars {
    display: flex;
    gap: 1px;
    align-items: baseline;
}

.star {
    color: #ffc107;
    font-size: 0.8rem;
    line-height: 1;
}

.star.empty {
    color: #e0e0e0;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.product-rating-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rating-form {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

.rating-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.rating-btn:hover {
    background-color: var(--primary-dark);
}

.ratings-list {
    margin-top: 2rem;
}

.rating-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.rating-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.user-name {
    font-weight: bold;
    color: var(--text-color);
}

.rating-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: auto;
}

.rating-comment {
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

/* Página de Produto - Layout */
.product-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
}

/* Forçar estilos na página de produto */
body .product-details .product-description p {
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    white-space: normal !important;
    line-height: 1.6 !important;
    text-overflow: unset !important;
}

.product-details {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-details .product-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-details .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details .product-info h1 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.product-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-seller {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    order: 0;
}

.product-seller .rating-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Badge de destaque para produtos promovidos */
.promoted-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-price-info {
    margin-bottom: 1rem;
}

.product-stats-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.stat-label {
    font-size: 0.8rem !important;
    color: #666666 !important;
    font-weight: 500 !important;
}

.stat-value {
    font-size: 0.8rem !important;
    color: #666666 !important;
    font-weight: 500 !important;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* CSS de preço promocional removido */

.price-original {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: line-through;
    display: inline;
}

/* Preços nos cards da página inicial */
.product-card .product-price {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666666;
}

.product-card .price-original {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.seller-info,
.product-guarantee {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.seller-info h3,
.product-guarantee h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Geist', sans-serif;
}

.seller-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seller-name {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller-badge {
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: help;
}

.seller-badge:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.seller-badge-small {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    cursor: help;
}

.seller-badge-small:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.seller-badge-custom {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 0.5rem;
    cursor: help;
    border: 2px solid #FFD700;
    background: white;
}

.seller-badge-custom:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.seller-badge-custom-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    cursor: help;
    border: 2px solid #FFD700;
    background: white;
}

.seller-badge-custom-small:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.seller-badge-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 0.5rem;
    cursor: help;
    background: white;
    transition: all 0.2s ease;
}

.seller-badge-image:hover {
    transform: scale(1.1);
}

.seller-badge-image-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    cursor: help;
    background: white;
    transition: all 0.2s ease;
}

.seller-badge-image-small:hover {
    transform: scale(1.1);
}

/* Paginação */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
}

.pagination-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Setas da paginação (sem fundo) */
.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #007bff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.pagination-arrow:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

.pagination-arrow.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Números das páginas */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.pagination-number:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

.pagination-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: #999;
    font-weight: bold;
}

/* Informações da página */
.pagination-info {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsivo */
@media (max-width: 768px) {
    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .pagination-arrow {
        width: 35px;
        height: 35px;
    }
}

.seller-profile {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.seller-info-text {
    flex: 1;
}

.seller-member-since {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.seller-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.seller-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.seller-stat .stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.seller-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Página do Perfil do Vendedor */
.seller-profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.profile-header {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-initials {
    width: 100%;
    height: 100%;
    background: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.default-avatar-large {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.profile-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.member-since {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-form-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-products-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-products h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.product-item .product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item .product-details {
    flex: 1;
}

.product-item .product-details h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-item .product-price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-item .product-stock {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    grid-column: 2;
}

.dashboard-main .product-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-background);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.dashboard-main .product-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.dashboard-main .product-item .product-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    grid-column: 1;
}

.dashboard-main .product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-main .product-item .product-details {
    grid-column: 1;
    min-width: 0;
}

.dashboard-main .product-item .product-details h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.dashboard-main .product-item .product-price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-main .product-item .product-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.dashboard-main .product-item .product-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.dashboard-main .product-item .product-status.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.dashboard-main .product-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.dashboard-main .btn-edit {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.dashboard-main .btn-edit:hover {
    background: var(--primary-color);
    color: white;
}

.dashboard-main .btn-promote {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.dashboard-main .btn-promote:hover {
    background: #ffc107;
    color: white;
}

.dashboard-main .btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.dashboard-main .btn-delete:hover {
    background: #dc3545;
    color: white;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 2px solid var(--text-secondary);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.seller-rating {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seller-rating .stars {
    display: flex;
    gap: 2px;
}

.seller-rating .rating-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.no-ratings {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

.product-guarantee ul {
    list-style: none;
    padding: 0;
}

.product-guarantee li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.product-guarantee li i {
    color: var(--black);
    width: 16px;
}


/* Botões da Página de Produto */
.purchase-form {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.purchase-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.purchase-btn:active {
    transform: translateY(0);
}

.owner-message {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.owner-message p {
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.insufficient-balance {
    text-align: center;
    margin-top: 1rem;
}

.insufficient-balance p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.insufficient-balance p:first-child {
    color: var(--text-color);
    font-weight: 500;
}

.add-balance-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-balance-btn:hover {
    background: var(--primary-dark);
}

.login-required {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.login-required p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary-dark);
}

/* Página de Perfil - Novo Layout */
.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.profile-header {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 3rem;
    font-weight: 600;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.verified-badge {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-top: 4px;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.member-since {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.profile-form-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.three-cols {
    grid-template-columns: 2fr 1fr 1fr;
}

.form-row.categories-row {
    grid-template-columns: 2fr 1fr;
    align-items: start;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.password-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.password-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.save-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.save-btn:hover {
    background: var(--primary-dark);
}

.profile-actions-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.profile-actions-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.action-card:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.action-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.action-card:hover .action-icon {
    background: var(--white);
    color: var(--primary-color);
}

.action-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.action-content p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

/* Página de Compras */
.purchases-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.purchases-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.purchase-item {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.purchase-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.purchase-product {
    flex: 1;
    min-width: 200px;
}

.purchase-product h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.purchase-seller {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.purchase-price {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.purchase-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.purchase-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.purchase-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.purchase-status.delivered {
    background: var(--success-color);
    color: white;
}

.purchase-status.completed {
    background: #28a745;
    color: white;
}

.purchase-status.refunded {
    background: #dc3545;
    color: white;
}

.purchase-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.purchase-delivery {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.purchase-delivery h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.purchase-delivery p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}


.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-bubble {
    background-color: var(--card-background);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.chat-bubble p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.chat-bubble button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    width: 280px;
    background-color: var(--secondary-color);
    padding: 2rem 1rem;
    border-right: 2px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.sidebar-nav {
    margin-bottom: 2rem;
}

.nav-item {
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.nav-item[href] {
    text-decoration: none;
}

.balance-section {
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.balance-section h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.balance-item:last-of-type {
    border-bottom: none;
}

.balance-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--primary-color);
    font-weight: 600;
}

.balance-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.balance-amount.available {
    color: #28a745;
    font-weight: 600;
    font-size: 1.3rem;
}

.balance-amount.pending {
    color: #ffc107;
    font-weight: 600;
    font-size: 1.3rem;
}

.balance-amount.total {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.balance-item small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: normal;
}

.balance-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.add-balance {
    background-color: var(--primary-color);
    color: var(--white);
}

.add-balance:hover {
    background-color: var(--primary-dark);
}

.withdraw-balance {
    background-color: var(--success-color);
    color: var(--white);
}

.withdraw-balance:hover {
    background-color: #1e7e34;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.stats-grid {
    display: none !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
}

.stat-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content h3 {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    font-weight: 700;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.05rem;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.stat-info {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
}

.auth-form {
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-form .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
}

.auth-form h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    /* Allow text selection in form fields */
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.auth-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background-color: var(--primary-dark);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: rgba(255, 68, 68, 0.1);
    border: 2px solid var(--error-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--error-color);
    margin-bottom: 1rem;
}

.success-message {
    background-color: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--success-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.balance-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.balance-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.balance-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.current-balance {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.balance-form {
    margin-bottom: 2rem;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.quick-btn {
    padding: 0.75rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.deposit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.deposit-btn:hover {
    background-color: var(--primary-dark);
}

.payment-info {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.payment-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-info ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.payment-info li {
    margin-bottom: 0.5rem;
}

.payment-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.payment-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.payment-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-amount h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.pix-section {
    margin: 2rem 0;
}

.qr-code-container {
    margin: 2rem 0;
}

.qr-code {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background-color: white;
}

.pix-code-container {
    margin: 2rem 0;
}

.pix-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pix-input-group input {
    flex: 1;
    padding: 0.75rem;
    background-color: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-btn {
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--primary-dark);
}

.payment-steps {
    text-align: left;
    margin: 2rem 0;
}

.payment-steps h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-steps ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.payment-steps li {
    margin-bottom: 0.5rem;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.check-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-btn:hover {
    background-color: var(--primary-dark);
}

.cancel-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

.payment-warning {
    background-color: rgba(255, 170, 0, 0.1);
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--warning-color);
}

.payment-warning i {
    margin-right: 0.5rem;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    display: none;
    z-index: 1001;
    margin-top: 0.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-close {
    display: none;
}

.mobile-menu-item {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}


.mobile-menu-item:last-child {
    margin-bottom: 0;
}

/* Botões de ação do dashboard */
.btn-edit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.btn-edit:hover {
    background-color: var(--primary-dark);
}

.btn-promote {
    background-color: var(--warning-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.btn-promote:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: var(--error-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-delete:hover {
    background-color: #c82333;
}


/* Container da imagem do produto */
.product-image {
    position: relative;
}


@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    /* Mostrar todas as 5 estrelas no mobile */
    
    .header-content {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .balance-display {
        display: none; /* Ocultar saldo no mobile */
    }
    
    
    .site-logo {
        height: 32px;
        max-width: 120px;
    }
    
    /* Mostrar opções principais no menu do carrinho apenas no mobile */
    
    .mobile-main-options {
        display: block !important;
    }
    
    .mobile-auth-options {
        display: block !important;
    }
    
    /* No mobile, ajustar todos os itens para ter altura uniforme */
    .mobile-main-options .menu-item,
    .mobile-auth-options .menu-item {
        padding: 0.75rem 0;
        margin-bottom: 0;
    }
    
    
    .logo-section {
        margin-right: 0.5rem;
    }
    
    .site-logo {
        height: 38px;
        max-width: 150px;
    }
    
    .search-bar {
        flex: 1;
        max-width: none;
        margin: 0 1rem;
    }
    
    .search-bar button {
        width: 32px;
        height: 32px;
        right: 6px;
        font-size: 0.8rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .notification-btn, .cart-btn, .user-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem;
        border-width: 2px;
        padding: 0;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    }
    
    .user-avatar-initials {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        padding: 1rem;
        background: #efefef;
        position: static;
        height: auto;
        overflow-y: visible;
    }
    
    .main-content {
        order: 1;
        padding: 1rem;
        margin-left: 0;
        height: auto;
        min-height: 60vh; /* Garante altura mínima para manter a sidebar no final */
        overflow-y: visible;
    }
    
    .main-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(auto-fit, minmax(200px, auto));
        gap: 1rem;
        grid-auto-flow: row;
    }
    
    .product-card {
        min-height: 200px;
        display: flex;
        flex-direction: column;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 0.75rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-seller {
        margin-bottom: 0.4rem;
        font-size: 0.75rem;
    }
    
    .product-rating {
        margin-bottom: 0.4rem;
        align-items: baseline;
    }
    
    .stars-price {
        gap: 0.25rem;
        align-items: baseline;
    }
    
    .stars {
        align-items: baseline;
    }
    
    .star {
        line-height: 1;
        font-size: 0.75rem;
    }
    
    .product-name {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .product-card .product-description {
        font-size: 0.75rem;
        margin-bottom: 0;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        word-break: break-word;
    }
    
    .product-price {
        font-size: 0.75rem;
        font-weight: 500;
        margin-bottom: 0;
        line-height: 1;
    }
    
    .price-original {
        font-size: 0.75rem;
        line-height: 1;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        order: 2;
    }
    
    .dashboard-main {
        order: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-main .product-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .dashboard-main .product-item .product-details {
        grid-column: 1;
    }
    
    .dashboard-main .product-actions {
        grid-column: 1;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .dashboard-main .product-actions button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    
    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rating-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rating-date {
        margin-left: 0;
    }
    
    .rating-input {
        justify-content: center;
    }
    
    .rating-input label {
        font-size: 2rem;
    }
}

/* Tablet - Layout intermediário */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .product-card {
        min-height: 180px;
    }
    
    .product-image {
        height: 130px;
    }
}

/* Responsivo - Página de Produto */
@media (max-width: 768px) {
    /* Garantir que o scroll funcione no mobile também */
    body.product-page .main-container {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem auto 0;
        padding: 0 1rem;
    }
    
    .product-details {
        padding: 1rem;
    }
    
    .product-details .product-image {
        height: 220px;
        margin-bottom: 0.75rem;
    }
    
    .product-details .product-info h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .product-details .product-price {
        font-size: 1.5rem;
    }
    
    .product-stats-row {
        gap: 1rem;
        justify-content: space-between;
    }
    
    .stat-item {
        min-width: 60px;
        flex: 1;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-sidebar {
        gap: 0.75rem;
    }
    
    .seller-info,
    .product-guarantee {
        padding: 1rem;
    }
    
    .product-details .product-description {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .purchase-form {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* Responsivo - Página de Perfil */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .profile-header {
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .profile-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        display: block !important;
        text-align: center !important;
    }
    
    .member-since {
        margin-bottom: 1rem;
        text-align: center !important;
    }
    
    /* Forçar layout vertical no mobile */
    .profile-main-card > div {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 1rem !important;
    }
    
    .profile-left {
        order: 1 !important;
        width: 100% !important;
    }
    
    .profile-right {
        order: 2 !important;
        width: 100% !important;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Cores específicas para mobile */
    .stat-icon.sales { color: #007bff !important; }
    .stat-icon.wallet { color: #28a745 !important; }
    .stat-icon.clock { color: #ffc107 !important; }
    .stat-icon.users { color: #007bff !important; }
    .stat-icon.chart { color: #28a745 !important; }
    .stat-icon.credit { color: #fd7e14 !important; }
    .stat-icon.dollar { color: #17a2b8 !important; }
    .stat-icon.cart { color: #28a745 !important; }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-form-section {
        padding: 1.5rem;
    }
    
    .profile-actions-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .actions-grid {
        gap: 0.75rem;
    }
    
    .action-card {
        padding: 0.75rem;
    }
    
    .action-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .action-content h3 {
        font-size: 0.9rem;
    }
    
    .action-content p {
        font-size: 0.75rem;
    }
    
    .save-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Modal Styles */
.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.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-background);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal form {
    padding: 1.5rem;
}

.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.modal .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: var(--text-secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--gray-dark);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Admin Panel Styles */
.users-list, .withdrawals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item, .withdrawal-item {
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info, .withdrawal-info {
    flex: 1;
}

.user-info h4, .withdrawal-info h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.user-info p, .withdrawal-info p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.user-balance {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.withdrawal-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 1rem;
}

.user-actions, .withdrawal-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-ban {
    background-color: var(--error-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-ban:hover {
    background-color: #c82333;
}

.btn-approve {
    background-color: var(--success-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-approve:hover {
    background-color: #1e7e34;
}

.btn-reject {
    background-color: var(--error-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-reject:hover {
    background-color: #c82333;
}

.withdrawal-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-link {
    background-color: var(--warning-color) !important;
    color: var(--white) !important;
    border-radius: 8px;
    margin-top: 1rem;
}

.admin-link:hover {
    background-color: #e0a800 !important;
}

/* Melhorias no histórico de transações */
.transaction-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.transaction-icon.sale {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.transaction-icon.purchase {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.transaction-details {
    flex: 1;
}

.transaction-details h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.transaction-details p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.transaction-date {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
}

.transaction-amount {
    font-size: 1.3rem;
    font-weight: bold;
    margin-left: 1rem;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--error-color);
}

.transactions-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Generic Modal Styles */
.generic-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.generic-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.generic-modal-content {
    background-color: var(--card-background);
    margin: 15% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animação removida para melhor performance */

.generic-modal-header {
    padding: 1.2rem 1.5rem 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.generic-modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.generic-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.generic-modal-close:hover {
    color: var(--text-color);
}

.generic-modal-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
}

.generic-modal-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.generic-modal-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.generic-modal-body a:hover {
    text-decoration: underline;
}

.generic-modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.generic-modal-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: 2px solid;
    min-width: 80px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.generic-modal-btn-secondary {
    background-color: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.generic-modal-btn-secondary:hover {
    background-color: var(--text-secondary);
    color: var(--white);
}

.generic-modal-btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.generic-modal-btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.generic-modal-btn-danger {
    background-color: var(--error-color);
    border-color: var(--error-color);
    color: var(--white);
}

.generic-modal-btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.generic-modal-btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.generic-modal-btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.auth-modal.show {
    display: flex;
}

/* Travar scroll quando modal estiver aberto */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

.auth-modal-content {
    background: var(--card-background);
    border-radius: 16px;
    padding: 0;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
}

/* Animação removida para melhor performance */

.auth-modal-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.auth-modal-header h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.auth-modal-close:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.auth-modal-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.auth-modal .welcome-text {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-modal .welcome-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.auth-modal .form-group {
    margin-bottom: 1rem;
    position: relative;
}

.auth-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.auth-modal .form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.auth-modal .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-modal .form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.auth-modal .auth-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.auth-modal .auth-btn:hover {
    background-color: var(--primary-dark);
}

.auth-modal .forgot-password {
    text-align: right;
    margin-bottom: 0.5rem;
}

.auth-modal .forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.auth-modal .forgot-password a:hover {
    color: var(--primary-color);
}

.auth-modal .auth-links {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-modal .auth-links p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.85rem;
}

.auth-modal .auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-modal .auth-links a:hover {
    color: var(--primary-dark);
}

/* Alertas dentro dos modais */
.auth-alert {
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.auth-alert.error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #d32f2f;
}

.auth-alert.success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #388e3c;
}

/* Estilos específicos para modais de saldo */
.current-balance-display {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.current-balance-display p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.current-balance-display strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Removido - não usado mais */

.qr-code-section {
    margin-bottom: 1rem;
}

.qr-code-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

.qr-code-container {
    text-align: center;
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    border: none;
    margin-bottom: 1.5rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-loading {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pix-input-group {
    display: flex;
    gap: 0.5rem;
}

.pix-input-group input {
    flex: 1;
    font-family: monospace;
    font-size: 0.8rem;
    background-color: var(--secondary-color);
}

.copy-btn {
    padding: 0.8rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

/* Removido - não usado mais */

/* Animação de pagamento aprovado */
.payment-success-content {
    background: #32CD32;
    border: none;
    color: white;
    max-width: 200px;
    border-radius: 50% !important;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-success-animation {
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.success-checkmark {
    margin: 0;
    width: 120px;
    height: 120px;
    position: relative;
}

.check-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-check {
    font-size: 3.5rem;
    color: #32CD32;
    opacity: 0;
    opacity: 1; /* animation removed */
}

/* Texto removido - não usado mais */

/* Animações */
@keyframes checkmarkBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animação de texto removida - não usada mais */

/* Responsividade para modal de sucesso */
@media (max-width: 768px) {
    .payment-success-content {
        max-width: 150px;
        width: 150px;
        height: 150px;
    }
    
    .success-checkmark {
        width: 80px;
        height: 80px;
    }
    
    .check-icon {
        width: 80px;
        height: 80px;
        border: none;
    }
    
    .success-check {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .payment-success-content {
        max-width: 120px;
        width: 120px;
        height: 120px;
    }
    
    .success-checkmark {
        width: 60px;
        height: 60px;
    }
    
    .check-icon {
        width: 60px;
        height: 60px;
        border: none;
    }
    
    .success-check {
        font-size: 2rem;
    }
}

/* Responsividade para modais de saldo */
@media (max-width: 768px) {
    .qr-code {
        max-width: 160px;
    }
    
    .qr-code-container {
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .pix-input-group {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .pix-input-group input {
        font-size: 0.75rem;
    }
    
    .copy-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .qr-code {
        max-width: 140px;
    }
    
    .qr-code-container {
        padding: 1rem;
        min-height: 160px;
    }
    
    .current-balance-display {
        padding: 0.6rem;
    }
}

/* Responsividade para modais de autenticação */
@media (max-width: 768px) {
    .auth-modal {
        padding: 20px;
    }
    
    .auth-modal-content {
        width: 100%;
        max-width: 380px;
        border-radius: 12px;
    }
    
    .auth-modal-header {
        padding: 1.2rem 1.2rem 0 1.2rem;
    }
    
    .auth-modal-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-modal-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }
    
    .auth-modal-body {
        padding: 0.8rem 1.2rem 1.2rem 1.2rem;
    }
    
    .auth-modal .welcome-text {
        margin-bottom: 1.2rem;
    }
    
    .auth-modal .welcome-text p {
        font-size: 0.8rem;
    }
    
    .auth-modal .form-group {
        margin-bottom: 0.8rem;
    }
    
    .auth-modal .form-group input {
        padding: 0.7rem 0.8rem;
        border-radius: 6px;
        font-size: 0.9rem;
    }
    
    .auth-modal .auth-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .auth-modal {
        padding: 25px;
    }
    
    .auth-modal-content {
        width: 100%;
        max-width: none;
        border-radius: 10px;
    }
    
    .auth-modal-header {
        padding: 1rem 1rem 0 1rem;
    }
    
    .auth-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .auth-modal-close {
        top: 0.6rem;
        right: 0.6rem;
        width: 26px;
        height: 26px;
        font-size: 1.2rem;
    }
    
    .auth-modal-body {
        padding: 0.6rem 1rem 1rem 1rem;
    }
    
    .auth-modal .welcome-text {
        margin-bottom: 1rem;
    }
    
    .auth-modal .welcome-text p {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
    
    .auth-modal .form-group {
        margin-bottom: 0.7rem;
    }
    
    .auth-modal .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .auth-modal .form-group input {
        padding: 0.6rem 0.7rem;
        border-radius: 5px;
        font-size: 0.85rem;
    }
    
    .auth-modal .auth-btn {
        padding: 0.6rem 0.7rem;
        border-radius: 5px;
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }
    
    .auth-modal .auth-links {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
    
    .auth-modal .auth-links p {
        font-size: 0.8rem;
    }
}

/* Responsividade para modais genéricos */
@media (max-width: 768px) {
    .generic-modal-content {
        margin: 20% auto;
        max-width: 320px;
    }
    
    .generic-modal-header {
        padding: 1rem 1.2rem 0.6rem 1.2rem;
    }
    
    .generic-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .generic-modal-body {
        padding: 0.8rem 1.2rem 1.2rem 1.2rem;
    }
    
    .generic-modal-body p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .generic-modal-actions {
        padding: 0 1.2rem 1.2rem 1.2rem;
        gap: 0.6rem;
    }
    
    .generic-modal-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .generic-modal-content {
        margin: 25% auto;
        max-width: 280px;
    }
    
    .generic-modal-header {
        padding: 0.8rem 1rem 0.5rem 1rem;
    }
    
    .generic-modal-header h3 {
        font-size: 1rem;
    }
    
    .generic-modal-body {
        padding: 0.6rem 1rem 1rem 1rem;
    }
    
    .generic-modal-body p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .generic-modal-actions {
        padding: 0 1rem 1rem 1rem;
        gap: 0.5rem;
    }
    
    .generic-modal-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        min-width: 60px;
    }
}

/* Image Upload Styles */
.image-upload-container {
    position: relative;
}

.image-upload-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
    transform: scale(1.02);
}

.upload-area i {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.upload-area p {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-area small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.image-preview {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--error-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remove-image:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

/* Mobile responsive for generic modal */
@media (max-width: 768px) {
    .generic-modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: none;
    }
    
    .generic-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .generic-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .generic-modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .generic-modal-body p {
        font-size: 0.9rem;
    }
    
    .generic-modal-actions {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .generic-modal-btn {
        width: 100%;
        text-align: center;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-area i {
        font-size: 1.5rem;
    }
    
    .image-preview img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Hero Section */
.hero-section {
    background: transparent;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #666666;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-button {
    display: inline-block;
    background: #007BFF;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}

.hero-button:hover {
    background: #0056B3;
    color: white;
    text-decoration: none;
}

/* Products Title Section */
.products-title-section {
    text-align: left;
    margin-bottom: 1.5rem;
}

.products-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666666;
    letter-spacing: 1px;
    margin: 0;
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .products-title {
        font-size: 1rem;
    }
    
    .products-title-section {
        margin-bottom: 1rem;
    }
}

/* Empty Category Message */
.empty-category-message {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-message-content i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: block;
}

.empty-message-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-message-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .empty-category-message {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .empty-message-content i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .empty-message-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .empty-message-content p {
        font-size: 0.9rem;
    }
}

/* Categories Checkbox */
.categories-checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    accent-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .categories-checkbox {
        grid-template-columns: 1fr;
    }
}

/* Category Badges */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Purchase Actions and Rating System */
.purchase-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-view, .btn-rate {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-view {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}


.btn-rate {
    background: var(--warning-color);
    color: var(--white);
}

.btn-refund {
    background: #dc3545;
    color: var(--white);
    border: 2px solid #dc3545;
}


.payment-status {
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.payment-status.released {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.payment-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.rating-display {
    display: inline-flex;
    gap: 2px;
}

.rating-display .fa-star.rated {
    color: #ffc107;
}

.rating-display .fa-star.empty {
    color: #e0e0e0;
}

/* Rating Modal Styles */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    color: #e0e0e0;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

@media (max-width: 768px) {
    .purchase-actions {
        justify-content: center;
    }
    
    .btn-view, .btn-rate {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .rating-stars label {
        font-size: 1.5rem;
    }
}

/* Purchase Content Page */
.purchase-summary {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.purchase-summary h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.delivery-content {
    background: var(--card-background);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.delivery-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delivery-text-content {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.content-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-copy-content, .btn-rate-quick {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy-content {
    background: var(--primary-color);
    color: var(--white);
}

.btn-copy-content:hover {
    background: var(--primary-dark);
}

.btn-rate-quick {
    background: var(--warning-color);
    color: var(--white);
}


.purchase-notice {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.purchase-notice i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.purchase-notice p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .content-actions {
        flex-direction: column;
    }
    
    .btn-copy-content, .btn-rate-quick {
        justify-content: center;
        width: 100%;
    }
    
    .delivery-content {
        padding: 1rem;
    }
    
    .delivery-text-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Content Display Modal */
.content-display {
    margin: 1.5rem 0;
}

.content-display h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.content-notice {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.content-notice i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.content-notice p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Layout organizado para PC */
.dashboard-section {
    padding: 1rem 0;
}

.dashboard-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.dashboard-section h3 {
    color: #666666;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    margin-top: 2rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.dashboard-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-background);
    border-radius: 8px;
    overflow: visible;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sales-table thead {
    background: #f8f9fa;
}

.sales-table th {
    padding: 1rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.sales-table td {
    padding: 1rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 1rem;
    color: var(--text-color);
}


.product-info span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.sale-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.empty-sales {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-sales i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-sales p {
    margin: 0;
    font-size: 1rem;
}

/* Dropdown de ações */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
}


.dropdown-item i {
    margin-right: 0.5rem;
    width: 16px;
    color: var(--text-secondary);
}

/* Modal de rembolso */
#refundModal .modal-content {
    max-width: 500px;
}

.refund-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.refund-info p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.refund-info p:last-child {
    margin-bottom: 0;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}


/* Responsividade para tabelas */
@media (max-width: 768px) {
    .sales-table,
    .products-table {
        font-size: 0.85rem;
        min-width: 100%;
    }
    
    .sales-table th,
    .sales-table td,
    .products-table th,
    .products-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    /* Alinhar header "Ações" à direita no mobile */
    .sales-table th:last-child,
    .products-table th:last-child {
        text-align: right;
        padding-right: 0.5rem;
    }
    
    .sales-table th,
    .products-table th {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    /* Colunas otimizadas para mobile */
    .sales-table th:nth-child(1), .sales-table td:nth-child(1),
    .products-table th:nth-child(1), .products-table td:nth-child(1) {
        width: 35%;
        max-width: 100px;
    }
    
    .sales-table th:nth-child(2), .sales-table td:nth-child(2),
    .products-table th:nth-child(2), .products-table td:nth-child(2) {
        width: 15%;
        max-width: 60px;
    }
    
    .sales-table th:nth-child(3), .sales-table td:nth-child(3),
    .products-table th:nth-child(3), .products-table td:nth-child(3) {
        width: 20%;
        max-width: 70px;
    }
    
    .sales-table th:nth-child(4), .sales-table td:nth-child(4),
    .products-table th:nth-child(4), .products-table td:nth-child(4) {
        width: 15%;
        max-width: 60px;
    }
    
    .sales-table th:nth-child(5), .sales-table td:nth-child(5),
    .products-table th:nth-child(5), .products-table td:nth-child(5) {
        width: 10%;
        max-width: 50px;
    }
    
    .sales-table th:nth-child(6), .sales-table td:nth-child(6),
    .products-table th:nth-child(6), .products-table td:nth-child(6) {
        width: 5%;
        max-width: 30px;
    }
    
    /* Textos no mobile */
    .product-info span {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .product-info small {
        font-size: 0.75rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Dropdown otimizado para mobile */
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        padding: 0.5rem;
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .action-btn i {
        font-size: 0.85rem;
    }
    
    /* Alinhar coluna de ações à direita no mobile */
    .sale-actions,
    .product-actions-cell {
        text-align: right;
        padding-right: 0.5rem;
    }
    
    .dropdown {
        display: inline-flex;
        justify-content: flex-end;
    }
    
    /* Headers das seções no mobile */
    .dashboard-section h2,
    .dashboard-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .dashboard-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Estilos para tabela de produtos */
.products-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: visible;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.products-table thead {
    background: #f8f9fa;
}

.products-table th {
    padding: 1rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.products-table td {
    padding: 1rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 1rem;
    color: var(--text-color);
}


.product-name-cell .product-info span {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.product-name-cell .product-info small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.product-price-cell {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.product-stock-cell {
    color: var(--text-secondary);
    font-size: 1rem;
}

.product-status-cell .status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.empty-products {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-products p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.btn-primary-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}


.dropdown-item.delete-item {
    color: #dc3545;
}


.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.section-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsividade para tabela de produtos */
@media (max-width: 768px) {
    .products-table th,
    .products-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .products-table th {
        font-size: 0.75rem;
    }
    
    .product-name-cell .product-info span {
        font-size: 0.9rem;
    }
    
    .product-name-cell .product-info small {
        font-size: 0.75rem;
    }
}

/* User Dropdown Menu - Estilo da imagem */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
}

.user-menu.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.user-menu-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    gap: 0.75rem;
}

.user-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-large-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-family: 'Geist', sans-serif;
}

.user-account-link {
    font-size: 0.85rem;
    color: #007BFF;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.user-account-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.user-menu-options {
    padding: 0.25rem 0;
}

.user-menu-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Geist', sans-serif;
    font-weight: 400;
}

.user-menu-item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.user-menu-item i {
    width: 16px;
    font-size: 0.9rem;
    color: #666666;
}

.user-menu-item span {
    flex: 1;
}

.user-menu-item.theme-toggle {
    cursor: pointer;
}

.user-menu-item.logout {
    color: #dc3545;
}

.user-menu-item.logout i {
    color: #dc3545;
}

.user-menu-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 0.25rem 0;
}

/* Botões de Ação Modernos - Página de Compras */
.purchase-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    align-items: center;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    min-height: 40px;
    box-shadow: none;
}

.btn-action:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-action:active {
    transform: scale(0.98);
    transition: all 0.1s ease;
}

.btn-action i {
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-action span {
    font-weight: 500;
}

/* Variações dos botões - Estilo natural */
.btn-action.primary {
    background: #007BFF;
    color: white;
    border: 1px solid #007BFF;
}

.btn-action.primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-action.success {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.btn-action.success:hover {
    background: #1e7e34;
    border-color: #1e7e34;
}

.btn-action.secondary {
    background: #ffffff;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-action.secondary:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

.btn-action.copy {
    background: #ffffff;
    color: #17a2b8;
    border: 1px solid #17a2b8;
}

.btn-action.copy:hover {
    background: #17a2b8;
    color: white;
}

/* Animações Suaves Globais */
* {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animações para elementos interativos */
button, a, input, select, textarea {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

button:hover, a:hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Animações para modais */
.auth-modal, .generic-modal {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-modal-content, .generic-modal-content {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Animações para inputs */
input:focus, textarea:focus, select:focus {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile - Botões empilhados */
@media (max-width: 768px) {
    .primary-actions, .secondary-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-action {
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Admin Settings Section */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.settings-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.settings-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card .form-group {
    margin-bottom: 1.5rem;
}

.settings-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.settings-card .form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.settings-card .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.settings-card .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .settings-card {
        padding: 1.5rem;
    }
}

/* Purchase Section - Barra simples */
.purchase-section {
    margin-top: 1.5rem;
}

.quantity-bar {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.quantity-bar label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.quantity-input-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qty-btn-simple {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-simple:hover {
    background: var(--primary-dark);
}

#productQuantity {
    width: 60px;
    height: 32px;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.purchase-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.purchase-btn:hover {
    background: var(--primary-dark);
}


/* Headers padronizados - todos com mesmo tamanho */



.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-badge {
    background: #dc3545;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
}

.message-text {
    color: #333;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.7rem;
    color: #666;
    text-align: right;
    margin-top: 0.25rem;
}

/* Input do chat widget */
.chat-input {
    background: white;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e9ecef;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-container textarea {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    resize: none;
    max-height: 100px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

.input-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.send-button:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.resolve-btn {
    background: #28a745;
    color: white;
}

.resolve-btn:hover {
    background: var(--success-hover);
    transform: scale(1.1);
}

.refund-btn {
    background: #dc3545;
    color: white;
}

.refund-btn:hover {
    background: var(--danger-hover);
    transform: scale(1.1);
}

.action-btn i {
    font-size: 1.1rem;
}



/* Chat fechado */
.chat-closed {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e9ecef;
}

.closed-message {
    color: #6c757d;
}

.closed-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .chat-widget {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .chat-float-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .chat-float-btn i {
        font-size: 1.3rem;
    }
    
    .chat-messages {
        padding: 0.75rem;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 0.4rem 0.6rem;
    }
    
    .chat-input {
        padding: 0.75rem;
    }
    
    .input-container {
        gap: 0.5rem;
    }
    
    .input-container textarea {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .send-button, .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .send-button i, .action-btn i {
        font-size: 0.9rem;
    }
}

/* Chat Bubble - Nuvem elegante */
.chat-bubble {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 280px;
    background: transparent;
    z-index: 1002;
    animation: slideUpFade 0.3s ease;
    border: none;
    outline: none;
}

@keyframes slideUpFade {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.bubble-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: none;
    outline: none;
}

.bubble-header {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    outline: none;
}

.bubble-header i {
    margin-right: 0.5rem;
}

.bubble-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    transition: background 0.2s;
}

.bubble-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bubble-body {
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    border: none;
    outline: none;
}

.bubble-arrow {
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
    outline: none;
}

/* Garantir que nenhum elemento da nuvem tenha borda azul */
.chat-bubble, 
.chat-bubble *,
.bubble-content,
.bubble-header,
.bubble-body,
.bubble-arrow {
    border: none !important;
    outline: none !important;
    box-shadow: none;
}

/* Restaurar sombra só no conteúdo principal */
.bubble-content {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.bubble-arrow {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1) !important;
}


/* Conteúdo da nuvem */
.bubble-loading, .bubble-no-tickets, .bubble-error {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-secondary);
}

.bubble-loading i, .bubble-no-tickets i, .bubble-error i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.bubble-loading i {
    color: var(--primary-color);
}

.bubble-no-tickets p, .bubble-error p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.bubble-no-tickets small {
    display: block;
    margin-top: 0.5rem;
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Mensagens do chat no modal - começar de baixo */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    /* Esconder scrollbar mas manter funcionalidade */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex-direction: column-reverse;
}

.chat-messages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.chat-message.sent {
    justify-content: flex-end;
}

.chat-message.received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.chat-message.sent .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-right-radius: 5px;
}

.chat-message.received .message-bubble {
    background: white;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 5px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.chat-message.sent .message-header {
    color: var(--primary-color);
}

.chat-message.received .message-header {
    color: var(--primary-color);
}

.admin-badge {
    background: #dc3545;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
}

.message-text {
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.7rem;
    text-align: right;
    margin-top: 0.25rem;
    opacity: 0.7;
}

/* Lista de tickets na nuvem */
.bubble-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bubble-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.bubble-ticket-item:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.bubble-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bubble-ticket-info strong {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.bubble-product {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.bubble-ticket-info small {
    color: #6c757d;
    font-size: 0.75rem;
}

.bubble-ticket-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Responsivo para nuvem */
@media (max-width: 768px) {
    .chat-bubble {
        width: calc(100vw - 40px);
        right: 10px;
        bottom: 90px;
    }
    
    .bubble-arrow {
        right: 30px;
    }
    
    .bubble-body {
        max-height: 180px;
        padding: 0.5rem;
    }
    
    .bubble-ticket-item {
        padding: 0.4rem 0.6rem;
    }
}

/* Chat Global - Notificação em qualquer página */
.global-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.global-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Estado com notificações - ícone verde */
.global-chat-btn.has-notifications {
    background: #28a745;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.global-chat-btn.has-notifications:hover {
    background: #218838;
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}


.global-chat-btn i {
    color: white;
    font-size: 1.5rem;
}



/* Overlay do chat global */
.global-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.global-chat-widget {
    width: 350px;
    height: 450px;
    background: var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    max-height: 80vh;
    max-width: 90vw;
    overflow: hidden;
}

/* Header do modal de chat */
.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    border: none;
    overflow: hidden;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animações dos botões da página inicial - removidas para manter consistência */

.auth-btn:hover {
    background: var(--primary-dark);
    color: white;
}

.copy-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* Input do modal de chat */
.chat-input {
    background: white;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e9ecef;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-container textarea {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    min-height: 40px;
    max-height: 80px;
    background: #f8f9fa;
}

.input-container textarea:focus {
    border-color: var(--primary-color);
    background: white;
}

.send-button, .action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.send-button:hover, .action-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.resolve-btn {
    background: #28a745;
    color: white;
}

.resolve-btn:hover {
    background: var(--success-hover);
    transform: scale(1.1);
}

.refund-btn {
    background: #dc3545;
    color: white;
}

.refund-btn:hover {
    background: var(--danger-hover);
    transform: scale(1.1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUpMobile {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Lista de tickets */
.tickets-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
    /* Esconder scrollbar mas manter funcionalidade */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tickets-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tickets-header {
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.tickets-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.ticket-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.ticket-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.ticket-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.ticket-product {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ticket-users {
    display: block;
    margin: 0.25rem 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.ticket-amount {
    display: inline-block;
    background: #e8f5e8;
    color: #28a745;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.ticket-status {
    float: right;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tickets-loading, .no-tickets, .error-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.tickets-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.no-tickets i, .error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-tickets small {
    display: block;
    margin-top: 0.5rem;
    color: #9ca3af;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Responsivo para chat global */
@media (max-width: 768px) {
    .global-chat-widget {
        width: 320px;
        height: 400px;
        max-height: 400px;
        margin: auto;
        border-radius: 12px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow: hidden;
        animation: slideUpMobile 0.3s ease;
    }
    
    .chat-header {
        padding: 0.75rem;
        border-radius: 0;
        font-size: 0.9rem;
        margin: 0;
        border: none;
        overflow: hidden;
    }
    
    .chat-messages {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .chat-input {
        padding: 0.75rem;
        border-radius: 0 0 12px 12px;
    }
    
    .input-container textarea {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .send-button, .action-btn {
        width: 36px;
        height: 36px;
    }
}
    
    .global-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .global-chat-btn i {
        font-size: 1.3rem;
    }
    
    .global-notification {
        width: 20px;
        height: 20px;
    }
    
    .ticket-item {
        padding: 0.75rem;
    }
    
    .tickets-header h3 {
        font-size: 1rem;
    }
}

/* Estilos para página de anunciar */
.advertise-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Layout da página anunciar */
.advertise-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.advertise-form {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .advertise-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
}

.advertise-form h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.product-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-form h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.product-form .form-group {
    margin-bottom: 1.5rem;
}

.product-form label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-form input,
.product-form textarea,
.product-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease;
}

.product-form input:focus,
.product-form textarea:focus,
.product-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row.three-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.categories-checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background-color: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.image-upload-container {
    margin-top: 0.5rem;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-area i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.form-actions {
    margin-top: 2rem;
}

/* Seção de informações sobre taxa */
.fee-info-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.fee-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.fee-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.fee-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fee-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.fee-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.fee-item strong {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.fee-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .advertise-container {
        padding: 1rem;
    }
    
    .advertise-form {
        padding: 1.5rem;
    }
    
    .form-row.three-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories-checkbox {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .cancel-btn {
        flex: 1;
        width: 100%;
    }
}

/* Estilos SMM Admin */
.smm-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.smm-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.smm-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.smm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.margem-form .form-group {
    margin-bottom: 1rem;
}

.margem-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.margem-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.margem-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.margem-form small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tabela-pedidos {
    overflow-x: auto;
}

.tabela-pedidos table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tabela-pedidos th,
.tabela-pedidos td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.tabela-pedidos th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pendente { background: #fff3cd; color: #856404; }
.status-processando { background: #cce7ff; color: #004085; }
.status-concluido { background: #d4edda; color: #155724; }
.status-cancelado { background: #f8d7da; color: #721c24; }
.status-erro { background: #f8d7da; color: #721c24; }

.resultado-acao {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Classes para substituir estilos inline do Dashboard */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 1.5rem;
}

/* Cores específicas para cada ícone */
.stat-icon.sales { color: #007bff; }
.stat-icon.wallet { color: #28a745; }
.stat-icon.clock { color: #ffc107; }
.stat-icon.users { color: #007bff; }
.stat-icon.chart { color: #28a745; }
.stat-icon.credit { color: #fd7e14; }
.stat-icon.dollar { color: #17a2b8; }
.stat-icon.cart { color: #28a745; }


.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.stat-label {
    color: #666;
}

.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.chart-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-title {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #333;
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: end;
    gap: 0.5rem;
    padding: 1rem 0;
}

.chart-visits {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block !important;
}

/* Classes para Admin */
.stats-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 1rem 0;
}

/* Recent Payments Section */
.recent-payments-list {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    /* Esconder scrollbar mas manter funcionalidade */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.recent-payments-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.payment-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.payment-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.payment-info {
    flex: 1;
    min-width: 0;
    background: transparent;
}

.payment-buyer {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-status {
    color: #28a745;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
}

.payment-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    white-space: nowrap;
}

.payment-time {
    color: #666;
    font-size: 0.75rem;
    white-space: nowrap;
}

.no-payments {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-payments i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-payments p {
    margin: 0;
    font-size: 1rem;
}

.no-payments small {
    color: #999;
}

/* Mobile adjustments for payments */
@media (max-width: 768px) {
    .payment-item {
        padding: 0.6rem 0.75rem;
    }
    
    .payment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        margin-right: 0.6rem;
    }
    
    .payment-buyer {
        font-size: 0.85rem;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .payment-status {
        font-size: 0.7rem;
    }
    
    .payment-amount {
        font-size: 0.85rem;
        margin-right: 0.4rem;
    }
    
    .payment-time {
        font-size: 0.7rem;
    }
}

/* Menus mobile mais compactos */
@media (max-width: 768px) {
    .user-menu-header {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .user-menu-item {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .user-menu-options {
        padding: 0.15rem 0 !important;
    }
    
    .user-menu-divider {
        margin: 0.15rem 0 !important;
    }
    
    .user-avatar-large {
        width: 35px !important;
        height: 35px !important;
    }
    
    .user-avatar-large-initials {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem !important;
    }
    
    .notifications-menu {
        padding: 0.75rem !important;
        max-height: 300px !important;
        overflow: hidden;
    }
    
    .notifications-list {
        max-height: 250px !important;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .notifications-list::-webkit-scrollbar {
        display: none;
    }
    
    .notification-item {
        padding: 0.5rem !important;
        margin-bottom: 0.25rem !important;
        font-size: 0.85rem !important;
    }
    
    .user-menu {
        width: 260px !important;
        min-width: 260px !important;
    }
    
    .stats-grid-compact {
        grid-template-columns: 1fr !important;
    }
    
    .charts-section {
        grid-template-columns: 1fr !important;
    }
}

/* Otimizações simples de Performance para Imagens */
.product-image img,
.product-details .product-image img {
    image-rendering: auto;
}

/* Lazy loading simples */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.2s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Placeholder simples para imagens */
.product-image {
    background: #f8f9fa;
}

/* Animações globais simplificadas */
.btn-primary, .btn-secondary {
    transition: all 0.1s ease;
}

/* Classes para limpar estilos inline do Dashboard */
.product-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image-compact {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-info-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-details-compact {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.btn-compact {
    padding: 0.4rem;
    background: none;
    color: #666;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn-compact.primary {
    color: #007bff;
}

.dropdown-menu-compact {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 170px;
}

.dropdown-item-compact {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

.dropdown-item-compact:hover {
    background: #f8f9fa;
}

.dropdown-item-compact:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item-compact:last-child {
    border-radius: 0 0 8px 8px;
}

/* Badge de mensagens não lidas nos tickets */
.ticket-unread-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: inline-block;
    min-width: 1.2rem;
    text-align: center;
    line-height: 1;
}

/* Mensagens de estado no chat */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin: 1rem;
    border: 1px solid #f5c6cb;
}

.no-messages {
    background: #d1ecf1;
    color: #0c5460;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin: 1rem;
    border: 1px solid #bee5eb;
}
