/* ==========================================
   Design System & Reset
   ========================================== */
:root {
    --primary: #0a192f;
    --primary-light: #172a45;
    --accent-yellow: #ffe600;
    --accent-yellow-dark: #ebd700;
    --accent-blue: #3483fa;
    --accent-red: #ff3d00;
    --accent-green: #00a650;
    
    --bg-light: #ebebeb; /* Mercado livre light gray background */
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #999999;
    --border-color: #e6e6e6;
    
    --max-width: 1400px;
    --font-sans: 'Outfit', sans-serif;
    --transition-smooth: all 0.25s ease-in-out;
    --shadow-subtle: 0 1px 2px 0 rgba(0,0,0,0.1);
    --shadow-card: 0 1px 2px 0 rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.04);
    --border-radius-sm: 6px;
    --border-radius: 8px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================
   Top Notice Navigation Bar
   ========================================== */
.top-nav-bar {
    background-color: #031A49;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
}

.top-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
}

.delivery-notice {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-nav-links {
    display: flex;
    gap: 20px;
}

.top-nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.top-nav-links a:hover, .top-nav-links a.active {
    color: var(--accent-yellow);
    font-weight: 500;
}

/* ==========================================
   Header Section (ML Yellow Style)
   ========================================== */
.main-header {
    background-color: #ffffff;
    padding: 12px 0 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e6e6e6;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 38px;
    height: 38px;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 0.85;
}

.logo-mercado {
    color: #031A49;
    font-size: 13px;
    font-weight: 500;
}

.logo-afiliado {
    color: #031A49;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.search-bar-container {
    display: flex;
    flex-grow: 1;
    max-width: 600px;
    position: relative;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

#search-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    font-family: var(--font-sans);
    font-size: 16px;
    outline: none;
}

.search-btn {
    background-color: white;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: #666;
    border-left: 1px solid #e6e6e6;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    color: var(--accent-blue);
    background-color: #fafafa;
}

.header-ad-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.header-ad-banner .ad-badge {
    background-color: #031A49;
    color: var(--accent-yellow);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* ==========================================
   Banner Carousel
   ========================================== */
.banner-carousel {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.slides-container {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding-top: 6px;
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.slide-text-side {
    color: #333;
}

.slide-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: rgba(3, 26, 73, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.slide-text-side h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.slide-text-side p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.slide-cta-btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.slide-cta-btn:hover {
    background-color: #2968c8;
    transform: translateY(-2px);
}

.centered-slide-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
}

.centered-slide-content .slide-text-side {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centered-slide-content .slide-text-side h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.carousel-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}

/* ==========================================
   Header Categories Menu Row
   ========================================== */
.header-menu-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px;
}

/* ==========================================
   Hybrid Category Navigation
   ========================================== */

/* Submenu Bar (Desktop) */
.header-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    background-color: #ffffff;
    width: 100%;
}

.submenu-links-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.submenu-link {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.2s;
}

.submenu-link:hover, .submenu-link.active {
    color: var(--accent-blue);
}

/* Categories Hover Dropdown (Desktop) */
.categories-dropdown {
    position: relative;
    display: inline-block;
}

.categories-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    font-family: var(--font-sans);
    transition: color 0.2s;
}

.categories-dropdown:hover .categories-btn {
    color: var(--accent-blue);
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333333;
    z-index: 1000;
    display: none;
    min-width: 250px;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border-radius: 4px;
    padding: 8px 0;
}

.categories-dropdown:hover .categories-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #dddddd;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    text-decoration: none;
}

.dropdown-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item.active {
    color: var(--accent-yellow) !important;
    font-weight: 600;
}

/* Scrollbar for categories dropdown */
.categories-menu::-webkit-scrollbar {
    width: 6px;
}
.categories-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.categories-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.categories-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Mobile Category Slider (Text only, sliding) */
.mobile-category-slider {
    display: none;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    overflow: hidden;
}

.category-nav-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 16px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

.category-nav-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.category-nav-item {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 4px 0 6px 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    flex-shrink: 0;
}

.category-nav-item:hover, .category-nav-item:focus {
    color: var(--accent-blue) !important;
}

.category-nav-item.active {
    color: var(--accent-blue) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--accent-blue) !important;
}

/* Visibility Control based on Media Query */
@media (min-width: 901px) {
    .header-submenu {
        display: flex;
    }
    .mobile-category-slider {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .header-submenu {
        display: none !important;
    }
    .mobile-category-slider {
        display: block;
    }
}

/* ==========================================
   Main Grid Layout
   ========================================== */
.main-content-layout {
    padding: 40px 16px;
}

.shelf-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ==========================================
   Mercado Livre Style Product Card
   ========================================== */
.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.1);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #fff;
    border-bottom: 1px solid #f2f2f2;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--accent-red);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.card-category {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.05);
    color: #666;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    z-index: 2;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.product-desc {
    display: none; /* Em grid estilo ML a descrição geralmente fica oculta */
}

.price-area {
    margin-bottom: 12px;
}

.original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    height: 16px;
}

.current-price-row {
    display: flex;
    align-items: flex-start;
    gap: 1px;
    color: #333;
    margin-top: 2px;
}

.price-symbol {
    font-size: 15px;
    font-weight: 400;
    margin-top: 3px;
}

.current-price {
    font-size: 26px;
    font-weight: 400;
    line-height: 0.9;
}

.price-cents {
    font-size: 13px;
    font-weight: 400;
    margin-top: 3px;
}

.discount-tag {
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
    align-self: center;
}

.buy-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.buy-btn:hover {
    background-color: #2968c8;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* ==========================================
   Auth Section (Login / Sign Up)
   ========================================== */
.auth-body {
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-header {
    background-color: #ffffff;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e6e6e6;
}

.auth-header-container {
    display: flex;
    justify-content: center;
}

.auth-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    background-color: white;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #ddd;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.hidden {
    display: none;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.error-message {
    background-color: rgba(255, 61, 0, 0.1);
    color: var(--accent-red);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message.hidden {
    display: none;
}

.auth-submit-btn {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.auth-submit-btn:hover {
    background-color: #2968c8;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

#switch-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}

/* ==========================================
   Dashboard Styles (Advertiser Panel)
   ========================================== */
.dashboard-body {
    background-color: #f4f4f4;
}

.db-header {
    background-color: #031A49;
    color: white;
    padding: 16px 0;
}

.db-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-header .logo-text .logo-mercado {
    color: white;
}

.db-header .logo-text .logo-afiliado {
    color: var(--accent-yellow);
}

.db-user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-greeting {
    font-size: 14px;
    opacity: 0.9;
}

.logout-btn {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.db-main {
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.db-summary-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 24px 32px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.db-summary-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.db-summary-info p {
    font-size: 14px;
    color: #666;
}

.db-limit-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.counter-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 4px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-blue);
}

.db-limit-counter span {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.db-products-section {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.db-products-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-products-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.add-product-btn {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-product-btn:hover {
    background-color: #2968c8;
}

/* Dashboard Products Table */
.db-products-list {
    min-height: 200px;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.db-table th {
    background-color: #fafafa;
    padding: 12px 24px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid var(--border-color);
}

.db-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.db-table-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.db-prod-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
}

.db-prod-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.db-prod-desc {
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.db-prod-cat {
    background-color: #e2e8f0;
    color: #475569;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.db-prod-price {
    font-weight: 700;
    color: var(--accent-green);
}

.db-prod-orig-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.db-badge-hot {
    background-color: rgba(255, 61, 0, 0.1);
    color: var(--accent-red);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.db-badge-normal {
    color: #999;
    font-size: 11px;
}

.db-actions {
    display: flex;
    gap: 8px;
}

.db-btn-edit, .db-btn-delete {
    background: none;
    border: 1px solid #ccc;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.db-btn-edit {
    color: var(--accent-blue);
}

.db-btn-edit:hover {
    background-color: #e3f2fd;
    border-color: var(--accent-blue);
}

.db-btn-delete {
    color: var(--accent-red);
}

.db-btn-delete:hover {
    background-color: #ffebee;
    border-color: var(--accent-red);
}

.db-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    color: #666;
    text-align: center;
}

.db-empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.db-empty-state p {
    font-size: 15px;
    font-weight: 600;
}

.db-empty-state .sub {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* ==========================================
   Admin Panel Styles & Controls
   ========================================== */
.admin-header {
    background-color: #0c1a30;
}

.admin-header .admin-badge {
    background-color: var(--accent-red);
    color: white;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
    margin-top: 4px;
}

.admin-summary {
    background: linear-gradient(135deg, #0c1a30 0%, #1e293b 100%);
    color: white;
    border: none;
}

.admin-summary h2 {
    color: white;
}

.admin-summary p {
    color: rgba(255,255,255,0.7);
}

.admin-quick-stats {
    display: flex;
    gap: 16px;
}

.stat-box {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    min-width: 100px;
}

.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-yellow);
}

.stat-lbl {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
}

.badge-status-approved {
    color: var(--accent-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-status-blocked {
    color: var(--accent-red);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-block-action, .btn-approve-action {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-block-action {
    background-color: #fee2e2;
    color: #ef4444;
}

.btn-block-action:hover {
    background-color: #fca5a5;
    color: #7f1d1d;
}

.btn-approve-action {
    background-color: #dcfce7;
    color: #15803d;
}

.btn-approve-action:hover {
    background-color: #bbf7d0;
    color: #14532d;
}

/* ==========================================
   Modal Overlay
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background-color: white;
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: modalReveal 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 16px 24px;
    background-color: #f3f4f6;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    background-color: #e5e7eb;
    color: #374151;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel:hover {
    background-color: #d1d5db;
}

.btn-submit {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #2968c8;
}

/* ==========================================
   Footer Call To Action Section
   ========================================== */
.cta-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--accent-yellow) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    padding: 48px 0;
}

.cta-container {
    display: flex;
    justify-content: center;
}

.cta-content {
    max-width: 600px;
    text-align: center;
}

.cta-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(52, 131, 250, 0.2);
}

.cta-btn:hover {
    background-color: #2968c8;
    transform: translateY(-2px);
}

/* ==========================================
   Footer Styles
   ========================================== */
.main-footer {
    background: linear-gradient(180deg, var(--accent-yellow) 0%, var(--accent-yellow-dark) 100%);
    color: #333;
    padding: 32px 0;
    border-top: none;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: #666;
    font-size: 13px;
}

.footer-disclaimer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: center;
    color: #999;
    font-size: 11px;
}

/* ==========================================
   Responsive Rules
   ========================================== */
@media (max-width: 900px) {
    .slide-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .slide-image-side {
        display: none;
    }
    
    .slide-text-side h2 {
        font-size: 28px;
    }
    
    .db-summary-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .db-limit-counter {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .logo-area {
        justify-content: center;
    }
    
    .search-bar-container {
        max-width: 100%;
    }
    
    .header-ad-banner {
        display: none;
    }
    
    .top-nav-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-nav-links {
        width: 100%;
        justify-content: space-around;
    }
    
    .db-table th:nth-child(2), .db-table td:nth-child(2),
    .db-table th:nth-child(4), .db-table td:nth-child(4) {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Admin Navigation Menu & Sub-headers
   ========================================== */
.admin-submenu-bar {
    background-color: #0c2356;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.admin-submenu-container {
    display: flex;
    gap: 16px;
    align-items: center;
}

.admin-submenu-container a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-submenu-container a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-submenu-container a.active {
    color: var(--accent-yellow);
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Tab Switch / Toggle in Dashboard */
.db-tabs-container {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius-sm);
    padding: 4px;
    border: 1px solid #ddd;
    width: fit-content;
}

.db-tab-btn {
    border: none;
    background: none;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-tab-btn:hover {
    color: #333;
    background-color: #f1f5f9;
}

.db-tab-btn.active {
    background-color: var(--accent-blue);
    color: white;
    font-weight: 600;
}

/* Status Select Field styling for Admins in Modal */
.form-group-select-owner {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
}

/* ==========================================
   Página de Planos (plans.html)
   ========================================== */
.plans-maincontainer {
    padding: 60px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.plans-title-area {
    text-align: center;
    max-width: 600px;
}

.plans-title-area h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.plans-title-area p {
    font-size: 16px;
    color: #666;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.plan-card {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    transition: var(--transition-smooth);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.premium-card {
    border: 2px solid var(--accent-blue);
    box-shadow: 0 4px 25px rgba(52, 131, 250, 0.15);
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #f1f5f9;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.premium-badge {
    background-color: var(--accent-blue);
    color: white;
}

.plan-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    color: #333;
}

.plan-price .currency {
    font-size: 16px;
    font-weight: 600;
    margin-right: 4px;
}

.plan-price .amount {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.plan-price .cents {
    font-size: 20px;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 4px;
}

.plan-price .period {
    font-size: 14px;
    color: #888;
    margin-left: 6px;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.plan-features li i {
    margin-top: 3px;
    font-size: 15px;
    width: 16px;
    text-align: center;
}

.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-yellow { color: #f59e0b; }

.plan-btn {
    width: 100%;
    padding: 14px;
    background-color: #f1f5f9;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.plan-btn:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.premium-btn {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(52, 131, 250, 0.2);
}

.premium-btn:hover {
    background-color: #2968c8;
}

.plans-help-footer {
    text-align: center;
    font-size: 13px;
    color: #888;
    max-width: 500px;
    line-height: 1.5;
}

/* Botão de Upgrade no Painel */
.upgrade-btn-premium {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #111 !important;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
}

.upgrade-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.35);
    filter: brightness(1.05);
}

/* ==========================================
   Category Sidebar Layout (Left Side)
   ========================================== */
.store-layout-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}








