/* ============================================================
   /post/configuracao — prefixo pc-
   Estilo Hero premium (mesma linguagem visual de /avaliacao/form)
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.pc-hero {
    background: linear-gradient(135deg, #07142f 0%, #0d1d47 60%, #1a2f6e 100%);
    border-radius: 20px;
    padding: 22px 30px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pc-hero::after {
    content: "";
    position: absolute;
    top: -80px;
    right: 180px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.pc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 9px;
}

.pc-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.pc-hero-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 0;
    max-width: 620px;
}

/* ── STATS DO HERO ────────────────────────────────────────── */
.pc-hero-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.pc-stat {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.pc-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.pc-stat--green .pc-stat-value { color: #34d399; }

/* ── BOTÕES DE NAVEGAÇÃO (abas) ───────────────────────────── */
.pc-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.pc-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
}
.pc-tab:hover { background: #f8fafc; color: #374151; }
.pc-tab.pc-tab-active {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
    cursor: default;
}

/* ── PAINEL BRANCO ────────────────────────────────────────── */
.pc-panel {
    background: white;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

/* ── TÍTULOS DE SEÇÃO ─────────────────────────────────────── */
.pc-section-sub {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    margin: 28px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.pc-section-sub i { font-size: 13px; color: #2563eb; }

/* ── GRID DE CAMPOS ───────────────────────────────────────── */
.pc-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 20px;
}
.pc-fields--colors {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr));
}
.pc-field-wide { grid-column: 1 / -1; }
.pc-field { display: flex; flex-direction: column; gap: 7px; }

/* ── SEGMENTED CONTROL EM CARDS (toggles do teste) ────────────
   Substitui os antigos selectBooleanButton por p:selectOneButton
   layout="custom": cada opção é um card (ícone + título + tagline),
   sempre visível, com destaque azul no selecionado. O grupo de
   radios do PrimeFaces fica oculto (ui-helper-hidden-accessible) e
   estes cards (role="radio") são casados por ordem com os selectItem. */
.pc-seg2 { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.pc-seg2-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 104px;
    padding: 11px 14px;
    background: #fff;
    border: 2px solid #e2e8f4;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .12s ease;
    user-select: none;
}
.pc-seg2-opt:hover:not(.ui-state-active):not(.ui-state-disabled) {
    border-color: #bfdbfe;
    background: #f8fbff;
    transform: translateY(-1px);
}
.pc-seg2-icon { font-size: 20px; color: #64748b; transition: color .18s ease; }
.pc-seg2-title { font-size: 13.5px; font-weight: 700; color: #334155; }
.pc-seg2-tag { font-size: 11px; color: #94a3b8; line-height: 1.2; }

/* Selecionado: borda + fundo azul claro + ícone/título azulados */
.pc-seg2-opt.ui-state-active {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .15);
}
.pc-seg2-opt.ui-state-active .pc-seg2-icon { color: #2563eb; }
.pc-seg2-opt.ui-state-active .pc-seg2-title { color: #1d4ed8; }

/* Foco acessível (PrimeFaces adiciona ui-state-focus) */
.pc-seg2-opt.ui-state-focus { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }

/* Desabilitado: esmaecido e não clicável */
.pc-seg2-opt.ui-state-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }


/* Nível: 3 cards compactos sempre na mesma linha (título numa linha só) */
.pc-seg2--nivel { gap: 8px; flex-wrap: nowrap; }
.pc-seg2--nivel .pc-seg2-opt { min-width: 0; padding: 11px 8px; }
.pc-seg2--nivel .pc-seg2-title { white-space: nowrap; }

/* Tipo de questão: 2 cards sempre lado a lado, dividindo a largura da coluna
   (títulos mais longos que os do Nível, então aqui o título pode quebrar em
   duas linhas em vez de forçar nowrap e estourar a coluna). */
.pc-seg2--tipo { gap: 8px; flex-wrap: nowrap; }
.pc-seg2--tipo .pc-seg2-opt { flex: 1 1 0; min-width: 0; padding: 11px 8px; }

/* Variante com thumbnail para o Assunto: card horizontal (thumb + nome ao lado)
   para ficar na mesma altura compacta dos demais cards (galeria que quebra linha) */
.pc-seg2--assunto { gap: 12px; }
.pc-seg2-opt--assunto {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 188px;
    min-width: 0;
    padding: 11px 14px;
    gap: 10px;
    text-align: left;
}
.pc-seg2-thumb {
    width: 48px;
    height: 48px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
    display: block;
    flex-shrink: 0;
}
.pc-seg2-opt--assunto .pc-seg2-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.pc-seg2-opt--assunto.ui-state-active .pc-seg2-thumb { box-shadow: 0 0 0 2px #2563eb; }

/* Galeria de backgrounds: miniaturas selecionáveis em cards (substitui o antigo
   selectOneMenu com imagem). Mesmo estilo de thumb do Assunto; rola se houver muitas. */
.pc-seg2--bg {
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    align-content: flex-start;
    padding: 2px;
}
.pc-seg2-opt--bg { width: 100px; min-width: 0; padding: 6px; gap: 6px; }
.pc-seg2-bg-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
    display: block;
}
.pc-seg2--bg-reel .pc-seg2-bg-thumb { aspect-ratio: 9 / 16; }
.pc-seg2-opt--bg .pc-seg2-title {
    display: block;
    max-width: 100%;
    font-size: 11.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.pc-seg2-opt--bg.ui-state-active .pc-seg2-bg-thumb { box-shadow: 0 0 0 2px #2563eb; }

/* Picker de Background: igual ao de Assunto — card selecionado (recolhido) +
   galeria (expandida ao clicar em "Trocar"); ao escolher uma miniatura, recolhe. */
.pc-bg-selected {
    display: inline-flex;
    align-self: flex-start;   /* não estica na coluna do .pc-field */
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 8px 10px;
    border: 2px solid #e2e8f4;
    border-radius: 12px;
    background: #fff;
}
.pc-bg-selected-thumb {
    width: 48px; height: 48px; aspect-ratio: 1 / 1;
    object-fit: cover; border-radius: 8px; background: #f1f5f9;
    display: block; flex-shrink: 0;
}
.pc-bg-selected-thumb--reel { width: 40px; height: 71px; aspect-ratio: 9 / 16; }
/* Sem background selecionado (ex.: teste antes de escolher): esconde a miniatura vazia */
.pc-bg-selected-thumb:not([src]),
.pc-bg-selected-thumb[src=""] { display: none; }
.pc-bg-selected-name {
    min-width: 0; max-width: 280px;
    font-size: 13px; font-weight: 700; color: #334155;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-bg-opcoes { display: none; margin-top: 8px; }
.pc-bg-picker.is-expanded .pc-bg-opcoes { display: block; }
.pc-bg-picker.is-expanded .pc-bg-selected { display: none; }
.pc-bg-opcoes-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 8px;
}
.pc-bg-hint { font-size: 12.5px; color: #64748b; font-weight: 600; }
.pc-bg-trocar {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
    border-radius: 8px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: background .15s ease;
}
.pc-bg-trocar:hover { background: #dbeafe; }
.pc-bg-fechar {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e2e8f4; background: #fff; color: #64748b;
    border-radius: 8px; cursor: pointer;
}
.pc-bg-fechar:hover { background: #f1f5f9; }

/* Wrapper "fantasma": funde os campos do formato (blocoFormato/Feed/Reel) no
   mesmo grid .pc-fields dos Parâmetros do teste, sem criar caixa própria. */
.pc-contents { display: contents; }

.pc-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

/* Inputs preenchem a coluna; foco azul premium */
.pc-field .ui-inputtext,
.pc-field .ui-inputfield,
.pc-field .ui-selectonemenu,
.pc-field .ui-datepicker-trigger ~ input,
.pc-field .ui-inputtext.hasDatepicker {
    width: 100%;
}
.pc-panel .ui-inputtext:focus,
.pc-panel input.ui-inputtext:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

/* ── SELECT PREMIUM (Assunto / Background) ────────────────────
   Mesma altura (66px) e visual dos cards: rounded, borda e foco
   azul iguais, ícone à esquerda e chevron limpo — para o dropdown
   alinhar e combinar com os campos em cards. */
.pc-field .ui-selectonemenu.pc-select {
    display: flex;
    align-items: center;
    flex: 1 1 auto;          /* estica para preencher a altura da célula (alinha o fundo com os cards) */
    min-height: 48px;        /* piso quando está sozinho na linha (Background) */
    padding: 0 6px 0 14px;
    background: #fff;
    border: 2px solid #e2e8f4;
    border-radius: 12px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.pc-field .ui-selectonemenu.pc-select:hover,
.pc-field .ui-selectonemenu.pc-select.ui-state-hover { border-color: #bfdbfe; }
.pc-field .ui-selectonemenu.pc-select.ui-state-focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
/* Ícone à esquerda (PrimeIcons) — por variante */
.pc-select--book::before,
.pc-select--img::before {
    font-family: 'primeicons';
    color: #2563eb;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}
.pc-select--book::before { content: "\e9ba"; } /* pi-book */
.pc-select--img::before  { content: "\e972"; } /* pi-image */
/* Texto do valor: ocupa o espaço, sem caixa própria, com reticências */
.pc-select .ui-selectonemenu-label {
    flex: 1 1 auto;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Chevron limpo no lugar do triângulo do tema */
.pc-select .ui-selectonemenu-trigger {
    border: 0 !important;
    background: transparent !important;
    width: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-select .ui-selectonemenu-trigger .ui-icon {
    width: auto;
    height: auto;
    text-indent: 0;
    overflow: visible;
    background: none !important;
    color: #2563eb;
}
.pc-select .ui-selectonemenu-trigger .ui-icon::before {
    font-family: 'primeicons';
    content: "\e902"; /* pi-chevron-down */
    font-size: 13px;
}

/* ── CAMPO DE COR (swatch premium) ────────────────────────── */
.pc-color {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
}
.pc-color .ui-colorpicker { flex-shrink: 0; }

/* ── SPLIT: campos à esquerda, Logomarca à direita (~metade da tela) ──────── */
.pc-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pc-split-main  { flex: 1 1 380px; min-width: 0; }
.pc-split-aside { flex: 1 1 320px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }

/* A 1ª seção de cada coluna já tem o respiro do split; remove o topo extra p/ alinhar */
.pc-split-main > .pc-section-sub:first-child,
.pc-split-aside > .pc-section-sub:first-child,
.pc-panel > .pc-section-sub:first-child,
.pc-bg-col > .pc-section-sub { margin-top: 0; }

/* Logomarca: uploader + preview empilhados dentro da coluna ──────────────── */
.pc-logo-up   { display: flex; flex-direction: column; gap: 10px; }
.pc-logo-prev { display: block; }

/* Retângulo: o visual (borda, ícone, instruções) fica no wrap; o fileUpload é só
   a camada transparente por cima que torna a área inteira clicável e droppable. */
.pc-dropzone-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 210px;
    border: 2px dashed #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.pc-dropzone-wrap:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0ecff 100%);
    box-shadow: 0 8px 26px rgba(37, 99, 235, 0.12);
}

/* Conteúdo visual (ícone + título + instruções) — não captura cliques */
.pc-dropzone-hint {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 18px;
    text-align: center;
    pointer-events: none;
}
.pc-dropzone-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 26px;
}
.pc-dropzone-title {
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    max-width: 250px;
    line-height: 1.4;
}
.pc-dropzone-specs {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pc-dropzone-specs li {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}
.pc-dropzone-specs li span { color: #94a3b8; }

/* fileUpload = camada clicável/droppable transparente cobrindo todo o retângulo */
.pc-dropzone.ui-fileupload {
    position: absolute !important;
    inset: 0 !important;
    background: transparent !important;
    border: 0 !important;
    z-index: 2;
}
.pc-dropzone .ui-fileupload-content { display: none !important; }
.pc-dropzone .ui-fileupload-buttonbar {
    position: absolute !important;
    inset: 0 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.pc-dropzone .ui-fileupload-choose {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    cursor: pointer !important;
}
/* Esconde ícone/texto do botão (usamos o conteúdo visual do wrap) */
.pc-dropzone .ui-fileupload-choose .ui-button-text,
.pc-dropzone .ui-fileupload-choose .ui-icon,
.pc-dropzone .ui-fileupload-choose .ui-button-icon-left { display: none !important; }
/* O input de arquivo ocupa todo o retângulo → clique e drop em qualquer ponto */
.pc-dropzone .ui-fileupload-choose input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}
/* Esconde upload/cancel (modo auto) */
.pc-dropzone .ui-fileupload-files,
.pc-dropzone .ui-fileupload-upload,
.pc-dropzone .ui-fileupload-cancel { display: none !important; }

/* ── Recurso exclusivo Premium/Master (Background Personalizado) ──────────── */
.pc-premium-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: linear-gradient(90deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    border-radius: 14px;
    padding: 14px 20px;
    margin: 0 0 20px;
}
.pc-premium-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.pc-premium-banner-text {
    flex: 1 1 260px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #92400e;
}
.pc-premium-banner-text strong { font-weight: 800; }
.pc-premium-banner-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 9px;
    background: linear-gradient(90deg, #d97706, #b45309);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.pc-premium-banner-cta:hover { background: linear-gradient(90deg, #b45309, #92400e); color: #fff; }

/* Dropzone bloqueada: mesma caixa tracejada, conteúdo trocado por aviso + cadeado */
.pc-dropzone-locked {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 14px;
}
.pc-dropzone-locked-icon { font-size: 26px; color: #d97706; }
.pc-dropzone-locked-title { font-weight: 700; color: #92400e; font-size: 14px; }
.pc-dropzone-locked-desc { font-size: 12.5px; color: #92400e; opacity: .8; max-width: 220px; }

/* Dialog "recurso exclusivo" (mesmo padrão do dialog Premium de Questões) */
.pc-premium-dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px 8px 4px;
}
.pc-premium-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
    font-size: 24px;
}
.pc-premium-dialog-title {
    margin: 4px 0 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #92400e;
}
.pc-premium-dialog-text {
    margin: 0;
    max-width: 380px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #6b5b3e;
}
.pc-premium-dialog-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    background: linear-gradient(90deg, #d97706, #b45309);
    color: #fff;
    text-decoration: none;
}
.pc-premium-dialog-cta:hover {
    background: linear-gradient(90deg, #b45309, #92400e);
    transform: translateY(-1px);
    color: #fff;
}
.pc-premium-dialog-dismiss {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #9ca3af;
    cursor: pointer;
    text-decoration: none;
}
.pc-premium-dialog-dismiss:hover { color: #6b7280; text-decoration: underline; }

.pc-logo-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.pc-logo-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pc-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
    font-size: 12.5px;
    padding: 4px 11px;
    border-radius: 999px;
}
.pc-logo-badge i { font-size: 13px; }
.pc-logo-remove {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.15s, color 0.15s;
}
.pc-logo-remove:hover { background: #fcdada; color: #fff; }
.pc-logo-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    background:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%) 0 0 / 16px 16px,
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%) 0 0 / 16px 16px,
        #fff;
}
.pc-logo-canvas img { max-width: 100%; max-height: 110px; object-fit: contain; display: block; }

/* Mensagem de detalhes */
.pc-hint {
    margin-top: 16px;
}

/* ── BACKGROUND PADRÃO (galerias) ─────────────────────────── */
.pc-bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}
.pc-bg-col { min-width: 0; }
.pc-gallery { max-width: 340px; margin: 4px auto 0; }
.pc-gallery .ui-galleria { border: 0; background: transparent; }
.pc-gallery .ui-galleria-item img { border-radius: 12px; }
.pc-gallery .ui-galleria-thumbnail-item img {
    border-radius: 8px;
    opacity: 0.65;
    transition: opacity 0.15s;
}
.pc-gallery .ui-galleria-thumbnail-item:hover img,
.pc-gallery .ui-galleria-thumbnail-item-current img { opacity: 1; }
.pc-gallery .ui-galleria-caption {
    font-size: 12px;
    font-weight: 600;
}

/* ── MINIATURAS DE BACKGROUND PERSONALIZADO ENVIADO ──────── */
.pc-bg-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.pc-bg-thumb {
    position: relative;
    width: 92px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    background: #fff;
}
.pc-bg-thumb img { width: 92px; height: auto; display: block; }
.pc-bg-thumb-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.pc-bg-thumb:hover .pc-bg-thumb-remove { opacity: 1; }
.pc-bg-thumb-remove:hover { transform: scale(1.08); background: #fff; color: #fff; }

.pc-bg-empty {
    margin-top: 14px;
    font-size: 13px;
    color: #9ca3af;
}

/* ── CARDS DE AÇÃO EM MASSA (Adicionar todos / Remover todos) ── */
.pc-action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.pc-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.pc-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    text-decoration: none;
}
.pc-action-card:focus { outline: none; }
.pc-action-go { margin-left: auto; flex-shrink: 0; color: #9ca3af; font-size: 14px; transition: transform 0.15s, color 0.15s; }
.pc-action-card:hover .pc-action-go { color: #4b5563; transform: translateX(3px); }
.pc-action-card--danger:hover .pc-action-go { color: #dc2626; }
.pc-action-card--add    { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%); border-color: #bbf7d0; }
.pc-action-card--single { background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%); border-color: #bfdbfe; }
.pc-action-card--danger { background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%); border-color: #fecaca; }
.pc-action-ico {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}
.pc-action-card--add    .pc-action-ico { background: linear-gradient(135deg, #16a34a, #22c55e); }
.pc-action-card--single .pc-action-ico { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.pc-action-card--danger .pc-action-ico { background: linear-gradient(135deg, #dc2626, #f87171); }
.pc-action-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc-action-title { font-size: 15px; font-weight: 700; color: #111827; }
.pc-action-desc  { font-size: 12.5px; color: #6b7280; line-height: 1.4; }
.pc-action-card .ui-button { flex-shrink: 0; }

/* Barra de ações individuais (Nova programação / Enviar agora) */
.pc-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .pc-action-card { flex-wrap: wrap; }
    .pc-action-card .ui-button { width: 100%; }
}

/* ── CARDS DE PROGRAMAÇÃO (estilo lista de itens) ─────────── */
.pc-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.pc-item-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    border-color: #d1d5db;
}
.pc-item-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    padding: 0 8px;
}
.pc-item-info { flex: 1; min-width: 0; }
.pc-item-assunto {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: block;
    margin-bottom: 6px;
}
.pc-item-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.pc-chip i { font-size: 11px; }
.pc-chip--data   { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.pc-chip--feed   { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.pc-chip--reel   { background: #faf5ff; color: #6b21a8; border-color: #e9d5ff; }
.pc-chip--alt    { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.pc-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

.pc-item-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
    background: #f8fafc;
    border: 2px dashed #e5e7eb;
    border-radius: 14px;
    line-height: 1.6;
}
.pc-item-empty i { display: block; font-size: 28px; margin-bottom: 8px; color: #d1d5db; }

@media (max-width: 600px) {
    .pc-item-card { flex-wrap: wrap; }
    .pc-item-actions { width: 100%; justify-content: flex-end; }
}

/* ── AÇÕES ────────────────────────────────────────────────── */
.pc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    margin-top: 28px;
}

/* ── RESPONSIVO ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .pc-hero { grid-template-columns: 1fr; padding: 20px 22px; gap: 18px; }
    .pc-hero-stats { flex-direction: row; flex-wrap: wrap; }
    .pc-stat { min-width: 120px; flex: 1; }
    .pc-hero-title { font-size: 1.35rem; }
    .pc-panel { padding: 24px 20px; }
}

@media (max-width: 600px) {
    .pc-fields { grid-template-columns: 1fr; }
}

/* ── Dialog de créditos insuficientes ──────────────────────── */
.av-dlg-cota .ui-dialog-content { padding: 0 !important; }
.av-dlg-cota-inner { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; }
.av-dlg-cota-head {
    background: linear-gradient(135deg, #07142f 0%, #1e3a8a 60%, #2563eb 100%);
    padding: 28px 24px 24px; text-align: center; position: relative;
}
.av-dlg-cota-icon-wrap {
    width: 60px; height: 60px; background: rgba(255,255,255,.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.av-dlg-cota-icon-wrap .pi { font-size: 26px; color: #fbbf24; }
.av-dlg-cota-titulo { color: #fff; font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.av-dlg-cota-close {
    position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,.12);
    border: none; color: rgba(255,255,255,.75); width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 13px; transition: background .15s, color .15s;
}
.av-dlg-cota-close:hover { background: rgba(255,255,255,.22); color: #fff; }
.av-dlg-cota-body { padding: 24px 28px 8px; background: #fff; }
.av-dlg-cota-msg { color: #4b5563; font-size: 14px; line-height: 1.7; text-align: center; margin: 0; }
.av-dlg-cota-stats { display: flex; gap: 12px; justify-content: center; margin: 20px 0 0; }
.av-dlg-cota-stat {
    flex: 1; background: #f8faff; border: 1px solid #e0e7ff;
    border-radius: 12px; padding: 12px 10px; text-align: center;
}
.av-dlg-cota-stat-label { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.av-dlg-cota-stat-value { font-size: 26px; font-weight: 800; color: #1e3a8a; line-height: 1; }
.av-dlg-cota-footer {
    display: flex; gap: 10px; padding: 20px 28px 24px;
    background: #fff; justify-content: flex-end;
}
.av-dlg-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer;
    text-decoration: none; border: none; transition: background .15s, color .15s, border-color .15s;
}
.av-dlg-btn--ghost { background: transparent; border: 1px solid #e5e7eb; color: #6b7280; }
.av-dlg-btn--ghost:hover { background: #f3f4f6; color: #374151; }
.av-dlg-btn--primary { background: #2563eb; color: #fff; }
.av-dlg-btn--primary:hover { background: #1d4ed8; color: #fff; }
