body { background: #f6f7f9; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; flex-shrink: 0; background: #0a3d62; color: #fff; padding: 1.25rem 1rem; }
.sidebar .brand { font-weight: 700; font-size: 1.25rem; margin-bottom: .25rem; display: flex; align-items: center; gap: .6rem; }
.sidebar .greeting { font-size: .85rem; opacity: .8; margin-bottom: 1rem; }
.sidebar .nav-link { color: rgba(255,255,255,.85); border-radius: .375rem; padding: .4rem .6rem; }
.sidebar .nav-link.active, .sidebar .nav-link:hover { background: rgba(255,255,255,.15); color: #fff; }
.content { flex: 1; padding: 1.5rem 2rem; min-width: 0; }

.post-text { white-space: pre-wrap; line-height: 1.45; }
.post-editor { font-family: inherit; line-height: 1.45; }

.profile-item .item-actions { visibility: hidden; white-space: nowrap; }
.profile-item:hover .item-actions { visibility: visible; }
.item-actions .btn-link { text-decoration: none; }

@media (max-width: 768px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .content { padding: 1rem; }
    .profile-item .item-actions { visibility: visible; }
}

.visual-preview svg { width: 100%; height: auto; border-radius: .5rem; display: block; }
.visual-box { border: 1px dashed #c8d3de; border-radius: .5rem; padding: .75rem; background: #f8fafc; }
.slide-list { counter-reset: slide; padding-left: 0; list-style: none; }
.slide-list li { counter-increment: slide; padding: .15rem 0; }
.slide-list li::before { content: counter(slide) ". "; color: #0a3d62; font-weight: 600; }
.swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: .25rem; border: 1px solid rgba(0,0,0,.2); }
.identity-thumb { width: 72px; height: 72px; object-fit: contain; border: 1px solid #dee2e6; border-radius: .5rem; background: repeating-conic-gradient(#f1f3f5 0 25%, #fff 0 50%) 0 0 / 12px 12px; }

/* ---------- Área administrativa ---------- */
.kpi .kpi-value { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.kpi .kpi-label { font-size: .8rem; color: #6c757d; }
.kpi .kpi-sub { font-size: .8rem; color: #6c757d; }
.mini-chart-plot { display: flex; align-items: flex-end; gap: 2px; height: 96px; border-bottom: 1px solid #dee2e6; }
.mini-chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.mini-chart-col:hover .mini-chart-bar { background: #1e6091; }
.mini-chart-bar { width: 100%; background: #0a3d62; border-radius: 3px 3px 0 0; min-height: 2px; }
.mini-chart-bar.is-zero { background: #e9ecef; }
.mini-chart-axis { display: flex; justify-content: space-between; margin-top: .15rem; }
.admin-table th { white-space: nowrap; font-size: .8rem; }
.admin-table td { font-size: .875rem; vertical-align: middle; }
.admin-table th.sortable { cursor: pointer; user-select: none; }
.admin-table th.sortable:hover { text-decoration: underline; }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin: 1rem .6rem .25rem; }

/* ---------- Publicação no LinkedIn ---------- */
.publish-box { border: 1px solid #c8d3de; border-radius: .5rem; padding: .75rem; background: #f8fafc; }

/* ---------- Marca ---------- */
/* O fundo do ícone é azul como a barra lateral: um contorno claro destaca o desenho. */
.brand-logo { border-radius: 22%; box-shadow: 0 0 0 1px rgba(255,255,255,.35); flex-shrink: 0; }

/* ---------- Assinatura ---------- */
.plan-card { border: 1px solid #dee2e6; border-radius: .75rem; padding: 1rem; height: 100%; background: #fff; }
.plan-card.selected { border-color: #0a3d62; box-shadow: 0 0 0 2px rgba(10,61,98,.15); }
.plan-card.current { border-color: #198754; }
.plan-price { font-size: 1.6rem; font-weight: 700; color: #0a3d62; margin: .25rem 0; }
.plan-price small { font-size: .85rem; font-weight: 400; color: #6c757d; margin-left: .15rem; }
.nav-plan { font-size: .75rem; opacity: .8; margin: -.5rem 0 .75rem; }
.nav-plan a { color: #f6b93b; }

/* ---------- Tabela de preços (Plano e pagamento) ---------- */
.pricing { max-width: 920px; margin: 0 auto; }
.cycle-toggle { display: inline-flex; background: #e3e9ef; border-radius: 999px; padding: 4px; gap: 4px; }
.cycle-toggle button { border: 0; background: transparent; border-radius: 999px; padding: .4rem 1.1rem; font-weight: 600; font-size: .9rem; color: #14212e; display: inline-flex; align-items: center; gap: .4rem; }
.cycle-toggle button.active { background: #0a3d62; color: #fff; box-shadow: 0 2px 6px rgba(10,61,98,.25); }
.save-tag { background: #f6b93b; color: #1b1b1b; border-radius: 999px; font-size: .7rem; padding: .1rem .5rem; font-weight: 700; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; padding: 1.75rem 1.5rem 1.5rem; color: #fff;
    background: linear-gradient(160deg, #2b4a6b 0%, #14304f 100%); box-shadow: 0 12px 30px rgba(10,61,98,.18); }
.price-card.featured { background: linear-gradient(160deg, #1e6091 0%, #0a3d62 100%); box-shadow: 0 16px 40px rgba(10,61,98,.35); outline: 2px solid #f6b93b; }
.price-card.current { outline: 2px solid #3ddc84; }
.price-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #f6b93b; color: #1b1b1b; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; padding: .25rem .8rem; border-radius: 999px; white-space: nowrap; }
.price-name { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: #f6b93b; }
.price-desc { text-align: center; font-size: .85rem; opacity: .8; margin: .25rem 0 .75rem; }
.price-value { text-align: center; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.price-value small { font-size: .95rem; font-weight: 600; opacity: .85; margin-left: .2rem; }
.price-note { text-align: center; font-size: .75rem; opacity: .75; margin-top: .25rem; min-height: 1.1rem; }
.price-save { display: table; margin: .5rem auto 0; background: rgba(61,220,132,.18); color: #7ff0b0; border-radius: 999px; font-size: .78rem; font-weight: 700; padding: .2rem .7rem; }
.price-group { font-size: .78rem; font-weight: 700; margin: 1.1rem 0 .35rem; opacity: .9; }
.price-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.price-list li { position: relative; padding-left: 1.6rem; margin-bottom: .35rem; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.price-cta { margin-top: auto; padding-top: 1.5rem; text-align: center; }
.price-btn { width: 100%; padding: .7rem 1rem; font-weight: 700; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.price-btn:hover:not(:disabled) { background: rgba(255,255,255,.1); color: #fff; }
.price-card.featured .price-btn { background: #f6b93b; border-color: #f6b93b; color: #1b1b1b; }
.price-card.featured .price-btn:hover:not(:disabled) { background: #f8c65e; color: #1b1b1b; }
.price-btn:disabled { opacity: .7; color: #fff; }
.price-foot { font-size: .72rem; font-weight: 700; color: #f6b93b; text-transform: uppercase; letter-spacing: .05em; margin-top: .5rem; }

.checkout-card { max-width: 920px; margin-left: auto; margin-right: auto; scroll-margin-top: 1rem; }
.method-tile { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid #dee2e6; border-radius: .6rem; padding: .75rem; cursor: pointer; height: 100%; }
.method-tile.active { border-color: #0a3d62; box-shadow: 0 0 0 2px rgba(10,61,98,.15); background: #f6f9fc; }
.method-tile .form-check-input { margin-top: .2rem; flex-shrink: 0; }

/* O Blazor foca o <h1> ao navegar (FocusOnNavigate); sem moldura visível. */
h1:focus, h1:focus-visible { outline: none; }

/* Links legais no rodapé da barra lateral */
.nav-legal { font-size: .72rem; opacity: .65; margin-top: .75rem; text-align: center; }
.nav-legal a { color: #fff; }
