/**
 * EasyMember WP — CSS Frontend (Dashboard + Auth)
 * Interface isolada do tema WordPress, mobile-first.
 *
 * @author Dante Testa <https://dantetesta.com.br>
 * @since 1.0.0 — 2026-03-25
 */

/* ========== RESET & BASE ========== */

/* Garantir que [hidden] funcione mesmo quando CSS define display explícito */
.emwp-body [hidden],
.emwp-checkout-page [hidden] {
    display: none !important;
}

.emwp-html,
.emwp-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1E293B;
    background: #F1F5F9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.emwp-body *,
.emwp-body *::before,
.emwp-body *::after {
    box-sizing: border-box;
}

/* ========== FOCUS VISIBILITY (WCAG 2.4.11) ========== */
.emwp-body :focus-visible {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
    border-radius: 4px;
}
.emwp-input:focus:not(:focus-visible) {
    outline: none;
}

.emwp-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Ícone SVG — tamanhos utilitários (Functions::icon $class param) ── */
/* Especificidade (0,1,0): regras de componente específicas sempre ganham */
.w-3   { width: 12px; }    .h-3   { height: 12px; }
.w-3\.5{ width: 14px; }    .h-3\.5{ height: 14px; }
.w-4   { width: 16px; }    .h-4   { height: 16px; }
.w-5   { width: 20px; }    .h-5   { height: 20px; }
.w-6   { width: 24px; }    .h-6   { height: 24px; }
.w-7   { width: 28px; }    .h-7   { height: 28px; }
.w-8   { width: 32px; }    .h-8   { height: 32px; }
.w-10  { width: 40px; }    .h-10  { height: 40px; }
.w-12  { width: 48px; }    .h-12  { height: 48px; }
.w-16  { width: 64px; }    .h-16  { height: 64px; }

.emwp-body a {
    color: var(--emwp-primary, #3B82F6);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.emwp-body a:hover {
    opacity: 0.85;
}

/* ========== VARIÁVEIS CSS ========== */
:root {
    --emwp-primary: #3B82F6;
    --emwp-secondary: #1E40AF;
    --emwp-accent: #10B981;
    --emwp-sidebar-w: 280px;
    --emwp-topbar-h: 64px;
    --emwp-radius: 12px;
    --emwp-radius-sm: 8px;
    --emwp-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --emwp-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --emwp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== LAYOUT AUTH ========== */
.emwp-auth-body {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emwp-auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.emwp-auth-container {
    width: 100%;
    max-width: 420px;
}

.emwp-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.emwp-auth-logo {
    max-height: 48px;
    margin: 0 auto;
}

.emwp-auth-site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.emwp-auth-card {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    padding: 24px 20px;
    box-shadow: var(--emwp-shadow-lg);
}

.emwp-auth-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 8px;
    text-align: center;
}

.emwp-auth-subtitle {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0 0 24px;
    text-align: center;
}

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

.emwp-auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: #64748B;
}

.emwp-auth-switch a {
    font-weight: 600;
}

.emwp-auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.75rem;
    color: #64748B;
}

/* ========== FORM COMPONENTS ========== */
.emwp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.emwp-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.emwp-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1E293B;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--emwp-radius-sm);
    outline: none;
    transition: border-color var(--emwp-transition), box-shadow var(--emwp-transition);
}

.emwp-input:focus {
    border-color: var(--emwp-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #FFFFFF;
}

.emwp-input-error {
    border-color: #EF4444 !important;
    background: #FFF5F5;
}

.emwp-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.emwp-input::placeholder {
    color: #94A3B8;
}

.emwp-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.emwp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
}

.emwp-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--emwp-primary);
}

.emwp-link {
    font-size: 0.875rem;
    color: var(--emwp-primary);
    font-weight: 500;
}

/* ========== BUTTONS ========== */
.emwp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--emwp-radius-sm);
    cursor: pointer;
    transition: all var(--emwp-transition);
    text-decoration: none;
    line-height: 1.4;
}

.emwp-btn-primary {
    background: var(--emwp-primary);
    color: #FFFFFF;
}

.emwp-btn-primary:hover {
    background: var(--emwp-secondary);
    color: #FFFFFF;
    opacity: 1;
}

.emwp-btn-outline {
    background: transparent;
    color: #475569;
    border: 1.5px solid #CBD5E1;
}

.emwp-btn-outline:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #1E293B;
}

.emwp-btn-full {
    width: 100%;
}

/* ========== ALERTS ========== */
.emwp-alert {
    padding: 12px 16px;
    border-radius: var(--emwp-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.emwp-alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.emwp-alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* ========== DASHBOARD LAYOUT ========== */
.emwp-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar — base: hidden off-screen on mobile */
.emwp-sidebar {
    width: var(--emwp-sidebar-w);
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--emwp-transition);
    overflow-y: auto;
    transform: translateX(-100%);
}

.emwp-sidebar.emwp-sidebar-open {
    transform: translateX(0);
}

.emwp-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #F1F5F9;
}

.emwp-sidebar-logo {
    width: 85%;
    max-height: none;
    object-fit: contain;
    object-position: left;
}

.emwp-sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
}

.emwp-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
}

.emwp-sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.emwp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.emwp-nav-item {
    margin: 2px 8px;
}

.emwp-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    border-radius: var(--emwp-radius-sm);
    transition: all var(--emwp-transition);
    text-decoration: none;
}

.emwp-nav-link:hover {
    background: #F1F5F9;
    color: #1E293B;
    opacity: 1;
}

.emwp-nav-active .emwp-nav-link {
    background: rgba(59, 130, 246, 0.08);
    color: var(--emwp-primary);
    font-weight: 600;
}

.emwp-nav-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.emwp-nav-divider {
    padding: 16px 14px 6px;
    margin: 0 8px;
}

.emwp-nav-divider span {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B;
}

.emwp-nav-logout {
    color: #EF4444 !important;
}

.emwp-nav-logout:hover {
    background: #FEF2F2 !important;
}

.emwp-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #F1F5F9;
}

.emwp-user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emwp-user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.emwp-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.emwp-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emwp-user-plan {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sidebar Overlay (mobile) */
.emwp-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
    opacity: 0;
    transition: opacity var(--emwp-transition);
}

.emwp-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main content — base: no sidebar offset on mobile */
.emwp-main {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar — base: mobile padding */
.emwp-topbar {
    height: var(--emwp-topbar-h);
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.emwp-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emwp-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
}

.emwp-menu-toggle:hover {
    background: #F1F5F9;
}

.emwp-topbar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.emwp-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notificação de mensagens não lidas na topbar */
.emwp-topbar-unread {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EFF6FF;
    color: #2563EB;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}
.emwp-topbar-unread:hover { background: #DBEAFE; }
.emwp-topbar-unread-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #EF4444;
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 1.5px solid #fff;
}

.emwp-topbar-plan {
    display: none;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.emwp-topbar-user {
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

/* Content Area — base: mobile padding */
.emwp-content-area {
    flex: 1;
    padding: 16px;
    width: 100%;
}

/* ========== PAGE COMPONENTS ========== */

/* Welcome Card */
.emwp-welcome-card {
    background: linear-gradient(135deg, var(--emwp-primary), var(--emwp-secondary));
    border-radius: var(--emwp-radius);
    padding: 20px;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.emwp-welcome-text h2 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
}

.emwp-welcome-text p {
    margin: 0;
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* Sections */
.emwp-section {
    margin-bottom: 32px;
}

.emwp-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 16px;
}

/* ── Section header (título + filtros lado a lado) ────────────────────────── */
.emwp-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.emwp-section-header .emwp-section-title {
    margin-bottom: 0;
}

/* ── Botões de filtro de área ─────────────────────────────────────────────── */
.emwp-area-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.emwp-area-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 999px;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    color: #64748B;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.emwp-area-filter-btn:hover {
    border-color: #CBD5E1;
    background: #F1F5F9;
    color: #334155;
}

.emwp-area-filter-btn.active {
    border-color: var(--emwp-primary, #3B82F6);
    background: var(--emwp-primary, #3B82F6);
    color: #fff;
}

.emwp-filter-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Grupos de área na home ───────────────────────────────────────────────── */
.emwp-area-group {
    margin-bottom: 28px;
}

.emwp-area-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.emwp-area-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
}

.emwp-area-group-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.emwp-ver-todos-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--emwp-primary, #3B82F6);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.emwp-ver-todos-btn:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* Grids */
.emwp-grid {
    display: grid;
    gap: 20px;
}

.emwp-grid-areas {
    grid-template-columns: 1fr;
}

.emwp-grid-categories {
    grid-template-columns: 1fr;
}

.emwp-grid-contents {
    grid-template-columns: 1fr;
}

/* Cards */
.emwp-card {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    overflow: hidden;
    box-shadow: var(--emwp-shadow);
    transition: transform var(--emwp-transition), box-shadow var(--emwp-transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.emwp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--emwp-shadow-lg);
    color: inherit;
    opacity: 1;
}

.emwp-card-locked {
    cursor: default;
    opacity: 0.75;
}

.emwp-card-locked:hover {
    transform: none;
    box-shadow: var(--emwp-shadow);
}

.emwp-card-cover {
    height: 140px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emwp-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges de plano sobre a capa do card (v1.14.5 / refactor v1.14.6) */
.emwp-card-plan-badges {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    max-width: calc(100% - 20px);
}
.emwp-card-plan-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: #3B82F6;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 140px;
}
.emwp-card-plan-badge--free {
    background: rgba(255,255,255,.9);
    color: #10b981;
}
.emwp-card-plan-badge--more {
    background: rgba(17,24,39,.78);
    color: #fff;
    font-weight: 800;
    padding: 4px 8px;
    cursor: help;
}
/* Chips de plano ao lado do título da área (layout detalhado) */
.emwp-area-plan-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
}
.emwp-area-plan-chip {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    background: #3B82F6;
    vertical-align: middle;
    line-height: 1.4;
}
.emwp-area-plan-chips .emwp-area-plan-chip {
    margin-left: 0;
}
.emwp-area-plan-chip--free {
    margin-left: 8px;
    background: #e6f4ea; color: #15803d;
}
.emwp-area-plan-chip--more {
    background: #111827;
    color: #fff;
    cursor: help;
}

.emwp-card-icon-big {
    color: rgba(255,255,255,0.6);
}

.emwp-card-placeholder-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    width: 100%;
    height: 100%;
}

.emwp-card-placeholder-text span {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    word-break: break-word;
}

.emwp-card-thumb {
    height: 120px;
    overflow: hidden;
    position: relative;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emwp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emwp-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
}

.emwp-card-placeholder-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.emwp-card-lock-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 20px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFFFFF;
}

.emwp-card-lock-overlay svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* v1.15.0 — badge de compra avulsa no card de categoria */
.emwp-card-avulso-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border-radius: 20px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.emwp-card-avulso-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.emwp-card-avulso {
    border: 1px solid #D1FAE5;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.emwp-card-avulso:hover {
    transform: translateY(-2px);
    border-color: #10B981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.18);
}
.emwp-card-avulso-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    color: #059669;
    font-size: 12px;
    font-weight: 600;
}
.emwp-card-avulso-cta svg {
    width: 12px;
    height: 12px;
}
.emwp-card-avulso-cta--filled {
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
}
.emwp-card-avulso-cta--filled .emwp-card-avulso-cta-text,
.emwp-card-avulso-cta--filled svg {
    color: #fff;
}

.emwp-drip-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.emwp-card-done-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(34, 197, 94, 0.9);
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.emwp-card-done-overlay svg {
    width: 20px;
    height: 20px;
}

.emwp-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.emwp-card-badge-featured {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.emwp-card-badge-free {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.emwp-card-body {
    padding: 16px;
}

.emwp-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 4px;
    line-height: 1.3;
}

.emwp-card-desc {
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

.emwp-card-legend {
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0 0 8px;
}

.emwp-card-type {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--emwp-primary);
    margin-bottom: 4px;
}

.emwp-card-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #94A3B8;
}

/* Progresso dentro do card de curso (área) */
.emwp-card-progress {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.emwp-card-progress .emwp-progress-bar {
    height: 6px;
    width: 100%;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
}

.emwp-card-progress .emwp-progress-fill {
    height: 100%;
    background: #22C55E;
    border-radius: 3px;
    transition: width 0.35s ease;
    min-width: 2px;
}

.emwp-card-progress-pct {
    align-self: flex-end;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94A3B8;
    line-height: 1;
}

/* ========== BREADCRUMB ========== */
.emwp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #64748B;
}

.emwp-breadcrumb a {
    color: #64748B;
    font-weight: 500;
}

.emwp-breadcrumb a:hover {
    color: var(--emwp-primary);
}

.emwp-breadcrumb svg {
    width: 16px;
    height: 16px;
    color: #CBD5E1;
    flex-shrink: 0;
}

.emwp-breadcrumb-current {
    color: #1E293B;
    font-weight: 600;
}

/* ========== AREA PAGE ========== */
/* ── Area Hero (imagem de fundo + texto sobreposto) ── */
.emwp-area-hero {
    position: relative;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
}

.emwp-area-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    transform: scale(1.02);
}

.emwp-area-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* gradient applied inline from PHP with area color */
}

.emwp-area-hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 28px;
    max-width: 72%;
}

.emwp-area-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow:
        0 1px 0 rgba(0,0,0,0.35),
        0 2px 8px rgba(0,0,0,0.4),
        0 4px 20px rgba(0,0,0,0.2);
    -webkit-text-stroke: 0.35px rgba(0,0,0,0.25);
}

.emwp-area-hero-desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
    .emwp-area-hero {
        height: 200px;
    }
    .emwp-area-hero-title {
        font-size: 1.5rem;
    }
    .emwp-area-hero-content {
        max-width: 90%;
        padding: 18px 18px;
    }
}

/* ========== CATEGORY PAGE ========== */
.emwp-category-header {
    margin-bottom: 28px;
}

.emwp-category-cover {
    border-radius: var(--emwp-radius);
    overflow: hidden;
    aspect-ratio: 1400 / 260;
    margin-bottom: 16px;
}

.emwp-category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .emwp-category-cover {
        aspect-ratio: 3 / 1;
    }
}

.emwp-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px;
}

.emwp-category-desc {
    font-size: 0.9375rem;
    color: #475569;
}

/* Modules Layout */
.emwp-modules-layout {
    display: flex;
    gap: 24px;
}

.emwp-modules-sidebar {
    width: 100%;
    max-width: 100%;
}

.emwp-modules-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
}

.emwp-modules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emwp-module-item {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    box-shadow: var(--emwp-shadow);
    overflow: hidden;
}

.emwp-module-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1E293B;
    transition: background var(--emwp-transition);
}

.emwp-module-toggle:hover {
    background: #F8FAFC;
}

.emwp-module-toggle[aria-expanded="true"] {
    background: #F8FAFC;
}

.emwp-module-toggle[aria-expanded="true"] .emwp-module-arrow {
    transform: rotate(180deg);
    color: var(--emwp-primary, #3B82F6);
}

.emwp-module-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.emwp-module-arrow {
    transition: transform var(--emwp-transition);
    color: #94A3B8;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.emwp-module-lock {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #94A3B8;
}

.emwp-module-toggle-locked {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #FAFAFA;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #94A3B8;
    cursor: not-allowed;
    gap: 8px;
}

.emwp-module-contents {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.emwp-module-contents.emwp-module-open {
    max-height: 2000px;
}

.emwp-module-empty {
    padding: 12px 18px;
    font-size: 0.8125rem;
    color: #94A3B8;
}

.emwp-content-list {
    list-style: none;
    padding: 0 8px 8px;
    margin: 0;
}

.emwp-content-item {
    border-top: 1px solid #F1F5F9;
}

.emwp-content-item:first-child {
    border-top: none;
}

.emwp-content-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    transition: background var(--emwp-transition);
}

a.emwp-content-link:hover {
    background: #F1F5F9;
    opacity: 1;
    color: #1E293B;
}

/* Item ativo: conteúdo que está sendo visualizado no momento */
a.emwp-content-link.emwp-content-active {
    background: #EFF6FF;
    color: var(--emwp-primary, #3B82F6);
    font-weight: 600;
}

.emwp-content-link-locked {
    color: #94A3B8;
    cursor: default;
}

.emwp-content-icon {
    flex-shrink: 0;
    display: flex;
}

.emwp-content-icon svg {
    width: 16px;
    height: 16px;
}

.emwp-content-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emwp-content-duration {
    font-size: 0.75rem;
    color: #94A3B8;
    white-space: nowrap;
}

.emwp-drip-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 2px 8px;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========== CONTENT PAGE ========== */
.emwp-content-media {
    margin-bottom: 24px;
}

.emwp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--emwp-radius);
    background: #000;
}

.emwp-video-wrapper iframe,
.emwp-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.emwp-video-player {
    border-radius: var(--emwp-radius);
}

.emwp-video-wrapper--external {
    position: relative;
    padding-bottom: 0;
    height: auto;
    background: #000;
    border-radius: var(--emwp-radius);
}

.emwp-video-wrapper--external video {
    position: static;
    width: 100%;
    height: auto;
    max-height: 72vh;
    display: block;
    border-radius: var(--emwp-radius);
    background: #000;
}

.emwp-external-video-player {
    border-radius: var(--emwp-radius);
}

.emwp-audio-wrapper {
    background: #FFFFFF;
    padding: 20px;
    border-radius: var(--emwp-radius);
    box-shadow: var(--emwp-shadow);
}

/* ========== PLAYER PLYR (opcional por conteúdo — v1.11.0) ========== */
.emwp-plyr-wrapper {
    position: relative;
    padding-bottom: 0;
    height: auto;
    overflow: visible;
    background: transparent;
    border-radius: var(--emwp-radius);
}

.emwp-plyr-wrapper .plyr {
    border-radius: var(--emwp-radius);
    overflow: hidden;
}

.emwp-plyr-wrapper .plyr--video,
.emwp-plyr-wrapper .plyr--audio {
    width: 100%;
}

.emwp-plyr-wrapper .emwp-plyr,
.emwp-plyr-wrapper .emwp-video-player,
.emwp-plyr-wrapper .emwp-external-video-player {
    position: static;
    width: 100%;
    height: auto;
}

.emwp-audio-player {
    width: 100%;
}

.emwp-image-wrapper {
    border-radius: var(--emwp-radius);
    overflow: hidden;
}

.emwp-featured-image {
    width: 100%;
    border-radius: var(--emwp-radius);
}

.emwp-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.emwp-gallery-item {
    border-radius: var(--emwp-radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.emwp-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emwp-download-wrapper {
    text-align: center;
    padding: 48px 40px;
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    box-shadow: var(--emwp-shadow);
    border: 2px dashed #E2E8F0;
}

.emwp-download-icon-area {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 16px;
    /* background e color vêm do estilo inline gerado pelo PHP (baseado no MIME type) */
}

.emwp-download-icon-area svg {
    width: 40px;
    height: 40px;
}

.emwp-download-ext {
    position: absolute;
    bottom: 4px;
    right: 0;
    /* background vem do estilo inline gerado pelo PHP */
    color: #FFFFFF;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.emwp-download-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 24px;
}

.emwp-btn-download {
    font-size: 1rem;
    padding: 13px 32px;
    gap: 8px;
}

.emwp-embed-wrapper {
    position: relative;
    border-radius: var(--emwp-radius);
    overflow: hidden;
    width: 100%;
}

@supports (aspect-ratio: 16/9) {
    .emwp-embed-wrapper:has(iframe) {
        aspect-ratio: 16/9;
    }
}

.emwp-embed-wrapper iframe {
    width: 100%;
    min-height: 400px;
    height: 100%;
    border: none;
}

.emwp-content-header {
    margin-bottom: 24px;
}

.emwp-content-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
    line-height: 1.3;
}

.emwp-content-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: #64748B;
}

.emwp-content-type-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--emwp-primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Prose (corpo do conteúdo) */
.emwp-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    max-width: 720px;
}

.emwp-prose h1, .emwp-prose h2, .emwp-prose h3, .emwp-prose h4 {
    color: #0F172A;
    font-weight: 700;
    margin: 24px 0 12px;
}

.emwp-prose p {
    margin: 0 0 16px;
}

.emwp-prose img {
    border-radius: var(--emwp-radius-sm);
    margin: 16px 0;
}

.emwp-prose ul, .emwp-prose ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.emwp-prose blockquote {
    border-left: 4px solid var(--emwp-primary);
    padding: 12px 16px;
    margin: 16px 0;
    background: #F8FAFC;
    border-radius: 0 var(--emwp-radius-sm) var(--emwp-radius-sm) 0;
    color: #475569;
}

.emwp-prose code {
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}

.emwp-prose pre {
    background: #1E293B;
    color: #E2E8F0;
    padding: 16px;
    border-radius: var(--emwp-radius-sm);
    overflow-x: auto;
}

.emwp-prose a {
    color: var(--emwp-primary);
    text-decoration: underline;
}

/* Content page — base: single column (mobile-first) */
.emwp-content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

/* Full-width: sidebar oculta (html/shortcode com hide_sidebar) */
.emwp-content-layout--full {
    grid-template-columns: 1fr !important;
}

.emwp-content-layout--full .emwp-content-main {
    max-width: 100%;
}

.emwp-content-layout--full .emwp-prose {
    max-width: 100%;
}

.emwp-content-layout--full .emwp-content-media {
    max-width: 100%;
}

/* Iframe para conteúdo HTML isolado */
.emwp-html-iframe-wrap {
    width: 100%;
    margin: 0;
}

.emwp-html-iframe {
    width: 100%;
    border: none;
    display: block;
    min-height: 400px;
    background: #fff;
    border-radius: var(--emwp-radius);
}

.emwp-content-main {
    min-width: 0;
}

.emwp-content-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.emwp-content-sidebar::-webkit-scrollbar {
    width: 4px;
}

.emwp-content-sidebar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 2px;
}

/* Course tree container */
.emwp-course-tree {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    box-shadow: var(--emwp-shadow);
    overflow: hidden;
}

.emwp-course-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    background: #F8FAFC;
}

.emwp-course-tree-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emwp-course-lesson-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748B;
    background: #E2E8F0;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Modules list in sidebar uses existing .emwp-modules-list styles — just remove outer box shadow */
.emwp-course-modules {
    margin: 0;
}

.emwp-course-modules .emwp-module-item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #F1F5F9;
}

.emwp-course-modules .emwp-module-item:last-child {
    border-bottom: none;
}

.emwp-course-modules .emwp-module-toggle {
    border-radius: 0;
    padding: 10px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.emwp-course-modules .emwp-module-contents {
    border-top: 1px solid #F1F5F9;
}

.emwp-course-modules .emwp-content-link {
    padding: 7px 14px 7px 32px;
    font-size: 0.8125rem;
}

.emwp-course-modules a.emwp-content-link.emwp-content-active {
    background: #EFF6FF;
    border-left: 3px solid var(--emwp-primary);
    padding-left: 29px;
    font-weight: 600;
}

/* Lesson count badge inside module toggle */
.emwp-module-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94A3B8;
    background: #F1F5F9;
    padding: 1px 6px;
    border-radius: 10px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Direct lesson list (no modules) */
.emwp-course-direct-list {
    padding: 8px 0;
}

.emwp-course-direct-list .emwp-content-item {
    border-top: none;
    border-bottom: 1px solid #F1F5F9;
}

.emwp-course-direct-list .emwp-content-item:last-child {
    border-bottom: none;
}

.emwp-course-direct-list .emwp-content-link {
    padding: 8px 14px;
}

/* ── Progresso: progress bar no header da sidebar ──────────────────────────── */
.emwp-course-tree-header {
    flex-wrap: wrap;
}

.emwp-progress-wrap {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emwp-progress-bar {
    flex: 1;
    height: 5px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
}

.emwp-progress-fill {
    height: 100%;
    background: #22C55E;
    border-radius: 3px;
    transition: width 0.35s ease;
    min-width: 0;
}

.emwp-progress-label {
    font-size: 0.6875rem;
    color: #64748B;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Progresso: botão de check por item de aula ────────────────────────────── */
.emwp-content-item {
    display: flex;
    align-items: center;
}

.emwp-content-item .emwp-content-link {
    flex: 1;
    min-width: 0;
}

.emwp-progress-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    border: 1.5px solid #CBD5E1;
    border-radius: 50%;
    background: transparent;
    color: #CBD5E1;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    padding: 0;
}

.emwp-progress-check svg {
    width: 14px;
    height: 14px;
}

.emwp-progress-check:hover {
    border-color: #22C55E;
    color: #22C55E;
    background: #F0FDF4;
}

.emwp-progress-check.emwp-completed {
    border-color: #22C55E;
    background: #22C55E;
    color: #FFFFFF;
}

.emwp-progress-check:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Aula concluída: sem line-through — o próprio botão de check (verde) já
   comunica a conclusão. Apenas o ícone do tipo de conteúdo ganha cor verde
   sutil para reforçar o estado sem descaracterizar a leitura do título. */
.emwp-content-item.emwp-content-completed .emwp-content-icon {
    color: #22C55E;
}

/* Content date in meta bar */
.emwp-content-date {
    color: #94A3B8;
}

/* Prev / next lesson navigation — base: stacked on mobile */
.emwp-lesson-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}

.emwp-lesson-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--emwp-radius);
    text-decoration: none;
    color: #0F172A;
    transition: border-color var(--emwp-transition), box-shadow var(--emwp-transition), background var(--emwp-transition);
    min-width: 0;
    flex: none;
    width: 100%;
}

.emwp-lesson-nav-btn:hover {
    border-color: var(--emwp-primary);
    box-shadow: 0 0 0 1px var(--emwp-primary);
    background: #F8FAFC;
    color: #0F172A;
    text-decoration: none;
}

.emwp-lesson-nav-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #94A3B8;
}

.emwp-lesson-nav-btn span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.emwp-lesson-nav-btn small {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94A3B8;
    margin-bottom: 2px;
}

.emwp-lesson-nav-btn strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0F172A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.emwp-lesson-nav-next {
    justify-content: flex-start;
    text-align: left;
    margin-left: 0;
}

.emwp-lesson-nav-next span {
    align-items: flex-start;
}

/* Content layout responsive: expand sidebar on larger screens */
@media (min-width: 901px) {
    .emwp-content-layout {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
    .emwp-content-sidebar {
        position: sticky;
        top: calc(var(--emwp-topbar-h) + 16px);
        max-height: calc(100vh - var(--emwp-topbar-h) - 32px);
        overflow-y: auto;
    }
}

@media (min-width: 1101px) {
    .emwp-content-layout {
        grid-template-columns: 1fr 360px;
        gap: 28px;
    }
}

/* Lesson nav: side-by-side on wider screens */
@media (min-width: 541px) {
    .emwp-lesson-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }
    .emwp-lesson-nav-btn {
        flex: 0 1 calc(50% - 6px);
        width: auto;
    }
    .emwp-lesson-nav-next {
        justify-content: flex-end;
        text-align: right;
        margin-left: auto;
    }
    .emwp-lesson-nav-next span {
        align-items: flex-end;
    }
}

/* ========== BLOCKED PAGE ========== */
.emwp-blocked-page {
    text-align: center;
    padding: 60px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.emwp-blocked-icon {
    color: #94A3B8;
    margin-bottom: 20px;
}

.emwp-blocked-icon svg {
    width: 64px;
    height: 64px;
}

.emwp-blocked-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
}

.emwp-blocked-msg {
    color: #64748B;
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.emwp-teaser-text {
    text-align: left;
    background: #FFFFFF;
    padding: 24px;
    border-radius: var(--emwp-radius);
    margin: 20px 0;
    box-shadow: var(--emwp-shadow);
    color: #475569;
    position: relative;
}

.emwp-teaser-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #FFFFFF);
}

/* ========== EMPTY STATE ========== */
.emwp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 12px;
    color: #94A3B8;
}

.emwp-empty-state svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.emwp-empty-state p {
    font-size: 0.9375rem;
    margin: 0;
}

/* ========== ACCOUNT PAGE ========== */

/* Hero do perfil */
.emwp-acct-hero {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.emwp-acct-hero-inner {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
}

/* Avatar */
.emwp-acct-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.emwp-acct-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F1F5F9;
    display: block;
}

.emwp-acct-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: .02em;
}

.emwp-acct-avatar-hint {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--emwp-primary, #3B82F6);
    border: 2px solid var(--emwp-primary, #3B82F6);
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
    text-decoration: none;
}

.emwp-acct-avatar-wrap:hover .emwp-acct-avatar-hint { opacity: 1; }

/* Info do hero */
.emwp-acct-hero-info {
    flex: 1;
    min-width: 0;
}

.emwp-acct-hero-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emwp-acct-hero-email {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0 0 12px;
}

.emwp-acct-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.emwp-acct-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94A3B8;
}

.emwp-acct-hero-meta-item svg { flex-shrink: 0; }

/* Plano no hero */
.emwp-acct-hero-plan {
    flex-shrink: 0;
    text-align: left;
    width: 100%;
    min-width: unset;
}

.emwp-acct-hero-plan-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94A3B8;
    margin: 0 0 6px;
}

.emwp-acct-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.emwp-acct-plan-desc {
    font-size: 11.5px;
    color: #64748B;
    margin: 0 0 8px;
    text-align: left;
}

.emwp-acct-plan-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--emwp-primary);
    text-decoration: none;
}

.emwp-acct-plan-link:hover { text-decoration: underline; }

/* Card do formulário */
.emwp-acct-form-card {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
    overflow: hidden;
}

.emwp-acct-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #F1F5F9;
    color: #0F172A;
}

.emwp-acct-form-header h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0;
}

.emwp-profile-form {
    padding: 20px;
}

.emwp-acct-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Divisor de seção */
.emwp-acct-section-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    border-top: 1px solid #F1F5F9;
    margin-top: 4px;
}

.emwp-acct-section-divider small {
    font-weight: 400;
    color: #94A3B8;
    font-size: 12px;
    margin-left: 2px;
}

/* Campo de senha com botões */
.emwp-input-pass-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.emwp-input-pass-wrap .emwp-input {
    flex: 1;
    padding-left: 44px;  /* espaço para o olho à esquerda */
    padding-right: 70px; /* espaço para botão Gerar à direita */
    border-radius: var(--emwp-radius-sm);
}

/* Sem botão Gerar: só o olhinho (confirm + login) */
.emwp-input-pass-wrap--confirm .emwp-input,
.emwp-input-pass-wrap--login   .emwp-input {
    padding-left: 44px;
    padding-right: 12px;
}

/* Toggle olho — sempre à esquerda */
.emwp-pass-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94A3B8;
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color .15s;
}

.emwp-pass-toggle:hover { color: #475569; }

/* Botão gerar senha */
.emwp-pass-gen {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    padding: 0 10px;
    background: #F8FAFC;
    border: none;
    border-left: 1px solid #E2E8F0;
    border-radius: 0 var(--emwp-radius-sm) var(--emwp-radius-sm) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.emwp-pass-gen:hover {
    background: #EFF6FF;
    color: var(--emwp-primary);
}

/* Barra de força de senha */
.emwp-pass-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    min-height: 18px;
}

.emwp-pass-strength-bar {
    flex: 1;
    height: 4px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.emwp-pass-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width .3s ease, background-color .3s ease;
}

.emwp-pass-strength-label {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 72px;
    text-align: right;
}

/* Hint de confirmação de senha */
.emwp-pass-match-hint {
    font-size: 11.5px;
    font-weight: 500;
    margin: 6px 0 0;
}

.emwp-pass-match--ok  { color: #10B981; }
.emwp-pass-match--err { color: #EF4444; }

/* Notificação */
.emwp-profile-notice {
    padding: 12px 16px;
    border-radius: var(--emwp-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.emwp-profile-notice-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.emwp-profile-notice-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Ações do formulário */
.emwp-acct-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

/* Labels com ícone */
.emwp-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.emwp-label svg { color: #94A3B8; flex-shrink: 0; }

/* Account responsive — min-width */
@media (min-width: 481px) {
    .emwp-input-pass-wrap .emwp-input { padding-right: 52px; }
    .emwp-pass-gen span { display: none; }
    .emwp-pass-gen { padding: 0 8px; }
}

@media (min-width: 769px) {
    .emwp-acct-hero-inner {
        flex-wrap: nowrap;
        padding: 28px 32px;
        gap: 24px;
    }
    .emwp-acct-hero-name { font-size: 1.375rem; }
    .emwp-acct-avatar { width: 88px; height: 88px; }
    .emwp-acct-hero-plan {
        text-align: right;
        width: auto;
        min-width: 140px;
    }
    .emwp-acct-plan-desc { text-align: right; }
    .emwp-acct-form-row {
        grid-template-columns: 1fr 1fr;
    }
    .emwp-profile-form {
        padding: 24px 28px;
    }
    .emwp-acct-form-header {
        padding: 20px 28px;
    }
}

/* ========== 404 ========== */
.emwp-page-404 {
    text-align: center;
    padding: 80px 20px;
}

.emwp-404-icon {
    color: #CBD5E1;
    margin-bottom: 20px;
}

.emwp-404-icon svg {
    width: 64px;
    height: 64px;
}

.emwp-page-404 h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
}

.emwp-page-404 p {
    color: #64748B;
    margin-bottom: 24px;
}

/* ========== PUBLIC BUTTON ========== */
.emwp-public-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--emwp-primary, #3B82F6);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.emwp-public-btn:hover {
    background: var(--emwp-secondary, #1E40AF);
    color: #FFFFFF;
}

/* ========== RESPONSIVE — MIN-WIDTH BREAKPOINTS (mobile-first) ========== */

/* 481px+: show plan badge, 2-col gallery */
@media (min-width: 481px) {
    .emwp-topbar-plan {
        display: inline-flex;
    }
    .emwp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 769px+: sidebar visible, desktop layout */
@media (min-width: 769px) {
    .emwp-sidebar {
        transform: translateX(0);
    }
    .emwp-sidebar-close {
        display: none;
    }
    .emwp-sidebar-overlay {
        display: none !important;
    }
    .emwp-main {
        margin-left: var(--emwp-sidebar-w);
    }
    .emwp-menu-toggle {
        display: none;
    }
    .emwp-topbar {
        padding: 0 24px;
    }
    .emwp-topbar-user {
        display: flex;
    }
    .emwp-content-area {
        padding: 20px;
    }
    .emwp-welcome-card {
        padding: 28px 32px;
        margin-bottom: 32px;
    }
    .emwp-welcome-text h2 {
        font-size: 1.375rem;
    }
    .emwp-grid-areas {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .emwp-grid-categories {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .emwp-grid-contents {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .emwp-card-cover {
        height: 160px;
    }
    .emwp-card-thumb {
        height: 140px;
    }
    .emwp-content-title {
        font-size: 1.75rem;
    }
    .emwp-account-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    .emwp-profile-form .emwp-form-row-2col {
        grid-template-columns: 1fr 1fr;
    }
    .emwp-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .emwp-auth-card {
        padding: 32px;
    }
    .emwp-breadcrumb {
        font-size: 0.875rem;
    }
    .emwp-area-title,
    .emwp-category-title {
        font-size: 1.5rem;
    }
}

/* 1025px+: full desktop padding and grid sizes */
@media (min-width: 1025px) {
    .emwp-content-area {
        padding: 24px;
    }
    .emwp-grid-areas {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    .emwp-grid-categories {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .emwp-grid-contents {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ========== FIX: botões dentro de links herdam cor correta ========== */
.emwp-body a.emwp-btn {
    color: inherit;
}
.emwp-body a.emwp-btn-primary,
.emwp-body a.emwp-btn-primary:hover {
    color: #FFFFFF;
}
.emwp-body a.emwp-btn-ghost {
    color: #475569;
}
.emwp-body a.emwp-btn-outline,
.emwp-body a.emwp-btn-outline:hover {
    color: #475569;
}

/* ========== MÓDULOS HEADER (abrir/fechar todas) ========== */
.emwp-modules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.emwp-modules-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0F172A;
}

.emwp-modules-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

/* Progress wrap in modules header */
.emwp-modules-header {
    flex-wrap: wrap;
}

.emwp-modules-header .emwp-progress-wrap {
    margin-top: 6px;
}

.emwp-modules-toggle-btn:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
}

.emwp-modules-toggle-btn svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.emwp-modules-toggle-btn[data-state="closed"] svg {
    transform: rotate(180deg);
}

/* ========== MODAL DE CONTEÚDO BLOQUEADO ========== */
.emwp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.emwp-modal-overlay.emwp-modal-visible {
    display: flex;
}

.emwp-modal-box {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    box-shadow: var(--emwp-shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 40px 32px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: emwpModalIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes emwpModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.emwp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #F1F5F9;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    transition: background 0.15s, color 0.15s;
}

.emwp-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.emwp-modal-close svg {
    width: 16px;
    height: 16px;
}

.emwp-modal-icon {
    width: 64px;
    height: 64px;
    background: #FEF3C7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #D97706;
}

.emwp-modal-icon svg {
    width: 32px;
    height: 32px;
}

.emwp-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 10px;
}

.emwp-modal-msg {
    font-size: 0.9375rem;
    color: #64748B;
    margin: 0 0 28px;
    line-height: 1.5;
}

.emwp-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Alert modal (emwpAlert — reutiliza estrutura do modal) */
.emwp-alert-modal.emwp-alert-success .emwp-modal-icon { background: #DCFCE7; color: #16A34A; }
.emwp-alert-modal.emwp-alert-error .emwp-modal-icon   { background: #FEE2E2; color: #DC2626; }
.emwp-alert-modal.emwp-alert-info .emwp-modal-icon    { background: #DBEAFE; color: #2563EB; }

/* Modal de comentário — formulário em destaque, left-aligned e mais largo */
.emwp-comment-modal-box {
    max-width: 640px;
    text-align: left;
    padding: 28px 28px 24px;
}
.emwp-comment-modal-title {
    font-size: 18px; font-weight: 700;
    color: #0F172A; margin: 0 0 6px;
    padding-right: 40px;
}
.emwp-comment-modal-overlay .emwp-comments-loggedin {
    font-size: 13px; color: #64748B; margin: 0 0 14px;
}
.emwp-comment-modal-overlay .emwp-comments-field { margin: 0 0 14px; }
.emwp-comment-modal-overlay .emwp-comments-field textarea {
    width: 100%; box-sizing: border-box;
    border: 1px solid #CBD5E1; border-radius: 8px;
    padding: 12px 14px; font-size: 14px; font-family: inherit;
    resize: vertical; min-height: 120px;
    transition: border-color .15s, box-shadow .15s;
}
.emwp-comment-modal-overlay .emwp-comments-field textarea:focus {
    outline: none; border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.emwp-comment-modal-overlay .form-submit { margin: 0; text-align: right; }

/* ========== LAYOUT PÁGINA DE PLANOS (body dedicado) ========== */

.emwp-plans-body {
    background: linear-gradient(160deg, #F0F4FF 0%, #F8FAFC 50%, #EEF2FF 100%);
    min-height: 100vh;
}

.emwp-plans-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.emwp-plans-topbar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.emwp-plans-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.emwp-plans-logo {
    max-height: 40px;
}

.emwp-plans-site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
}

.emwp-plans-main {
    flex: 1;
    padding: 32px 16px 48px;
}

.emwp-plans-footer-bar {
    text-align: center;
    padding: 20px;
    font-size: 0.8125rem;
    color: #94A3B8;
    border-top: 1px solid #E2E8F0;
    background: rgba(255,255,255,0.6);
}

.emwp-plans-footer-bar p { margin: 0; }

/* ========== PÁGINA DE PLANOS — conteúdo ========== */

.emwp-plans-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero */
.emwp-plans-hero {
    text-align: center;
    margin-bottom: 56px;
}

.emwp-plans-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--emwp-primary, #3B82F6), var(--emwp-secondary, #1E40AF));
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.emwp-plans-hero-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.emwp-plans-hero-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.emwp-plans-hero-subtitle {
    font-size: 0.9375rem;
    color: #64748B;
    margin: 0;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* Grid de cards — base: single column on mobile */
.emwp-plans-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 40px;
}

.emwp-plans-cards--centered {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Card individual (.emwp-pcard) */
.emwp-pcard {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
}

.emwp-pcard:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.emwp-pcard--featured {
    box-shadow: 0 20px 60px rgba(59,130,246,0.2), 0 4px 16px rgba(0,0,0,0.08);
    border-color: transparent;
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
}

.emwp-pcard--featured:hover {
    box-shadow: 0 28px 72px rgba(59,130,246,0.28), 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-12px) scale(1.02);
}

/* Badge "Mais Popular" */
.emwp-pcard-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    z-index: 3;
}

.emwp-pcard-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Header colorido do card */
.emwp-pcard-header {
    padding: 36px 28px 28px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo de fundo */
.emwp-pcard-header-deco {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    pointer-events: none;
}

.emwp-pcard-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.emwp-pcard-pricing {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.emwp-pcard-price-free {
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.95;
    letter-spacing: -0.03em;
}

.emwp-pcard-price-wrap {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    line-height: 1;
}

.emwp-pcard-currency {
    font-size: 1rem;
    font-weight: 700;
    padding-top: 6px;
    opacity: 0.85;
}

.emwp-pcard-amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.emwp-pcard-period {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.75;
    padding-bottom: 6px;
    margin-left: 2px;
}

/* Corpo do card */
.emwp-pcard-body {
    padding: 28px 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.emwp-pcard-desc {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0;
    line-height: 1.65;
    flex: 1;
}

.emwp-pcard-desc--empty {
    color: #94A3B8;
    font-style: italic;
}

/* Botão CTA */
.emwp-pcard-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    border: 2px solid var(--pcard-color, var(--emwp-primary, #3B82F6));
    color: var(--pcard-color, var(--emwp-primary, #3B82F6));
    background: transparent;
    text-align: center;
}

.emwp-pcard-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.emwp-pcard-cta:hover {
    background: var(--pcard-color, var(--emwp-primary, #3B82F6));
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.emwp-pcard-cta:hover svg {
    transform: translateX(3px);
}

.emwp-body a.emwp-pcard-cta {
    color: var(--pcard-color, var(--emwp-primary, #3B82F6));
}

.emwp-body a.emwp-pcard-cta:hover {
    color: #FFFFFF;
}

/* CTA do plano destaque (fundo cheio) */
.emwp-pcard-cta--featured {
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.emwp-pcard-cta--featured:hover {
    filter: brightness(1.08);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.emwp-body a.emwp-pcard-cta--featured,
.emwp-body a.emwp-pcard-cta--featured:hover {
    color: #FFFFFF;
}

/* Garantia / segurança abaixo do botão */
.emwp-pcard-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94A3B8;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.emwp-pcard-guarantee svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #CBD5E1;
}

/* Trust badges — base: column on mobile */
.emwp-plans-trust {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    padding: 20px 0 32px;
    border-top: 1px solid #E2E8F0;
    margin-bottom: 24px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.emwp-plans-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748B;
    font-weight: 500;
}

.emwp-plans-trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--emwp-primary, #3B82F6);
    flex-shrink: 0;
}

/* Link "Já tem conta" */
.emwp-plans-login-link {
    text-align: center;
    font-size: 0.9375rem;
    color: #64748B;
    padding-bottom: 16px;
}

.emwp-plans-login-link a {
    color: var(--emwp-primary, #3B82F6);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.emwp-plans-login-link a:hover {
    text-decoration: underline;
}

/* Estado vazio */
.emwp-plans-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 80px 20px;
    text-align: center;
    color: #94A3B8;
}

.emwp-plans-empty svg {
    width: 48px;
    height: 48px;
}

.emwp-plans-empty p {
    font-size: 1rem;
    margin: 0;
}

/* Plans responsive — min-width */
@media (min-width: 641px) {
    .emwp-plans-hero-title {
        font-size: 2rem;
    }
    .emwp-plans-hero-subtitle {
        font-size: 1.0625rem;
    }
    .emwp-plans-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        margin-bottom: 56px;
    }
    .emwp-plans-trust {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        max-width: none;
        padding: 28px 0 40px;
    }
    .emwp-plans-main {
        padding: 48px 24px 64px;
    }
}

@media (min-width: 901px) {
    .emwp-plans-hero-title {
        font-size: 2.5rem;
    }
    .emwp-pcard--featured {
        transform: translateY(-8px) scale(1.02);
        z-index: 2;
    }
    .emwp-pcard--featured:hover {
        transform: translateY(-12px) scale(1.02);
    }
    .emwp-plans-trust {
        gap: 32px;
    }
}

/* compat — manter .emwp-plans-back para links avulsos que possam usar a classe */
.emwp-plans-back {
    text-align: center;
}

/* ========== BLOG / FEED DE POSTAGENS ========== */

/* Página wrapper */
.emwp-blog-page {
    max-width: 100%;
}

/* Cabeçalho: título + controles — base: stacked on mobile */
.emwp-blog-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.emwp-blog-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.emwp-blog-cats-line {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
}

/* Controles de filtro — base: full width on mobile */
.emwp-blog-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    width: 100%;
}

.emwp-blog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.emwp-blog-search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: #94A3B8;
    pointer-events: none;
}

.emwp-blog-search-input {
    padding: 8px 12px 8px 32px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1E293B;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.emwp-blog-search-input:focus {
    border-color: var(--emwp-primary, #3B82F6);
}

.emwp-blog-select {
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1E293B;
    background: #FFFFFF;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 28px;
}

.emwp-blog-select:focus {
    border-color: var(--emwp-primary, #3B82F6);
}

/* Categoria badge */
.emwp-blog-cat-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--emwp-primary, #3B82F6);
    background: rgba(59,130,246,0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.emwp-blog-cat-badge--accent {
    color: var(--emwp-accent, #10B981);
    background: rgba(16,185,129,0.1);
}

/* Lock overlay (shared) */
.emwp-blog-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,0.4);
    color: #FFFFFF;
}

/* ---- HERO (primeiro post) — base: stacked on mobile ---- */
.emwp-blog-hero {
    display: grid;
    grid-template-columns: 1fr;
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    box-shadow: var(--emwp-shadow);
    overflow: hidden;
    margin-bottom: 28px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.emwp-blog-hero:hover {
    box-shadow: var(--emwp-shadow-lg);
}

.emwp-blog-hero-img {
    position: relative;
    overflow: hidden;
    min-height: 140px;
    max-height: 200px;
    background: #E2E8F0;
}

.emwp-blog-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.emwp-blog-hero:hover .emwp-blog-hero-img img {
    transform: scale(1.03);
}

.emwp-blog-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.emwp-blog-hero-info {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.emwp-blog-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--emwp-primary, #3B82F6);
    text-transform: uppercase;
}

.emwp-blog-hero-label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.emwp-blog-hero-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.emwp-blog-hero-excerpt {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

.emwp-blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748B;
    flex-wrap: wrap;
}

.emwp-blog-meta-dot {
    color: #CBD5E1;
}

.emwp-blog-meta-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.emwp-blog-meta-time svg {
    width: 13px;
    height: 13px;
}

.emwp-blog-hero-read {
    margin-left: auto;
    font-weight: 600;
    color: var(--emwp-primary, #3B82F6);
    white-space: nowrap;
}

/* ---- LISTA de posts — base: stacked on mobile ---- */
.emwp-blog-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #E2E8F0;
    border-radius: var(--emwp-radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.emwp-blog-list-item {
    display: grid;
    grid-template-columns: 1fr;
    background: #FFFFFF;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    min-height: auto;
}

.emwp-blog-list-item:hover {
    background: #F8FAFC;
}

.emwp-blog-list-thumb {
    position: relative;
    overflow: hidden;
    background: #E2E8F0;
    height: 180px;
}

.emwp-blog-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.emwp-blog-list-item:hover .emwp-blog-list-thumb img {
    transform: scale(1.04);
}

.emwp-blog-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.emwp-blog-list-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.emwp-blog-list-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.emwp-blog-list-date {
    font-size: 0.8125rem;
    color: #94A3B8;
}

.emwp-blog-list-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.35;
}

.emwp-blog-list-excerpt {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

.emwp-blog-list-read {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--emwp-primary, #3B82F6);
    margin-top: 4px;
}

/* ---- PAGINAÇÃO ---- */
.emwp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}

.emwp-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s;
}

.emwp-body a.emwp-pagination-btn {
    color: #374151;
}

.emwp-pagination-btn:hover,
.emwp-body a.emwp-pagination-btn:hover {
    border-color: var(--emwp-primary, #3B82F6);
    color: var(--emwp-primary, #3B82F6);
}

.emwp-pagination-info {
    font-size: 0.875rem;
    color: #64748B;
}

/* Botão sm */
.emwp-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ========== SINGLE POST ========== */
.emwp-post-page {
    max-width: 100%;
}

.emwp-post-header {
    margin-bottom: 28px;
}

.emwp-post-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.emwp-post-meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
}

.emwp-post-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.emwp-post-date {
    font-size: 0.875rem;
    color: #64748B;
}

.emwp-post-read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #64748B;
}

.emwp-post-read-time svg {
    width: 14px;
    height: 14px;
}

/* Botões de share */
.emwp-post-share {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.emwp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

.emwp-share-btn span {
    display: none;
}

.emwp-share-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.emwp-share-btn:hover,
.emwp-body a.emwp-share-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.emwp-body a.emwp-share-btn {
    color: #374151;
}

.emwp-share-btn--whatsapp:hover { border-color: #25D366; color: #25D366; background: #F0FDF4; }
.emwp-share-btn--twitter:hover  { border-color: #000000; color: #000000; background: #F8FAFC; }
.emwp-share-btn--linkedin:hover { border-color: #0A66C2; color: #0A66C2; background: #EFF6FF; }
.emwp-share-btn--copy:hover     { border-color: var(--emwp-primary); color: var(--emwp-primary); }

/* Imagem de destaque */
.emwp-post-thumb {
    border-radius: var(--emwp-radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.emwp-post-thumb img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Layout 2 colunas — base: single column on mobile */
.emwp-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

/* Conteúdo do post */
.emwp-post-content {
    min-width: 0;
}

.emwp-post-body {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    padding: 20px;
    box-shadow: var(--emwp-shadow);
    font-size: 1rem;
    line-height: 1.75;
    color: #1E293B;
}

.emwp-post-body h2,
.emwp-post-body h3,
.emwp-post-body h4 {
    color: #0F172A;
    margin: 1.5em 0 0.5em;
    font-weight: 700;
    line-height: 1.3;
}

.emwp-post-body p { margin: 0 0 1.25em; }
.emwp-post-body ul,
.emwp-post-body ol { padding-left: 1.5em; margin: 0 0 1.25em; }
.emwp-post-body li { margin-bottom: 0.4em; }
.emwp-post-body img { border-radius: 8px; max-width: 100%; height: auto; }
.emwp-post-body blockquote {
    border-left: 4px solid var(--emwp-primary, #3B82F6);
    margin: 1.5em 0;
    padding: 12px 20px;
    background: #F8FAFC;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}
.emwp-post-body a { color: var(--emwp-primary, #3B82F6); }
.emwp-post-body code {
    background: #F1F5F9;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.875em;
    color: #DC2626;
}
.emwp-post-body pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.6;
}

/* Teaser (conteúdo bloqueado) */
.emwp-post-teaser {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    padding: 28px 32px;
    box-shadow: var(--emwp-shadow);
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.emwp-post-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #FFFFFF);
}

.emwp-post-blocked {
    background: #FFFFFF;
    border-radius: var(--emwp-radius);
    padding: 40px 32px;
    box-shadow: var(--emwp-shadow);
    text-align: center;
    border-top: 3px solid var(--emwp-primary, #3B82F6);
}

.emwp-post-blocked .emwp-blocked-icon {
    color: #CBD5E1;
    margin-bottom: 12px;
}

.emwp-post-blocked h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px;
}

.emwp-post-blocked p {
    font-size: 0.9375rem;
    color: #64748B;
    margin: 0 0 20px;
}

.emwp-post-back {
    margin-top: 24px;
}

.emwp-post-back .emwp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    width: auto;
    padding: 8px 16px;
    font-size: 0.875rem;
}

.emwp-post-back .emwp-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ========== CODE BLOCKS — terminal window ========== */
.emwp-code-window {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    font-size: 0.875rem;
}

.emwp-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    padding: 8px 14px;
}

.emwp-code-lang {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
    text-transform: lowercase;
}

.emwp-code-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.emwp-code-copy-btn:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #0F172A;
}

.emwp-code-copy-btn svg {
    flex-shrink: 0;
}

.emwp-code-window pre {
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: #1E293B !important;
    padding: 18px 20px !important;
    overflow-x: auto;
}

.emwp-code-window pre code,
.emwp-code-window code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #E2E8F0;
    white-space: pre;
}

/* código inline (não dentro de pre) */
.emwp-post-body code:not(pre code) {
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
    font-size: 0.85em;
}

/* Bloco de anúncio no post */
.emwp-post-ad-block {
    margin: 28px 0;
    text-align: center;
}

.emwp-post-ad-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Sidebar do post — base: static on mobile */
.emwp-post-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emwp-post-sidebar-widget {
    border-radius: var(--emwp-radius);
    overflow: hidden;
}

/* Widget CTA */
.emwp-post-cta-widget {
    padding: 28px 24px;
    text-align: center;
}

.emwp-post-cta-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #FFFFFF;
}

.emwp-post-cta-icon svg { width: 22px; height: 22px; }

.emwp-post-cta-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 20px;
    line-height: 1.5;
}

.emwp-post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.95);
    color: #0F172A;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.emwp-post-cta-btn:hover,
.emwp-body a.emwp-post-cta-btn:hover {
    background: #FFFFFF;
    color: #0F172A;
}

.emwp-post-cta-btn svg { width: 14px; height: 14px; }

/* Widget de anúncio */
.emwp-post-ad-widget {
    background: #FFFFFF;
    box-shadow: var(--emwp-shadow);
    padding: 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.emwp-post-ad-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94A3B8;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
}

.emwp-post-ad-widget {
    position: relative;
    padding-top: 32px;
}

.emwp-post-ad-placeholder {
    font-size: 0.875rem;
    font-weight: 600;
    color: #CBD5E1;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Blog/Post responsive — min-width */
@media (min-width: 541px) {
    .emwp-blog-list-item {
        grid-template-columns: 140px 1fr;
        min-height: 120px;
    }
    .emwp-blog-list-thumb {
        height: auto;
    }
    .emwp-share-btn span {
        display: inline;
    }
    .emwp-share-btn {
        padding: 7px 12px;
    }
}

@media (min-width: 769px) {
    .emwp-blog-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 32px;
        flex-wrap: wrap;
    }
    .emwp-blog-controls {
        width: auto;
        flex-shrink: 0;
    }
    .emwp-blog-search-input {
        width: 180px;
    }
    .emwp-blog-hero {
        grid-template-columns: 1fr 1fr;
        max-height: 340px;
    }
    .emwp-blog-hero-img {
        min-height: 100%;
        max-height: 340px;
        height: 100%;
    }
    .emwp-blog-hero-info {
        justify-content: center;
        overflow: hidden;
    }
    .emwp-blog-hero-info {
        padding: 36px 32px;
    }
    .emwp-blog-hero-title {
        font-size: 1.5rem;
    }
    .emwp-blog-list-item {
        grid-template-columns: 200px 1fr;
        min-height: 140px;
    }
    .emwp-blog-list-body {
        padding: 20px 24px;
    }
    .emwp-blog-title {
        font-size: 2rem;
    }
    .emwp-post-title {
        font-size: 2rem;
    }
    .emwp-post-meta-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
    }
    .emwp-post-body {
        padding: 32px;
    }
    .emwp-post-thumb img {
        max-height: 480px;
    }
}

@media (min-width: 901px) {
    .emwp-post-layout {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }
    .emwp-post-sidebar {
        position: sticky;
        top: calc(var(--emwp-topbar-h) + 16px);
    }
}

/* ========== BANNER DE VIGÊNCIA DO PLANO ========== */

.emwp-plan-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 24px;
    font-size: 13.5px;
    font-weight: 500;
    flex-shrink: 0;
}

.emwp-plan-banner--expired {
    background: #FEE2E2;
    color: #991B1B;
    border-bottom: 1px solid #FECACA;
}

.emwp-plan-banner--warning {
    background: #FEF3C7;
    color: #92400E;
    border-bottom: 1px solid #FDE68A;
}

.emwp-plan-banner-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emwp-plan-banner-btn {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.emwp-plan-banner--expired .emwp-plan-banner-btn {
    background: #DC2626;
    color: #fff;
}

.emwp-plan-banner--warning .emwp-plan-banner-btn {
    background: #D97706;
    color: #fff;
}

.emwp-plan-banner-btn:hover { opacity: 0.85; }

/* Badge de expiração na sidebar */
.emwp-nav-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}
.emwp-nav-badge--red    { background: #FEE2E2; color: #DC2626; }
.emwp-nav-badge--yellow { background: #FEF3C7; color: #D97706; }
.emwp-nav-badge--blue   { background: #EFF6FF; color: #2563EB; }
.emwp-nav-expired { color: #EF4444 !important; }

/* Indicador membros online (topbar) */
.emwp-topbar-online {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: #ECFDF5;
    border-radius: 16px;
    text-decoration: none;
    transition: background .15s;
}

.emwp-topbar-online:hover {
    background: #D1FAE5;
    color: #047857;
}

.emwp-online-dot-sm {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    margin-right: 2px;
    animation: emwp-pulse-fe 2s infinite;
}

@keyframes emwp-pulse-fe {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* Alerta de perfil incompleto na sidebar */
.emwp-sidebar-profile-alert {
    margin: 8px 12px 4px;
}
.emwp-sidebar-profile-alert-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 8px;
    text-decoration: none;
    color: #92400E;
    font-size: 12px;
    line-height: 1.3;
    transition: opacity .15s;
}
.emwp-sidebar-profile-alert-link:hover { opacity: .85; }
.emwp-sidebar-profile-alert-link svg { flex-shrink: 0; color: #D97706; }
.emwp-sidebar-profile-alert-link div { flex: 1; }
.emwp-sidebar-profile-alert-link strong { display: block; font-size: 11px; font-weight: 700; }
.emwp-sidebar-profile-alert-link span  { font-size: 10px; opacity: .85; }

/* Alerta de pagamento pendente (devedor) na sidebar */
.emwp-sidebar-debt-alert {
    margin: 8px 12px 4px;
}
.emwp-sidebar-debt-alert-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(239,68,68,.18) 0%, rgba(220,38,38,.12) 100%);
    border: 1px solid rgba(239,68,68,.35);
    border-radius: 8px;
    text-decoration: none;
    color: #FEF2F2;
    line-height: 1.3;
    transition: opacity .15s;
}
.emwp-sidebar-debt-alert-link:hover { opacity: .85; }
.emwp-sidebar-debt-alert-link svg { flex-shrink: 0; color: #F87171; }
.emwp-sidebar-debt-alert-link div { flex: 1; }
.emwp-sidebar-debt-alert-link strong { display: block; font-size: 11px; font-weight: 700; }
.emwp-sidebar-debt-alert-link span  { font-size: 10px; opacity: .85; }

/* ========== MINHA ASSINATURA ========== */

.emwp-page-account {
    max-width: 820px;
}

.emwp-subscription-page { max-width: 100%; }

/* ── Cobrança pendente (banner) ── */
.emwp-sub-pending-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #FFFBEB;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.emwp-sub-pending-icon { color: #D97706; flex-shrink: 0; margin-top: 2px; }
.emwp-sub-pending-info { flex: 1; font-size: 14px; color: #78350F; }
.emwp-sub-pending-info strong { display: block; font-weight: 700; margin-bottom: 4px; }
.emwp-sub-pending-info p { margin: 0; opacity: .85; }
.emwp-sub-pending-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.emwp-renew-pix-area { margin-bottom: 20px; }

/* v1.16.9 — Lista de cobranças pendentes (banner múltiplo) */
.emwp-sub-pending-stack {
    background: #FFFBEB;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 14px 18px 6px;
    margin-bottom: 20px;
}
.emwp-sub-pending-stack-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #78350F;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(245, 158, 11, .4);
}
.emwp-sub-pending-stack-header svg { color: #D97706; }
.emwp-sub-pending-stack .emwp-sub-pending-banner {
    background: #FFFFFF;
    border: 1px solid #FDE68A;
    margin-bottom: 8px;
    padding: 12px 14px;
    align-items: center;
    gap: 12px;
}
.emwp-sub-pending-stack .emwp-sub-pending-banner:last-child { margin-bottom: 8px; }
.emwp-sub-pending-stack .emwp-sub-pending-info { font-size: 13px; }
.emwp-sub-pending-stack .emwp-sub-pending-info p { font-size: 12px; }

.emwp-btn-sm {
    font-size: 12px;
    padding: 6px 10px;
    gap: 4px;
}
.emwp-sub-td-actions { white-space: nowrap; }

/* ── Troca de plano ── */
.emwp-sub-change-plan {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 24px;
    padding: 24px 28px;
}
.emwp-sub-change-plan-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 4px 0 16px;
}
.emwp-sub-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.emwp-sub-plan-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    transition: border-color .15s;
}
.emwp-sub-plan-option--current {
    border-color: var(--plan-color, #3B82F6);
    background: rgba(59,130,246,.04);
}
.emwp-sub-plan-option-icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--plan-color, #3B82F6);
    flex-shrink: 0;
}
.emwp-sub-plan-option-info { flex: 1; }
.emwp-sub-plan-option-info strong { display: block; font-size: 14px; font-weight: 600; color: #111827; white-space: nowrap; }
.emwp-sub-plan-option-price { font-size: 12px; color: #6B7280; }
.emwp-sub-plan-option-price--free { color: #10B981; font-weight: 600; }
.emwp-sub-plan-option-action { flex-shrink: 0; }
.emwp-sub-badge--current {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    background: #DCFCE7; color: #15803D;
    padding: 3px 8px; border-radius: 999px;
}
.emwp-sub-badge--pending {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    background: #FEF3C7; color: #B45309;
    padding: 3px 8px; border-radius: 999px;
}
.emwp-sub-change-plan-feedback { margin-top: 14px; }
.emwp-sub-meta-item--pending-downgrade { color: #D97706 !important; }

/* ── Campo hint ── */
.emwp-field-hint { font-size: 12px; margin: 4px 0 0; }

.emwp-sub-plan-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 24px;
}

.emwp-sub-plan-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid #F1F5F9;
}

.emwp-sub-plan-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    color: var(--plan-color, #3B82F6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emwp-sub-plan-info { flex: 1; }

.emwp-sub-plan-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94A3B8;
    margin: 0 0 2px;
}

.emwp-sub-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.emwp-sub-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}
.emwp-sub-status--active   { background: #D1FAE5; color: #065F46; }
.emwp-sub-status--lifetime { background: #EDE9FE; color: #5B21B6; }
.emwp-sub-status--warning  { background: #FEF3C7; color: #92400E; }
.emwp-sub-status--expired  { background: #FEE2E2; color: #991B1B; }

.emwp-sub-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 16px 28px;
    border-bottom: 1px solid #F1F5F9;
}

.emwp-sub-plan-meta:empty {
    display: none;
}

.emwp-sub-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
}

.emwp-sub-renew-section {
    padding: 20px 28px 24px;
    background: #FAFBFF;
    border-top: 1px solid #F1F5F9;
}

.emwp-sub-renew-desc {
    font-size: 13px;
    color: #64748B;
    margin: 0 0 16px;
}

.emwp-sub-payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.emwp-renew-pix-area { margin-top: 20px; }

/* ── PIX card redesign (subscription page) ── */
.emwp-sub-pix-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.emwp-sub-pix-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 600px) {
    .emwp-sub-pix-layout { flex-direction: row; align-items: stretch; }
    .emwp-sub-pix-qr-col {
        border-right: 1px solid #E2E8F0;
        flex: 0 0 260px;
    }
}

.emwp-sub-pix-qr-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.emwp-sub-pix-qr-col img,
.emwp-sub-pix-qr-col .emwp-pix-qr {
    display: block;
    width: 100%;
    max-width: 212px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #fff;
    padding: 6px;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .emwp-sub-pix-qr-col { border-bottom: none; }
}

.emwp-sub-pix-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.emwp-sub-pix-timer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #374151;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 10px 14px;
}
.emwp-sub-pix-timer-row svg { width: 16px; height: 16px; stroke: #16A34A; flex-shrink: 0; }
.emwp-sub-pix-timer-row strong { color: #15803D; font-variant-numeric: tabular-nums; }

.emwp-sub-pix-code-section label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 8px;
}

.emwp-sub-pix-code-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.emwp-sub-pix-code-textarea {
    flex: 1;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    color: #334155;
    resize: none;
    height: 72px;
    line-height: 1.5;
    outline: none;
}

.emwp-sub-pix-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #6366F1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .1s;
    flex-shrink: 0;
}
.emwp-sub-pix-copy-btn svg { width: 15px; height: 15px; }
.emwp-sub-pix-copy-btn:hover { background: #4F46E5; }
.emwp-sub-pix-copy-btn--copied { background: #10B981; }

.emwp-sub-pix-how p { font-size: 0.8rem; font-weight: 600; color: #374151; margin: 0 0 6px; }
.emwp-sub-pix-how ol { margin: 0; padding-left: 18px; }
.emwp-sub-pix-how li { font-size: 0.8rem; color: #64748B; line-height: 1.6; }

.emwp-sub-pix-monitor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #6366F1;
    font-weight: 500;
}

.emwp-pix-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366F1;
    flex-shrink: 0;
    animation: emwp-pulse-dot 1.4s ease-in-out infinite;
}

.emwp-sub-pix-verify-row {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.emwp-sub-pix-verify-btn {
    align-self: flex-start;
}
.emwp-sub-pix-verify-btn svg {
    width: 16px;
    height: 16px;
}
.emwp-sub-pix-verify-result {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 8px;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

@keyframes emwp-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

/* Spinner no botão de gerar PIX */
.emwp-spinner {
    animation: emwp-spin 0.8s linear infinite;
    width: 16px;
    height: 16px;
}
@keyframes emwp-spin { to { transform: rotate(360deg); } }

/* Confirmação de pagamento na subscription */
.emwp-sub-pix-confirmed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
}
.emwp-sub-pix-confirmed svg {
    width: 56px;
    height: 56px;
    stroke: #10B981;
    background: #D1FAE5;
    border-radius: 50%;
    padding: 12px;
}
.emwp-sub-pix-confirmed p {
    font-size: 1rem;
    font-weight: 600;
    color: #065F46;
    margin: 0;
}

/* legado — mantém compatibilidade */
.emwp-pix-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 400px;
}

.emwp-pix-title {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 16px;
}

.emwp-pix-qr {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.emwp-pix-code-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.emwp-pix-code-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 11px;
    font-family: monospace;
    background: #fff;
    color: #475569;
}

.emwp-pix-note {
    font-size: 11.5px;
    color: #94A3B8;
    margin: 0;
}

.emwp-sub-history {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 24px 28px;
    margin-top: 0;
}

.emwp-sub-history-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.emwp-sub-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.emwp-sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.emwp-sub-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94A3B8;
    border-bottom: 2px solid #F1F5F9;
    white-space: nowrap;
    background: #FAFBFC;
}

.emwp-sub-table td {
    padding: 13px 12px;
    color: #334155;
    border-bottom: 1px solid #F8FAFC;
    vertical-align: middle;
    font-size: 13px;
}

.emwp-sub-table tbody tr:last-child td { border-bottom: none; }

.emwp-sub-td-date small {
    display: block;
    font-size: 11px;
    color: #94A3B8;
}

.emwp-sub-td-amount {
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
}

.emwp-sub-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Estado vazio pequeno (histórico de pagamentos) */
.emwp-empty-state--sm {
    padding: 36px 20px;
    gap: 10px;
}

.emwp-empty-state--sm svg {
    color: #CBD5E1;
}

.emwp-empty-state--sm p {
    font-size: 0.875rem;
    color: #94A3B8;
    margin: 0;
}

/* Subscription page — base styles are already mobile-first */
/* On small screens: payment buttons stack, banner wraps */
.emwp-sub-plan-header {
    flex-wrap: wrap;
    padding: 18px 20px;
    gap: 12px;
}
.emwp-plan-banner {
    padding: 10px 16px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.emwp-sub-payment-options {
    flex-direction: column;
}
.emwp-sub-payment-options .emwp-btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 641px) {
    .emwp-sub-plan-header {
        flex-wrap: nowrap;
        padding: 24px 28px;
        gap: 16px;
    }
    .emwp-sub-plan-meta,
    .emwp-sub-renew-section { padding-left: 28px; padding-right: 28px; }
    .emwp-sub-history { padding: 24px 28px; }
    .emwp-plan-banner { padding: 10px 24px; font-size: 13.5px; flex-wrap: nowrap; gap: 12px; }
    .emwp-sub-payment-options { flex-direction: row; }
    .emwp-sub-payment-options .emwp-btn { width: auto; justify-content: initial; }
}

/* ========== DOWNLOAD SEGURO ========== */

/* Botão em estado expirado */
.emwp-btn-download.emwp-download-expired {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.emwp-btn-download.emwp-download-expired::after {
    content: 'Link expirado';
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    color: #EF4444;
    font-weight: 500;
}

/* Botão "Gerar novo link" */
.emwp-download-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 8px 16px;
    border: 1.5px solid #3B82F6;
    color: #3B82F6;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.emwp-download-refresh-btn:hover {
    background: #EFF6FF;
}

.emwp-download-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.emwp-download-refresh-btn svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CHECKOUT — /membros/checkout/{slug}
   ═══════════════════════════════════════════════════════════════════ */

.emwp-checkout-body {
    background: #F8FAFC;
    min-height: 100vh;
}

.emwp-checkout-page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ── Layout duas colunas ────────────────────────────────────────── */
.emwp-checkout-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 769px) {
    .emwp-checkout-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
}

/* ── Painel esquerdo: resumo do plano ───────────────────────────── */
.emwp-checkout-plan {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

@media (min-width: 769px) {
    .emwp-checkout-plan {
        width: 320px;
        flex-shrink: 0;
        position: sticky;
        top: 24px;
    }
}

.emwp-checkout-plan-header {
    position: relative;
    overflow: hidden;
    padding: 28px 24px 24px;
    color: #fff;
}

.emwp-checkout-plan-deco {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    pointer-events: none;
}

.emwp-checkout-plan-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 8px;
}

.emwp-checkout-plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.emwp-checkout-plan-pricing {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.emwp-checkout-currency {
    font-size: 18px;
    font-weight: 600;
    opacity: .9;
}

.emwp-checkout-amount {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.emwp-checkout-plan-duration {
    font-size: 13px;
    opacity: .85;
}

.emwp-checkout-plan-body {
    padding: 20px 24px 24px;
}

.emwp-checkout-plan-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.emwp-checkout-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.emwp-checkout-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.emwp-checkout-features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #10B981;
    margin-top: 1px;
}

.emwp-checkout-security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748B;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

.emwp-checkout-security-badge svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #10B981;
}

/* ── Painel direito: formulário ─────────────────────────────────── */
.emwp-checkout-form-panel {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    padding: 28px 24px 32px;
}

.emwp-checkout-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.emwp-checkout-form-subtitle {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 24px;
}

/* Usuário logado info */
.emwp-checkout-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    margin-bottom: 24px;
}

.emwp-checkout-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.emwp-checkout-user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.emwp-checkout-user-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emwp-checkout-user-text span {
    font-size: 12px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emwp-checkout-switch-account {
    font-size: 12px;
    color: #3B82F6;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.emwp-checkout-switch-account:hover {
    text-decoration: underline;
}

/* Seções do formulário */
.emwp-checkout-section {
    margin-bottom: 24px;
}

.emwp-checkout-section:last-of-type {
    margin-bottom: 0;
}

.emwp-checkout-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.emwp-checkout-section-title svg {
    width: 15px;
    height: 15px;
    color: #94A3B8;
    flex-shrink: 0;
}

/* Campos */
.emwp-checkout-field {
    margin-bottom: 16px;
}

.emwp-checkout-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.emwp-required {
    color: #EF4444;
}

.emwp-checkout-field input[type="text"],
.emwp-checkout-field input[type="email"],
.emwp-checkout-field input[type="password"],
.emwp-checkout-field input[type="tel"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #1E293B;
    background: #FAFAFA;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
}

.emwp-checkout-field input:focus {
    border-color: #3B82F6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.emwp-checkout-field input::placeholder {
    color: #CBD5E1;
}

/* Senha com toggle */
.emwp-checkout-password-wrap {
    position: relative;
}

.emwp-checkout-password-wrap input {
    padding-right: 46px;
}

.emwp-checkout-toggle-pw {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    border-radius: 8px;
    padding: 0;
    transition: color .15s;
}

.emwp-checkout-toggle-pw:hover {
    color: #475569;
}

.emwp-checkout-toggle-pw svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.emwp-checkout-hint {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 6px;
}

.emwp-checkout-hint a {
    color: #3B82F6;
    text-decoration: none;
}

.emwp-checkout-hint a:hover {
    text-decoration: underline;
}

/* Alertas */
.emwp-checkout-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.emwp-checkout-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.emwp-checkout-alert--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.emwp-checkout-alert--warn {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

/* Botão de submissão */
.emwp-checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    margin-top: 24px;
    background: var(--co-color, #3B82F6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    gap: 8px;
}

a.emwp-checkout-submit,
a.emwp-checkout-submit:hover,
a.emwp-checkout-submit:focus,
a.emwp-checkout-submit:visited {
    color: #fff;
    text-decoration: none;
}

.emwp-checkout-submit:hover:not(:disabled) {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.emwp-checkout-submit:active:not(:disabled) {
    transform: translateY(0);
}

.emwp-checkout-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.emwp-checkout-submit-inner,
.emwp-checkout-submit-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emwp-checkout-submit svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.emwp-spinner {
    animation: emwp-spin .8s linear infinite;
}

@keyframes emwp-spin {
    to { transform: rotate(360deg); }
}

.emwp-checkout-terms {
    font-size: 11px;
    color: #94A3B8;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* CTA "Plano Atual" na listagem de planos */
.emwp-pcard-cta--active {
    background: transparent !important;
    border: 2px solid var(--pcard-color, #3B82F6);
    color: var(--pcard-color, #3B82F6) !important;
    cursor: default;
    opacity: .85;
}

.emwp-pcard-cta--active:hover {
    transform: none !important;
    box-shadow: none !important;
    opacity: .85 !important;
}

/* ── Step 2: PIX gerado ─────────────────────────────────────────── */
.emwp-checkout-pix-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.emwp-pix-success-header {
    text-align: center;
    padding: 32px 24px 24px;
}

.emwp-pix-check-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--co-color, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: emwp-pop .4s cubic-bezier(.34,1.56,.64,1);
}

@keyframes emwp-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.emwp-pix-check-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.emwp-pix-success-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.emwp-pix-success-header p {
    font-size: 14px;
    color: #64748B;
}

.emwp-pix-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    overflow: hidden;
}

@media (min-width: 641px) {
    .emwp-pix-body {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* QR Code */
.emwp-pix-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

@media (min-width: 641px) {
    .emwp-pix-qr-wrap {
        border-bottom: none;
        border-right: 1px solid #E2E8F0;
        min-width: 220px;
    }
}

.emwp-pix-qr-inner {
    width: 240px;
    height: 240px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emwp-pix-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.emwp-pix-qr-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 16px;
}

.emwp-pix-qr-overlay svg {
    width: 40px;
    height: 40px;
    color: #CBD5E1;
}

.emwp-pix-qr-overlay span {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4;
}

.emwp-pix-amount-badge {
    margin-top: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emwp-pix-amount-badge span {
    font-size: 11px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.emwp-pix-amount-badge strong {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
}

/* Detalhes: código + timer + instruções */
.emwp-pix-details {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.emwp-pix-timer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 10px 14px;
    border-radius: 10px;
}

.emwp-pix-timer-row svg {
    width: 16px;
    height: 16px;
    color: #10B981;
    flex-shrink: 0;
}

.emwp-pix-timer-row strong {
    color: #065F46;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.emwp-pix-countdown--expired {
    color: #DC2626 !important;
}

/* Tela de pagamento confirmado */
.emwp-payment-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 32px;
    min-height: 420px;
    animation: emwp-success-fadein .5s ease-out;
}

@keyframes emwp-success-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.emwp-payment-success-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 0 0 12px rgba(16, 185, 129, .08), 0 0 0 24px rgba(16, 185, 129, .04);
    animation: emwp-success-pop .6s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes emwp-success-pop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.emwp-payment-success-icon svg {
    width: 44px;
    height: 44px;
    stroke: #059669;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: emwp-check-draw .5s ease-out .3s forwards;
}

@keyframes emwp-check-draw {
    to { stroke-dashoffset: 0; }
}

.emwp-payment-success-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #065F46;
    margin: 0 0 10px;
    letter-spacing: -.02em;
}

.emwp-payment-success-subtitle {
    font-size: .975rem;
    color: #6B7280;
    margin: 0 0 36px;
    max-width: 380px;
    line-height: 1.55;
}

.emwp-payment-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(5, 150, 105, .3);
}

.emwp-payment-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, .4);
    color: #fff !important;
    text-decoration: none !important;
}

.emwp-payment-success-btn:active {
    transform: translateY(0);
}

.emwp-payment-success-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

/* ── Banner: não feche a tela ── */
.emwp-pix-monitoring-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%);
    border: 1.5px solid #FCD34D;
    border-radius: 12px;
    padding: 14px 16px;
    animation: emwp-banner-glow 2.5s ease-in-out infinite;
}

@keyframes emwp-banner-glow {
    0%, 100% { border-color: #FCD34D; box-shadow: 0 0 0 0 rgba(245,158,11,.0); }
    50%       { border-color: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,.12); }
}

/* Radar SVG animation */
.emwp-pix-radar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emwp-pix-radar-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #D97706;
    border-radius: 50%;
    z-index: 1;
}

.emwp-pix-radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #F59E0B;
    opacity: 0;
    animation: emwp-radar-expand 2.4s ease-out infinite;
}
.emwp-pix-radar-ring--1 { width: 16px; height: 16px; animation-delay: 0s; }
.emwp-pix-radar-ring--2 { width: 28px; height: 28px; animation-delay: .6s; }
.emwp-pix-radar-ring--3 { width: 40px; height: 40px; animation-delay: 1.2s; }

@keyframes emwp-radar-expand {
    0%   { transform: scale(.3); opacity: .9; }
    100% { transform: scale(1);  opacity: 0; }
}

.emwp-pix-monitoring-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 2px;
}
.emwp-pix-monitoring-text p {
    font-size: 0.8rem;
    color: #B45309;
    margin: 0;
    line-height: 1.45;
}

/* Botão verificar pagamento */
.emwp-pix-verify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #6366F1;
    border-radius: 10px;
    color: #6366F1;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s, transform .1s;
}
.emwp-pix-verify-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.emwp-pix-verify-btn:hover:not(:disabled) { background: #6366F1; color: #fff; }
.emwp-pix-verify-btn:active:not(:disabled) { transform: scale(.98); }
.emwp-pix-verify-btn:disabled { opacity: .6; cursor: not-allowed; }

.emwp-pix-verify-result {
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
}
.emwp-pix-verify-result--pending {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    color: #92400E;
}
.emwp-pix-verify-result--ok {
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
    color: #065F46;
}

/* Código copia e cola */
.emwp-pix-code-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.emwp-pix-code-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 481px) {
    .emwp-pix-code-box {
        flex-direction: row;
        align-items: flex-start;
    }
}

.emwp-pix-code-box textarea {
    flex: 1;
    min-width: 0;
    height: 76px;
    padding: 10px 12px;
    font-size: 11px;
    font-family: 'Courier New', Courier, monospace;
    color: #374151;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    resize: none;
    line-break: anywhere;
    word-break: break-all;
    cursor: text;
    user-select: all;
}

.emwp-pix-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 76px;
    min-width: 120px;
    background: var(--co-color, #3B82F6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 481px) {
    .emwp-pix-copy-btn {
        height: 76px;
        align-self: stretch;
    }
}

.emwp-pix-copy-btn:hover {
    opacity: .88;
}

.emwp-pix-copy-btn--copied {
    background: #10B981 !important;
}

.emwp-pix-copy-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Instruções */
.emwp-pix-instructions h4 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.emwp-pix-instructions ol {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.emwp-pix-instructions li {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

/* Link para gerar novo código */
.emwp-pix-new-code-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
    text-decoration: none;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #F1F5F9;
    align-self: flex-start;
    width: 100%;
    justify-content: center;
}

.emwp-pix-new-code-link svg {
    width: 14px;
    height: 14px;
}

.emwp-pix-new-code-link:hover {
    color: #3B82F6;
    text-decoration: underline;
}

/* ── Anexos do Conteúdo ──────────────────────────────────────────────────── */
.emwp-attachments {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}

.emwp-attachments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 16px;
}

.emwp-attachments-title svg {
    color: #6366F1;
    flex-shrink: 0;
}

.emwp-attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emwp-attachment-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: border-color .15s, box-shadow .15s;
}

.emwp-attachment-item:hover {
    border-color: #C7D2FE;
    box-shadow: 0 2px 8px rgba(99,102,241,.08);
}

.emwp-attachment-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    background: #FAFAFA;
    transition: background .15s;
}

.emwp-attachment-link:hover {
    background: #F5F7FF;
    text-decoration: none;
    color: inherit;
}

.emwp-attachment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.emwp-attachment-icon svg {
    flex-shrink: 0;
}

.emwp-attachment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.emwp-attachment-name {
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emwp-attachment-size {
    font-size: 11px;
    color: #94A3B8;
}

.emwp-attachment-ext {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.emwp-attachment-dl {
    color: #94A3B8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.emwp-attachment-link:hover .emwp-attachment-dl {
    color: #6366F1;
}

/* ============================================================
   SUPORTE — Página de lista e novo chamado
   ============================================================ */

.emwp-support-page {
    max-width: 860px;
}

/* Hero */
.emwp-support-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 28px;
    color: #fff;
}

.emwp-support-hero-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emwp-support-hero-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.emwp-support-hero-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.emwp-support-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,.82);
    margin: 0;
}

/* Tabs */
.emwp-support-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 24px;
}

.emwp-support-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    transition: color .15s, border-color .15s, background .15s;
}

.emwp-support-tab:hover {
    color: #6366F1;
    background: #F8FAFF;
    text-decoration: none;
}

.emwp-support-tab--active {
    color: #6366F1;
    border-bottom-color: #6366F1;
    background: #F8FAFF;
}

.emwp-support-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #6366F1;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* Lista de chamados */
.emwp-support-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.emwp-support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}

.emwp-support-card:hover {
    border-color: #6366F1;
    box-shadow: 0 4px 16px rgba(99,102,241,.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.emwp-support-card-left {
    flex: 1;
    min-width: 0;
}

.emwp-support-card-number {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.emwp-support-card-subject {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.emwp-support-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.emwp-support-card-sector {
    font-size: 12px;
    color: #6366F1;
    font-weight: 500;
}

.emwp-support-card-date {
    font-size: 12px;
    color: #94A3B8;
}

.emwp-support-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Badges de status / prioridade */
.emwp-support-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.emwp-support-priority {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Estado vazio */
.emwp-support-empty {
    text-align: center;
    padding: 56px 24px;
    background: #F8FAFC;
    border-radius: 16px;
    border: 2px dashed #E2E8F0;
}

.emwp-support-empty svg {
    width: 48px;
    height: 48px;
    color: #CBD5E1;
    margin-bottom: 12px;
}

.emwp-support-empty p {
    font-size: 15px;
    color: #64748B;
    margin: 0 0 20px;
}

/* Formulário de novo chamado */
.emwp-support-form-wrap {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 28px;
}

.emwp-support-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grid de setores — linha única horizontal */
.emwp-support-sectors-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.emwp-sector-card {
    flex: 0 0 auto;
    cursor: pointer;
    display: block;
}

.emwp-sector-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.emwp-sector-card-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
    transition: border-color .15s, background .15s, box-shadow .15s;
    cursor: pointer;
}

.emwp-sector-card:hover .emwp-sector-card-inner {
    border-color: #6366F1;
    background: #F5F3FF;
}

.emwp-sector-card input[type="radio"]:checked + .emwp-sector-card-inner {
    border-color: #6366F1;
    background: #EEF2FF;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.emwp-sector-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
}

.emwp-sector-card-desc {
    font-size: 11px;
    color: #94A3B8;
}

/* Rich-text editor */
.emwp-rte-wrap {
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}

.emwp-rte-wrap:focus-within {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

.emwp-rte-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    flex-wrap: wrap;
}

.emwp-rte-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    line-height: 1.4;
    transition: background .12s, border-color .12s, color .12s;
}

.emwp-rte-btn:hover {
    background: #EEF2FF;
    color: #6366F1;
    border-color: #C7D2FE;
}

.emwp-rte-btn--active {
    background: #EEF2FF;
    color: #6366F1;
    border-color: #A5B4FC;
}

.emwp-rte-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: #E2E8F0;
    margin: 0 4px;
    align-self: center;
}

.emwp-rte-body {
    min-height: 160px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    outline: none;
    word-break: break-word;
}

.emwp-rte-body:empty::before {
    content: attr(data-placeholder);
    color: #94A3B8;
    pointer-events: none;
}

.emwp-rte-body a {
    color: #6366F1;
    text-decoration: underline;
    word-break: break-all;
}

.emwp-rte-body ul,
.emwp-rte-body ol {
    padding-left: 20px;
    margin: 6px 0;
}

.emwp-rte-body p {
    margin: 0 0 8px;
}

.emwp-rte-body p:last-child {
    margin-bottom: 0;
}

/* File drop zone */
.emwp-file-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 20px;
    border: 2px dashed #CBD5E1;
    border-radius: 10px;
    background: #F8FAFC;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 100px;
}

.emwp-file-drop:hover {
    border-color: #6366F1;
    background: #F5F3FF;
}

.emwp-file-drop--sm {
    padding: 14px 16px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-height: auto;
}

/* ============================================================
   SUPORTE — Página de ticket individual
   ============================================================ */

.emwp-ticket-page {
    max-width: 860px;
}

/* Breadcrumb */
.emwp-ticket-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 20px;
}

.emwp-ticket-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6366F1;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: opacity .15s;
}

.emwp-ticket-back:hover {
    opacity: .75;
    text-decoration: none;
}

.emwp-ticket-back svg {
    width: 15px;
    height: 15px;
}

.emwp-ticket-breadcrumb-sep {
    color: #CBD5E1;
}

/* Cabeçalho do ticket */
.emwp-ticket-header {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.emwp-ticket-number {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.emwp-ticket-subject {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px;
    line-height: 1.3;
}

.emwp-ticket-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.emwp-ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Thread */
.emwp-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emwp-ticket-message {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.emwp-ticket-message--support .emwp-ticket-message-body {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.emwp-ticket-message--user .emwp-ticket-message-body {
    background: #fff;
    border-color: #E2E8F0;
}

.emwp-ticket-message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.emwp-ticket-message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
}

.emwp-ticket-message-body {
    flex: 1;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 0;
}

.emwp-ticket-message-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.emwp-ticket-message-author {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.emwp-ticket-message-date {
    font-size: 12px;
    color: #94A3B8;
}

.emwp-ticket-message-content {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
}

.emwp-ticket-message-content p {
    margin: 0 0 10px;
}

.emwp-ticket-message-content p:last-child {
    margin-bottom: 0;
}

.emwp-ticket-message-content a {
    color: #6366F1;
    text-decoration: underline;
    word-break: break-all;
}

/* Anexos dentro do thread */
.emwp-ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}

.emwp-ticket-attachment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 12px;
    color: #475569;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.emwp-ticket-attachment:hover {
    border-color: #6366F1;
    background: #EEF2FF;
    color: #6366F1;
    text-decoration: none;
}

.emwp-ticket-attachment svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.emwp-ticket-attachment-size {
    color: #94A3B8;
    font-size: 11px;
}

/* Badge "Suporte" no nome do agente */
.emwp-ticket-support-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* Formulário de resposta */
.emwp-ticket-reply-form {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px 28px;
    margin-top: 4px;
}

.emwp-ticket-reply-title {
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 16px;
}

/* Ticket encerrado */
.emwp-ticket-closed-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 12px;
    font-size: 14px;
    color: #92400E;
    margin-top: 4px;
}

.emwp-ticket-closed-notice svg {
    width: 20px;
    height: 20px;
    color: #F59E0B;
    flex-shrink: 0;
}

/* Responsive — suporte */
@media (max-width: 600px) {
    .emwp-support-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .emwp-support-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .emwp-support-card-right {
        width: 100%;
        justify-content: flex-start;
    }

    .emwp-support-form-wrap {
        padding: 20px 16px;
    }

    .emwp-support-sectors-grid {
        grid-template-columns: 1fr 1fr;
    }

    .emwp-ticket-header,
    .emwp-ticket-reply-form {
        padding: 18px 16px;
    }

    .emwp-ticket-message {
        gap: 10px;
    }

    .emwp-ticket-message-avatar {
        width: 32px;
        height: 32px;
    }

    .emwp-ticket-message-avatar img {
        width: 32px;
        height: 32px;
    }
}

/* ======================================================================
   CHAT PANEL
   ====================================================================== */

/* Chat panel */
.emwp-chat-panel { position: fixed; top: 0; right: 0; width: 380px; height: 100vh; background: #fff; z-index: 100001; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.1); }
.emwp-chat-panel.open { transform: translateX(0); }
.emwp-chat-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 100000; }
.emwp-chat-overlay.open { display: block; }

/* Header */
.emwp-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #E2E8F0; }
.emwp-chat-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #0F172A; }
.emwp-chat-header button { background: none; border: 0; font-size: 22px; color: #94A3B8; cursor: pointer; }

/* Tabs */
.emwp-chat-tabs { display: flex; border-bottom: 1px solid #E2E8F0; }
.emwp-chat-tab { flex: 1; padding: 10px; font-size: 12px; font-weight: 600; text-align: center; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; color: #64748B; transition: all .15s; }
.emwp-chat-tab.active { color: var(--emwp-primary, #3B82F6); border-bottom-color: var(--emwp-primary, #3B82F6); }

/* Order toggle & Search */
.emwp-chat-order-btn { display: inline-block; font-size: 11px; margin-left: 2px; cursor: pointer; transition: transform .2s; vertical-align: middle; opacity: .6; }
.emwp-chat-order-btn:hover { opacity: 1; }
.emwp-chat-order-btn.asc { transform: rotate(180deg); }
.emwp-chat-search { padding: 8px 12px; border-bottom: 1px solid #F1F5F9; }
.emwp-chat-search input { width: 100%; padding: 7px 10px; border: 1px solid #E2E8F0; border-radius: 6px; font-size: 13px; outline: none; box-sizing: border-box; }

/* Body / List */
.emwp-chat-body { flex: 1; overflow-y: auto; }

.emwp-chat-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #F8FAFC; transition: background .1s; }
.emwp-chat-item:hover { background: #F8FAFC; }
.emwp-chat-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.emwp-chat-item-info { flex: 1; min-width: 0; }
.emwp-chat-item-name { font-size: 13px; font-weight: 600; color: #1E293B; display: flex; align-items: center; gap: 4px; }
.emwp-chat-item-preview { font-size: 11px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.emwp-chat-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.emwp-chat-item-time { font-size: 10px; color: #CBD5E1; }
.emwp-chat-unread { font-size: 10px; font-weight: 700; color: #fff; background: var(--emwp-primary, #3B82F6); border-radius: 10px; padding: 1px 6px; min-width: 18px; text-align: center; }
.emwp-chat-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; display: inline-block; }
.emwp-chat-loading, .emwp-chat-empty { text-align: center; padding: 30px 16px; color: #94A3B8; font-size: 13px; line-height: 1.6; }

/* Staff badge */
.emwp-chat-staff-badge { font-size: 9px; font-weight: 700; color: #D97706; background: #FEF3C7; padding: 1px 5px; border-radius: 6px; margin-left: 4px; text-transform: uppercase; letter-spacing: .03em; }

/* Chat start button */
.emwp-chat-start-btn { background: none; border: 1px solid #E2E8F0; font-size: 14px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all .15s; color: #64748B; line-height: 1; }
.emwp-chat-start-btn:hover { background: var(--emwp-primary, #3B82F6); color: #fff; border-color: var(--emwp-primary, #3B82F6); }

/* Favorite star */
.emwp-chat-fav-btn { background: none; border: 0; font-size: 18px; cursor: pointer; color: #D1D5DB; transition: color .15s; padding: 2px; }
.emwp-chat-fav-btn.active { color: #F59E0B; }
.emwp-chat-fav-btn:hover { color: #F59E0B; }

/* Conversation view */
.emwp-chat-view { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.emwp-chat-view-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #E2E8F0; background: #F8FAFC; }
.emwp-chat-back { background: none; border: 0; font-size: 20px; cursor: pointer; color: #64748B; padding: 4px; }
.emwp-chat-view-name { font-size: 15px; font-weight: 700; color: #1E293B; flex: 1; }
.emwp-chat-clear-btn { background: none; border: 0; font-size: 14px; cursor: pointer; color: #CBD5E1; padding: 4px; transition: color .15s; flex-shrink: 0; }
.emwp-chat-clear-btn:hover { color: #EF4444; }
.emwp-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #F8FAFC; }
.emwp-chat-bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.emwp-chat-bubble--mine { align-self: flex-end; background: var(--emwp-primary, #3B82F6); color: #fff; border-bottom-right-radius: 4px; }
.emwp-chat-bubble--theirs { align-self: flex-start; background: #fff; color: #1E293B; border-bottom-left-radius: 4px; border: 1px solid #E2E8F0; }
.emwp-chat-bubble-time { font-size: 10px; color: #94A3B8; margin-top: 4px; }
.emwp-chat-bubble--mine .emwp-chat-bubble-time { text-align: right; color: rgba(255,255,255,.7); }

/* Typing indicator */
.emwp-chat-typing { padding: 4px 16px 8px; font-size: 12px; color: #64748B; font-style: italic; display: none; }
.emwp-chat-typing.visible { display: block; }
.emwp-chat-typing-dots { display: inline-block; }
.emwp-chat-typing-dots span { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #94A3B8; margin: 0 1px; animation: emwp-typing-bounce .6s infinite; }
.emwp-chat-typing-dots span:nth-child(2) { animation-delay: .15s; }
.emwp-chat-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes emwp-typing-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Input area */
.emwp-chat-input-area { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid #E2E8F0; background: #fff; }
.emwp-chat-input-area textarea { flex: 1; padding: 10px 14px; border: 1px solid #E2E8F0; border-radius: 12px; font-size: 14px; resize: none; min-height: 44px; max-height: 100px; font-family: inherit; outline: none; box-sizing: border-box; background: #F8FAFC; transition: border-color .15s, background .15s; }
.emwp-chat-input-area textarea:focus { border-color: var(--emwp-primary, #3B82F6); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.emwp-chat-input-area button { background: var(--emwp-primary, #3B82F6); color: #fff; border: 0; border-radius: 12px; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .15s, transform .1s; flex-shrink: 0; }
.emwp-chat-input-area button:hover { opacity: .85; transform: scale(1.05); }

/* Sound toggle */
.emwp-chat-sound-toggle { background: none; border: 0; font-size: 16px; cursor: pointer; color: #94A3B8; padding: 4px; transition: color .15s; }
.emwp-chat-sound-toggle.active { color: var(--emwp-primary, #3B82F6); }
.emwp-chat-sound-toggle:hover { color: #475569; }

/* Topbar chat button */
.emwp-topbar-chat { position: relative; background: none; border: 1px solid #E2E8F0; border-radius: 8px; padding: 6px; cursor: pointer; color: #64748B; display: flex; align-items: center; transition: background .15s, color .15s; }
.emwp-topbar-chat:hover { background: #F1F5F9; color: var(--emwp-primary, #3B82F6); }
.emwp-chat-badge { position: absolute; top: -4px; right: -4px; font-size: 10px; font-weight: 700; color: #fff; background: #EF4444; border-radius: 10px; padding: 0 5px; min-width: 16px; text-align: center; line-height: 16px; }

/* Shake animation for new message alert */
@keyframes emwp-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}
.emwp-topbar-chat.shake {
    animation: emwp-shake .5s ease-in-out;
    color: var(--emwp-primary, #3B82F6);
}

/* Responsive */
@media (max-width: 768px) {
    .emwp-chat-panel { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Home do Membro — blocos (v1.12.0)
   ═══════════════════════════════════════════════════════════════════════════ */

.emwp-block { margin-bottom: 2rem; }

/* Bloco: Boas-vindas */
.emwp-block-welcome .emwp-welcome-title {
    font-size: 1.75rem; font-weight: 700; color: #0f172a;
    margin: 0 0 .35rem;
}
.emwp-block-welcome .emwp-welcome-content {
    color: #475569; line-height: 1.55;
}

/* ============================================================================
   Bloco: Conteúdos Recomendados (v1.14.17)
   Vitrine de posts bloqueados — reusa o grid .emwp-grid-contents dos blocos
   Featured/Recent pra manter consistência visual. Só adiciona um overlay CTA
   na thumb e um admin-panel de diagnóstico.
   ============================================================================ */
.emwp-block-locked-contents .emwp-section-title {
    margin-bottom: .5rem;
}
.emwp-locked-intro {
    color: #475569;
    margin-bottom: 1rem;
    font-size: .92rem;
    line-height: 1.5;
}
.emwp-locked-intro p { margin: 0 0 .4rem; }
.emwp-locked-intro p:last-child { margin-bottom: 0; }

/* Overlay CTA sobre a thumb do card bloqueado */
.emwp-card-locked--cta {
    cursor: pointer;
    opacity: 1; /* cancela o dim do .emwp-card-locked base */
}
.emwp-card-locked--cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--emwp-shadow-lg);
}
.emwp-card-locked--cta:hover .emwp-card-lock-overlay--cta {
    background: var(--locked-plan-color, #3B82F6);
}
.emwp-card-lock-overlay--cta {
    position: absolute;
    inset: auto 0 0 0;      /* bottom banner */
    top: auto;
    right: auto;
    border-radius: 0;
    padding: .55rem .75rem;
    background: rgba(15, 23, 42, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    transition: background .18s ease;
    backdrop-filter: blur(2px);
}
.emwp-card-lock-overlay--cta svg,
.emwp-locked-lock-icon svg {
    width: 14px; height: 14px; flex-shrink: 0;
}
.emwp-locked-cta-label {
    letter-spacing: .1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Link "ver todos os planos" no rodapé do bloco */
.emwp-locked-allink {
    display: inline-block;
    margin-top: 1rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--emwp-primary, #3B82F6);
    text-decoration: none;
}
.emwp-locked-allink:hover { text-decoration: underline; }

/* Admin preview panel (empty state) */
.emwp-locked-admin-panel {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: #475569;
    font-size: .88rem;
}
.emwp-locked-admin-panel ul {
    margin: .5rem 0 .5rem 1.25rem;
    list-style: disc;
}
.emwp-locked-admin-panel .description { color: #64748b; font-size: .8rem; margin: .4rem 0 0; }

/* Link Preview nos cards da página /planos */
.emwp-pcard-preview-link {
    display: block;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--pcard-color, #3B82F6);
    text-decoration: none;
    padding: .5rem .3rem;
    margin-top: .2rem;
    border-radius: 6px;
    transition: background .15s;
}
.emwp-pcard-preview-link:hover { background: rgba(59,130,246,.08); color: var(--pcard-color, #3B82F6); }

/* Bloco: Minha trilha */
.emwp-block-my-trail .emwp-trail-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.emwp-block-my-trail .emwp-trail-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.emwp-block-my-trail .emwp-trail-stat {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: .75rem 1rem; background: #f8fafc; border-radius: 10px;
    border: 1px solid #eef2f7;
}
.emwp-block-my-trail .emwp-trail-number {
    font-size: 1.75rem; font-weight: 800; color: var(--emwp-primary, #3B82F6);
    line-height: 1.1;
}
.emwp-block-my-trail .emwp-trail-label {
    font-size: .8rem; color: #64748b; margin-top: .25rem;
}
.emwp-block-my-trail .emwp-progress-bar {
    width: 100%; flex: 0 0 auto; height: 8px;
    background: #e2e8f0; border-radius: 4px; overflow: hidden;
}
.emwp-block-my-trail .emwp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emwp-primary, #3B82F6), var(--emwp-accent, #10b981));
    transition: width .4s ease;
}

@media (max-width: 640px) {
    .emwp-block-my-trail .emwp-trail-stats { grid-template-columns: 1fr; }
    .emwp-block-my-trail .emwp-trail-number { font-size: 1.5rem; }
}

/* Bloco: Atalhos */
.emwp-page-home .emwp-block-shortcuts .emwp-shortcuts-grid {
    display: grid !important;
    gap: .85rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-top: .5rem;
}
.emwp-page-home .emwp-block-shortcuts .emwp-shortcut-btn {
    display: flex !important;
    align-items: center; gap: .85rem;
    padding: 1rem 1.1rem;
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: border-color .15s, transform .15s, box-shadow .15s, background .15s;
}
.emwp-page-home .emwp-block-shortcuts .emwp-shortcut-btn:hover {
    border-color: var(--emwp-primary, #3B82F6) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
.emwp-page-home .emwp-block-shortcuts .emwp-shortcut-btn:hover .emwp-shortcut-icon {
    background: var(--emwp-primary, #3B82F6);
    color: #fff;
}
.emwp-page-home .emwp-block-shortcuts .emwp-shortcut-icon {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(59,130,246,.12);
    color: var(--emwp-primary, #3B82F6);
    flex: 0 0 auto;
    transition: background .15s, color .15s;
}
.emwp-page-home .emwp-block-shortcuts .emwp-shortcut-label {
    flex: 1; font-size: .95rem; color: inherit;
}

/* Bloco: HTML livre */
.emwp-block-html .emwp-block-html-content {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 1rem 1.25rem; color: #0f172a; line-height: 1.55;
}
.emwp-block-html .emwp-block-html-content > *:first-child { margin-top: 0; }
.emwp-block-html .emwp-block-html-content > *:last-child { margin-bottom: 0; }

/* =========================================================
   Interações de conteúdo (v1.13.0) — like + estrelas
   ========================================================= */
.emwp-content-interactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin: 0 0 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.emwp-like-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569; font-weight: 600; font-size: 12.5px;
    cursor: pointer; transition: all .2s ease;
    line-height: 1;
}
.emwp-like-btn:hover:not(:disabled) {
    background: #fef2f2; border-color: #fecaca; color: #dc2626;
}
.emwp-like-btn.is-liked {
    background: #fee2e2; border-color: #fecaca; color: #dc2626;
}
.emwp-like-btn .emwp-like-icon { display: inline-flex; align-items: center; }
.emwp-like-btn.is-liked .emwp-like-icon { color: #dc2626; transform: scale(1.05); }
.emwp-like-btn:disabled { opacity: .6; cursor: wait; }
.emwp-like-count {
    min-width: 18px; text-align: center;
    padding: 0 6px; background: rgba(15, 23, 42, .06);
    border-radius: 999px; font-size: 11px;
}
.emwp-like-btn.is-liked .emwp-like-count { background: rgba(220, 38, 38, .12); }

.emwp-comment-jump-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569; font-weight: 600; font-size: 12.5px;
    text-decoration: none;
    cursor: pointer; transition: all .2s ease;
    line-height: 1;
}
.emwp-comment-jump-btn:hover {
    background: #eef2ff; border-color: #c7d2fe; color: #4f46e5;
}
.emwp-comment-jump-icon { display: inline-flex; align-items: center; }
.emwp-comment-jump-count { font-size: 11px; color: #64748b; font-weight: 500; }
.emwp-comment-jump-btn:hover .emwp-comment-jump-count { color: #4f46e5; }

.emwp-rating-widget {
    display: inline-flex; align-items: center; gap: 2px;
    margin-left: auto;
}
.emwp-rating-star {
    background: transparent; border: 0;
    padding: 4px; cursor: pointer;
    color: #cbd5e1; transition: color .15s ease, transform .15s ease;
    line-height: 1;
}
.emwp-rating-star:hover { transform: scale(1.15); }
.emwp-rating-star.is-active { color: #f59e0b; }
.emwp-rating-star:disabled { opacity: .5; cursor: wait; }
.emwp-rating-summary {
    margin-left: 8px; font-weight: 600;
    color: #334155; font-size: 12.5px;
}
.emwp-rating-summary small { color: #94a3b8; font-weight: 400; margin-left: 2px; font-size: 11px; }

/* Responsive */
@media (max-width: 640px) {
    .emwp-content-interactions { padding: 10px 12px; gap: 10px; }
    .emwp-rating-widget { margin-left: 0; flex-basis: 100%; justify-content: flex-start; }
    .emwp-like-btn,
    .emwp-comment-jump-btn { font-size: 12px; padding: 6px 10px; }
}

/* =========================================================
   Comentários nativos do WP no player (v1.13.0)
   ========================================================= */
.emwp-content-comments {
    margin: 32px 0 24px;
    padding: 20px 20px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.emwp-comments-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin: 0 0 16px;
}
.emwp-comments-title {
    margin: 0;
    font-size: 15px; font-weight: 700;
    color: #0f172a;
}
.emwp-comments-open-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; font-size: 13px;
}
.emwp-comments-empty {
    color: #64748b; font-style: italic; margin: 0 0 20px;
}
.emwp-comments-list {
    list-style: none; padding: 0; margin: 0 0 24px;
}
.emwp-comments-list ol.children {
    list-style: none; padding: 0 0 0 48px; margin-top: 12px;
}
.emwp-comments-list li.comment,
.emwp-comments-list li.emwp-comment {
    list-style: none;
    margin-bottom: 14px;
}
.emwp-comment-body {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}
.emwp-comment.is-reply .emwp-comment-body { background: #f1f5f9; }
.emwp-comment-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.emwp-comment-avatar {
    width: 36px; height: 36px;
    border-radius: 50%; object-fit: cover;
}
.emwp-comment-meta { display: flex; flex-direction: column; line-height: 1.2; }
.emwp-comment-author { color: #0f172a; font-size: 14px; }
.emwp-comment-date { color: #94a3b8; font-size: 12px; margin-top: 2px; }
.emwp-comment-text {
    color: #334155; font-size: 14px; line-height: 1.55;
}
/* Estado "aguardando aprovação" — visível só pro próprio autor */
.emwp-comment.is-pending .emwp-comment-body {
    background: #fffbeb;
    border-color: #fde68a;
}
.emwp-comment-pending-badge {
    display: inline-flex; align-items: center;
    margin-top: 4px;
    padding: 2px 8px;
    font-size: 11px; font-weight: 600;
    color: #92400e; background: #fef3c7;
    border: 1px solid #fde68a; border-radius: 999px;
    letter-spacing: 0.01em;
    width: fit-content;
}
.emwp-comment-text p:last-child { margin-bottom: 0; }
.emwp-comment-actions { margin-top: 8px; }
.emwp-comment-reply-link {
    font-size: 12px; color: #2563eb; text-decoration: none; font-weight: 600;
}
.emwp-comment-reply-link:hover { text-decoration: underline; }

/* Formulário */
.emwp-comments-form {
    margin-top: 16px; padding-top: 20px;
    border-top: 1px solid #eef2f7;
}
.emwp-comments-form .comment-reply-title {
    font-size: 15px; font-weight: 700; color: #0f172a; margin: 0 0 12px;
}
.emwp-comments-loggedin {
    font-size: 13px; color: #64748b; margin: 0 0 10px;
}
.emwp-comments-field textarea,
.emwp-comments-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a; font-size: 14px; line-height: 1.5;
    resize: vertical; min-height: 90px;
    font-family: inherit;
}
.emwp-comments-field textarea:focus,
.emwp-comments-form textarea:focus {
    outline: none; border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}
.emwp-comments-form .form-submit {
    margin-top: 10px;
}
.emwp-comments-form .submit,
.emwp-comments-form input[type=submit] {
    padding: 10px 18px;
    background: #2563eb; color: #ffffff;
    border: 0; border-radius: 8px;
    font-weight: 600; font-size: 14px; cursor: pointer;
    transition: background .15s ease;
}
.emwp-comments-form .submit:hover,
.emwp-comments-form input[type=submit]:hover {
    background: #1d4ed8;
}
#cancel-comment-reply-link {
    margin-left: 8px; font-size: 12px; color: #dc2626;
}

@media (max-width: 640px) {
    .emwp-content-comments { padding: 16px 14px; margin: 24px 0; }
    .emwp-comments-list ol.children { padding-left: 20px; }
}

/* ============================================================
   Plan Preview (v1.14.7) — hierarquia trancada com CTA Assinar
   ============================================================ */
.emwp-plan-preview {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 48px;
}
.emwp-preview-hero {
    color: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.emwp-preview-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    transition: background .2s;
}
.emwp-preview-back:hover { background: rgba(255,255,255,.22); color: #fff; }
.emwp-preview-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
}
.emwp-preview-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 6px;
}
.emwp-preview-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.1;
}
.emwp-preview-desc {
    font-size: 15px;
    line-height: 1.5;
    opacity: .92;
    max-width: 560px;
}
.emwp-preview-hero-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.emwp-preview-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.emwp-preview-currency { font-size: 18px; font-weight: 700; }
.emwp-preview-amount { font-size: 42px; font-weight: 800; line-height: 1; }
.emwp-preview-price-free { font-size: 28px; font-weight: 800; }
.emwp-preview-cycle { font-size: 13px; opacity: .85; }
.emwp-preview-cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #111827;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    transition: transform .15s, box-shadow .15s;
}
.emwp-preview-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.emwp-preview-cta--owned {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    cursor: default;
}
.emwp-preview-cta--owned:hover { transform: none; }

.emwp-preview-summary {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 0 0 28px;
    flex-wrap: wrap;
}
.emwp-preview-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 14px 22px;
    border-radius: 12px;
    text-align: center;
    min-width: 110px;
}
.emwp-preview-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}
.emwp-preview-stat span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.emwp-preview-tree { display: flex; flex-direction: column; gap: 24px; }
.emwp-preview-area {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.emwp-preview-area-header {
    border-left: 4px solid #3B82F6;
    padding-left: 12px;
    margin-bottom: 16px;
}
.emwp-preview-area-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: #111827;
}
.emwp-preview-area-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.emwp-preview-area-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.emwp-preview-cats { display: flex; flex-direction: column; gap: 8px; }
.emwp-preview-cat {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0;
    background: #f9fafb;
    transition: background .15s;
}
.emwp-preview-cat[open] { background: #fff; }
.emwp-preview-cat-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    user-select: none;
}
.emwp-preview-cat-summary::-webkit-details-marker { display: none; }
.emwp-preview-cat-chevron {
    display: inline-flex;
    transition: transform .2s;
    color: #6b7280;
}
.emwp-preview-cat[open] .emwp-preview-cat-chevron { transform: rotate(90deg); }
.emwp-preview-cat-name { flex: 1; font-size: 15px; }
.emwp-preview-cat-count {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #e5e7eb;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.emwp-preview-modules {
    padding: 0 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.emwp-preview-module {
    padding: 10px 0 0;
    border-top: 1px dashed #e5e7eb;
}
.emwp-preview-module:first-child { border-top: none; }
.emwp-preview-module-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.emwp-preview-module-title svg { color: #9ca3af; }

.emwp-preview-contents {
    list-style: none;
    padding: 0 16px 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.emwp-preview-module .emwp-preview-contents { padding: 0; }
.emwp-preview-content-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    transition: background .15s;
    border: 1px solid transparent;
}
.emwp-preview-content-item:hover { background: #f3f4f6; }
.emwp-preview-content-item.is-locked .emwp-preview-content-icon { color: #9ca3af; }
.emwp-preview-content-item.is-locked .emwp-preview-content-title { color: #4b5563; }
.emwp-preview-content-item.is-free {
    border-color: #d1fae5;
    background: #f0fdf4;
}
.emwp-preview-content-item.is-free .emwp-preview-content-icon { color: #10b981; }
.emwp-preview-content-title { flex: 1; }
.emwp-preview-content-tag {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 999px;
}
.emwp-preview-content-tag--free {
    color: #065f46;
    background: #d1fae5;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.emwp-preview-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}
.emwp-preview-empty svg { color: #d1d5db; margin: 0 auto 12px; }
.emwp-preview-empty-inline {
    margin: 0;
    padding: 10px 16px;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

.emwp-preview-cta-block {
    margin-top: 32px;
    padding: 32px 28px;
    border-radius: 16px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.emwp-preview-cta-block h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
}
.emwp-preview-cta-block p {
    margin: 0 0 18px;
    opacity: .92;
    font-size: 15px;
}
.emwp-preview-cta-final {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #111827;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transition: transform .15s;
}
.emwp-preview-cta-final:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
    .emwp-preview-hero { padding: 22px; }
    .emwp-preview-hero-inner { grid-template-columns: 1fr; gap: 16px; }
    .emwp-preview-hero-price { text-align: left; align-items: flex-start; }
    .emwp-preview-title { font-size: 26px; }
    .emwp-preview-amount { font-size: 32px; }
    .emwp-preview-area { padding: 16px; }
    .emwp-preview-summary { gap: 10px; }
    .emwp-preview-stat { padding: 10px 14px; min-width: 90px; }
}

/* ============================================================
   Plans Showcase block (v1.14.7) — vitrine na home do membro
   ============================================================ */
.emwp-block-plans-showcase .emwp-showcase-intro {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
}
.emwp-showcase-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.emwp-showcase-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
    border-top: 4px solid var(--plan-color, #3B82F6);
}
.emwp-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.emwp-showcase-card.is-current {
    border-color: var(--plan-color, #3B82F6);
    background: linear-gradient(180deg, rgba(59,130,246,.04) 0%, #fff 60%);
    box-shadow: 0 4px 12px rgba(59,130,246,.12);
}
.emwp-showcase-owned-badge,
.emwp-showcase-featured-badge {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
}
.emwp-showcase-owned-badge { background: #10b981; }
.emwp-showcase-featured-badge { background: var(--plan-color, #3B82F6); }

.emwp-showcase-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 80px; /* espaço pro badge */
}
.emwp-showcase-name {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #111827;
}
.emwp-showcase-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: wrap;
    color: var(--plan-color, #3B82F6);
}
.emwp-showcase-currency { font-size: 13px; font-weight: 700; }
.emwp-showcase-amount { font-size: 26px; font-weight: 800; line-height: 1; }
.emwp-showcase-cycle {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
    font-weight: 500;
}
.emwp-showcase-free { font-size: 20px; font-weight: 800; color: #10b981; }

.emwp-showcase-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.emwp-showcase-included h5 {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 6px;
}
.emwp-showcase-included ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.emwp-showcase-included li {
    font-size: 13px;
    color: #1f2937;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.emwp-showcase-check {
    color: #10b981;
    font-weight: 800;
    flex-shrink: 0;
}
.emwp-showcase-more {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    padding-left: 18px;
}

.emwp-showcase-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}
.emwp-showcase-cta {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--plan-color, #3B82F6);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: filter .15s, transform .15s;
}
.emwp-showcase-cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.emwp-showcase-cta--owned {
    background: #10b981;
}
.emwp-showcase-preview-link {
    display: block;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--plan-color, #3B82F6);
    text-decoration: none;
    padding: 4px 2px;
}
.emwp-showcase-preview-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
    .emwp-showcase-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
   Grid em modo carrossel — rolagem horizontal nativa com scroll-snap.
   Ativado por DashboardBlocksService::gridClass() quando o admin escolhe
   "carrossel" E há > 3 itens. JS do frontend (initCarousels) adiciona
   as setas e gerencia o scroll.
   ───────────────────────────────────────────────────────────────── */
.emwp-carousel-wrap {
    position: relative;
    margin-bottom: 0;
    max-width: 100%;
    /* overflow visible para não clipar sombra do card, mas grid interno é que rola */
}
.emwp-grid--carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.35) transparent;
    padding: 2px 0 12px;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    /* garante que o flex-child min-content não "empurre" o grid pra fora do pai */
    min-width: 0;
}
.emwp-grid--carousel::-webkit-scrollbar { height: 8px; }
.emwp-grid--carousel::-webkit-scrollbar-track { background: transparent; }
.emwp-grid--carousel::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.30);
    border-radius: 4px;
}
.emwp-grid--carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.50);
}
.emwp-grid--carousel > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
    /* Mobile: ~1.5 cards visíveis (peek do próximo sugere swipe disponível) */
    width: 68%;
    max-width: 320px;
    min-width: 0;
}
@media (min-width: 480px) {
    .emwp-grid--carousel > * {
        width: calc((100% - 16px) / 2);      /* 2 colunas */
    }
}
@media (min-width: 720px) {
    .emwp-grid--carousel > * {
        width: calc((100% - 2 * 16px) / 3);  /* 3 colunas */
    }
}
@media (min-width: 1024px) {
    .emwp-grid--carousel > * {
        width: calc((100% - 3 * 16px) / 4);  /* 4 colunas */
    }
}
@media (min-width: 1400px) {
    .emwp-grid--carousel > * {
        width: calc((100% - 4 * 16px) / 5);  /* 5 colunas */
    }
}

/* Cabeçalho que hospeda o nav (setas) no topo direito — lado a lado com o título.
   Aplicado pelo JS tanto a <h3>/<h4> soltos (envolvendo-os) quanto a
   .emwp-section-header / .emwp-area-group-header (adicionando a classe).
   Usa margin-right:auto no primeiro filho (título) pra empurrar o resto pra
   direita, agrupando "Ver todos" + setas quando ambos coexistem. */
.emwp-carousel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.emwp-carousel-head > *:first-child {
    margin-right: auto;
}
.emwp-carousel-head > .emwp-section-title,
.emwp-carousel-head > .emwp-area-group-title,
.emwp-carousel-head > h3,
.emwp-carousel-head > h4,
.emwp-carousel-head > h5 {
    margin: 0 auto 0 0;
}
/* Variante solo: só setas, alinha à direita sem usar o hack de margin-right:auto. */
.emwp-carousel-head--solo {
    justify-content: flex-end;
    margin-bottom: 8px;
}
.emwp-carousel-head--solo > *:first-child {
    margin-right: 0;
}

/* Container das setas (injetado por JS dentro de .emwp-carousel-head). */
.emwp-carousel-nav {
    display: inline-flex;
    gap: 6px;
    flex: 0 0 auto;
    align-items: center;
}
.emwp-carousel-nav.is-hidden {
    display: none;
}

/* Botões de navegação — estáticos (posicionados pelo flex do head). */
.emwp-carousel-btn {
    position: static;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.18s, border-color 0.18s, transform 0.12s, opacity 0.18s;
}
.emwp-carousel-btn:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.22);
    transform: scale(1.06);
}
.emwp-carousel-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
.emwp-carousel-btn[disabled] {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}
.emwp-carousel-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Safety net — seções que contêm carrossel não devem permitir que o scroll
   horizontal interno vaze pra página. Só aplicado a blocos com carrossel,
   pra não afetar outros usos de .emwp-section. */
.emwp-block:has(.emwp-grid--carousel) {
    min-width: 0;
    overflow-x: clip;
}
.emwp-area-group:has(.emwp-grid--carousel) {
    min-width: 0;
    overflow-x: clip;
}
