/* ==========================================================================
   Mídia Server — tema da área do cliente (filho do Twenty-One)
   Mesmo visual do site: escuro no topo/rodapé, conteúdo claro e limpo,
   gradiente azul → roxo, amarelo de destaque, Plus Jakarta Sans.
   ========================================================================== */

:root {
    --ms-bg: #060913;
    --ms-bg-2: #0a1022;
    --ms-bg-3: #0e1630;
    --ms-line-d: rgba(148, 163, 209, .16);
    --ms-text-d: #e9edf8;
    --ms-muted-d: #98a3c0;

    --ms-page: #f3f5fb;
    --ms-card: #ffffff;
    --ms-line: #e3e7f1;
    --ms-line-2: #d3d9e8;
    --ms-text: #0f172a;
    --ms-muted: #64748b;

    --ms-blue: #1f7ae0;
    --ms-indigo: #5b4ff0;
    --ms-violet: #7c3aed;
    --ms-primary: #5b4ff0;
    --ms-primary-2: #4b3fe0;
    --ms-yellow: #facc15;
    --ms-green: #16a34a;
    --ms-red: #dc2626;
    --ms-orange: #ea8a0c;
    --ms-grad: linear-gradient(135deg, #1f7ae0 0%, #5b4ff0 55%, #7c3aed 100%);

    --ms-radius: 16px;
    --ms-radius-sm: 10px;
    --ms-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --ms-shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .35);
}

/* ---------- Base ---------- */
html { font-size: 15px; }
body.ms-theme {
    background: var(--ms-page);
    color: var(--ms-text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.ms-theme h1, .ms-theme h2, .ms-theme h3, .ms-theme h4, .ms-theme h5, .ms-theme h6,
.ms-theme .h1, .ms-theme .h2, .ms-theme .h3, .ms-theme .h4, .ms-theme .h5, .ms-theme .h6 {
    font-family: inherit; font-weight: 800; letter-spacing: -.02em; color: var(--ms-text);
}
.ms-theme a { color: var(--ms-primary); }
.ms-theme a:hover { color: var(--ms-primary-2); }
.ms-theme .text-muted { color: var(--ms-muted) !important; }
.ms-grad { background: var(--ms-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ms-primary);
}

/* ---------- Cabeçalho ---------- */
.ms-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(6, 9, 19, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--ms-line-d);
}
.ms-header-bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.ms-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; flex: none; }
.ms-brand-icon, .ms-brand img { width: 44px; height: 44px; }
.ms-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.ms-brand-text strong { color: #fff; font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; }
.ms-brand-text strong b { background: var(--ms-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-brand-text small { color: var(--ms-muted-d); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

.ms-nav { flex: 1; }
@media (min-width: 1200px) {
    .ms-nav.collapse { display: flex !important; align-items: center; }
}
.ms-nav .navbar-nav { flex-direction: row; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ms-nav-secondary { margin-left: auto !important; }
.ms-nav .navbar-nav > li > a {
    display: flex; align-items: center; gap: 6px;
    color: #cdd4ea !important; font-weight: 600; font-size: .93rem;
    padding: 9px 12px !important; border-radius: 10px; text-decoration: none; white-space: nowrap;
}
.ms-nav .navbar-nav > li > a:hover, .ms-nav .navbar-nav > li.show > a { color: #fff !important; background: rgba(255, 255, 255, .07); }
.ms-nav .navbar-nav > li.active > a { color: #fff !important; }
.ms-nav .dropdown-toggle::after { border: 0; content: "\f107"; font-family: "Font Awesome 6 Pro"; font-weight: 400; vertical-align: 0; margin-left: 4px; font-size: .8em; }
.ms-nav .badge { background: var(--ms-yellow); color: #111; }

.ms-theme .dropdown-menu {
    border: 1px solid var(--ms-line); border-radius: 14px; box-shadow: var(--ms-shadow-lg);
    padding: 8px; min-width: 230px; margin-top: 8px; font-size: .92rem;
}
.ms-theme .dropdown-menu li.dropdown-item { padding: 0; background: none; }
.ms-theme .dropdown-menu .dropdown-item {
    border-radius: 9px; padding: 9px 12px !important; color: var(--ms-text); font-weight: 500;
}
.ms-theme .dropdown-menu .dropdown-item:hover, .ms-theme .dropdown-menu .dropdown-item:focus { background: #f1f0fe; color: var(--ms-primary-2); }
.ms-theme .dropdown-menu .dropdown-item i { color: var(--ms-primary); width: 18px; }
.ms-theme .dropdown-divider { margin: 6px 4px; border-color: var(--ms-line); }

.ms-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ms-nav + .ms-tools { margin-left: 0; }
.ms-tool {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--ms-line-d);
    background: rgba(255, 255, 255, .04); color: #dbe2f5 !important; font-size: 1.05rem; text-decoration: none !important;
    transition: background .2s, border-color .2s;
}
.ms-tool:hover { background: rgba(255, 255, 255, .1); border-color: rgba(124, 58, 237, .6); color: #fff !important; }
.ms-tool:focus { outline: none; box-shadow: 0 0 0 3px rgba(91, 79, 240, .45); }
.ms-dot {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--ms-yellow); color: #111; font-size: .7rem; font-weight: 800; display: grid; place-items: center;
    border: 2px solid var(--ms-bg);
}
.ms-dot-vazio { display: none; }
.ms-btn-entrar {
    align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: .92rem;
    background: var(--ms-grad); color: #fff !important; text-decoration: none !important;
    box-shadow: 0 10px 24px -10px rgba(91, 79, 240, .8);
}
.ms-btn-entrar:hover { filter: brightness(1.1); }
.ms-menu-toggle { display: inline-flex; }
@media (min-width: 1200px) { .ms-menu-toggle { display: none; } }

@media (max-width: 1199.98px) {
    .ms-header-bar { flex-wrap: wrap; }
    .ms-nav { order: 3; flex-basis: 100%; }
    .ms-nav.show, .ms-nav.collapsing { padding: 6px 0 14px; }
    .ms-nav .navbar-nav { flex-direction: column; align-items: stretch; }
    .ms-nav-secondary { margin-left: 0 !important; border-top: 1px solid var(--ms-line-d); margin-top: 6px !important; padding-top: 6px !important; }
    .ms-nav .dropdown-menu { position: static !important; transform: none !important; background: var(--ms-bg-2); border-color: var(--ms-line-d); box-shadow: none; }
    .ms-nav .dropdown-menu .dropdown-item { color: #cdd4ea; }
    .ms-nav .dropdown-menu .dropdown-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
}
@media (max-width: 575.98px) {
    .ms-brand-text small { display: none; }
    .ms-brand-icon { width: 38px; height: 38px; }
    .ms-header-bar { gap: 10px; min-height: 64px; }
}

.ms-admin-bar { background: var(--ms-yellow); color: #111; font-size: .85rem; font-weight: 600; padding: 6px 0; }
.ms-admin-bar a { color: #111 !important; text-decoration: underline; margin-left: 8px; }

/* notificações (popover) */
.popover { border-radius: 14px; border-color: var(--ms-line); box-shadow: var(--ms-shadow-lg); font-family: inherit; }
.popover .client-alerts li a { border-radius: 10px; }

/* ---------- Faixa de título das páginas ---------- */
.ms-page-head {
    position: relative; overflow: hidden;
    background: radial-gradient(900px 300px at 85% -40%, rgba(124, 58, 237, .45), transparent 60%),
                radial-gradient(700px 260px at 0% 0%, rgba(31, 122, 224, .35), transparent 60%),
                var(--ms-bg);
    color: var(--ms-text-d); padding: 34px 0 30px;
}
.ms-page-head h1 { color: #fff !important; font-size: 1.9rem; margin: 0 0 6px; }
.ms-page-head p { color: var(--ms-muted-d); margin: 0 0 10px; max-width: 720px; }
.ms-page-head .breadcrumb { background: none; padding: 0; margin: 8px 0 0; font-size: .85rem; }
.ms-page-head .breadcrumb-item, .ms-page-head .breadcrumb-item a { color: var(--ms-muted-d); }
.ms-page-head .breadcrumb-item a:hover { color: #fff; }
.ms-page-head .breadcrumb-item.active { color: #c9d1ee; }
.ms-page-head .breadcrumb-item + .breadcrumb-item::before { color: #56608a; content: "›"; }

/* ---------- Hero da página inicial ---------- */
.ms-hero {
    position: relative; overflow: hidden; color: var(--ms-text-d); padding: 64px 0 72px;
    background: radial-gradient(900px 500px at 90% 10%, rgba(124, 58, 237, .35), transparent 60%),
                radial-gradient(700px 420px at -10% -10%, rgba(31, 122, 224, .35), transparent 60%),
                var(--ms-bg);
}
.ms-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.ms-hero .container { position: relative; z-index: 1; }
.ms-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
@media (max-width: 991.98px) { .ms-hero-grid { grid-template-columns: 1fr; } .ms-hero { padding: 44px 0 52px; } }
.ms-hero .ms-eyebrow { color: #a5b4fc; }
.ms-hero h1 { color: #fff !important; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 14px 0 16px; }
.ms-hero p { color: #c3cae3; font-size: 1.1rem; max-width: 560px; }
.ms-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.ms-hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: #aab3d6; font-size: .9rem; font-weight: 600; }
.ms-hero-trust i { color: var(--ms-yellow); margin-right: 6px; }
.btn-ms-ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.btn-ms-ghost:hover { background: rgba(255, 255, 255, .12); }

.ms-hero-card {
    border-radius: 22px; padding: 24px; color: #fff;
    background: linear-gradient(160deg, rgba(20, 28, 60, .95), rgba(12, 16, 36, .95));
    border: 1px solid rgba(124, 58, 237, .45); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
}
.ms-hero-card strong { display: block; font-size: 1.35rem; margin-top: 14px; }
.ms-hero-card > small { color: var(--ms-muted-d); }
.ms-live { display: inline-flex; align-items: center; gap: 8px; background: #ef4444; font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .08em; }
.ms-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ms-pulse 1.4s infinite; }
@keyframes ms-pulse { 50% { opacity: .3; } }
.ms-bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin: 18px 0; }
.ms-bars span { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(0deg, #1f7ae0, #7c3aed); transform-origin: bottom; animation: ms-eq 1.3s ease-in-out infinite; }
.ms-bars span:nth-child(2n) { animation-duration: 1.1s; animation-delay: -.4s; }
.ms-bars span:nth-child(3n) { animation-duration: 1.6s; animation-delay: -.9s; }
.ms-bars span:nth-child(5n) { animation-duration: .9s; animation-delay: -.2s; }
.ms-bars span:nth-child(7n) { animation-delay: -1.1s; }
@keyframes ms-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .ms-bars span, .ms-live i { animation: none; transform: scaleY(.6); } }
.ms-hero-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-hero-feats div { border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-weight: 700; font-size: .92rem; }
.ms-hero-feats small { display: block; color: var(--ms-muted-d); font-weight: 600; font-size: .75rem; }

/* ---------- Corpo ---------- */
#main-body { padding: 32px 0 56px; background: transparent; }
.tpl-homepage #main-body { padding-top: 16px; }
.ms-section-head { text-align: center; margin: 36px 0 22px; }
.ms-section-head h2 { font-size: 1.75rem; margin: 6px 0 0; }

.ms-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ms-group {
    display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--ms-radius);
    background: var(--ms-card); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow);
    color: var(--ms-text) !important; text-decoration: none !important; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ms-group:hover { transform: translateY(-3px); border-color: rgba(91, 79, 240, .5); box-shadow: var(--ms-shadow-lg); }
.ms-group-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ms-grad); color: #fff; font-size: 1.2rem; box-shadow: 0 10px 22px -10px rgba(91, 79, 240, .8); }
.ms-group strong { font-size: 1.1rem; margin-top: 6px; }
.ms-group p { color: var(--ms-muted); margin: 0; font-size: .93rem; flex: 1; }
.ms-group-link { color: var(--ms-primary); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.ms-group:hover .ms-group-link i { transform: translateX(3px); }
.ms-group-link i { transition: transform .2s; margin-left: 4px; }

.ms-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.ms-quick-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border-radius: var(--ms-radius);
    background: var(--ms-card); border: 1px solid var(--ms-line); color: var(--ms-text) !important; text-decoration: none !important;
    transition: border-color .2s, transform .2s;
}
.ms-quick-item:hover { border-color: rgba(91, 79, 240, .5); transform: translateY(-2px); }
.ms-quick-item i { font-size: 1.4rem; color: var(--ms-primary); margin-bottom: 8px; }
.ms-quick-item strong { font-size: .98rem; }
.ms-quick-item small { color: var(--ms-muted); }
.ms-quick-whats i { color: #16a34a; }

/* ---------- Cards / painéis ---------- */
.ms-theme .card {
    border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); background: var(--ms-card);
}
.ms-theme .card-header {
    background: transparent; border-bottom: 1px solid var(--ms-line); padding: 16px 20px;
    border-top-left-radius: var(--ms-radius) !important; border-top-right-radius: var(--ms-radius) !important;
}
.ms-theme .card-header .card-title, .ms-theme .card-title { font-size: 1rem; font-weight: 800; }
.ms-theme .card-body { padding: 20px; }
.ms-theme .card-footer { background: #fafbfe; border-top: 1px solid var(--ms-line); border-bottom-left-radius: var(--ms-radius) !important; border-bottom-right-radius: var(--ms-radius) !important; }
.ms-theme .card-header .card-title i { color: var(--ms-primary); }

/* Painéis da página inicial logada (serviços, faturas, chamados...) */
.ms-theme .client-home-cards .card-header .btn, .ms-theme .client-home-cards .card-header .bootstrap-switch { border-radius: 9px; }
.ms-theme .client-home-cards .card-accent-blue,
.ms-theme .client-home-cards .card-accent-green,
.ms-theme .client-home-cards .card-accent-red,
.ms-theme .client-home-cards .card-accent-gold,
.ms-theme .client-home-cards .card-accent-midnight-blue,
.ms-theme .client-home-cards .card-accent-teal,
.ms-theme .client-home-cards .card-accent-emerald,
.ms-theme .client-home-cards .card-accent-asbestos,
.ms-theme .client-home-cards .card-accent-pomegranate,
.ms-theme .client-home-cards .card-accent-sun-flower { border-top: 1px solid var(--ms-line); }
.ms-theme .client-home-cards .list-group-item { border-color: var(--ms-line); padding: 12px 20px; }

/* Blocos de números (tiles) do painel */
.ms-theme .tiles { border-radius: var(--ms-radius); overflow: visible; box-shadow: none; background: transparent; }
.ms-theme .tiles .row { margin: 0 -8px; }
.ms-theme .tiles .row > div { padding: 0 8px 16px; }
.ms-theme .tile {
    display: block; position: relative; height: 100%; padding: 20px 22px; border-radius: var(--ms-radius);
    background: var(--ms-card); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow); text-decoration: none !important;
    transition: transform .2s, border-color .2s;
}
.ms-theme .tile:hover { transform: translateY(-2px); border-color: rgba(91, 79, 240, .45); background: var(--ms-card); }
.ms-theme .tile i {
    position: absolute; right: 20px; top: 20px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.05rem; color: #fff; background: var(--ms-grad); opacity: 1;
}
.ms-theme .tile .stat { font-size: 2.1rem; font-weight: 800; color: var(--ms-text); line-height: 1.1; margin-top: 2px; }
.ms-theme .tile .title { color: var(--ms-muted); font-weight: 600; font-size: .9rem; text-transform: none; }
.ms-theme .tile .highlight { display: none; }
.ms-theme .tiles .col-6:nth-child(2) .tile i { background: linear-gradient(135deg, #10b981, #059669); }
.ms-theme .tiles .col-6:nth-child(3) .tile i { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.ms-theme .tiles .col-6:nth-child(4) .tile i { background: linear-gradient(135deg, #facc15, #f59e0b); color: #1f1300; }

/* ---------- Menu lateral ---------- */
.ms-theme .sidebar .card-sidebar { overflow: hidden; }
.ms-theme .card-sidebar .card-header { padding: 14px 18px; }
.ms-theme .card-sidebar .card-title { font-size: .92rem !important; }
.ms-theme .card-sidebar .card-minimise { color: var(--ms-muted); font-size: .8rem; margin-top: 4px; }
.ms-theme .card-sidebar .list-group-item {
    border: 0; padding: 10px 18px; font-size: .92rem; color: #334155; font-weight: 500; background: transparent;
    border-left: 3px solid transparent;
}
.ms-theme .card-sidebar .list-group-item:hover { background: #f5f4ff; color: var(--ms-primary-2); }
.ms-theme .card-sidebar .list-group-item.active {
    background: #efedff; color: var(--ms-primary-2); font-weight: 700; border-left-color: var(--ms-primary);
}
.ms-theme .card-sidebar .list-group-item.active .badge { background: var(--ms-primary); color: #fff; }
.ms-theme .card-sidebar .sidebar-menu-item-icon { color: var(--ms-primary); opacity: .85; }
.ms-theme .card-sidebar .badge { background: #eef0f7; color: #334155; border-radius: 999px; font-weight: 700; }

/* ---------- Botões ---------- */
.ms-theme .btn { border-radius: var(--ms-radius-sm); font-weight: 700; padding: .5rem 1rem; transition: filter .2s, background .2s, box-shadow .2s; }
.ms-theme .btn-lg { padding: .78rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.ms-theme .btn-sm { padding: .3rem .7rem; font-size: .82rem; border-radius: 8px; }
.ms-theme .btn-primary, .ms-theme .btn-success.btn-checkout, .ms-theme #btnCompleteOrder {
    background: var(--ms-grad); border: 0; color: #fff; box-shadow: 0 10px 22px -12px rgba(91, 79, 240, .9);
}
.ms-theme .btn-primary:hover, .ms-theme .btn-primary:focus, .ms-theme .btn-primary:active,
.ms-theme .btn-primary:not(:disabled):not(.disabled):active { background: var(--ms-grad); filter: brightness(1.1); color: #fff; box-shadow: 0 0 0 3px rgba(91, 79, 240, .3); }
.ms-theme .btn-default, .ms-theme .btn-secondary, .ms-theme .btn-light {
    background: #fff; border: 1px solid var(--ms-line-2); color: #1e293b;
}
.ms-theme .btn-default:hover, .ms-theme .btn-secondary:hover, .ms-theme .btn-light:hover { background: #f5f6fb; border-color: #c3cadf; color: #0f172a; }
.ms-theme .btn-outline-primary { color: var(--ms-primary); border-color: var(--ms-primary); }
.ms-theme .btn-outline-primary:hover { background: var(--ms-primary); color: #fff; }
.ms-theme .btn-success { background: var(--ms-green); border-color: var(--ms-green); }
.ms-theme .btn-danger { background: var(--ms-red); border-color: var(--ms-red); }
.ms-theme .btn-info { background: var(--ms-blue); border-color: var(--ms-blue); }
.ms-theme .btn-link { color: var(--ms-primary); }

/* ---------- Formulários ---------- */
.ms-theme .form-control, .ms-theme .custom-select, .ms-theme select.form-control {
    border: 1px solid var(--ms-line-2); border-radius: var(--ms-radius-sm); min-height: 44px; color: var(--ms-text);
    font-size: .95rem; box-shadow: none; background-color: #fff;
}
.ms-theme textarea.form-control { min-height: 120px; }
.ms-theme .form-control:focus, .ms-theme .custom-select:focus {
    border-color: var(--ms-primary); box-shadow: 0 0 0 3px rgba(91, 79, 240, .18);
}
.ms-theme label, .ms-theme .form-control-label { font-weight: 600; font-size: .9rem; color: #1e293b; }
.ms-theme .input-group-text { background: #f6f7fb; border-color: var(--ms-line-2); color: var(--ms-muted); border-radius: var(--ms-radius-sm); }
.ms-theme .input-group > .form-control:not(:first-child), .ms-theme .input-group > .input-group-append > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ms-theme .input-group > .form-control:not(:last-child), .ms-theme .input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ms-theme .input-group-merge .input-group-append .btn { height: 100%; border-color: var(--ms-line-2); }
.ms-theme .custom-control-input:checked ~ .custom-control-label::before { background: var(--ms-primary); border-color: var(--ms-primary); }

/* ---------- Tabelas ---------- */
.ms-theme .table { color: var(--ms-text); }
.ms-theme .table thead th, .ms-theme .table-list thead th {
    background: #f6f7fb; color: var(--ms-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
    font-weight: 700; border-bottom: 1px solid var(--ms-line); border-top: 0;
}
.ms-theme .table td, .ms-theme .table th { border-top-color: var(--ms-line); vertical-align: middle; }
.ms-theme .table-hover tbody tr:hover, .ms-theme .table-list tbody tr:hover { background: #f8f7ff; }
.ms-theme .table-container { border-radius: var(--ms-radius); border: 1px solid var(--ms-line); background: #fff; overflow: hidden; box-shadow: var(--ms-shadow); }
.ms-theme .dataTables_wrapper .dataTables_info, .ms-theme .dataTables_wrapper .dataTables_length { color: var(--ms-muted); }
.ms-theme .dataTables_wrapper .dataTables_filter input { border-radius: var(--ms-radius-sm); border: 1px solid var(--ms-line-2); }
.ms-theme .page-item.active .page-link { background: var(--ms-primary); border-color: var(--ms-primary); }
.ms-theme .page-link { color: var(--ms-primary); border-color: var(--ms-line); }
.ms-theme .page-item:first-child .page-link { border-radius: 9px 0 0 9px; }
.ms-theme .page-item:last-child .page-link { border-radius: 0 9px 9px 0; }

/* ---------- Status, etiquetas, alertas ---------- */
.ms-theme .label, .ms-theme .badge { border-radius: 999px; font-weight: 700; letter-spacing: .02em; padding: .35em .75em; }
.ms-theme .status-active, .ms-theme .status-paid, .ms-theme .status-completed, .ms-theme .status-open, .ms-theme .status-accepted { background: #dcfce7 !important; color: #166534 !important; }
.ms-theme .status-pending, .ms-theme .status-unpaid, .ms-theme .status-answered, .ms-theme .status-customer-reply, .ms-theme .status-in-progress, .ms-theme .status-draft, .ms-theme .status-delivered, .ms-theme .status-pending-transfer { background: #fef3c7 !important; color: #92400e !important; }
.ms-theme .status-suspended, .ms-theme .status-overdue, .ms-theme .status-cancelled, .ms-theme .status-terminated, .ms-theme .status-expired, .ms-theme .status-fraud, .ms-theme .status-dead, .ms-theme .status-refunded, .ms-theme .status-collections, .ms-theme .status-lost { background: #fee2e2 !important; color: #991b1b !important; }
.ms-theme .status-closed, .ms-theme .status-on-hold { background: #e2e8f0 !important; color: #334155 !important; }
.ms-theme .alert { border-radius: 12px; border: 1px solid transparent; font-size: .93rem; }
.ms-theme .alert-info { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.ms-theme .alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ms-theme .alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ms-theme .alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.ms-theme .nav-tabs { border-bottom-color: var(--ms-line); }
.ms-theme .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--ms-muted); font-weight: 600; }
.ms-theme .nav-tabs .nav-link.active, .ms-theme .nav-tabs .nav-item.show .nav-link { color: var(--ms-primary); border-bottom-color: var(--ms-primary); background: transparent; }
.ms-theme .modal-content { border: 0; border-radius: 18px; box-shadow: var(--ms-shadow-lg); }
.ms-theme .modal-header { border-bottom-color: var(--ms-line); }
.ms-theme .modal-footer { border-top-color: var(--ms-line); }
.ms-theme .progress { border-radius: 999px; background: #eef0f7; }
.ms-theme .progress-bar { background: var(--ms-grad); }

/* ---------- Login ---------- */
.tpl-login #main-body { padding: 48px 0 64px; }
.ms-login {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 960px; margin: 0 auto;
    border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow-lg);
}
.ms-login-side {
    position: relative; padding: 48px 44px; color: #dfe5f7;
    background: radial-gradient(500px 300px at 100% 0%, rgba(124, 58, 237, .55), transparent 60%),
                radial-gradient(400px 300px at 0% 100%, rgba(31, 122, 224, .45), transparent 60%), var(--ms-bg);
}
.ms-login-side h2 { color: #fff !important; font-size: 1.8rem; line-height: 1.15; margin: 22px 0 12px; }
.ms-login-side p { color: var(--ms-muted-d); }
.ms-login-side ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; font-weight: 600; }
.ms-login-side li i { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; margin-right: 10px; background: rgba(255, 255, 255, .08); color: var(--ms-yellow); }
.ms-login-form { padding: 48px 44px; }
.ms-login-form h1 { font-size: 1.7rem; }
.ms-check { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.ms-check .form-check-input { position: static; margin: 0; width: 17px; height: 17px; }
.ms-login-register { text-align: center; margin: 20px 0 0; color: var(--ms-muted); font-size: .92rem; }
.ms-login-register a { font-weight: 700; }
.ms-login-linked { max-width: 960px; margin: 16px auto 0; }
@media (max-width: 767.98px) {
    .ms-login { grid-template-columns: 1fr; }
    .ms-login-side { padding: 30px 24px; }
    .ms-login-side ul { display: none; }
    .ms-login-side h2 { font-size: 1.4rem; margin-top: 14px; }
    .ms-login-form { padding: 30px 24px; }
}

/* Cadastro, recuperar senha e outras telas centralizadas */
.ms-theme .mw-540 { border-radius: 20px; }

/* ---------- Carrinho (standard_cart) ---------- */
.ms-theme #order-standard_cart { font-family: inherit; }
.ms-theme #order-standard_cart .header-lined h1 { font-weight: 800; font-size: 1.8rem; }
.ms-theme #order-standard_cart .header-lined { border-bottom: 0; margin-bottom: 18px; }
.ms-theme #order-standard_cart .products .row-eq-height > [class*="col-"] { display: flex; margin-bottom: 22px; }
/* o standard_cart abre uma .row a cada 2 planos; junta tudo numa grade só */
.ms-theme #order-standard_cart #products.products { display: flex; flex-wrap: wrap; margin: 0 -11px; }
.ms-theme #order-standard_cart #products.products > .row-eq-height { display: contents; }
.ms-theme #order-standard_cart #products.products > .row-eq-height > [class*="col-"] { flex: 0 0 50%; max-width: 50%; padding: 0 11px; }
@media (min-width: 1200px) {
    .ms-theme #order-standard_cart #products.products > .row-eq-height > [class*="col-"] { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media (max-width: 767.98px) {
    .ms-theme #order-standard_cart #products.products > .row-eq-height > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
}
.ms-theme #order-standard_cart .products .product {
    display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0; overflow: hidden;
    border: 1px solid var(--ms-line); border-radius: 18px; box-shadow: var(--ms-shadow); background: #fff;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ms-theme #order-standard_cart .products .product:hover { border-color: rgba(91, 79, 240, .55); transform: translateY(-3px); box-shadow: var(--ms-shadow-lg); }
.ms-theme #order-standard_cart .products .product header {
    order: 1; margin: 0; padding: 22px 24px 0; border-radius: 0; background: none;
}
.ms-theme #order-standard_cart .products .product header span { color: var(--ms-text); font-weight: 800; font-size: 1.2rem; }
.ms-theme #order-standard_cart .products .product header .qty { display: block; color: var(--ms-muted); font-size: .8rem; font-weight: 600; font-style: normal; }
.ms-theme #order-standard_cart .products .product footer {
    order: 2; float: none; width: auto; margin: 0; padding: 12px 24px 20px; text-align: left; font-size: .85rem; color: var(--ms-muted);
    border-bottom: 1px solid var(--ms-line);
}
.ms-theme #order-standard_cart .products .product div.product-pricing { margin-bottom: 16px; line-height: 1.3; }
.ms-theme #order-standard_cart .products .product div.product-pricing br:first-of-type { display: none; }
.ms-theme #order-standard_cart .products .product div.product-pricing span.price {
    display: inline-block; margin-right: 6px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--ms-text);
}
.ms-theme #order-standard_cart .products .product .btn-order-now {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: .75rem 1rem; font-size: .95rem;
    background: var(--ms-grad); border: 0; color: #fff !important; border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(91, 79, 240, .9);
}
.ms-theme #order-standard_cart .products .product .btn-order-now:hover { filter: brightness(1.1); }
.ms-theme #order-standard_cart .products .product .product-desc {
    order: 3; float: none; width: auto; padding: 18px 24px 22px; font-size: .9rem; color: #334155; flex: 1;
}
.ms-theme #order-standard_cart .products .product .product-desc p { margin: 0 0 10px; line-height: 1.7; }
.ms-theme #order-standard_cart .products .product .product-desc ul { padding-left: 0; margin: 0; list-style: none; }
.ms-theme #order-standard_cart .products .product .product-desc li { padding: 5px 0 5px 26px; position: relative; line-height: 1.45; border: 0; }
.ms-theme #order-standard_cart .products .product .product-desc li::before {
    content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%;
    background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ms-theme #order-standard_cart .products .product .product-desc li .feature-value { font-weight: 800; color: var(--ms-text); }
.ms-theme #order-standard_cart .products .product .product-desc strong { color: var(--ms-text); }
/* botões dentro do carrinho: texto sempre legível */
.ms-theme #order-standard_cart a.btn-success, .ms-theme #order-standard_cart a.btn-primary, .ms-theme a.btn-primary, .ms-theme a.btn-success, .ms-theme a.btn-danger, .ms-theme a.btn-info { color: #fff !important; }
.ms-theme #order-standard_cart .btn-success { background: var(--ms-grad); border: 0; }
.ms-theme #order-standard_cart .sub-heading span, .ms-theme #order-standard_cart .sub-heading-borderless span { color: var(--ms-primary); font-weight: 700; background: var(--ms-page); }
.ms-theme #order-standard_cart .sub-heading { border-color: var(--ms-line); }
.ms-theme #order-standard_cart .product-info { background: #f6f7fb; border: 1px solid var(--ms-line); border-radius: 12px; }
.ms-theme #order-standard_cart .order-summary { background: var(--ms-bg); border: 0; border-radius: var(--ms-radius); overflow: hidden; box-shadow: var(--ms-shadow-lg); }
.ms-theme #order-standard_cart .order-summary h2 { font-weight: 800; font-size: 1.1rem; padding: 16px; background-image: var(--ms-grad); }
.ms-theme #order-standard_cart .summary-container { background: #fff; border-radius: 0; font-size: .88rem; padding: 16px; }
.ms-theme #order-standard_cart .order-summary .total-due-today .amt, .ms-theme #order-standard_cart .order-summary .total-due-today span.amt { color: var(--ms-text); font-weight: 800; }
.ms-theme #order-standard_cart .view-cart-items-header { background: var(--ms-bg); border-radius: 12px 12px 0 0; }
.ms-theme #order-standard_cart .view-cart-items { border-color: var(--ms-line); }
.ms-theme #order-standard_cart .view-cart-items .item-domain { color: var(--ms-primary); }
.ms-theme #order-standard_cart .empty-cart .btn { background: var(--ms-grad); border: 0; }
.ms-theme #order-standard_cart .panel-addon { border-radius: 12px; }
.ms-theme #order-standard_cart .panel-addon .panel-add, .ms-theme #order-standard_cart .panel-addon-selected .panel-add { background-color: var(--ms-primary); border-radius: 0 0 10px 10px; }
.ms-theme #order-standard_cart .field, .ms-theme #order-standard_cart .form-control { color: var(--ms-text); }
.ms-theme #order-standard_cart .prepend-icon .field { padding-left: 40px; }
.ms-theme #order-standard_cart .field-icon i { color: #94a3b8; }
.ms-theme #order-standard_cart .cart-sidebar .card-sidebar .list-group-item.active { border-left-color: var(--ms-primary); }
.ms-theme #order-standard_cart .already-registered { border-radius: 12px; background: #eef2ff; border: 1px solid #c7d2fe; }
.ms-theme #order-standard_cart .cc-input-container, .ms-theme #order-standard_cart .payment-methods label { border-radius: 12px; }

/* ---------- Rodapé ---------- */
.ms-footer {
    background: var(--ms-bg); color: var(--ms-muted-d); padding: 56px 0 26px; margin-top: 0; font-size: .93rem;
    border-top: 1px solid var(--ms-line-d);
}
.ms-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 991.98px) { .ms-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .ms-footer-grid { grid-template-columns: 1fr; } }
.ms-footer-brand p { margin: 16px 0 18px; max-width: 360px; }
.ms-footer h4 { color: #fff !important; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 8px 0 16px; }
.ms-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ms-footer ul a { color: var(--ms-muted-d) !important; text-decoration: none; }
.ms-footer ul a:hover { color: #fff !important; }
.ms-footer-whats {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 700;
    background: rgba(22, 163, 74, .14); color: #4ade80 !important; border: 1px solid rgba(74, 222, 128, .35); text-decoration: none !important;
}
.ms-footer-whats:hover { background: rgba(22, 163, 74, .24); }
.ms-footer-bottom {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
    margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ms-line-d); font-size: .86rem;
}
.ms-footer-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ms-footer-extra .list-inline-item a, .ms-footer-extra a { color: var(--ms-muted-d); }
.ms-pix { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(250, 204, 21, .12); color: var(--ms-yellow); font-weight: 700; font-size: .8rem; }
.ms-lang { color: var(--ms-muted-d) !important; border: 1px solid var(--ms-line-d) !important; background: transparent !important; font-weight: 600 !important; font-size: .82rem; }
.ms-lang:hover { color: #fff !important; }

/* botão "voltar para o admin" e overlay */
.ms-theme .btn-return-to-admin { border-radius: 10px; }

/* cores utilitárias do Bootstrap com a paleta da marca */
.ms-theme .text-primary { color: var(--ms-primary) !important; }
.ms-theme .bg-primary { background: var(--ms-grad) !important; }
.ms-theme .border-primary { border-color: var(--ms-primary) !important; }

/* ---------- Vitrine de planos estilo Lagom (página de produtos da loja) ---------- */
.tpl-products #order-standard_cart > .row { flex-direction: column; }
.tpl-products #order-standard_cart .cart-sidebar,
.tpl-products #order-standard_cart .cart-body { flex: 0 0 100%; max-width: 100%; width: 100%; float: none; padding-left: 15px; padding-right: 15px; }
.tpl-products #order-standard_cart .cart-sidebar [menuItemName="Actions"] { display: none !important; }
.tpl-products #order-standard_cart .cart-sidebar [menuItemName="Categories"] { background: none; border: 0; box-shadow: none; margin: 0 0 8px !important; }
.tpl-products #order-standard_cart .cart-sidebar [menuItemName="Categories"] .card-header { display: none; }
.tpl-products #order-standard_cart .cart-sidebar [menuItemName="Categories"] .list-group {
    display: flex !important; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.tpl-products #order-standard_cart .cart-sidebar [menuItemName="Categories"] .list-group-item {
    width: auto; border: 1px solid var(--ms-line) !important; border-radius: 999px !important; background: #fff;
    padding: 8px 15px; font-weight: 600; font-size: .86rem; color: #334155; box-shadow: var(--ms-shadow);
}
.tpl-products #order-standard_cart .cart-sidebar [menuItemName="Categories"] .list-group-item:hover { border-color: rgba(91, 79, 240, .5) !important; color: var(--ms-primary-2); }
.tpl-products #order-standard_cart .cart-sidebar [menuItemName="Categories"] .list-group-item.active,
.tpl-products #order-standard_cart .cart-sidebar [menuItemName="Categories"] .list-group-item.ms-atual {
    background: var(--ms-grad); color: #fff; border-color: transparent !important; box-shadow: 0 10px 22px -12px rgba(91, 79, 240, .9);
}
.tpl-products #order-standard_cart .header-lined { text-align: center; margin: 22px auto 30px; max-width: 760px; }
.tpl-products #order-standard_cart .header-lined h1 { font-size: 2.3rem; }
.tpl-products #order-standard_cart .header-lined p { color: var(--ms-muted); font-size: 1.05rem; }
/* grade: cabe 4 lado a lado; nunca sobra um card sozinho esticado */
.tpl-products #order-standard_cart #products.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 0; }
.tpl-products #order-standard_cart #products.products > .row-eq-height > [class*="col-"] { max-width: none; padding: 0; margin: 0; flex: none; }
@media (min-width: 1200px) {
    .tpl-products #order-standard_cart #products.products { grid-template-columns: repeat(auto-fit, minmax(230px, 255px)); justify-content: center; }
}
/* plano do meio em destaque (como no Lagom) quando a categoria tem 3 ou 4 planos */
.tpl-products #order-standard_cart #products.products > .row-eq-height:first-child > [class*="col-"]:nth-child(2) .product { border-color: var(--ms-primary); box-shadow: 0 0 0 1px var(--ms-primary), var(--ms-shadow-lg); position: relative; }
.tpl-products #order-standard_cart #products.products > .row-eq-height:first-child > [class*="col-"]:nth-child(2) .product header::before {
    content: "Mais escolhido"; position: absolute; top: 16px; right: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: var(--ms-yellow); color: #1f1300; padding: 4px 10px; border-radius: 999px;
}
.tpl-products #order-standard_cart .products .product { overflow: visible; }
.tpl-products #order-standard_cart #products.products { padding-top: 12px; }
.tpl-products #order-standard_cart #products.products > .row-eq-height:first-child > [class*="col-"]:nth-child(2) .product header::before { top: -13px; left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(250, 204, 21, .8); }
@media (max-width: 767.98px) {
    .tpl-products #order-standard_cart .cart-sidebar { display: none; }
    .tpl-products #order-standard_cart .header-lined h1 { font-size: 1.7rem; }
}

.tpl-products #order-standard_cart .products .product .btn-order-now { white-space: nowrap; font-size: .9rem; }

/* ---------- Artigos da base de conhecimento ---------- */
.ms-theme .kb-article-content, .ms-theme .announcement-single { font-size: 1rem; line-height: 1.75; color: #1e293b; }
.ms-theme .kb-article-content h2, .ms-theme .announcement-single h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.ms-theme .kb-article-content ul, .ms-theme .kb-article-content ol { padding-left: 1.3rem; }
.ms-theme .kb-article-content li { margin: 4px 0; }
.ms-kb-lead { font-size: 1.12rem; color: #334155; }
.ms-kb-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0; }
.ms-kb-ficha div { padding: 12px 14px; border-radius: 12px; background: #f6f7fb; border: 1px solid var(--ms-line); line-height: 1.35; }
.ms-kb-ficha small { display: block; color: var(--ms-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ms-kb-baixar { margin: 20px 0 8px; }
.ms-kb-baixar .btn { display: inline-flex; align-items: center; gap: 10px; }
.ms-kb-ajuda { margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: #eef2ff; border: 1px solid #c7d2fe; }
.tpl-knowledgebasearticle .primary-content > .card:first-of-type h1 { font-size: 2rem; line-height: 1.2; }
.tpl-knowledgebasearticle .primary-content .card-body h2,
.tpl-viewannouncement .primary-content .card-body h2 { font-size: 1.3rem; margin: 30px 0 10px; letter-spacing: -.01em; }
.tpl-knowledgebasearticle .primary-content .card-body ul,
.tpl-knowledgebasearticle .primary-content .card-body ol { padding-left: 1.3rem; }
.tpl-knowledgebasearticle .primary-content .card-body li { margin: 4px 0; }
.tpl-knowledgebasearticle .primary-content .card-body { line-height: 1.75; }
.ms-theme .card-sidebar .sidebar-menu-item-label { white-space: normal; }
.ms-theme .card-sidebar .list-group-item { white-space: normal; }
.ms-theme [menuItemName="Support Knowledgebase Tag Cloud"] { display: none !important; }
.tpl-knowledgebasearticle .badge-info { background: #eef2ff; color: #4338ca; white-space: normal; text-align: left; line-height: 1.5; }
.ms-theme .card-sidebar .truncate { white-space: normal; overflow: visible; text-overflow: clip; }

/* ---------- Página de anúncios ---------- */
.tpl-announcements .announcements .announcement { padding: 22px 0; border-bottom: 1px solid var(--ms-line); }
.tpl-announcements .announcements .announcement:first-child { padding-top: 6px; }
.tpl-announcements .announcements .announcement:last-child { border-bottom: 0; }
.tpl-announcements .announcements h1 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 6px; }
.tpl-announcements .announcements h1 a { color: var(--ms-text); }
.tpl-announcements .announcements h1 a:hover { color: var(--ms-primary); }
.tpl-announcements .announcements .list-inline { font-size: .85rem; margin-bottom: 10px; }
.tpl-announcements .announcements article, .tpl-viewannouncement blockquote {
    background: none; border: 0; padding: 0; margin: 0 0 14px; color: #334155; font-size: .97rem; line-height: 1.7;
}
.tpl-announcements .card-title { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .1em; color: var(--ms-muted) !important; }
.tpl-viewannouncement .primary-content h1 { font-size: 2rem; line-height: 1.2; }

/* capa no topo dos artigos e anúncios */
.ms-kb-capa { margin: 0 0 22px; }
.ms-kb-capa img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow); display: block; }
.ms-kb-capa figcaption { font-size: .78rem; color: var(--ms-muted); margin-top: 6px; }
.tpl-announcements .announcements article .ms-kb-capa { max-width: 520px; }
p.ms-kb-capa { margin: 0 0 6px; }
p.ms-kb-capa img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow); display: block; }
.ms-kb-credito { font-size: .78rem; color: var(--ms-muted); margin: 0 0 18px; }
.tpl-announcements .announcements article p.ms-kb-capa { max-width: 520px; }
/* lista de anúncios estilo blog: capa ao lado do resumo */
.tpl-announcements .ms-post-com-capa { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.tpl-announcements .ms-post-capa img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--ms-line); display: block; transition: transform .2s; }
.tpl-announcements .ms-post-capa:hover img { transform: translateY(-2px); }
@media (max-width: 767.98px) { .tpl-announcements .ms-post-com-capa { grid-template-columns: 1fr; gap: 12px; } }
.tpl-announcements .announcements .announcement { margin: 0 !important; }
