/**
 * BarberPrime SaaS — Admin CSS
 *
 * Componentes específicos do módulo SaaS. Reusa tokens do admin.css base.
 * Tudo prefixado .bpsaas-* para não colidir com .bps- do tema.
 */

/* ==========================================================================
   STATUS BADGES — Workflow do cliente
   ========================================================================== */
.bpsaas-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	white-space: nowrap;
}
.bpsaas-status--trial     { background: #FFF8E8; color: #8A6E2E; border-color: #F0DDB0; }
.bpsaas-status--active    { background: #DFF5E8; color: #1E6B47; border-color: #BFE5CF; }
.bpsaas-status--overdue   { background: #FFF4D6; color: #8A5A0E; border-color: #FFE4A8; }
.bpsaas-status--suspended { background: #FEE1E1; color: #9B2A2A; border-color: #FFC7C7; }
.bpsaas-status--cancelled { background: #EEE9E1; color: #5C544A; border-color: #DDD5C6; }

/* ==========================================================================
   STATS CARDS (Dashboard)
   ========================================================================== */
.bpsaas-stats-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 24px;
}
@media (min-width: 700px) { .bpsaas-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bpsaas-stats-row { grid-template-columns: repeat(4, 1fr); } }

.bpsaas-stat-card {
	background: var(--bp-a-surface, #fff);
	border: 1px solid var(--bp-a-border, #E5E0D8);
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow: 0 1px 2px rgba(26, 22, 18, 0.04);
}
.bpsaas-stat-card--accent {
	background: linear-gradient(135deg, #1A1612 0%, #2A241C 100%);
	color: #F5F0E8;
	border-color: #C8A96E;
}
.bpsaas-stat-card__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--bp-a-muted, #6B6258);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}
.bpsaas-stat-card--accent .bpsaas-stat-card__label { color: rgba(245, 240, 232, 0.7); }

.bpsaas-stat-card__value {
	font-family: Georgia, serif;
	font-size: 32px;
	font-weight: 700;
	color: var(--bp-a-ink, #1A1612);
	line-height: 1;
	margin-bottom: 6px;
}
.bpsaas-stat-card--accent .bpsaas-stat-card__value { color: #E8C97E; }

.bpsaas-stat-card__hint {
	font-size: 12.5px;
	color: var(--bp-a-muted, #6B6258);
}
.bpsaas-stat-card--accent .bpsaas-stat-card__hint { color: rgba(245, 240, 232, 0.7); }

.bpsaas-delta--up   { color: #2E7D5B; font-weight: 600; }
.bpsaas-delta--down { color: #B83A3A; font-weight: 600; }

/* ==========================================================================
   ROW 2-COLS (cards lado a lado)
   ========================================================================== */
.bpsaas-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 1000px) { .bpsaas-row { grid-template-columns: 1fr 1fr; } }

.bpsaas-row--sidebar { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1100px) {
	.bpsaas-row--sidebar { grid-template-columns: 2fr 1fr; align-items: start; }
}

/* ==========================================================================
   STATUS GRID (dashboard) — 4 cards de status
   ========================================================================== */
.bpsaas-status-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 700px) { .bpsaas-status-grid { grid-template-columns: repeat(4, 1fr); } }

.bpsaas-status-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--bp-a-surface-2, #FAFAF8);
	border: 1px solid var(--bp-a-border-soft, #EDE8E0);
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: all 180ms ease;
}
.bpsaas-status-item:hover {
	border-color: var(--bp-a-accent, #C8A96E);
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(200, 169, 110, 0.15);
}
.bpsaas-status-item__icon { font-size: 24px; line-height: 1; }
.bpsaas-status-item__qty {
	font-family: Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}
.bpsaas-status-item__label {
	font-size: 12px;
	color: var(--bp-a-muted, #6B6258);
	margin-top: 2px;
}

/* ==========================================================================
   LISTAS (dashboard — próximos vencimentos)
   ========================================================================== */
.bpsaas-list { list-style: none; margin: 0; padding: 0; }
.bpsaas-list__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--bp-a-border-soft, #EDE8E0);
}
.bpsaas-list__item:last-child { border-bottom: 0; }

.bpsaas-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 11.5px;
	font-weight: 600;
	border: 1px solid transparent;
}
.bpsaas-pill--danger  { background: #FEE1E1; color: #9B2A2A; border-color: #FFC7C7; }
.bpsaas-pill--warning { background: #FFF4D6; color: #8A5A0E; border-color: #FFE4A8; }
.bpsaas-pill--info    { background: #E1ECFE; color: #1E467F; border-color: #C7D8FF; }

/* ==========================================================================
   ACTOR BADGES
   ========================================================================== */
.bpsaas-actor {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11.5px;
	font-weight: 600;
	border: 1px solid transparent;
}
.bpsaas-actor--admin  { background: #E1ECFE; color: #1E467F; border-color: #C7D8FF; }
.bpsaas-actor--client { background: #FFFCF5; color: #B89858; border-color: #FFE7BD; }
.bpsaas-actor--system { background: #EEE9E1; color: #5C544A; border-color: #DDD5C6; }

/* ==========================================================================
   QUICK ACTIONS (dashboard)
   ========================================================================== */
.bpsaas-quick-actions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 800px) { .bpsaas-quick-actions { grid-template-columns: repeat(4, 1fr); } }

.bpsaas-quick-action {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: var(--bp-a-surface, #fff);
	border: 1px solid var(--bp-a-border, #E5E0D8);
	border-radius: 10px;
	text-decoration: none;
	color: var(--bp-a-ink, #1A1612);
	transition: all 180ms ease;
}
.bpsaas-quick-action:hover {
	border-color: var(--bp-a-accent, #C8A96E);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(200, 169, 110, 0.18);
	color: var(--bp-a-ink, #1A1612);
}
.bpsaas-quick-action__icon { font-size: 22px; margin-bottom: 4px; }
.bpsaas-quick-action strong { font-size: 13px; font-weight: 600; }
.bpsaas-quick-action small { font-size: 11.5px; color: var(--bp-a-muted, #6B6258); }

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */
.bpsaas-empty {
	text-align: center;
	padding: 40px 20px;
}
.bpsaas-empty p { font-size: 16px; color: var(--bp-a-muted, #6B6258); margin-bottom: 20px; }
.bpsaas-empty-mini {
	padding: 20px 16px;
	background: var(--bp-a-surface-2, #FAFAF8);
	border-radius: 8px;
	color: var(--bp-a-muted, #6B6258);
	text-align: center;
	margin: 0;
}

/* ==========================================================================
   FILTROS
   ========================================================================== */
.bpsaas-filters__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: end;
}
@media (min-width: 700px) { .bpsaas-filters__row { grid-template-columns: 2fr 1fr 1fr 1fr auto; } }
@media (max-width: 700px) { .bpsaas-filters__row { grid-template-columns: 1fr 1fr; } }

.bpsaas-filters__group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--bp-a-muted, #6B6258);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.bpsaas-filters__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .bpsaas-filters__actions { grid-column: 1 / -1; } }

/* ==========================================================================
   TABELAS
   ========================================================================== */
.bpsaas-table th { white-space: nowrap; }
.bpsaas-table .button-small {
	height: 28px !important;
	line-height: 26px !important;
	font-size: 11.5px !important;
	padding: 0 8px !important;
}

/* ==========================================================================
   DEFS (detalhe do cliente)
   ========================================================================== */
.bpsaas-defs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}
.bpsaas-defs > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--bp-a-border-soft, #EDE8E0);
	gap: 12px;
}
.bpsaas-defs > div:last-child { border-bottom: 0; }
.bpsaas-defs dt {
	font-size: 13px;
	color: var(--bp-a-muted, #6B6258);
	font-weight: 500;
}
.bpsaas-defs dd {
	font-size: 13.5px;
	color: var(--bp-a-ink, #1A1612);
	font-weight: 600;
	margin: 0;
	text-align: right;
}
.bpsaas-defs dd code {
	background: var(--bp-a-surface-2, #FAFAF8);
	border: 1px solid var(--bp-a-border-soft, #EDE8E0);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
}

.bpsaas-notes {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--bp-a-border-soft, #EDE8E0);
}
.bpsaas-notes h4 { margin: 0 0 8px; font-size: 13px; color: var(--bp-a-muted, #6B6258); }
.bpsaas-notes p { margin: 0; font-size: 13px; line-height: 1.6; }

.bpsaas-actions-list { display: flex; flex-direction: column; gap: 0; }
.bpsaas-actions-list .button { text-align: center; }

/* ==========================================================================
   ABAS (emails)
   ========================================================================== */
.bpsaas-tabs.nav-tab-wrapper {
	margin: 0 0 0 0;
	border-bottom: 1px solid var(--bp-a-border, #E5E0D8);
	padding-bottom: 0;
}
.bpsaas-tabs .nav-tab {
	background: var(--bp-a-surface-2, #FAFAF8);
	border-color: var(--bp-a-border, #E5E0D8);
	color: var(--bp-a-ink, #1A1612);
	font-weight: 600;
	font-size: 13px;
	padding: 10px 16px;
	margin-right: 4px;
	border-radius: 8px 8px 0 0;
}
.bpsaas-tabs .nav-tab-active {
	background: var(--bp-a-surface, #fff);
	color: var(--bp-a-accent, #C8A96E);
	border-bottom-color: transparent;
}

/* SMTP callout */
.bpsaas-smtp-callout {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.bpsaas-smtp-callout strong { font-size: 14px; }
.bpsaas-smtp-callout p { margin: 6px 0 0; font-size: 13px; color: var(--bp-a-muted, #6B6258); }

/* ==========================================================================
   VARIABLES SIDEBAR (templates)
   ========================================================================== */
.bpsaas-vars-sidebar {
	position: sticky;
	top: 32px;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
}
.bpsaas-vars-list { list-style: none; margin: 0; padding: 0; }
.bpsaas-vars-list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--bp-a-border-soft, #EDE8E0);
}
.bpsaas-vars-list li:last-child { border-bottom: 0; }
.bpsaas-var-copy {
	background: var(--bp-a-accent-soft, #FFFCF5);
	border: 1px solid var(--bp-a-border, #E5E0D8);
	border-radius: 6px;
	padding: 4px 10px;
	cursor: pointer;
	font-family: inherit;
	transition: all 150ms ease;
	margin-bottom: 4px;
}
.bpsaas-var-copy:hover {
	border-color: var(--bp-a-accent, #C8A96E);
	background: rgba(200, 169, 110, 0.15);
}
.bpsaas-var-copy code { background: none; border: 0; padding: 0; font-size: 12px; color: var(--bp-a-ink, #1A1612); }
.bpsaas-vars-list small { display: block; font-size: 11.5px; color: var(--bp-a-muted, #6B6258); margin-top: 4px; }

/* ==========================================================================
   DNS GRID
   ========================================================================== */
.bpsaas-dns-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 16px;
}
@media (min-width: 800px) { .bpsaas-dns-grid { grid-template-columns: 1fr 1fr; } }

.bpsaas-dns-grid h4 {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--bp-a-ink, #1A1612);
	font-weight: 700;
}
.bpsaas-dns-list { list-style: none; margin: 0; padding: 0; }
.bpsaas-dns-list li {
	padding: 6px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--bp-a-border-soft, #EDE8E0);
}
.bpsaas-dns-list li:last-child { border-bottom: 0; }

/* ==========================================================================
   EMAIL PREVIEW (log detail)
   ========================================================================== */
.bpsaas-email-preview {
	background: var(--bp-a-surface-2, #FAFAF8);
	border: 1px solid var(--bp-a-border, #E5E0D8);
	border-radius: 10px;
	padding: 24px 28px;
	max-height: 600px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.6;
}
.bpsaas-email-preview p { margin: 0 0 12px; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.bpsaas-pagination {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 4px;
	flex-wrap: wrap;
}
.bpsaas-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	background: var(--bp-a-surface, #fff);
	border: 1px solid var(--bp-a-border, #E5E0D8);
	border-radius: 6px;
	color: var(--bp-a-ink, #1A1612);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 150ms ease;
}
.bpsaas-pagination .page-numbers:hover {
	border-color: var(--bp-a-accent, #C8A96E);
	color: var(--bp-a-accent, #C8A96E);
}
.bpsaas-pagination .current {
	background: var(--bp-a-accent, #C8A96E);
	color: var(--bp-a-ink, #1A1612);
	border-color: var(--bp-a-accent, #C8A96E);
	font-weight: 700;
}

/* ==========================================================================
   LOGO UPLOADER
   ========================================================================== */
.bpsaas-logo-uploader { display: flex; flex-direction: column; gap: 8px; }
.bpsaas-logo-preview {
	background: var(--bp-a-surface-2, #FAFAF8);
	border: 1px dashed var(--bp-a-border-strong, #D4CDBF);
	border-radius: 8px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}
.bpsaas-logo-preview img { max-width: 100%; max-height: 60px; object-fit: contain; }

/* ==========================================================================
   SECTION HEADER TOP (com botões à direita)
   ========================================================================== */
.bps-section-header__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.bps-section-header__top h1 { margin: 0 !important; flex: 1; min-width: 0; }
.bps-section-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }


/* ==========================================================================
   CUSTOMER AREA (frontend /minha-conta/)
   ========================================================================== */
.bp-container--narrow { max-width: 720px !important; }

.bp-account-login {
	background: var(--bp-bg-elevated, #fff);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 18px;
	padding: 48px 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	text-align: center;
}
@media (max-width: 600px) { .bp-account-login { padding: 32px 24px; } }

.bp-account-login__hero { margin-bottom: 32px; }
.bp-account-login__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--bp-accent-soft, #FFFCF5);
	color: var(--bp-accent, #C8A96E);
	margin-bottom: 20px;
}
.bp-account-login__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 32px;
	margin: 0 0 12px;
	color: var(--bp-text, #1A1612);
	letter-spacing: -0.02em;
}
.bp-account-login__lead {
	font-size: 15px;
	color: var(--bp-text-muted, #6B6258);
	line-height: 1.6;
	margin: 0;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

.bp-account-login__form { text-align: left; margin-top: 32px; }
.bp-account-login__form .bp-form-row { margin-bottom: 20px; }
.bp-account-login__form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-text, #1A1612);
	margin-bottom: 8px;
}
.bp-account-login__form input[type="text"],
.bp-account-login__form input[type="email"] {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid var(--bp-border, #E5E0D8);
	border-radius: 10px;
	font-size: 16px;
	color: var(--bp-text, #1A1612);
	background: var(--bp-bg-elevated, #fff);
	font-family: inherit;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}
.bp-account-login__form input:focus {
	outline: 0;
	border-color: var(--bp-accent, #C8A96E);
	box-shadow: 0 0 0 4px rgba(200, 169, 110, 0.15);
}

.bp-btn--block { display: flex; width: 100%; justify-content: center; }
.bp-btn--large { min-height: 52px !important; padding: 14px 28px !important; font-size: 15px !important; }

.bp-account-login__hint {
	text-align: center;
	font-size: 12.5px;
	color: var(--bp-text-muted, #6B6258);
	margin: 16px 0 0;
	line-height: 1.5;
}
.bp-account-login__footer {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--bp-border, #E5E0D8);
	text-align: center;
	font-size: 13px;
	color: var(--bp-text-muted, #6B6258);
}
.bp-account-login__footer a {
	color: var(--bp-accent, #C8A96E);
	font-weight: 600;
}

/* Form notices (front-end) */
.bp-form-notice {
	padding: 14px 20px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}
.bp-form-notice--success {
	background: rgba(46, 125, 91, 0.08);
	border: 1px solid rgba(46, 125, 91, 0.25);
	color: #1E6B47;
}
.bp-form-notice--error {
	background: rgba(184, 58, 58, 0.08);
	border: 1px solid rgba(184, 58, 58, 0.25);
	color: #9B2A2A;
}
.bp-form-notice--info {
	background: rgba(200, 169, 110, 0.08);
	border: 1px solid rgba(200, 169, 110, 0.25);
	color: #8A6E2E;
}
.bp-form-notice.is-fresh {
	animation: bpNoticePop 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bpNoticePop {
	0%   { transform: translateY(-6px) scale(0.98); opacity: 0; }
	100% { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Customer dashboard */
.bp-account-app {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bp-account-app__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--bp-border, #E5E0D8);
}
.bp-account-app__hello {
	font-size: 13px;
	color: var(--bp-text-muted, #6B6258);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.bp-account-app__name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 32px;
	margin: 4px 0 0;
	color: var(--bp-text, #1A1612);
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.bp-account-app__sub {
	margin: 6px 0 0;
	color: var(--bp-text-muted, #6B6258);
	font-size: 14px;
}
.bp-account-app__actions { display: flex; gap: 8px; }

.bp-btn--ghost {
	background: transparent !important;
	color: var(--bp-text, #1A1612) !important;
	border: 1px solid var(--bp-border, #E5E0D8) !important;
}
.bp-btn--ghost:hover {
	background: var(--bp-bg, #FAFAF8) !important;
	border-color: var(--bp-text-muted, #6B6258) !important;
}

/* Status card */
.bp-account-status {
	padding: 24px 28px;
	border-radius: 14px;
	border: 1px solid transparent;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bp-account-status--trial     { background: rgba(200, 169, 110, 0.08); border-color: rgba(200, 169, 110, 0.3); }
.bp-account-status--active    { background: rgba(46, 125, 91, 0.06); border-color: rgba(46, 125, 91, 0.2); }
.bp-account-status--overdue   { background: rgba(194, 138, 30, 0.08); border-color: rgba(194, 138, 30, 0.25); }
.bp-account-status--suspended { background: rgba(184, 58, 58, 0.06); border-color: rgba(184, 58, 58, 0.2); }
.bp-account-status--cancelled { background: rgba(107, 98, 88, 0.06); border-color: rgba(107, 98, 88, 0.2); }

.bp-account-status__badge {
	display: inline-flex;
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(255, 255, 255, 0.6);
}
.bp-account-status--trial     .bp-account-status__badge { color: #8A6E2E; }
.bp-account-status--active    .bp-account-status__badge { color: #1E6B47; }
.bp-account-status--overdue   .bp-account-status__badge { color: #8A5A0E; }
.bp-account-status--suspended .bp-account-status__badge { color: #9B2A2A; }
.bp-account-status--cancelled .bp-account-status__badge { color: #5C544A; }

.bp-account-status__msg {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bp-text, #1A1612);
}

/* Cards grid */
.bp-account-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 700px) { .bp-account-grid { grid-template-columns: repeat(3, 1fr); } }

.bp-account-card {
	background: var(--bp-bg-elevated, #fff);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 14px;
	padding: 20px 24px;
	transition: border-color 180ms ease;
}
.bp-account-card:hover { border-color: var(--bp-accent, #C8A96E); }

.bp-account-card__title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bp-text-muted, #6B6258);
	margin: 0 0 12px;
}
.bp-account-card__value {
	font-family: Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--bp-text, #1A1612);
	line-height: 1.2;
	margin-bottom: 6px;
	word-break: break-word;
}
.bp-account-card__value--muted { color: var(--bp-text-muted, #6B6258); font-style: italic; font-size: 16px; }
.bp-account-card__value a { color: inherit; text-decoration: none; }
.bp-account-card__value a:hover { color: var(--bp-accent, #C8A96E); }

.bp-account-card__meta {
	font-size: 12.5px;
	color: var(--bp-text-muted, #6B6258);
}

/* Section */
.bp-account-section {
	background: var(--bp-bg-elevated, #fff);
	border: 1px solid var(--bp-border, #E5E0D8);
	border-radius: 14px;
	padding: 24px 28px;
}
.bp-account-section__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	margin: 0 0 20px;
	color: var(--bp-text, #1A1612);
	letter-spacing: -0.01em;
}
.bp-account-section__hint {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--bp-text-muted, #6B6258);
}
.bp-account-section__hint a { color: var(--bp-accent, #C8A96E); font-weight: 600; }

/* Data list (dl) */
.bp-account-data {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}
.bp-account-data__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--bp-border, #E5E0D8);
	gap: 16px;
}
.bp-account-data__row:last-child { border-bottom: 0; }
.bp-account-data dt {
	font-size: 13px;
	color: var(--bp-text-muted, #6B6258);
	font-weight: 500;
	margin: 0;
}
.bp-account-data dd {
	font-size: 14px;
	color: var(--bp-text, #1A1612);
	font-weight: 600;
	margin: 0;
	text-align: right;
	word-break: break-word;
}

/* ==========================================================================
   GATEWAY CARDS (Admin → Pagamentos → Gateways)
   ========================================================================== */
.bpsaas-gateways-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: 16px;
}
@media (min-width: 800px) { .bpsaas-gateways-grid { grid-template-columns: repeat(2, 1fr); } }

.bpsaas-gateway-card {
	background: var(--bp-a-surface, #fff);
	border: 1px solid var(--bp-a-border, #E5E0D8);
	border-radius: 14px;
	padding: 24px;
	transition: all 180ms ease;
}
.bpsaas-gateway-card.is-enabled {
	border-color: var(--bp-a-accent, #C8A96E);
	background: linear-gradient(180deg, rgba(200, 169, 110, 0.04) 0%, #fff 50%);
}
.bpsaas-gateway-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}
.bpsaas-gateway-card__head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--bp-a-ink, #1A1612);
}
.bpsaas-gateway-card__desc {
	font-size: 13px;
	color: var(--bp-a-muted, #6B6258);
	margin: 0 0 16px;
	line-height: 1.5;
}
.bpsaas-gateway-card__features {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}
.bpsaas-gateway-feature {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	background: var(--bp-a-surface-2, #FAFAF8);
	border: 1px solid var(--bp-a-border-soft, #EDE8E0);
	border-radius: 9999px;
	font-size: 12px;
	color: var(--bp-a-ink, #1A1612);
	font-weight: 500;
}
.bpsaas-gateway-card__test {
	font-size: 12px;
	color: #8A5A0E;
	background: rgba(194, 138, 30, 0.08);
	padding: 6px 12px;
	border-radius: 8px;
	margin: 0 0 12px;
	font-weight: 600;
}
.bpsaas-gateway-card__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* ==========================================================================
   ANALYTICS — KPI cards + gráficos
   ========================================================================== */
.bpsaas-period-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 20px !important;
}
.bpsaas-period-tabs {
	display: flex;
	gap: 4px;
	background: var(--bp-a-surface-2, #FAFAF8);
	padding: 4px;
	border-radius: 9999px;
}
.bpsaas-period-tab {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-a-muted, #6B6258);
	text-decoration: none;
	transition: all 150ms ease;
}
.bpsaas-period-tab:hover { color: var(--bp-a-ink, #1A1612); }
.bpsaas-period-tab.is-active {
	background: var(--bp-a-ink, #1A1612);
	color: #E8C97E;
}

/* KPI grid */
.bpsaas-kpi-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 24px;
}
@media (min-width: 700px) { .bpsaas-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bpsaas-kpi-grid { grid-template-columns: repeat(3, 1fr); } }

.bpsaas-kpi {
	background: var(--bp-a-surface, #fff);
	border: 1px solid var(--bp-a-border, #E5E0D8);
	border-radius: 14px;
	padding: 22px 26px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bpsaas-kpi--mrr,
.bpsaas-kpi--ltv {
	background: linear-gradient(135deg, #1A1612 0%, #2A241C 100%);
	color: #F5F0E8;
	border-color: #C8A96E;
}
.bpsaas-kpi__label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bp-a-muted, #6B6258);
}
.bpsaas-kpi--mrr .bpsaas-kpi__label,
.bpsaas-kpi--ltv .bpsaas-kpi__label { color: rgba(245, 240, 232, 0.7); }

.bpsaas-kpi__value {
	font-family: Georgia, serif;
	font-size: 30px;
	font-weight: 700;
	color: var(--bp-a-ink, #1A1612);
	line-height: 1.1;
}
.bpsaas-kpi--mrr .bpsaas-kpi__value,
.bpsaas-kpi--ltv .bpsaas-kpi__value { color: #E8C97E; }

.bpsaas-kpi__hint {
	font-size: 12px;
	color: var(--bp-a-muted, #6B6258);
}
.bpsaas-kpi--mrr .bpsaas-kpi__hint,
.bpsaas-kpi--ltv .bpsaas-kpi__hint { color: rgba(245, 240, 232, 0.7); }
.bpsaas-kpi__hint.is-warning { color: #B83A3A; font-weight: 600; }

.bpsaas-kpi__delta {
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bpsaas-kpi__delta small { font-weight: 500; color: rgba(245, 240, 232, 0.6); font-size: 11px; }
.bpsaas-kpi__delta.is-up   { color: #6EE7A7; }
.bpsaas-kpi__delta.is-down { color: #F87171; }

/* Charts */
.bpsaas-chart-wrap {
	width: 100%;
	overflow-x: auto;
	padding: 8px 0;
}
.bpsaas-chart {
	width: 100%;
	height: auto;
	display: block;
}
.bpsaas-chart-point circle { transition: r 150ms ease; }
.bpsaas-chart-point:hover circle { r: 6; }

/* Bar list (receita por gateway) */
.bpsaas-bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bpsaas-bar-list__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 6px;
	font-size: 13px;
}
.bpsaas-bar-list__head small { color: var(--bp-a-muted, #6B6258); font-weight: 400; }
.bpsaas-bar-list__bar {
	height: 8px;
	background: var(--bp-a-surface-2, #FAFAF8);
	border-radius: 9999px;
	overflow: hidden;
}
.bpsaas-bar-list__fill {
	height: 100%;
	border-radius: 9999px;
	transition: width 400ms ease;
}

/* Glossário */
.bpsaas-glossary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
}
@media (min-width: 700px) { .bpsaas-glossary { grid-template-columns: 1fr 1fr; gap: 0 32px; } }
.bpsaas-glossary > div {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--bp-a-border-soft, #EDE8E0);
}
.bpsaas-glossary > div:last-child { border-bottom: 0; }
.bpsaas-glossary dt { font-weight: 700; color: var(--bp-a-accent, #C8A96E); font-size: 13px; }
.bpsaas-glossary dd { margin: 0; font-size: 13px; color: var(--bp-a-muted, #6B6258); line-height: 1.5; }

/* ==========================================================================
   MODE INFO — checkout redirect-only (embedded removido v2.7.0)
   ========================================================================== */
.bpsaas-mode-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px;
	margin: 16px 0;
	background: linear-gradient(135deg, #FFFCF5 0%, #FFF4D6 100%);
	border: 2px solid var(--bp-a-accent, #C8A96E);
	border-radius: 12px;
}
.bpsaas-mode-info__badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	padding: 4px 12px;
	background: var(--bp-a-accent, #C8A96E);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	border-radius: 999px;
}
.bpsaas-mode-info p { margin: 0; font-size: 13px; color: var(--bp-a-muted, #6B6258); line-height: 1.5; }

/* ==========================================================================
   WEBHOOK SETUP — instruções de configuração no painel do gateway
   ========================================================================== */
.bpsaas-webhook-notes {
	margin: 14px 0 0;
	padding: 0 0 0 20px;
	list-style: disc;
}
.bpsaas-webhook-notes li {
	font-size: 13px;
	color: var(--bp-a-muted, #6B6258);
	line-height: 1.5;
	margin-bottom: 6px;
}
.bpsaas-webhook-subtitle {
	margin: 22px 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--bp-a-ink, #1A1612);
}
.bpsaas-webhook-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bp-a-surface, #fff);
	border: 1px solid var(--bp-a-border, #E5E0D8);
	border-radius: 10px;
	overflow: hidden;
}
.bpsaas-webhook-table th,
.bpsaas-webhook-table td {
	text-align: left;
	padding: 11px 14px;
	border-bottom: 1px solid var(--bp-a-border, #E5E0D8);
	vertical-align: top;
	font-size: 13px;
}
.bpsaas-webhook-table tr:last-child th,
.bpsaas-webhook-table tr:last-child td { border-bottom: 0; }
.bpsaas-webhook-table th {
	width: 38%;
	font-weight: 600;
	color: var(--bp-a-ink, #1A1612);
	background: var(--bp-a-surface-2, #FAFAF8);
}
.bpsaas-webhook-table td strong { color: var(--bp-a-ink, #1A1612); }
.bpsaas-webhook-table td code {
	font-size: 12px;
	background: rgba(200, 169, 110, 0.12);
	padding: 1px 6px;
	border-radius: 4px;
}
.bpsaas-webhook-table th code {
	font-size: 12px;
	background: transparent;
	color: var(--bp-a-accent, #C8A96E);
	font-weight: 700;
}
.bpsaas-webhook-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--bp-a-muted, #6B6258);
	line-height: 1.45;
	font-weight: 400;
}

/* Alerta de falha de cancelamento no gateway */
.bpsaas-gw-alert {
	display: inline-block;
	margin-left: 6px;
	font-size: 11px;
	font-weight: 700;
	color: #B83A3A;
	background: rgba(184,58,58,0.1);
	border: 1px solid rgba(184,58,58,0.3);
	padding: 2px 7px;
	border-radius: 10px;
	cursor: help;
	vertical-align: middle;
}

/* Painel de retenção (motivos de cancelamento) */
.bpsaas-retention { display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.bpsaas-retention__row { display: flex; align-items: center; gap: 14px; }
.bpsaas-retention__label { width: 180px; flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: #1A1612; }
.bpsaas-retention__bar-wrap { flex: 1; height: 22px; background: #F0EAE0; border-radius: 11px; overflow: hidden; }
.bpsaas-retention__bar {
	height: 100%;
	background: linear-gradient(90deg, #C8A96E, #B8985C);
	border-radius: 11px;
	min-width: 4px;
	transition: width 600ms ease;
}
.bpsaas-retention__val { width: 90px; flex-shrink: 0; text-align: right; font-size: 13px; font-weight: 700; color: #6B6258; }

/* Box de falha de gateway na ficha do cliente */
.bpsaas-gw-fail-box {
	margin-top: 12px;
	padding: 12px 14px;
	background: rgba(184,58,58,0.06);
	border: 1px solid rgba(184,58,58,0.25);
	border-radius: 10px;
}
.bpsaas-gw-fail-box p { margin: 0 0 4px; font-size: 13px; color: #B83A3A; }

@media (max-width: 600px) {
	.bpsaas-retention__label { width: 120px; font-size: 12px; }
	.bpsaas-retention__val { width: 70px; font-size: 12px; }
}

/* Página de Manutenção */
.bpsaas-maint__lead { color: #6B6258; margin-bottom: 16px; }
.bpsaas-maint__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-top: 8px;
}
.bpsaas-maint__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 22px 16px;
	background: #fff;
	border: 1px solid #E8E2D8;
	border-radius: 14px;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.bpsaas-maint__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(26,22,18,0.08);
	border-color: #C8A96E;
}
.bpsaas-maint__card-icon { font-size: 26px; }
.bpsaas-maint__card-num { font-size: 30px; font-weight: 800; line-height: 1; }
.bpsaas-maint__card-lbl {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #8A8178;
	font-weight: 600;
	text-align: center;
}

/* Resultado do desprovisionamento (passo a passo) */
.bpsaas-deprov-result { max-width: 720px; }
.bpsaas-deprov-result__head {
	display: flex; align-items: center; gap: 16px;
	padding: 20px 22px; border-radius: 14px; margin-bottom: 18px;
}
.bpsaas-deprov-result__head.is-ok   { background: rgba(46,125,91,0.08);  border: 1px solid rgba(46,125,91,0.3); }
.bpsaas-deprov-result__head.is-fail { background: rgba(200,144,30,0.08); border: 1px solid rgba(200,144,30,0.35); }
.bpsaas-deprov-result__icon { font-size: 38px; line-height: 1; }
.bpsaas-deprov-result__head h2 { margin: 0 0 2px; font-size: 18px; }
.bpsaas-deprov-result__head p  { margin: 0; color: #6B6258; }

.bpsaas-deprov-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bpsaas-deprov-step {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 16px; background: #fff;
	border: 1px solid #E8E2D8; border-radius: 12px;
	border-left-width: 4px;
}
.bpsaas-deprov-step.is-ok   { border-left-color: #2E7D5B; }
.bpsaas-deprov-step.is-fail { border-left-color: #B83A3A; }
.bpsaas-deprov-step__icon { font-size: 22px; flex-shrink: 0; }
.bpsaas-deprov-step__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bpsaas-deprov-step__body strong { font-size: 14px; color: #1A1612; }
.bpsaas-deprov-step__body code {
	font-size: 12px; color: #6B6258; background: #F4EFE6;
	padding: 2px 7px; border-radius: 6px; align-self: flex-start;
}
.bpsaas-deprov-step__err { font-size: 12.5px; color: #B83A3A; }
.bpsaas-deprov-step__status { flex-shrink: 0; font-size: 13px; font-weight: 700; }
.bpsaas-deprov-step.is-ok   .bpsaas-deprov-step__status { color: #2E7D5B; }
.bpsaas-deprov-step.is-fail .bpsaas-deprov-step__status { color: #B83A3A; }

/* Barra de ações em lote (clientes) */
.bpsaas-bulk-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 10px 14px;
	background: #FBF7EF;
	border: 1px solid #E8E2D8;
	border-radius: 10px;
	margin-bottom: 12px;
}
.bpsaas-bulk-bar label { font-size: 13.5px; font-weight: 600; color: #1A1612; cursor: pointer; }
.bpsaas-bulk-select { min-width: 220px; }
.bpsaas-bulk-hint { font-size: 12px; color: #8A8178; flex: 1; min-width: 200px; }
.bpsaas-del-btn {
	border-color: #e3c4c4 !important;
	text-decoration: none;
}
.bpsaas-del-btn:hover { background: #b83a3a !important; border-color: #b83a3a !important; }
.bpsaas-table .check-column { width: 32px; text-align: center; }

/* Carência de desprovisionamento */
.bpsaas-grace {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #8A6D3B;
	background: rgba(200,169,110,0.15);
	border: 1px solid rgba(200,169,110,0.35);
	padding: 3px 9px;
	border-radius: 10px;
}

/* ============================================================
   Página de Testes (Trials) — estilização premium dedicada
   ============================================================ */
.bpsaas-trials {
	--bpt-ink: #1A1612;
	--bpt-muted: #6B6258;
	--bpt-accent: #C8A96E;
	--bpt-border: #E8E2D8;
	--bpt-cream: #FBF7EF;
}
.bpsaas-trials h1 { display: flex; align-items: center; gap: 8px; }
.bpsaas-trials .bpsaas-maint__lead { color: var(--bpt-muted); margin-bottom: 16px; font-size: 14px; }

/* Cartões do formulário */
.bpsaas-trials .bps-card {
	background: #fff;
	border: 1px solid var(--bpt-border);
	border-radius: 16px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(26,22,18,0.04);
	margin-bottom: 20px;
}
.bpsaas-trials .bps-card__header {
	padding: 22px 26px 0;
}
.bpsaas-trials .bps-card__header h2 {
	font-size: 18px;
	color: var(--bpt-ink);
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.bpsaas-trials .bps-card__header p {
	color: var(--bpt-muted);
	font-size: 13.5px;
	margin: 0;
}

/* Campos */
.bpsaas-trials .bps-field {
	padding: 16px 26px;
	border-bottom: 1px solid #F2EEE6;
}
.bpsaas-trials .bps-field:last-child { border-bottom: 0; }
.bpsaas-trials .bps-field__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--bpt-ink);
	margin-bottom: 7px;
	text-transform: none;
	letter-spacing: 0;
}
.bpsaas-trials .bps-input {
	width: 100%;
	max-width: 100%;
	padding: 11px 14px;
	border: 1px solid #DDD6CA;
	border-radius: 10px;
	font-size: 14px;
	color: var(--bpt-ink);
	background: #fff;
	transition: border-color 140ms ease, box-shadow 140ms ease;
	box-sizing: border-box;
}
.bpsaas-trials .bps-input:focus {
	outline: none;
	border-color: var(--bpt-accent);
	box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}
.bpsaas-trials select.bps-input { cursor: pointer; }
.bpsaas-trials .bps-field__help {
	font-size: 12.5px;
	color: #9A9183;
	margin: 7px 0 0;
	line-height: 1.5;
}

/* Grid 2 colunas */
.bpsaas-trials .bps-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}
.bpsaas-trials .bps-grid-2 .bps-field {
	border-bottom: 1px solid #F2EEE6;
}
.bpsaas-trials .bps-grid-2 .bps-field:first-child {
	border-right: 1px solid #F2EEE6;
}
@media (max-width: 640px) {
	.bpsaas-trials .bps-grid-2 { grid-template-columns: 1fr; }
	.bpsaas-trials .bps-grid-2 .bps-field:first-child { border-right: 0; }
}

/* Checkbox */
.bpsaas-trials .bps-field--checkbox .bps-field__label-inline {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	font-weight: 600;
	color: var(--bpt-ink);
	cursor: pointer;
}
.bpsaas-trials .bps-field--checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--bpt-accent);
	cursor: pointer;
}

/* Botão principal */
.bpsaas-trials .button-hero {
	background: linear-gradient(135deg, #C8A96E 0%, #B8954F 100%) !important;
	border: 0 !important;
	color: #fff !important;
	padding: 12px 28px !important;
	height: auto !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	box-shadow: 0 4px 14px rgba(200,169,110,0.35) !important;
	text-shadow: none !important;
	transition: transform 140ms ease, box-shadow 140ms ease !important;
}
.bpsaas-trials .button-hero:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(200,169,110,0.45) !important;
}

/* Tabela de testes */
.bpsaas-trials .widefat {
	border: 1px solid var(--bpt-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(26,22,18,0.04);
}
.bpsaas-trials .widefat thead th {
	background: var(--bpt-cream);
	color: var(--bpt-ink);
	font-weight: 600;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 13px 14px;
	border-bottom: 1px solid var(--bpt-border);
}
.bpsaas-trials .widefat tbody td {
	padding: 14px;
	vertical-align: middle;
	border-bottom: 1px solid #F2EEE6;
}
.bpsaas-trials .widefat tbody tr:last-child td { border-bottom: 0; }

/* Pills de período (dias restantes / expirado) */
.bpsaas-trials .bpsaas-pref {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 10px;
	margin-left: 4px;
	vertical-align: middle;
}
.bpsaas-trials .bpsaas-pref--wa {
	color: #2E7D5B;
	background: rgba(46,125,91,0.12);
}
.bpsaas-trials .bpsaas-pref--mail {
	color: #B83A3A;
	background: rgba(184,58,58,0.12);
}

/* Botões de ação na linha */
.bpsaas-trials .bpsaas-offline__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}
.bpsaas-trials .bpsaas-offline__actions .button {
	border-radius: 8px;
	font-size: 12px;
	height: auto;
	padding: 4px 10px;
	line-height: 1.7;
}
.bpsaas-trials .bpsaas-offline__actions form { margin: 0; }
.bpsaas-trials .bpsaas-copy-link {
	background: var(--bpt-cream) !important;
	border-color: #DDD6CA !important;
}

/* ============================================================
   Página de Push notifications — premium
   ============================================================ */
.bpsaas-push .bpsaas-maint__lead { color: #6B6258; margin-bottom: 16px; font-size: 14px; }
.bpsaas-push-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
@media (max-width: 782px) { .bpsaas-push-grid { grid-template-columns: 1fr; } }
.bpsaas-push .bps-card,
.bpsaas-push-card {
	background: #fff;
	border: 1px solid #E8E2D8;
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 2px 12px rgba(26,22,18,0.04);
}
.bpsaas-push .bps-card__header { padding: 0; margin-bottom: 16px; }
.bpsaas-push .bps-card__header h2 { font-size: 17px; color: #1A1612; margin: 0 0 4px; }
.bpsaas-push .bps-card__header p { font-size: 13px; color: #8A8178; margin: 0; }

/* Código gerado */
.bpsaas-push-code {
	font-size: 38px;
	font-weight: 800;
	letter-spacing: 8px;
	text-align: center;
	color: #C8A96E;
	background: #FBF7EF;
	border: 2px dashed #DDD0B0;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 16px;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.bpsaas-push-code.is-active { color: #1A1612; border-color: #C8A96E; }

/* Input de ativação */
.bpsaas-push-input {
	width: 100%;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 10px;
	text-align: center;
	padding: 14px;
	border: 1px solid #DDD6CA;
	border-radius: 12px;
	box-sizing: border-box;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.bpsaas-push-input:focus { outline: none; border-color: #C8A96E; box-shadow: 0 0 0 3px rgba(200,169,110,0.15); }

.bpsaas-push .button-hero {
	width: 100%;
	background: linear-gradient(135deg, #C8A96E 0%, #B8954F 100%) !important;
	border: 0 !important;
	color: #fff !important;
	padding: 12px !important;
	height: auto !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	box-shadow: 0 4px 14px rgba(200,169,110,0.35) !important;
	text-shadow: none !important;
	margin-top: 4px;
	cursor: pointer;
}
.bpsaas-push .button-hero:hover { transform: translateY(-1px); }
.bpsaas-push .bps-input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #DDD6CA;
	border-radius: 10px;
	font-size: 14px;
	box-sizing: border-box;
}

/* Status */
.bpsaas-push-status { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.bpsaas-push-status.is-ok { color: #2E7D5B; }
.bpsaas-push-status.is-erro { color: #B83A3A; }

/* Ajuda */
.bpsaas-push-help { margin: 0; padding-left: 20px; color: #4A453E; font-size: 13.5px; line-height: 1.7; }
.bpsaas-push-help li { margin-bottom: 8px; }

/* ============================================================
   📱 Responsividade reforçada (v2.16.2)
   ============================================================ */

/* Tabelas de dados: scroll horizontal suave no mobile em vez de quebrar */
@media (max-width: 782px) {
	.bpsaas-table,
	.widefat.striped {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
	/* Filtros empilham melhor */
	.bpsaas-filters__row { grid-template-columns: 1fr !important; }
	.bpsaas-filters__row > * { width: 100%; }
	/* Cards de stats ocupam largura total e empilham */
	.bpsaas-stats-row { grid-template-columns: 1fr !important; }
	/* Botões de ação não estouram a largura */
	.bpsaas-actions, .bpsaas-bulk-actions { flex-wrap: wrap; gap: 8px; }
	.bpsaas-actions .button { flex: 1 1 auto; text-align: center; }
}

/* Formulários do admin: campos ocupam largura no mobile */
@media (max-width: 600px) {
	.bps-field, .bps-card { width: 100%; }
	.bps-field input[type="text"],
	.bps-field input[type="email"],
	.bps-field input[type="tel"],
	.bps-field input[type="date"],
	.bps-field select,
	.bps-field textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
	/* Modais não estouram a tela */
	.bps-modal__content { width: 94vw; max-width: 94vw; margin: 0 3vw; }
}

/* ============================================================
   Gateways no checkout — blocos arrastáveis (ordem + visibilidade)
   ============================================================ */
.bps-gw-order {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 480px;
}
.bps-gw-order__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #E5E0D8;
	border-radius: 10px;
	cursor: default;
	transition: box-shadow .15s, border-color .15s, opacity .15s;
}
.bps-gw-order__item:hover { border-color: #C6A05C; }
.bps-gw-order__item.is-dragging { opacity: .5; box-shadow: 0 8px 22px rgba(26,22,18,.14); }
.bps-gw-order__handle {
	cursor: grab;
	font-size: 18px;
	line-height: 1;
	color: #B7AE9F;
	user-select: none;
	padding: 2px 2px;
}
.bps-gw-order__handle:active { cursor: grabbing; }
.bps-gw-order__label {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	flex: 1;
	cursor: pointer;
	font-weight: 600;
}
.bps-gw-order__chk { width: 17px; height: 17px; flex-shrink: 0; }
.bps-gw-order__logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.bps-gw-order__name { color: #2B2620; }
/* item desmarcado = não aparece no checkout (dica visual) */
.bps-gw-order__item:has(.bps-gw-order__chk:not(:checked)) { opacity: .55; background: #FAF8F4; }
.bps-gw-order__item:has(.bps-gw-order__chk:not(:checked)) .bps-gw-order__name { text-decoration: line-through; }

@media (prefers-color-scheme: dark) {
	.bps-gw-order__item { background: #242019; border-color: #3A332A; }
	.bps-gw-order__item:has(.bps-gw-order__chk:not(:checked)) { background: #1E1A14; }
	.bps-gw-order__name { color: #E8E1D4; }
}
