/* ============================================
   GUIA DE MARÍLIA — DESIGN SYSTEM V2 (STITCH)
   Paleta: Navy #1d283a + Gold #f59e0b
   Fonte: Inter | Mobile-First | Light Mode
   ============================================ */

/* ---------- TOKENS ---------- */
:root {
    --navy: #1d283a;
    --navy-light: #2a3a52;
    --navy-dark: #111827;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #22c55e;
    --danger: #ef4444;
    --info: #3b82f6;
    --warning: #f59e0b;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
    --sidebar-width: 260px;
    --header-height: 64px;
    --bottom-nav-height: 68px;
}

/* ---------- RESET + BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    line-height: 1.6;
}
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-height) + 16px); }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.animate-in { animation: fadeInUp 0.4s ease-out both; }
.animate-in:nth-child(2) { animation-delay: 0.05s; }
.animate-in:nth-child(3) { animation-delay: 0.1s; }
.animate-in:nth-child(4) { animation-delay: 0.15s; }
.animate-in:nth-child(5) { animation-delay: 0.2s; }
.animate-in:nth-child(6) { animation-delay: 0.25s; }

/* =============================================================
   HEADER / NAVBAR — Mobile-First
   ============================================================= */
.app-header {
    background: var(--navy);
    padding: 14px 20px 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
}
.app-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.app-header .brand img { height: 36px; width: auto; }
.app-header .brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-white);
    letter-spacing: -0.3px;
}
.app-header .brand-text span { color: var(--gold); }
.app-header .header-actions { display: flex; gap: 8px; align-items: center; }
.app-header .icon-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    transition: all var(--transition);
    font-size: 1.1rem;
    position: relative;
}
.app-header .icon-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.app-header .icon-btn .badge-dot {
    position: absolute; top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--navy);
}
/* Desktop nav links */
.app-header .desktop-nav {
    display: none;
    gap: 8px;
    align-items: center;
}
.app-header .desktop-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}
.app-header .desktop-nav a:hover,
.app-header .desktop-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.app-header .btn-header-cta {
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}
.app-header .btn-header-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

@media (min-width: 768px) {
    .app-header { padding: 0 32px; }
    .app-header .header-top { padding: 16px 0; }
    .app-header .desktop-nav { display: flex; }
    .app-header .mobile-only { display: none; }
}
@media (min-width: 1024px) {
    .app-header { padding: 0 48px; }
}

/* =============================================================
   HERO SEARCH
   ============================================================= */
.search-hero {
    background: var(--navy);
    padding: 0 20px 24px;
    border-radius: 0 0 24px 24px;
}
.search-type-selector {
    display: flex; gap: 4px;
    background: rgba(255,255,255,0.08);
    padding: 4px; border-radius: var(--radius-full);
    margin-bottom: 12px;
    width: fit-content;
}
.search-type-btn {
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 700;
    color: rgba(255,255,255,0.6);
    border: none; background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.search-type-btn.active { background: var(--gold); color: #fff; }
.search-type-btn:hover:not(.active) { background: rgba(255,255,255,0.12); color: #fff; }
.search-box {
    background: #fff;
    border-radius: var(--radius-full);
    display: flex; align-items: center;
    padding: 10px 14px 10px 18px;
    gap: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.search-box input {
    flex: 1; border: none; outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
}
.search-box input::placeholder { color: var(--text-light); }
.search-box .search-icon { color: var(--text-light); font-size: 1.05rem; }
.search-box .search-submit {
    background: var(--gold); border: none;
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff;
    transition: all var(--transition);
    flex-shrink: 0;
}
.search-box .search-submit:hover { background: var(--gold-dark); }

@media (min-width: 768px) {
    .search-hero { padding: 0 32px 32px; border-radius: 0 0 32px 32px; }
    .search-box { padding: 14px 18px 14px 24px; }
    .search-box input { font-size: 1rem; }
}

/* =============================================================
   SECTION HEADERS
   ============================================================= */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 28px 20px 14px;
}
.section-header h2 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.section-header a {
    font-size: 0.78rem; font-weight: 700;
    color: var(--gold); letter-spacing: 0.3px;
    text-transform: uppercase;
}
.section-header a:hover { color: var(--gold-dark); }

@media (min-width: 768px) {
    .section-header { padding: 36px 32px 18px; }
    .section-header h2 { font-size: 1.3rem; }
}

/* =============================================================
   CATEGORY GRID (CAROUSEL)
   ============================================================= */
.category-grid-slide {
    display: flex; flex-wrap: wrap; gap: 0;
    padding: 0 10px;
}
.category-item-slide {
    width: 25%;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 10px 5px;
    text-decoration: none; transition: transform var(--transition);
}
.category-item-slide:hover { transform: translateY(-3px); }
.category-item-slide .category-icon {
    width: 56px; height: 56px;
    background: #fff;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--gold);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
}
.category-item-slide:hover .category-icon {
    background: var(--gold); color: #fff; border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.category-item-slide .category-label {
    font-size: 0.72rem; font-weight: 700;
    text-align: center; color: var(--text-primary);
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Full page categories */
.category-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: #fff; padding: 24px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none; transition: all var(--transition);
    border: 1px solid var(--border-light);
}
.category-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.category-item .category-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--gold);
}

/* =============================================================
   COMPANY CARDS
   ============================================================= */
.companies-grid-slide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px; padding: 0 20px 20px;
}
@media (min-width: 768px) { .companies-grid-slide { grid-template-columns: repeat(2, 1fr); padding: 0 32px 20px; } }
@media (min-width: 1024px) { .companies-grid-slide { grid-template-columns: repeat(3, 1fr); } }

.company-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none; color: var(--text-primary);
    display: block;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}
.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.company-card .card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.company-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.company-card:hover .card-image img { transform: scale(1.05); }
.company-card .card-image-gradient {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.company-card .card-image-info { position: absolute; bottom: 14px; left: 16px; right: 16px; }
.company-card .card-image-info h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.company-card .card-image-info .category-tag { color: rgba(255,255,255,0.75); font-size: 0.78rem; }
.company-card .rating-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px; border-radius: var(--radius-full);
}
.company-card .card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px;
}
.company-card .card-meta { display: flex; flex-direction: column; gap: 4px; }
.company-card .card-location {
    font-size: 0.82rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 4px;
}
.company-card .card-location i { color: var(--gold); }
.company-card .card-arrow {
    width: 38px; height: 38px;
    background: var(--bg);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); font-size: 0.9rem;
    transition: all var(--transition);
}
.company-card:hover .card-arrow { background: var(--gold); color: #fff; }

/* Cards horizontais "Próximo a Você" */
.cards-scroll {
    display: flex; gap: 14px;
    overflow-x: auto; padding: 0 20px 8px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.cards-scroll::-webkit-scrollbar { display: none; }
.company-card-h {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-sm);
    min-width: 200px; text-decoration: none;
    color: var(--text-primary); flex-shrink: 0;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}
.company-card-h:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.company-card-h .card-img-h { height: 120px; overflow: hidden; }
.company-card-h .card-img-h img { width: 100%; height: 100%; object-fit: cover; }
.company-card-h .card-body-h { padding: 12px 14px; }
.company-card-h .card-body-h h4 {
    font-size: 0.88rem; font-weight: 700; margin: 0 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.company-card-h .card-body-h p { font-size: 0.75rem; color: var(--text-secondary); margin: 0; }

/* =============================================================
   PRODUCT CARDS (BUSCA)
   ============================================================= */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px; padding: 0 20px;
}
@media (min-width: 576px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .results-grid { grid-template-columns: repeat(4, 1fr); } }

.product-result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    text-decoration: none; color: var(--text-primary);
    display: flex; flex-direction: column; height: 100%;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}
.product-result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.product-result-image { aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.product-result-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-result-card:hover .product-result-image img { transform: scale(1.05); }
.product-price-tag {
    position: absolute; top: 12px; right: 12px;
    background: var(--gold); color: #fff;
    font-weight: 800; padding: 6px 14px;
    border-radius: var(--radius-full); font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.product-result-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-result-info h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.product-result-info p {
    font-size: 0.82rem; color: var(--text-secondary); margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-owner {
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
    color: var(--text-secondary); font-size: 0.75rem; font-weight: 600;
}
.product-owner i { color: var(--gold); }

/* =============================================================
   CTA BANNERS
   ============================================================= */
.cta-banner {
    margin: 20px 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 28px 24px;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(245,158,11,0.12);
}
.cta-banner::after {
    content: ''; position: absolute; bottom: -20px; right: 20px;
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(245,158,11,0.08);
}
.cta-badge {
    display: inline-block;
    background: var(--gold); color: #fff;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 1px;
    padding: 4px 12px; border-radius: var(--radius-sm);
    margin-bottom: 12px; text-transform: uppercase;
}
.cta-banner h3 {
    color: #fff; font-size: 1.15rem; font-weight: 800;
    margin: 0 0 18px; line-height: 1.3; max-width: 240px;
}
.btn-gold {
    background: var(--gold); color: #fff; border: none;
    padding: 11px 22px; border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 800;
    cursor: pointer; text-decoration: none; display: inline-block;
    transition: all var(--transition); letter-spacing: 0.5px;
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
.final-cta {
    margin: 20px 20px; text-align: center;
    background: var(--bg-card); border-radius: var(--radius-xl);
    padding: 32px 24px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.final-cta h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; }
.final-cta p { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 20px; }
.btn-gold-full {
    background: var(--gold); color: #fff; border: none;
    width: 100%; padding: 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 800;
    cursor: pointer; text-decoration: none; display: block;
    transition: all var(--transition);
    letter-spacing: 0.5px; text-transform: uppercase;
}
.btn-gold-full:hover { background: var(--gold-dark); color: #fff; }

/* =============================================================
   FILTER PILLS
   ============================================================= */
.filter-pills {
    display: flex; gap: 8px;
    overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 8px 16px; font-size: 0.8rem; font-weight: 600;
    color: #fff; cursor: pointer; white-space: nowrap;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}
.filter-pill:hover, .filter-pill.active { background: var(--gold); border-color: var(--gold); }
.filter-sidebar {
    background: #fff; border-radius: var(--radius-lg);
    padding: 20px; box-shadow: var(--shadow-sm);
    position: sticky; top: 20px;
    border: 1px solid var(--border-light);
}

/* =============================================================
   PAGE HERO (INTERNAS)
   ============================================================= */
.page-hero {
    background: var(--navy); padding: 40px 20px 60px;
    position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(245,158,11,0.08);
}
.page-hero h1 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }
.page-content {
    background: var(--bg-card); margin: -30px 16px 20px;
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    position: relative; z-index: 1;
}
@media (min-width: 768px) {
    .page-hero { padding: 60px 32px 80px; }
    .page-hero h1 { font-size: 2rem; }
    .page-content { margin: -40px auto 32px; max-width: 900px; padding: 36px 40px; }
}

/* =============================================================
   BOTTOM NAVIGATION (MOBILE)
   ============================================================= */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff;
    height: var(--bottom-nav-height);
    display: flex; justify-content: space-around; align-items: center;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
    z-index: 1000;
    border-top: 1px solid var(--border);
}
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; text-decoration: none;
    color: var(--text-light);
    padding: 6px 16px; border-radius: var(--radius-md);
    transition: all var(--transition);
    font-size: 0.65rem; font-weight: 600;
    min-width: 56px;
}
.nav-item i { font-size: 1.3rem; transition: all var(--transition); }
.nav-item.active { color: var(--gold); }
.nav-item.active i { font-size: 1.4rem; }
@media (min-width: 768px) { .bottom-nav { display: none; } body.has-bottom-nav { padding-bottom: 0; }  }

/* =============================================================
   CAROUSEL INDICATORS
   ============================================================= */
.carousel-indicators [data-bs-target] { transition: transform var(--transition); }
.carousel-indicators .active { transform: scale(1.3); }

/* =============================================================
   ADMIN LAYOUT — Sidebar + Content
   ============================================================= */
.admin-layout {
    display: flex; min-height: 100vh;
}
/* Admin Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--navy);
    color: #fff;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 1100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 20px 24px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar .sidebar-brand .brand-icon {
    width: 40px; height: 40px;
    background: var(--gold);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--navy-dark); font-weight: 800;
}
.admin-sidebar .sidebar-brand h4 {
    margin: 0; font-size: 1rem; font-weight: 800;
    letter-spacing: -0.3px;
}
.admin-sidebar .sidebar-brand .brand-sub {
    font-size: 0.65rem; color: rgba(255,255,255,0.4);
    font-weight: 500; text-transform: uppercase;
    letter-spacing: 1px;
}
.admin-sidebar .sidebar-nav {
    flex: 1; padding: 16px 12px;
    display: flex; flex-direction: column;
}
.admin-sidebar .nav-section-title {
    font-size: 0.65rem; font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 16px 14px 8px;
    margin: 0;
}
.admin-sidebar .sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem; font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    margin-bottom: 2px;
    position: relative;
}
.admin-sidebar .sidebar-link i { font-size: 1.15rem; width: 22px; text-align: center; }
.admin-sidebar .sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
}
.admin-sidebar .sidebar-link.active {
    background: rgba(245,158,11,0.15);
    color: var(--gold);
    font-weight: 600;
}
.admin-sidebar .sidebar-link.active::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 3px; background: var(--gold);
    border-radius: 0 3px 3px 0;
}
.admin-sidebar .sidebar-link .badge-count {
    margin-left: auto;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.65rem; font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 20px; text-align: center;
}
.admin-sidebar .sidebar-divider {
    border: none; border-top: 1px solid rgba(255,255,255,0.06);
    margin: 8px 14px;
}
.admin-sidebar .sidebar-footer {
    padding: 16px; border-top: 1px solid rgba(255,255,255,0.06);
}
.admin-sidebar .sidebar-footer .sidebar-link { color: rgba(239,68,68,0.8); }
.admin-sidebar .sidebar-footer .sidebar-link:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

/* Admin Main */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg);
}
.admin-topbar {
    background: #fff;
    padding: 16px 28px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.admin-topbar .breadcrumb-nav {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.88rem; color: var(--text-secondary);
}
.admin-topbar .breadcrumb-nav a { color: var(--text-secondary); }
.admin-topbar .breadcrumb-nav a:hover { color: var(--gold); }
.admin-topbar .breadcrumb-nav .separator { color: var(--text-light); }
.admin-topbar .breadcrumb-nav .current { color: var(--text-primary); font-weight: 600; }
.admin-topbar .topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-topbar .topbar-avatar {
    width: 38px; height: 38px;
    border-radius: var(--radius-full);
    background: var(--navy);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    cursor: pointer;
}
.admin-content { padding: 28px; }
/* Toggle sidebar mobile */
.sidebar-toggle {
    display: none;
    background: none; border: none;
    font-size: 1.4rem; color: var(--text-primary);
    cursor: pointer; padding: 8px;
}
@media (max-width: 767.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 16px; }
    .admin-topbar { padding: 12px 16px; }
    .sidebar-toggle { display: block; }
    .sidebar-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1050; display: none;
    }
    .sidebar-overlay.active { display: block; }
}

/* =============================================================
   OWNER PANEL LAYOUT
   ============================================================= */
.owner-header {
    background: var(--navy);
    color: #fff;
    padding: 28px 20px 56px;
    border-radius: 0 0 28px 28px;
    position: relative;
}
.owner-header h5 { font-weight: 700; margin-bottom: 2px; }
.owner-header p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* =============================================================
   ADMIN / OWNER SHARED COMPONENTS
   ============================================================= */

/* Stat Cards */
.stat-card-v2 {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.stat-card-v2:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card-v2 .stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.stat-card-v2 .stat-icon.primary { background: rgba(245,158,11,0.12); color: var(--gold); }
.stat-card-v2 .stat-icon.success { background: rgba(34,197,94,0.12); color: var(--success); }
.stat-card-v2 .stat-icon.info { background: rgba(59,130,246,0.12); color: var(--info); }
.stat-card-v2 .stat-icon.danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.stat-card-v2 .stat-value { font-size: 1.5rem; font-weight: 800; margin: 0; line-height: 1.2; }
.stat-card-v2 .stat-label { font-size: 0.78rem; color: var(--text-secondary); margin: 0; font-weight: 500; }

/* Modern Tables */
.table-modern {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.table-modern table { width: 100%; border-collapse: collapse; }
.table-modern thead th {
    background: var(--bg);
    padding: 14px 18px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.table-modern tbody td {
    padding: 14px 18px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.table-modern tbody tr:last-child td { border-bottom: none; }
.table-modern tbody tr { transition: background var(--transition); }
.table-modern tbody tr:hover { background: #fafbfc; }

/* Modern Forms */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.form-card .form-title {
    font-size: 1rem; font-weight: 700;
    margin: 0 0 20px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.form-modern .form-label {
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-modern .form-control,
.form-modern .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.88rem;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}
.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
    outline: none;
}

/* Buttons */
.btn-gm-primary {
    background: var(--gold); color: #fff; border: none;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-gm-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
.btn-gm-secondary {
    background: var(--navy); color: #fff; border: none;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-gm-secondary:hover { background: var(--navy-light); color: #fff; }
.btn-gm-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-gm-outline:hover { border-color: var(--navy); background: var(--bg); }
.btn-gm-danger {
    background: rgba(239,68,68,0.1); color: var(--danger);
    border: 1px solid rgba(239,68,68,0.2);
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-gm-danger:hover { background: var(--danger); color: #fff; }

/* Status badges */
.badge-gm {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-gm.success { background: rgba(34,197,94,0.12); color: #16a34a; }
.badge-gm.warning { background: rgba(245,158,11,0.12); color: #d97706; }
.badge-gm.danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-gm.info { background: rgba(59,130,246,0.12); color: var(--info); }
.badge-gm.neutral { background: var(--bg); color: var(--text-secondary); }

/* Page Action Bars */
.page-action-bar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    margin-bottom: 24px;
}
.page-action-bar .page-title {
    font-size: 1.3rem; font-weight: 800; margin: 0;
}
.page-action-bar .search-input {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px 9px 36px;
    font-size: 0.88rem; width: 100%; max-width: 300px;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}
.page-action-bar .search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); outline: none; }

/* =============================================================
   USER DASHBOARD / MINHA CONTA
   ============================================================= */
.user-profile-header {
    background: var(--navy);
    text-align: center;
    padding: 32px 20px 40px;
    border-radius: 0 0 28px 28px;
    color: #fff;
}
.user-profile-header .avatar-ring {
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 3px;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
}
.user-profile-header .avatar-ring img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.user-profile-header .avatar-ring .avatar-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--navy-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800;
    color: var(--gold);
}
.user-profile-header h3 { font-weight: 700; margin: 0 0 4px; font-size: 1.2rem; }
.user-profile-header .member-since {
    font-size: 0.72rem; font-weight: 700;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.user-stats-row {
    display: flex; justify-content: center; gap: 12px;
    margin-top: 16px;
}
.user-stat-badge {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    text-align: center; min-width: 80px;
    backdrop-filter: blur(8px);
}
.user-stat-badge .stat-num { font-size: 1.3rem; font-weight: 800; display: block; }
.user-stat-badge .stat-lbl { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; }

/* Menu list */
.settings-list {
    padding: 0 20px; margin-top: -20px; position: relative; z-index: 1;
}
.settings-list .section-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 20px 0 10px;
}
.settings-item {
    background: #fff;
    padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
}
.settings-item:first-of-type { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.settings-item:last-of-type { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.settings-item + .settings-item { border-top: none; }
.settings-item:hover { background: #fafbfc; }
.settings-item .item-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--gold);
    flex-shrink: 0;
}
.settings-item .item-text { flex: 1; font-weight: 600; font-size: 0.92rem; }
.settings-item .item-arrow { color: var(--text-light); font-size: 0.9rem; }
.settings-item .item-badge {
    background: var(--danger); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px; border-radius: var(--radius-full);
    min-width: 20px; text-align: center;
}

/* =============================================================
   VIEW SWITCHER
   ============================================================= */
.view-switcher {
    display: flex; gap: 8px;
    background: var(--bg); padding: 4px;
    border-radius: var(--radius-md);
}
.view-btn {
    border: none; background: none;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-light); cursor: pointer;
    transition: all var(--transition);
}
.view-btn.active { background: #fff; color: var(--gold); box-shadow: var(--shadow-sm); }

/* =============================================================
   EMPTY STATE
   ============================================================= */
.empty-state {
    text-align: center; padding: 48px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.empty-state i { font-size: 3rem; color: var(--text-light); margin-bottom: 16px; display: block; }
.empty-state h5 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.empty-state p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* =============================================================
   UTILITIES
   ============================================================= */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-secondary); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.bg-gold { background: var(--gold); }

/* =============================================================
   FOOTER
   ============================================================= */
.main-footer {
    background: var(--navy); color: #fff;
    padding: 60px 0 30px; margin-top: 50px;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.6; margin-top: 15px; }
.footer-title {
    color: #fff; font-size: 1.05rem; font-weight: 700;
    margin-bottom: 24px; position: relative;
}
.footer-title::after {
    content: ''; position: absolute; left: 0; bottom: -8px;
    width: 28px; height: 2px; background: var(--gold);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: all var(--transition); font-size: 0.9rem;
}
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.8; }
.footer-contact i { color: var(--gold); margin-right: 10px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all 0.3s; text-decoration: none;
}
.social-links a:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); }
.footer-divider { border-color: rgba(255,255,255,0.08); margin: 40px 0 20px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; }

@media (max-width: 767.98px) {
    .main-footer { padding: 40px 0 100px; text-align: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
}

/* =============================================================
   RESPONSIVE HELPERS
   ============================================================= */
@media (min-width: 768px) {
    .admin-content { padding: 32px; }
}
@media (min-width: 1024px) {
    .admin-content { padding: 32px 40px; }
}