/* ═══════════════════════════════════════════
   SBC Exchange — CSS Global
   Paleta: #0d1b4b (navy), #c8a84b (gold), #f4f7fc (bg), #fff
════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f4f7fc; color: #222; line-height: 1.6; }
a { color: #0d1b4b; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Container ───────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header ──────────────────────────────── */
.site-header { background: #0d1b4b; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; min-height: 68px; gap: 20px; }

.logo img { height: 68px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a { color: #e8e8e8; padding: 6px 12px; border-radius: 6px; font-size: 14px; transition: all .2s; white-space: nowrap; }
.main-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.main-nav .nav-admin { color: #c8a84b; }

.btn-nav { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff !important; padding: 7px 16px !important; border-radius: 6px; }
.btn-nav:hover { background: rgba(255,255,255,.15) !important; }
.btn-gold { background: #c8a84b !important; border-color: #c8a84b !important; color: #0d1b4b !important; font-weight: 700; }
.btn-gold:hover { background: #d9b95c !important; }

.nav-user { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-nome { color: #c8a84b; font-size: 13px; font-weight: 600; }
.saldo-bc { background: rgba(200,168,75,.15); color: #c8a84b; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(200,168,75,.3); }
.btn-logout { color: #aaa !important; font-size: 13px !important; padding: 4px 8px !important; }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ── Main ────────────────────────────────── */
.site-main { min-height: calc(100vh - 68px - 200px); }

/* ── Footer ──────────────────────────────── */
.site-footer { background: #0d1b4b; color: #aaa; margin-top: 60px; padding: 50px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 0 20px 40px; }
.footer-logo img { height: 40px; margin-bottom: 12px; }
.footer-logo p { font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { color: #c8a84b; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.footer-links a { color: #aaa; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 20px; text-align: center; font-size: 12px; }

/* ── Hero / Page Banner ───────────────────── */
.page-hero { background: linear-gradient(135deg, #0d1b4b 0%, #162660 100%); color: #fff; padding: 60px 20px; text-align: center; }
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { font-size: 1.1rem; color: #c8a84b; }

/* ── Cards de Oferta ─────────────────────── */
.vitrine-filtros { background: #fff; border-bottom: 1px solid #e0e6f0; padding: 18px 0; }
.filtros-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filtros-inner input[type=text], .filtros-inner select {
    border: 1px solid #c8d0de; border-radius: 6px; padding: 9px 14px;
    font-size: 14px; outline: none; transition: border .2s;
}
.filtros-inner input[type=text]:focus, .filtros-inner select:focus { border-color: #0d1b4b; }
.filtros-inner input[type=text] { flex: 1; min-width: 200px; }

.vitrine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 36px 0; }

.card-oferta {
    background: #fff; border-radius: 12px; border: 1px solid #e0e6f0;
    overflow: hidden; transition: box-shadow .2s, transform .2s;
    display: flex; flex-direction: column;
}
.card-oferta:hover { box-shadow: 0 8px 32px rgba(13,27,75,.12); transform: translateY(-2px); }

.card-img { height: 180px; background: linear-gradient(135deg, #0d1b4b, #1e3a8a); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.card-img-placeholder span { font-size: 48px; opacity: .4; }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-empresa { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.card-titulo { font-size: 16px; font-weight: 700; color: #0d1b4b; line-height: 1.4; }
.card-desc { font-size: 13px; color: #555; line-height: 1.5; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid #f0f3f8; background: #fafbfd; }
.card-valor { font-size: 15px; font-weight: 700; color: #c8a84b; }
.card-qty { font-size: 12px; color: #888; }

/* ── Botões ──────────────────────────────── */
.btn { display: inline-block; padding: 10px 22px; border-radius: 7px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; text-align: center; }
.btn-primary { background: #0d1b4b; color: #fff; }
.btn-primary:hover { background: #162660; color: #fff; text-decoration: none; }
.btn-gold { background: #c8a84b; color: #0d1b4b; }
.btn-gold:hover { background: #d9b95c; color: #0d1b4b; text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid #0d1b4b; color: #0d1b4b; }
.btn-outline:hover { background: #0d1b4b; color: #fff; text-decoration: none; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* ── Formulários ─────────────────────────── */
.form-wrap { max-width: 700px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(13,27,75,.08); padding: 36px; }
.form-wrap h2 { color: #0d1b4b; margin-bottom: 24px; font-size: 1.5rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; border: 1px solid #c8d0de; border-radius: 7px;
    padding: 10px 14px; font-size: 14px; font-family: inherit;
    outline: none; transition: border .2s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #0d1b4b; box-shadow: 0 0 0 3px rgba(13,27,75,.08); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: #888; margin-top: 4px; }
.form-divider { border: none; border-top: 1px solid #eee; margin: 28px 0; }

/* ── Alertas ─────────────────────────────── */
.alert { padding: 13px 18px; border-radius: 7px; margin-bottom: 20px; font-size: 14px; }
.alert-ok  { background: #d4edda; color: #1a5c2a; border: 1px solid #b2d8b8; }
.alert-erro { background: #fde8e8; color: #7a1f1f; border: 1px solid #f5c0c0; }
.alert-info { background: #e8f0fe; color: #1a3a7a; border: 1px solid #b8cdf8; }

/* ── Badges ──────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pendente  { background: #fff3cd; color: #7a5700; }
.badge-ativo     { background: #d4edda; color: #1a5c2a; }
.badge-pausado   { background: #e2e8f0; color: #4a5568; }
.badge-encerrado { background: #fde8e8; color: #7a1f1f; }

/* ── Página de Oferta Individual ─────────── */
.oferta-wrap { max-width: 900px; margin: 0 auto; padding: 36px 20px; }
.oferta-header { display: grid; grid-template-columns: 1fr 280px; gap: 36px; margin-bottom: 36px; }
.oferta-img { border-radius: 12px; overflow: hidden; height: 280px; background: linear-gradient(135deg,#0d1b4b,#1e3a8a); }
.oferta-img img { width: 100%; height: 100%; object-fit: cover; }
.oferta-sidebar { display: flex; flex-direction: column; gap: 16px; }
.oferta-valor-box { background: #0d1b4b; color: #fff; border-radius: 12px; padding: 24px; text-align: center; }
.oferta-valor-box .valor { font-size: 2rem; font-weight: 800; color: #c8a84b; }
.oferta-valor-box .val-label { font-size: 12px; color: #aaa; margin-bottom: 6px; }

.oferta-section { margin-bottom: 28px; }
.oferta-section h3 { color: #0d1b4b; font-size: 16px; border-bottom: 2px solid #c8a84b; padding-bottom: 6px; margin-bottom: 14px; }
.oferta-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.meta-item { background: #f8f9fb; border-radius: 8px; padding: 12px 16px; }
.meta-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.meta-value { font-size: 14px; color: #222; font-weight: 600; margin-top: 3px; }

/* ── Minha Área / Dashboard ───────────────── */
.dashboard { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 36px 20px; max-width: 1200px; margin: 0 auto; }
.dash-sidebar { display: flex; flex-direction: column; gap: 6px; }
.dash-nav-item { display: block; padding: 10px 16px; border-radius: 8px; font-size: 14px; color: #444; transition: all .2s; }
.dash-nav-item:hover, .dash-nav-item.active { background: #0d1b4b; color: #fff; text-decoration: none; }
.dash-saldo { background: linear-gradient(135deg, #0d1b4b, #1e3a8a); color: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px; text-align: center; }
.dash-saldo .saldo-val { font-size: 1.8rem; font-weight: 800; color: #c8a84b; }
.dash-saldo .saldo-txt { font-size: 12px; color: #aaa; }

.dash-content {}
.dash-section { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 24px; border: 1px solid #e0e6f0; }
.dash-section h2 { color: #0d1b4b; font-size: 18px; margin-bottom: 20px; }

/* ── Tabelas ─────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: #0d1b4b; color: #fff; padding: 11px 14px; text-align: left; font-size: 13px; }
td { padding: 10px 14px; border-bottom: 1px solid #eee; vertical-align: middle; }
tr:hover td { background: #f8f9fb; }

/* ── Admin ───────────────────────────────── */
.admin-wrap { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 68px); }
.admin-sidebar { background: #0d1b4b; padding: 24px 0; }
.admin-sidebar a { display: block; color: #aaa; padding: 11px 24px; font-size: 14px; transition: all .2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.admin-sidebar .admin-logo { padding: 0 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.admin-sidebar .admin-logo img { height: 36px; }
.admin-main { padding: 32px; background: #f4f7fc; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-header h1 { color: #0d1b4b; font-size: 1.4rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: 10px; padding: 22px; border: 1px solid #e0e6f0; }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: #0d1b4b; }
.stat-card .stat-label { font-size: 12px; color: #888; margin-top: 4px; }
.stat-card.gold .stat-num { color: #c8a84b; }

/* ── Login / Cadastro ────────────────────── */
.auth-page { min-height: 100vh; background: #0d1b4b; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-box { background: #fff; border-radius: 14px; padding: 44px 40px; max-width: 440px; width: 100%; box-shadow: 0 12px 48px rgba(0,0,0,.35); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 60px; margin: 0 auto 12px; }
.auth-logo h2 { color: #0d1b4b; font-size: 1.3rem; }
.auth-logo p { color: #888; font-size: 13px; }
.auth-box .form-group input { font-size: 15px; padding: 12px 14px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: #666; }
.auth-footer a { color: #0d1b4b; font-weight: 600; }
.auth-member-link { text-align: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.auth-member-link a { color: #c8a84b; font-size: 13px; font-weight: 600; }

/* ── Destaque por plano nos cards ─────────────────────
   Brilho do hover na cor do selo. Hierarquia: ELITE > BUSINESS > PRO.
   Seletor com classe dupla (.vcard.vcard--x) de propósito: eleva a
   especificidade acima do `.vcard:hover` genérico declarado inline
   na vitrine, que vem depois deste arquivo no HTML.
   ──────────────────────────────────────────────────── */
.vcard.vcard--pro:hover {
    border-color: #8e44ad;
    box-shadow: 0 8px 30px rgba(142, 68, 173, .30);
}
.vcard.vcard--business:hover {
    border-color: #2980b9;
    box-shadow: 0 10px 34px rgba(41, 128, 185, .34);
}
.vcard.vcard--elite:hover {
    border-color: #c8a84b;
    box-shadow: 0 14px 42px rgba(200, 168, 75, .50);
    transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
    .vcard.vcard--elite:hover { transform: none; }
}

/* ── Paginação ───────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 24px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; font-size: 14px; border: 1px solid #dde3ee; background: #fff; color: #0d1b4b; }
.pagination a:hover { background: #0d1b4b; color: #fff; border-color: #0d1b4b; text-decoration: none; }
.pagination .current { background: #0d1b4b; color: #fff; border-color: #0d1b4b; }

/* ── Utilitários ─────────────────────────── */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-36 { margin-top: 36px; }
.mb-20 { margin-bottom: 20px; }
.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { color: #444; margin-bottom: 8px; }
.secao-titulo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.secao-titulo h2 { color: #0d1b4b; font-size: 1.3rem; }

/* ── Responsivo ──────────────────────────── */
@media (max-width: 768px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #0d1b4b; padding: 16px; gap: 4px; z-index: 99; }
    .main-nav.open { display: flex; }
    .menu-toggle { display: block; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .oferta-header { grid-template-columns: 1fr; }
    .dashboard { grid-template-columns: 1fr; }
    .admin-wrap { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.6rem; }
    .vitrine-grid { grid-template-columns: 1fr; }
    .auth-box { padding: 32px 24px; }
}
