/* ==========================================================================
   Banana Pay — Design System
   DM Sans · Yellow / Black / White · SaaS Pro
   Prefix: bp-*
   ========================================================================== */

   @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

   :root {
     /* Brand */
     --bp-yellow:      #FFD60A;
     --bp-yellow-d:    #E5BD00;
     --bp-yellow-soft: #FFF8D6;
   
     /* Accent ativo (sidebar) — verde vibrante estilo Abacate/Stripe */
     --bp-accent:      #22C55E;
     --bp-accent-d:    #16A34A;
     --bp-accent-soft: #DCFCE7;
   
     /* Neutrals */
     --bp-black:    #0A0A0A;
     --bp-ink:      #111418;
     --bp-ink-2:    #1A1F26;
     --bp-white:    #FFFFFF;
     --bp-bg:       #F4F4F5;   /* fundo cinza do app shell */
     --bp-bg-soft:  #F7F8FA;
     --bp-line:     #E6E8EC;
     --bp-line-2:   #EFF1F4;
     --bp-mute:     #6B7280;
     --bp-mute-2:   #9CA3AF;
     --bp-text:     #111827;
   
     /* Status */
     --bp-success:  #15803D;
     --bp-success-bg:#DCFCE7;
     --bp-warning:  #B45309;
     --bp-warning-bg:#FEF3C7;
     --bp-danger:   #B91C1C;
     --bp-danger-bg:#FEE2E2;
     --bp-info:     #1D4ED8;
     --bp-info-bg:  #DBEAFE;
   
     /* Layout */
     --bp-r:        10px;
     --bp-r-sm:     8px;
     --bp-r-lg:     16px;
     --bp-r-xl:     24px;       /* raio do canvas flutuante */
     --bp-shadow:   0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.04);
     --bp-shadow-md:0 4px 14px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
     --bp-shadow-lg:0 20px 40px -12px rgba(15,23,42,.12);
     --bp-shadow-canvas: 0 1px 3px rgba(15,23,42,.04), 0 8px 24px -10px rgba(15,23,42,.08);
   
     --bp-sidebar-w:260px;
     --bp-header-h: 72px;
     --bp-shell-gap:18px;       /* espaço entre canvas, sidebar e bordas */
     --bp-container:1240px;
   
     --bp-font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
   }
   
   
   /* Reset --------------------------------------------------------------------*/
   *, *::before, *::after { box-sizing: border-box; }
   * { margin: 0; padding: 0; }
   html, body { height: 100%; }
   body {
     font-family: var(--bp-font);
     font-size: 14.5px;
     line-height: 1.5;
     color: var(--bp-text);
     background: var(--bp-bg);
     overflow: hidden;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
     text-rendering: optimizeLegibility;
   }
   a { color: var(--bp-ink); text-decoration: none; transition: color .12s; }
   a:hover { color: var(--bp-mute); }
   img { max-width: 100%; display: block; }
   svg { display: block; flex-shrink: 0; }
   button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
   input, select, textarea { font: inherit; color: inherit; }
   hr { border: 0; border-top: 1px solid var(--bp-line); margin: 16px 0; }
   
   h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
   h2 { font-size: 17px; font-weight: 600; letter-spacing: -.005em; }
   h3 { font-size: 15px; font-weight: 600; }
   
   /* Utilities ----------------------------------------------------------------*/
   .bp-muted   { color: var(--bp-mute); font-size: 13px; }
   .bp-row     { display: flex; gap: 10px; align-items: center; }
   .bp-row-end { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
   .bp-stack   { display: flex; flex-direction: column; gap: 12px; }
   .bp-grow    { flex: 1; }
   .bp-center  { display: flex; align-items: center; justify-content: center; }
   .bp-mono    { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
   .bp-truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
   .bp-divider { height: 1px; background: var(--bp-line); margin: 14px 0; }
   .bp-hp      { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
   
   /* Buttons ------------------------------------------------------------------*/
   .bp-btn, .bp-btn-primary, .bp-btn-dark, .bp-btn-ghost, .bp-btn-outline, .bp-btn-danger, .bp-btn-oauth {
     display: inline-flex; align-items: center; justify-content: center;
     gap: 8px; padding: 9px 16px; border-radius: var(--bp-r);
     font-weight: 600; font-size: 13.5px; line-height: 1;
     border: 1px solid transparent; white-space: nowrap;
     transition: background .12s, color .12s, border-color .12s, transform .06s, box-shadow .12s;
     user-select: none;
   }
   .bp-btn svg, .bp-btn-primary svg, .bp-btn-dark svg, .bp-btn-ghost svg,
   .bp-btn-outline svg, .bp-btn-danger svg, .bp-btn-oauth svg,
   .bp-icon-btn svg, .bp-page-head a svg, .bp-page-head button svg {
     width: 16px; height: 16px; flex-shrink: 0;
   }
   .bp-icon-btn svg { width: 18px; height: 18px; }
   .bp-btn-primary { background: var(--bp-yellow); color: var(--bp-black); }
   .bp-btn-primary:hover { background: var(--bp-yellow-d); color: var(--bp-black); }
   .bp-btn-dark    { background: var(--bp-ink); color: var(--bp-white); }
   .bp-btn-dark:hover { background: #000; color: var(--bp-white); }
   .bp-btn-outline { background: var(--bp-white); color: var(--bp-ink); border-color: var(--bp-line); }
   .bp-btn-outline:hover { background: var(--bp-bg); }
   .bp-btn-ghost   { background: transparent; color: var(--bp-ink); border-color: var(--bp-line); }
   .bp-btn-ghost:hover { background: var(--bp-bg); }
   .bp-btn-danger  { background: var(--bp-danger); color: var(--bp-white); }
   .bp-btn-danger:hover { background: #991B1B; color: var(--bp-white); }
   .bp-btn-lg      { padding: 13px 22px; font-size: 14.5px; border-radius: 12px; }
   .bp-btn-sm      { padding: 6px 11px; font-size: 12.5px; border-radius: var(--bp-r-sm); }
   .bp-btn-block   { width: 100%; }
   .bp-btn:active, .bp-btn-primary:active, .bp-btn-dark:active { transform: translateY(1px); }
   button[disabled], .is-loading { opacity: .55; pointer-events: none; }
   
   .bp-btn-oauth {
     background: var(--bp-white); color: var(--bp-ink); border-color: var(--bp-line);
     padding: 12px 16px; font-size: 14px; width: 100%;
   }
   .bp-btn-oauth:hover { background: var(--bp-bg); }
   
   /* Forms --------------------------------------------------------------------*/
   .bp-form { display: flex; flex-direction: column; gap: 14px; }
   .bp-form label, .bp-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--bp-text); letter-spacing: .005em; margin-bottom: 6px; }
   .bp-form-grid > div > label:first-child { display: block; margin-bottom: 6px; }
   .bp-input, .bp-select, .bp-textarea,
   .bp-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=file]),
   .bp-form select, .bp-form textarea,
   .bp-form-grid input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=file]),
   .bp-form-grid select, .bp-form-grid textarea {
     width: 100%; padding: 10px 12px;
     border: 1px solid var(--bp-line); border-radius: var(--bp-r);
     background: var(--bp-white); font-size: 14px; color: var(--bp-text);
     font-family: inherit;
     transition: border-color .12s, box-shadow .12s;
     box-sizing: border-box;
   }
   .bp-input:focus, .bp-select:focus, .bp-textarea:focus,
   .bp-form input:focus, .bp-form select:focus, .bp-form textarea:focus,
   .bp-form-grid input:focus, .bp-form-grid select:focus, .bp-form-grid textarea:focus {
     outline: none; border-color: var(--bp-ink);
     box-shadow: 0 0 0 3px rgba(10,10,10,.08);
   }
   .bp-form-grid input:disabled, .bp-form-grid select:disabled, .bp-form-grid textarea:disabled {
     background: var(--bp-bg); color: var(--bp-mute); cursor: not-allowed;
   }
   .bp-form-grid label { display:block; font-size:12.5px; font-weight:600; color:var(--bp-text); margin-bottom:6px; }
   
   .bp-textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
   .bp-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
   .bp-form-grid .full { grid-column: 1 / -1; }
   .bp-field-help { font-size: 12px; color: var(--bp-mute); margin-top: 2px; }
   .bp-field-error{ font-size: 12px; color: var(--bp-danger); margin-top: 2px; }
   
   .bp-check { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
   .bp-check input { accent-color: var(--bp-ink); width: 16px; height: 16px; }
   
   .bp-filters { display: flex; gap: 8px; align-items: center; margin: 14px 0 18px; flex-wrap: wrap; }
   .bp-filters select, .bp-filters input { padding: 8px 10px; font-size: 13.5px; border: 1px solid var(--bp-line); border-radius: var(--bp-r-sm); background: var(--bp-white); min-width: 160px; }
   
   /* App Shell — Floating Canvas (estilo Stripe / Abacate Pay) ----------------*/
   body { background: var(--bp-bg) !important; }
   
   .bp-app {
     height: 100vh;
     display: flex;
     flex-direction: row;
     background: var(--bp-bg) !important;
     overflow: hidden;
   }
   
   .bp-main-col {
     flex: 1;
     min-width: 0;
     display: flex;
     flex-direction: column;
     min-height: 0;
     padding: var(--bp-shell-gap) var(--bp-shell-gap) var(--bp-shell-gap) 0;
     gap: 10px;
   }
   
   .bp-header {
     height: 72px;
     flex-shrink: 0;
     background: transparent !important;
     border-bottom: 0 !important;
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 12px 0 8px;
     z-index: 30;
   }
   .bp-header-left, .bp-header-right { display: flex; align-items: center; gap: 12px; }
   
   /* Pagebar (breadcrumb com ícone, estilo Abacate) */
   .bp-pagebar { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 4px; }
   .bp-pagebar-crumb { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #6B7280; min-width: 0; letter-spacing: -.005em; }
   .bp-pagebar-crumb svg { width: 20px; height: 20px; color: #8A8AA3; flex-shrink: 0; stroke-width: 1.7; }
   .bp-pagebar-crumb > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
   .bp-pagebar-current { color: #121217; }
   .bp-pagebar-current svg { color: #121217; }
   .bp-pagebar-sep { color: #C7CBD6; font-weight: 400; font-size: 16px; }
   
   .bp-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--bp-ink); letter-spacing: -.01em; }
   .bp-logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--bp-yellow); display: inline-flex; align-items: center; justify-content: center; color: var(--bp-black); font-weight: 800; font-size: 14px; }
   .bp-logo-center { display: flex; justify-content: center; margin-bottom: 22px; }
   
   .bp-dash-switcher { position: relative; }
   .bp-dash-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--bp-line); border-radius: 12px; background: var(--bp-white); font-size: 14px; font-weight: 600; color: var(--bp-ink); box-shadow: var(--bp-shadow); }
   .bp-dash-btn:hover { border-color: var(--bp-mute-2); }
   .bp-dash-btn .caret { color: var(--bp-mute); font-size: 10px; }
   .bp-dash-list { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); box-shadow: var(--bp-shadow-lg); padding: 6px; z-index: 50; }
   .bp-dash-list.open { display: block; }
   .bp-dash-item { display: block; padding: 8px 10px; border-radius: var(--bp-r-sm); font-size: 13.5px; color: var(--bp-ink); }
   .bp-dash-item:hover { background: var(--bp-bg); }
   .bp-dash-item.active { background: var(--bp-accent-soft); color: var(--bp-accent-d); font-weight: 600; }
   .bp-dash-sep { height: 1px; background: var(--bp-line); margin: 4px 0; }
   
   .bp-user-email { font-size: 13px; color: var(--bp-mute); }
   .bp-icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: #5A6175; box-shadow: none; transition: background .12s, color .12s; }
   .bp-icon-btn:hover { background: #ECEFF4; color: var(--bp-ink); border-color: transparent; }
   .bp-icon-btn:active { transform: translateY(1px); }
   .bp-icon-btn svg { width: 18px; height: 18px; }
   
   /* Sidebar — coluna esquerda full height, footer ancorado */
   .bp-sidebar {
     width: var(--bp-sidebar-w);
     flex-shrink: 0;
     background: transparent !important;
     border: 0 !important;
     padding: 22px 14px 16px;
     height: 100vh;
     min-height: 0;
     overflow: hidden;
     display: flex;
     flex-direction: column;
     gap: 14px;
   }
   
   .bp-sb-top { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
   .bp-sb-brand { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 4px; height: 36px; }
   .bp-sb-logo { display: inline-flex; align-items: center; gap: 8px; }
   .bp-sb-logo-mark {
     width: 30px; height: 30px; border-radius: 9px;
     background: linear-gradient(135deg, #9EEA6C, #5FBF4A);
     display: inline-flex; align-items: center; justify-content: center;
     color: #244C4E; font-weight: 800; font-size: 15px;
     box-shadow: 0 2px 6px rgba(94,191,74,.35);
   }
   .bp-sb-collapse {
     width: 28px; height: 28px; border-radius: 7px;
     display: inline-flex; align-items: center; justify-content: center;
     color: #83899F; background: transparent; transition: background .15s, color .15s;
   }
   .bp-sb-collapse:hover { background: #ECEFF4; color: var(--bp-ink); }
   .bp-sb-collapse svg { width: 18px; height: 18px; }
   
   .bp-sb-sep { width: 100%; height: 1px; background: #E2E7F1; border: 0; margin: 0; }
   
   .bp-sb-dashcard { position: relative; }
   .bp-sb-dashbtn {
     width: 100%; display: flex; align-items: center; justify-content: space-between;
     gap: 8px; padding: 10px 12px; background: var(--bp-white);
     border: 1px solid #E2E7F1; border-radius: 12px;
     text-align: left; transition: border-color .15s, box-shadow .15s;
   }
   .bp-sb-dashbtn:hover { border-color: #9EEA6C; }
   .bp-sb-dashinfo { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
   .bp-sb-dashinfo strong { font-weight: 700; font-size: 14.5px; color: #121217; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
   .bp-sb-dashinfo span { font-size: 12.5px; color: #83899F; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
   .bp-sb-caret { color: #8A8AA3; display: inline-flex; }
   .bp-sb-caret svg { width: 14px; height: 14px; }
   
   /* Nav */
   .bp-sb-nav { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; min-height: 0; overflow-y: auto; overflow-x: hidden; }
   .bp-sb-nav::-webkit-scrollbar { width: 6px; }
   .bp-sb-nav::-webkit-scrollbar-thumb { background: #D9DCE3; border-radius: 6px; }
   
   .bp-sb-item {
     display: flex; align-items: center; gap: 12px;
     width: 100%; padding: 9px 12px; border-radius: 10px;
     font-weight: 600; font-size: 14.5px; color: #121217;
     background: transparent; transition: background .14s, color .14s;
     text-align: left;
   }
   .bp-sb-item svg { width: 18px; height: 18px; color: #8A8AA3; flex-shrink: 0; stroke-width: 1.6; transition: color .14s; }
   .bp-sb-item > span:not(.bp-sb-arrow) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
   .bp-sb-item:hover { background: #F1F4F9; color: #121217; }
   .bp-sb-item:hover svg { color: #5A6175; }
   
   .bp-sb-item.active { background: #9EEA6C; color: #244C4E; }
   .bp-sb-item.active svg { color: #244C4E; }
   
   /* Group expansível */
   .bp-sb-group { display: flex; flex-direction: column; gap: 2px; }
   .bp-sb-grouphead { cursor: pointer; }
   .bp-sb-arrow { color: #8A8AA3; display: inline-flex; transition: transform .2s; margin-left: auto; }
   .bp-sb-arrow svg { width: 14px; height: 14px; }
   .bp-sb-group.open .bp-sb-arrow { transform: rotate(180deg); }
   
   .bp-sb-sub { display: none; flex-direction: column; gap: 2px; padding: 2px 0 4px 36px; }
   .bp-sb-group.open .bp-sb-sub { display: flex; }
   
   .bp-sb-subitem {
     display: flex; align-items: center; gap: 10px;
     padding: 8px 10px; border-radius: 8px;
     font-weight: 600; font-size: 13.5px; color: #121217;
     transition: background .14s;
   }
   .bp-sb-subitem svg { width: 16px; height: 16px; color: #8A8AA3; flex-shrink: 0; stroke-width: 1.6; }
   .bp-sb-subitem:hover { background: #F1F4F9; }
   .bp-sb-subitem.active { background: #DCFCE7; color: #166534; }
   .bp-sb-subitem.active svg { color: #166534; }
   
   /* Footer */
   .bp-sb-footer { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; padding-top: 4px; }
   
   .bp-sb-profile {
     display: flex; align-items: center; gap: 8px;
     padding: 6px 8px; border-radius: 12px;
     transition: background .14s;
   }
   .bp-sb-profile:hover { background: #F1F4F9; }
   .bp-sb-profile-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; }
   .bp-sb-avatar {
     width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
     display: inline-flex; align-items: center; justify-content: center;
     background: linear-gradient(135deg, #C2410C, #9A3412);
     color: #fff; font-weight: 700; font-size: 14px;
   }
   .bp-sb-profile-meta { min-width: 0; display: flex; flex-direction: column; }
   .bp-sb-profile-meta strong { font-weight: 700; font-size: 14px; color: #121217; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
   .bp-sb-profile-meta span { font-size: 11.5px; color: #83899F; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
   .bp-sb-profile-more {
     width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
     display: inline-flex; align-items: center; justify-content: center;
     color: #8A8AA3; transition: background .14s, color .14s;
   }
   .bp-sb-profile-more:hover { background: #ECEFF4; color: var(--bp-ink); }
   .bp-sb-profile-more svg { width: 16px; height: 16px; }
   
   /* ===== Sidebar collapsed (icon-only) ===== */
   .bp-sidebar.is-collapsed { width: 72px; padding-left: 10px; padding-right: 10px; }
   .bp-sidebar.is-collapsed .bp-sb-brand { flex-direction: column; justify-content: center; align-items: center; padding: 0; gap: 8px; height: auto; }
   .bp-sidebar.is-collapsed .bp-sb-collapse { display: none !important; }
   .bp-sidebar.is-collapsed .bp-sb-expand { display: inline-flex !important; }
   .bp-sidebar.is-collapsed .bp-sb-dashcard,
   .bp-sidebar.is-collapsed .bp-sb-sep,
   .bp-sidebar.is-collapsed .bp-sb-sub,
   .bp-sidebar.is-collapsed .bp-sb-arrow,
   .bp-sidebar.is-collapsed .bp-sb-profile-meta,
   .bp-sidebar.is-collapsed .bp-sb-profile-more,
   .bp-sidebar.is-collapsed .bp-sb-item > span:not(.bp-sb-arrow) { display: none !important; }
   .bp-sidebar.is-collapsed .bp-sb-nav { align-items: center; justify-content: center; padding: 4px 0; }
   .bp-sidebar.is-collapsed .bp-sb-item { justify-content: center; padding: 10px; gap: 0; width: 44px; }
   .bp-sidebar.is-collapsed .bp-sb-footer { align-items: center; }
   .bp-sidebar.is-collapsed .bp-sb-profile { justify-content: center; padding: 4px; width: auto; }
   .bp-sidebar.is-collapsed .bp-sb-profile-link { justify-content: center; gap: 0; }
   
   .bp-sb-expand {
     width: 28px; height: 28px; border-radius: 7px;
     display: none; align-items: center; justify-content: center;
     color: #83899F; background: transparent; transition: background .15s, color .15s;
   }
   .bp-sb-expand:hover { background: #ECEFF4; color: var(--bp-ink); }
   .bp-sb-expand svg { width: 18px; height: 18px; }
   
   /* Canvas branco flutuante — scroll interno */
   .bp-main {
     background: var(--bp-white) !important;
     border-radius: var(--bp-r-xl) !important;
     box-shadow: var(--bp-shadow-canvas) !important;
     border: 1px solid var(--bp-line-2);
     padding: 26px 30px 46px;
     width: 100%;
     min-width: 0;
     height: 100%;
     min-height: 0;
     overflow-y: auto;
     overflow-x: hidden;
   }
   .bp-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }
   .bp-page-head h1 { font-size: 22px; }
   .bp-page-head .bp-muted { margin-left: 4px; }
   
   /* Banner fica integrado ao topo cinza */
   .bp-banner-block { background: var(--bp-danger-bg); color: var(--bp-danger); padding: 10px 18px; font-size: 13.5px; font-weight: 500; border: 1px solid #FCA5A5; border-radius: var(--bp-r); text-align: center; margin: 0 0 4px; flex-shrink: 0; }
   .bp-banner-block a { color: var(--bp-danger); text-decoration: underline; font-weight: 600; }
   
   
   
   
   /* Card ---------------------------------------------------------------------*/
   .bp-card { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 18px; box-shadow: var(--bp-shadow); }
   .bp-card h2 { margin-bottom: 12px; }
   .bp-card + .bp-card { margin-top: 16px; }
   .bp-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
   
   /* KPI ----------------------------------------------------------------------*/
   .bp-kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
   @media (max-width: 1100px) { .bp-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
   @media (max-width: 640px)  { .bp-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
   .bp-kpi { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 16px; }
   .bp-kpi-label { font-size: 11.5px; font-weight: 600; color: var(--bp-mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
   .bp-kpi-value { font-size: 22px; font-weight: 700; color: var(--bp-ink); letter-spacing: -.01em; }
   .bp-kpi-sub   { font-size: 12px; color: var(--bp-mute); margin-top: 4px; }
   .bp-kpi-delta-up   { color: var(--bp-success); }
   .bp-kpi-delta-down { color: var(--bp-danger); }
   
   /* Table --------------------------------------------------------------------*/
   .bp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); overflow: hidden; }
   .bp-table th, .bp-table td { padding: 12px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--bp-line-2); vertical-align: middle; }
   .bp-table tbody tr:last-child td { border-bottom: 0; }
   .bp-table th { background: var(--bp-bg); font-weight: 600; color: var(--bp-mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
   .bp-table tbody tr:hover { background: #FAFBFC; }
   .bp-empty { text-align: center; color: var(--bp-mute); padding: 28px !important; font-size: 13.5px; }
   
   /* Badges -------------------------------------------------------------------*/
   .bp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--bp-line-2); color: var(--bp-text); }
   .bp-badge-approved   { background: var(--bp-success-bg); color: var(--bp-success); }
   .bp-badge-pending    { background: var(--bp-warning-bg); color: var(--bp-warning); }
   .bp-badge-refused, .bp-badge-chargeback, .bp-badge-expired { background: var(--bp-danger-bg); color: var(--bp-danger); }
   .bp-badge-refunded   { background: var(--bp-info-bg); color: var(--bp-info); }
   .bp-badge-soft       { background: var(--bp-yellow-soft); color: #6B4F00; }
   
   /* Pager --------------------------------------------------------------------*/
   .bp-pager { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 18px; color: var(--bp-mute); font-size: 13px; }
   .bp-pager a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--bp-r-sm); border: 1px solid var(--bp-line); background: var(--bp-white); }
   .bp-pager a:hover { background: var(--bp-bg); }
   
   /* Empty state --------------------------------------------------------------*/
   .bp-empty-card { background: var(--bp-white); border: 1px dashed var(--bp-line); border-radius: var(--bp-r); padding: 56px 24px; text-align: center; color: var(--bp-mute); }
   .bp-empty-card h3 { color: var(--bp-ink); margin-bottom: 6px; }
   .bp-empty-card a { color: var(--bp-ink); font-weight: 600; text-decoration: underline; }
   
   /* Products grid ------------------------------------------------------------*/
   .bp-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
   .bp-prod-card { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
   .bp-prod-card:hover { box-shadow: var(--bp-shadow-md); }
   .bp-prod-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bp-bg); }
   .bp-prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
   .bp-prod-body h3 { color: var(--bp-ink); }
   .bp-prod-price { font-weight: 700; font-size: 18px; color: var(--bp-ink); }
   .bp-prod-link { display: flex; }
   .bp-prod-link input { flex: 1; padding: 7px 10px; font-size: 12px; border: 1px solid var(--bp-line); border-radius: var(--bp-r-sm); background: var(--bp-bg); color: var(--bp-mute); }
   
   /* ============================================================================
      LANDING
      ============================================================================ */
   body.bp-landing { background: var(--bp-white); color: var(--bp-ink); }
   .bp-land-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; border-bottom: 1px solid var(--bp-line); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); z-index: 20; }
   .bp-land-nav { display: flex; gap: 22px; align-items: center; }
   .bp-land-nav a { font-size: 14px; color: var(--bp-mute); font-weight: 500; }
   .bp-land-nav a:hover { color: var(--bp-ink); }
   
   .bp-hero { max-width: 980px; margin: 0 auto; padding: 96px 24px 80px; text-align: center; }
   .bp-hero .bp-eyebrow { display: inline-block; padding: 5px 12px; background: var(--bp-yellow-soft); color: #6B4F00; font-size: 12px; font-weight: 600; border-radius: 999px; margin-bottom: 22px; letter-spacing: .02em; }
   .bp-hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin-bottom: 20px; }
   .bp-hero h1 span { background: linear-gradient(90deg, var(--bp-yellow) 0%, var(--bp-yellow-d) 100%); padding: 0 6px; border-radius: 6px; color: var(--bp-black); }
   .bp-hero p { font-size: 18px; color: var(--bp-mute); max-width: 640px; margin: 0 auto 32px; }
   .bp-hero-cta { display: inline-flex; gap: 12px; }
   .bp-hero-trust { display: flex; justify-content: center; gap: 24px; margin-top: 28px; font-size: 12.5px; color: var(--bp-mute-2); }
   .bp-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
   
   .bp-section { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
   .bp-section-head { text-align: center; margin-bottom: 44px; }
   .bp-section-head h2 { font-size: 32px; letter-spacing: -.015em; margin-bottom: 10px; }
   .bp-section-head p { color: var(--bp-mute); font-size: 16px; }
   
   .bp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
   @media (max-width: 900px) { .bp-features { grid-template-columns: 1fr; } }
   .bp-feature { padding: 24px; border: 1px solid var(--bp-line); border-radius: var(--bp-r-lg); background: var(--bp-white); transition: border-color .15s, transform .15s; }
   .bp-feature:hover { border-color: var(--bp-ink); }
   .bp-feature .bp-feat-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--bp-yellow-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--bp-black); }
   .bp-feature h3 { font-size: 16px; margin-bottom: 6px; color: var(--bp-ink); }
   .bp-feature p { font-size: 14px; color: var(--bp-mute); line-height: 1.55; }
   
   .bp-price-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; background: var(--bp-ink); color: var(--bp-white); border-radius: var(--bp-r-lg); padding: 44px; }
   @media (max-width: 800px) { .bp-price-row { grid-template-columns: 1fr; text-align: center; } }
   .bp-price-row h2 { font-size: 28px; color: var(--bp-white); margin-bottom: 8px; }
   .bp-price-row p  { color: rgba(255,255,255,.7); }
   .bp-price-tag { font-size: 56px; font-weight: 700; color: var(--bp-yellow); letter-spacing: -.02em; }
   .bp-price-tag small { display: block; font-size: 14px; color: rgba(255,255,255,.6); font-weight: 500; margin-top: 4px; }
   
   .bp-land-footer { border-top: 1px solid var(--bp-line); padding: 28px 24px; text-align: center; color: var(--bp-mute); font-size: 13px; }
   .bp-land-footer a { color: var(--bp-mute); margin: 0 6px; }
   .bp-land-footer a:hover { color: var(--bp-ink); }
   
   /* ============================================================================
      AUTH (login / onboarding)
      ============================================================================ */
   body.bp-auth { background: var(--bp-bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
   .bp-auth-card { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r-lg); padding: 36px 32px; width: 100%; max-width: 400px; box-shadow: var(--bp-shadow-md); }
   .bp-auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
   .bp-auth-card > p { text-align: center; margin-bottom: 22px; }
   .bp-auth-card .bp-form { margin-top: 18px; }
   .bp-auth-card .bp-btn-oauth { margin-top: 10px; }
   .bp-auth-card .bp-btn-oauth + .bp-btn-oauth { margin-top: 8px; }
   .bp-fineprint { font-size: 11.5px; color: var(--bp-mute); text-align: center; margin-top: 22px; line-height: 1.6; }
   .bp-fineprint a { color: var(--bp-ink); text-decoration: underline; }
   
   /* ============================================================================
      CHECKOUT (público)
      ============================================================================ */
   body.bp-checkout { background: var(--bp-bg); min-height: 100vh; overflow: auto; height: auto; }
   html:has(body.bp-checkout) { height: auto; }
   .bp-checkout-topbar { background: var(--bp-white); border-bottom: 1px solid var(--bp-line); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
   .bp-checkout-topbar .bp-checkout-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bp-mute); }
   .bp-checkout-topbar .bp-checkout-secure svg { color: var(--bp-success); width: 14px; height: 14px; }
   
   .bp-checkout-banner { display: block; max-width: 1044px; width: calc(100% - 36px); height: auto; margin: 18px auto 0; object-fit: contain; border-radius: var(--bp-r-lg); }
   
   .bp-checkout-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 18px 64px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
   @media (max-width: 880px) { .bp-checkout-wrap { grid-template-columns: 1fr; padding: 20px 14px 40px; gap: 18px; } }
   
   .bp-checkout-left { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r-lg); padding: 24px; }
   .bp-checkout-right { position: sticky; top: 18px; }
   @media (max-width: 880px) { .bp-checkout-right { position: static; order: -1; } }
   .bp-checkout-left h1 { font-size: 24px; letter-spacing: -.01em; margin-bottom: 10px; color: var(--bp-ink); }
   .bp-checkout-cover { width: 100%; border-radius: var(--bp-r); margin: 12px 0 16px; aspect-ratio: 16/9; object-fit: cover; background: var(--bp-bg); }
   .bp-checkout-desc { color: var(--bp-mute); margin: 8px 0 16px; font-size: 14px; line-height: 1.6; }
   .bp-guarantee { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bp-bg); border-radius: var(--bp-r); font-size: 13px; color: var(--bp-text); border: 1px solid var(--bp-line-2); }
   .bp-guarantee svg { color: var(--bp-success); flex-shrink: 0; }
   
   .bp-checkout-step { font-size: 11.5px; font-weight: 700; color: var(--bp-mute); text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 10px; }
   .bp-checkout-step:first-child { margin-top: 0; }
   
   .bp-checkout-right h2 { font-size: 16px; margin-bottom: 4px; color: var(--bp-ink); }
   .bp-checkout-right .bp-checkout-sub { color: var(--bp-mute); font-size: 13px; margin-bottom: 16px; }
   
   .bp-checkout-left input, .bp-checkout-left select,
   .bp-checkout-right input, .bp-checkout-right select {
     display: block; width: 100%; padding: 12px 14px;
     border: 1px solid var(--bp-line); border-radius: var(--bp-r);
     background: var(--bp-white); font: 14px 'DM Sans', system-ui, sans-serif; color: var(--bp-text);
     margin-bottom: 10px; box-sizing: border-box;
   }
   .bp-checkout-left input:focus, .bp-checkout-left select:focus,
   .bp-checkout-right input:focus, .bp-checkout-right select:focus { outline: none; border-color: var(--bp-ink); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
   
   .bp-checkout-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 4px; margin: 12px 0 16px; background: var(--bp-bg); }
   .bp-checkout-tab { padding: 10px 8px; text-align: center; border-radius: var(--bp-r-sm); font-weight: 600; font-size: 13px; color: var(--bp-mute); cursor: pointer; transition: background .12s, color .12s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
   .bp-checkout-tab svg { width: 14px; height: 14px; }
   .bp-checkout-tab:hover { color: var(--bp-ink); }
   .bp-checkout-tab.active { background: var(--bp-white); color: var(--bp-ink); box-shadow: var(--bp-shadow); }
   
   .bp-bumps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
   .bp-bump-card { border: 1.5px dashed var(--bp-yellow-d); background: var(--bp-yellow-soft); border-radius: var(--bp-r); padding: 14px; transition: background .12s; }
   .bp-bump-card label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
   .bp-bump-card input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--bp-ink); }
   .bp-bump-card img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bp-white); }
   .bp-bump-card .bp-bump-title { font-weight: 600; color: var(--bp-ink); font-size: 14px; }
   .bp-bump-card .bp-bump-desc  { font-size: 12.5px; color: var(--bp-mute); margin-top: 2px; }
   .bp-bump-card .bp-bump-price { font-weight: 700; color: var(--bp-ink); font-size: 13.5px; margin-top: 4px; }
   .bp-bump-card .bp-bump-price s { color: var(--bp-mute-2); font-weight: 500; margin-right: 6px; }
   
   .bp-summary { background: var(--bp-bg); border-radius: var(--bp-r); padding: 16px 18px; margin: 18px 0; border: 1px solid var(--bp-line-2); }
   .bp-summary-title { font-size: 11.5px; font-weight: 700; color: var(--bp-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
   .bp-summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; color: var(--bp-text); }
   .bp-summary-row.bp-summary-sub { color: var(--bp-mute); padding-top: 8px; border-top: 1px dashed var(--bp-line); margin-top: 4px; }
   .bp-summary-row.bp-summary-discount { color: var(--bp-success); font-weight: 600; }
   .bp-summary-row.bp-summary-total { font-weight: 800; font-size: 18px; color: var(--bp-ink); padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--bp-line); }
   
   /* Total compacto (substitui resumo duplicado abaixo da forma de pagamento) */
   .bp-total-row {
     display: flex; align-items: baseline; justify-content: space-between;
     margin: 18px 0 14px; padding: 14px 18px;
     background: var(--bp-bg); border: 1px solid var(--bp-line-2); border-radius: var(--bp-r);
   }
   .bp-total-label { font-size: 15px; color: #6d6d6d; font-weight: 500; }
   .bp-total-value { font-size: 15px; font-weight: 600; color: #6d6d6d; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
   
   .bp-checkout-topbar--slim { justify-content: center; padding: 10px 16px; }
   .bp-checkout-submit { width: 100%; padding: 15px; font-size: 15px; font-weight: 700; border-radius: var(--bp-r); margin-top: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
   .bp-checkout-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.10); }
   
   .bp-checkout-secure-row { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--bp-mute); margin-top: 12px; }
   .bp-checkout-secure-row svg { width: 13px; height: 13px; color: var(--bp-success); }
   
   .bp-testimonials-section { background: var(--bp-bg); padding: 36px 16px 28px; border-top: 1px solid var(--bp-line); }
   .bp-testimonials-wrap { max-width: 920px; margin: 0 auto; }
   .bp-testimonials-title { font-size: 18px; font-weight: 700; color: var(--bp-ink); margin: 0 0 16px; text-align: center; }
   .bp-testimonials { display: grid; grid-template-columns: 1fr; gap: 14px; }
   @media (min-width: 720px)  { .bp-testimonials { grid-template-columns: repeat(2, 1fr); } }
   @media (min-width: 1000px) { .bp-testimonials { grid-template-columns: repeat(3, 1fr); } }
   .bp-testimonial { padding: 16px; background: var(--bp-white); border-radius: var(--bp-r); border: 1px solid var(--bp-line-2); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
   .bp-testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
   .bp-testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bp-bg); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--bp-mute); font-size: 15px; border: 1px solid var(--bp-line-2); }
   .bp-testimonial-avatar--fallback { background: var(--bp-bg); }
   .bp-testimonial-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
   .bp-testimonial-meta strong { font-size: 14px; color: var(--bp-ink); font-weight: 700; }
   .bp-testimonial-meta .bp-stars { color: var(--bp-yellow-d); font-size: 12px; letter-spacing: 1px; }
   .bp-testimonial p { font-size: 13.5px; color: var(--bp-text); line-height: 1.55; margin: 0; }
   
   .bp-pix-qr { text-align: center; padding: 18px 8px; }
   .bp-pix-qr img { width: 220px; height: 220px; margin: 0 auto 14px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 8px; background: var(--bp-white); }
   .bp-pix-code { background: var(--bp-bg); border: 1px solid var(--bp-line); padding: 12px; border-radius: var(--bp-r); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; cursor: pointer; line-height: 1.5; color: var(--bp-text); }
   .bp-pix-meta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--bp-mute); }
   
   /* Thank you ---------------------------------------------------------------*/
   .bp-thanks { max-width: 560px; margin: 60px auto; background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r-lg); padding: 40px 36px; text-align: center; box-shadow: var(--bp-shadow); }
   .bp-thanks .bp-check-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--bp-success-bg); color: var(--bp-success); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
   .bp-thanks h1 { font-size: 26px; margin-bottom: 8px; }
   .bp-thanks p { color: var(--bp-mute); margin-bottom: 18px; }
   
   /* Toast --------------------------------------------------------------------*/
   .bp-toast { position: fixed; bottom: 24px; right: 24px; background: var(--bp-ink); color: var(--bp-white); padding: 12px 18px; border-radius: var(--bp-r); font-size: 13.5px; box-shadow: var(--bp-shadow-lg); transform: translateY(140%); opacity: 0; transition: transform .25s, opacity .25s; z-index: 100; max-width: 360px; }
   .bp-toast.show { transform: translateY(0); opacity: 1; }
   .bp-toast.err  { background: var(--bp-danger); }
   .bp-toast.ok   { background: var(--bp-success); }
   
   /* Modal --------------------------------------------------------------------*/
   .bp-modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; align-items: center; justify-content: center; z-index: 80; padding: 20px; backdrop-filter: blur(4px); animation: bpFadeIn .15s ease; }
   .bp-modal-bg.open { display: flex; }
   .bp-modal { background: var(--bp-white); border-radius: var(--bp-r-lg); padding: 22px 24px 20px; width: 100%; max-width: 480px; box-shadow: var(--bp-shadow-lg); max-height: 90vh; overflow-y: auto; animation: bpModalIn .18s cubic-bezier(.2,.8,.3,1); }
   .bp-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
   .bp-modal-head h2 { font-size: 18px; }
   .bp-modal-x { width: 28px; height: 28px; border-radius: 8px; color: var(--bp-mute); font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background .12s, color .12s; }
   .bp-modal-x:hover { background: var(--bp-bg); color: var(--bp-ink); }
   .bp-modal h2 { margin-bottom: 0; }
   .bp-modal .bp-form { margin-top: 12px; }
   .bp-modal .bp-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bp-line-2); }
   @keyframes bpFadeIn { from { opacity: 0 } to { opacity: 1 } }
   @keyframes bpModalIn { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }
   
   /* Integration cards --------------------------------------------------------*/
   .bp-integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
   .bp-integ-card { position: relative; background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s, transform .12s; }
   .bp-integ-card:hover { border-color: var(--bp-ink); box-shadow: var(--bp-shadow-md); }
   .bp-integ-card.is-connected { border-color: var(--bp-success); background: linear-gradient(180deg, #F0FDF4 0%, var(--bp-white) 40%); }
   .bp-integ-card.is-connected::after { content: '✓ Conectado'; position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bp-success); background: var(--bp-success-bg); padding: 3px 8px; border-radius: 999px; }
   .bp-integ-logo { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--bp-bg); border: 1px solid var(--bp-line-2); flex-shrink: 0; }
   .bp-integ-logo svg { width: 28px; height: 28px; }
   .bp-integ-head { display: flex; align-items: center; gap: 12px; }
   .bp-integ-title { font-weight: 700; color: var(--bp-ink); font-size: 15px; }
   .bp-integ-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
   .bp-integ-tag { display: inline-flex; align-items: center; padding: 2px 7px; font-size: 10.5px; font-weight: 600; color: var(--bp-mute); background: var(--bp-line-2); border-radius: 999px; }
   .bp-integ-desc { font-size: 13px; color: var(--bp-mute); line-height: 1.5; min-height: 38px; }
   .bp-integ-actions { display: flex; gap: 8px; margin-top: auto; }
   .bp-integ-actions .bp-btn-primary, .bp-integ-actions .bp-btn-ghost { flex: 1; padding: 8px 10px; font-size: 13px; }
   
   /* Webhook / Connected list -------------------------------------------------*/
   .bp-conn-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); }
   .bp-conn-row + .bp-conn-row { margin-top: 8px; }
   .bp-conn-main { flex: 1; min-width: 0; }
   .bp-conn-title { font-weight: 600; color: var(--bp-ink); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
   .bp-conn-sub { font-size: 12.5px; color: var(--bp-mute); margin-top: 3px; word-break: break-all; }
   .bp-conn-sub code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bp-bg); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
   .bp-conn-actions { display: flex; gap: 6px; flex-shrink: 0; }
   
   /* Checkbox grid (eventos / produtos) ---------------------------------------*/
   .bp-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; max-height: 240px; overflow-y: auto; padding: 4px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); background: var(--bp-bg); }
   .bp-check-grid label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r-sm); font-size: 13px; cursor: pointer; transition: border-color .12s, background .12s; font-weight: 500; }
   .bp-check-grid label:hover { border-color: var(--bp-mute-2); }
   .bp-check-grid label:has(input:checked) { border-color: var(--bp-ink); background: #FFFBEA; }
   .bp-check-grid input { accent-color: var(--bp-ink); width: 15px; height: 15px; }
   .bp-check-empty { color: var(--bp-mute); font-size: 13px; padding: 16px; text-align: center; }
   
   /* Responsive ---------------------------------------------------------------*/
   @media (max-width: 900px) {
     :root { --bp-header-h: 66px; --bp-shell-gap: 10px; }
     .bp-header { padding: 10px 12px 8px; }
     .bp-logo { font-size: 0; gap: 0; }
     .bp-logo-mark { margin-right: 0; }
     .bp-dash-btn { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
     .bp-shell { grid-template-columns: 1fr; gap: 10px; padding: 0 10px 10px; }
     .bp-sidebar { position: static; height: auto; border: 0; display: flex; overflow-x: auto; padding: 0; background: transparent; }
     .bp-sidebar-nav { min-height: 0; flex-direction: row; gap: 8px; width: 100%; }
     .bp-sidebar-menu { flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
     .bp-sidebar .bp-nav-section { display: none; }
     .bp-nav { white-space: nowrap; padding: 10px 12px; min-height: 40px; }
     .bp-nav svg { width: 17px; height: 17px; }
     .bp-sidebar-profile { display: none; }
     .bp-main { padding: 20px 18px 40px; border-radius: 18px; min-height: auto; overflow: visible; }
     .bp-form-grid { grid-template-columns: 1fr; }
   }
   
   /* ── Product Edit: Tabs ───────────────────────────────────────── */
   .bp-tabs { display:flex; gap:4px; border-bottom:1px solid var(--bp-border); margin:0 0 20px; padding:0 4px; overflow-x:auto; }
   .bp-tabs button {
     background:transparent; border:0; padding:12px 18px; font:600 14px/1 'DM Sans',sans-serif;
     color:var(--bp-mute); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px;
     transition:color .15s ease, border-color .15s ease; white-space:nowrap;
   }
   .bp-tabs button:hover { color:var(--bp-text); }
   .bp-tabs button.active { color:var(--bp-text); border-bottom-color:var(--bp-primary); }
   
   /* ── Upload (capa/banner) ─────────────────────────────────────── */
   .bp-upload { border:1px dashed var(--bp-border); border-radius:12px; padding:14px; background:var(--bp-bg); max-width:420px; }
   .bp-upload-preview {
     width:100%; height:160px; border-radius:8px;
     background:var(--bp-bg-2) center/cover no-repeat;
     margin-bottom:10px; border:1px solid var(--bp-border);
   }
   .bp-upload-actions { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
   .bp-upload-or { text-align:center; font-size:11px; font-weight:700; color:var(--bp-mute); letter-spacing:.08em; margin:6px 0; }
   .bp-upload-url { width:100%; padding:9px 12px; border:1px solid var(--bp-border); border-radius:8px; font:14px 'DM Sans',sans-serif; background:#fff; }
   .bp-upload-url:focus { outline:none; border-color:var(--bp-primary); }
   
   /* ── Files list (ebooks) ──────────────────────────────────────── */
   .bp-files-list { display:flex; flex-direction:column; gap:8px; }
   .bp-file-row {
     display:flex; align-items:center; gap:12px; padding:10px 14px;
     background:var(--bp-bg); border:1px solid var(--bp-border); border-radius:10px;
   }
   .bp-file-name { flex:1; font-weight:500; display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
   .bp-file-size { font-size:12px; }
   
   /* ── Notice (info card) ───────────────────────────────────────── */
   .bp-notice {
     padding:16px 18px; border-radius:10px; background:rgba(26,109,255,0.08);
     border:1px solid rgba(26,109,255,0.25); color:var(--bp-text);
   }
   .bp-notice strong { display:block; margin-bottom:6px; }
   .bp-notice p { margin:0; color:var(--bp-mute); font-size:13px; line-height:1.55; }
   
   /* ───────────────── Checkout: barra superior + resumo + botão glow ───────────────── */
   .bp-checkout-banner-top {
     display: flex; align-items: center; justify-content: center; gap: 14px;
     padding: 10px 18px; font-size: 13.5px; font-weight: 600; text-align: center;
     letter-spacing: .005em;
   }
   .bp-checkout-banner-text { opacity: .95; }
   .bp-checkout-banner-timer {
     display: inline-flex; align-items: center; justify-content: center;
     min-width: 64px; padding: 4px 10px; border-radius: 999px;
     background: color-mix(in srgb, currentColor 14%, transparent);
     font-variant-numeric: tabular-nums;
     font-weight: 800; font-size: 14px; letter-spacing: .04em;
   }
   @media (max-width: 560px) {
     .bp-checkout-banner-top { font-size: 12.5px; gap: 10px; padding: 8px 12px; }
     .bp-checkout-banner-timer { font-size: 13px; padding: 3px 8px; }
   }
   
   /* Resumo do pedido (head clicável com divisória) */
   .bp-order-summary { margin: 0; }
   .bp-order-summary-head {
     display: flex; align-items: center; justify-content: space-between;
     cursor: pointer; list-style: none; padding: 14px 18px;
     user-select: none; border-bottom: 1px solid var(--bp-line);
     transition: background .12s;
   }
   .bp-order-summary-head:hover { background: var(--bp-bg); }
   .bp-order-summary:not([open]) .bp-order-summary-head { border-bottom: 0; }
   .bp-order-summary-head::-webkit-details-marker { display: none; }
   .bp-order-summary-chevron { color: var(--bp-mute); transition: transform .2s ease; flex-shrink: 0; }
   .bp-order-summary[open] .bp-order-summary-chevron { transform: rotate(180deg); }
   .bp-order-summary-title { font-size: 11.5px; font-weight: 700; color: var(--bp-mute); text-transform: uppercase; letter-spacing: .08em; }
   .bp-order-summary-body { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; }
   .bp-order-summary-thumb {
     width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
     background: var(--bp-bg); flex-shrink: 0;
   }
   .bp-order-summary-info { flex: 1; min-width: 0; }
   .bp-order-summary-name {
     font-size: 15px; font-weight: 700; color: var(--bp-ink); line-height: 1.25;
     margin-bottom: 4px;
   }
   .bp-order-summary-prices {
     display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
     font-size: 13px;
   }
   .bp-order-summary-prices s { color: var(--bp-mute-2); font-size: 12.5px; }
   .bp-order-summary-price {
     font-size: 17px; font-weight: 700; color: var(--bp-ink); letter-spacing: -.01em;
   }
   .bp-order-summary-method { font-size: 12px; color: var(--bp-mute); margin-top: 4px; }
   
   /* Card de resumo lateral (AbacatePay-style) */
   .bp-summary-card {
     background: var(--bp-white); border: 1px solid var(--bp-line);
     border-radius: var(--bp-r-lg); overflow: hidden;
   }
   .bp-summary-divider { height: 1px; background: var(--bp-line); }
   .bp-summary-total {
     display: flex; align-items: baseline; justify-content: space-between;
     padding: 16px 18px 6px;
   }
   .bp-summary-total-label { font-size: 15px; color: #6d6d6d; font-weight: 500; }
   .bp-summary-total-value {
     font-size: 15px; font-weight: 600; color: #6d6d6d;
     letter-spacing: -.01em; font-variant-numeric: tabular-nums;
   }
   .bp-summary-submit {
     display: flex !important; width: calc(100% - 36px); margin: 10px 18px 14px;
     padding: 14px; font-size: 14.5px; font-weight: 700; border-radius: var(--bp-r);
   }
   .bp-summary-guarantee {
     display: none;
   }
   .bp-summary-guarantee svg { color: var(--bp-success); flex-shrink: 0; }
   
   /* Pane (info card) */
   .bp-pane { margin: 0 0 14px; padding: 14px 16px; border: 0; border-radius: var(--bp-r); }
   .bp-pane:empty { display: none; }
   .bp-pane--info { background: var(--bp-bg); }
   .bp-pane-info-title { font-size: 14.5px; font-weight: 700; color: var(--bp-ink); margin-bottom: 4px; }
   .bp-pane-info-text { font-size: 13px; color: var(--bp-mute); margin: 0; line-height: 1.5; }
   
   /* Submit mobile — só aparece no mobile */
   .bp-checkout-submit-mobile { display: none; margin-top: 10px; }
   .bp-checkout-submit-mobile .bp-pay-card-total {
     display: flex; align-items: baseline; justify-content: space-between;
     padding: 4px 0 12px;
   }
   .bp-checkout-submit-mobile .bp-total-label { font-size: 15px; color: #6d6d6d; font-weight: 500; }
   .bp-checkout-submit-mobile .bp-total-value { font-size: 15px; font-weight: 600; color: #6d6d6d; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
   .bp-checkout-submit-mobile .bp-checkout-submit { width: 100%; padding: 15px; font-size: 15px; font-weight: 700; border-radius: var(--bp-r); }
   @media (max-width: 880px) {
     .bp-checkout-submit-mobile { display: block; }
     .bp-summary-submit, .bp-summary-total, .bp-summary-divider, .bp-summary-guarantee { display: none !important; }
   }
   
   /* Botão Finalizar — pulse + glow */
   .bp-checkout-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
   .bp-checkout-submit svg { flex-shrink: 0; }
   .bp-pulse-glow {
     animation: bpPulseGlow 2.2s ease-in-out infinite;
     position: relative;
   }
   @keyframes bpPulseGlow {
     0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.08), 0 0 0 0 rgba(255,214,10,.55); }
     50%      { box-shadow: 0 10px 26px rgba(0,0,0,.12), 0 0 0 10px rgba(255,214,10,0); }
   }
   .bp-pulse-glow:hover { transform: translateY(-1px); }
   .bp-checkout-secure-row { justify-content: center; text-align: center; }
   
   /* Botão checkout — loading com texto "Carregando..." e onda shimmer */
   .bp-checkout-submit { position: relative; transition: opacity .2s, transform .15s; overflow: hidden; }
   .bp-checkout-submit.is-loading { pointer-events: none; }
   .bp-checkout-submit.is-loading > span,
   .bp-checkout-submit.is-loading > svg:not(.bp-spin) { display: none; }
   .bp-checkout-submit .bp-spin { display: none; }
   .bp-checkout-submit.is-loading .bp-spin {
     display: inline-flex; align-items: center; gap: 8px;
     position: relative; z-index: 2;
     font-weight: 700; font-size: inherit; color: inherit;
   }
   .bp-checkout-submit.is-loading .bp-spin::before {
     content: ''; width: 16px; height: 16px;
     border: 2px solid rgba(0,0,0,.22); border-top-color: rgba(0,0,0,.85);
     border-radius: 50%; animation: bp-spin .7s linear infinite;
   }
   .bp-checkout-submit.is-loading::after {
     content: ''; position: absolute; inset: 0; z-index: 1;
     background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
     transform: translateX(-100%);
     animation: bp-wave 1.3s ease-in-out infinite;
   }
   @keyframes bp-spin { to { transform: rotate(360deg); } }
   @keyframes bp-wave { 100% { transform: translateX(100%); } }
   
   
   /* ============= PIX result — tela limpa ============= */
   body.bp-pix-active .bp-checkout-right,
   body.bp-pix-active .bp-testimonials-section,
   body.bp-pix-active .bp-checkout-banner-top,
   body.bp-pix-active .bp-checkout-banner { display: none !important; }
   body.bp-pix-active .bp-checkout-wrap { grid-template-columns: 1fr !important; max-width: 560px; margin: 0 auto; }
   body.bp-pix-active .bp-checkout-left { width: 100%; }
   
   .bp-pix-clean { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 32px; }
   
   /* Desktop: aproveita a tela com 2 colunas (QR à esquerda, resumo+passos à direita) */
   @media (min-width: 900px) {
     body.bp-pix-active .bp-checkout-wrap { max-width: 1040px !important; padding: 28px 24px 64px; }
     body.bp-pix-active .bp-checkout-left { padding: 28px; }
     .bp-pix-clean {
       display: grid;
       grid-template-columns: 1.15fr 1fr;
       grid-template-areas: "card summary" "card steps";
       gap: 18px 22px;
       align-items: start;
     }
     .bp-pix-card    { grid-area: card; align-self: stretch; padding: 28px 22px; }
     .bp-pix-summary { grid-area: summary; }
     .bp-pix-steps   { grid-area: steps; }
     .bp-pix-qr-box img { width: 260px; height: 260px; }
   }
   
   .bp-pix-summary { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 16px; }
   .bp-pix-summary-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin-bottom: 12px; }
   .bp-pix-summary-item { display: flex; gap: 12px; align-items: center; }
   .bp-pix-summary-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
   .bp-pix-summary-info { flex: 1; min-width: 0; }
   .bp-pix-summary-name { font-size: 15px; font-weight: 600; color: #111; margin-bottom: 2px; }
   .bp-pix-summary-price { font-size: 14px; color: #6b7280; font-variant-numeric: tabular-nums; }
   .bp-pix-summary-bump { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: #444; border-top: 1px dashed #eef0f3; margin-top: 8px; font-variant-numeric: tabular-nums; }
   .bp-pix-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef0f3; font-size: 14px; color: #6b7280; }
   .bp-pix-summary-total strong { font-size: 17px; color: #111; font-weight: 700; font-variant-numeric: tabular-nums; }
   
   .bp-pix-card { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 22px 18px; text-align: center; }
   .bp-pix-card-title { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 16px; }
   .bp-pix-qr-box { display: inline-block; padding: 12px; background: #fff; border: 1px solid #eef0f3; border-radius: 12px; margin-bottom: 18px; }
   .bp-pix-qr-box img { display: block; width: 220px; height: 220px; }
   
   .bp-pix-copy-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 15px; font-weight: 700; border-radius: var(--bp-r); transition: transform .15s, box-shadow .2s; }
   .bp-pix-copy-btn:hover { transform: translateY(-1px); }
   .bp-pix-copy-btn.is-copied { background: #16a34a !important; color: #fff !important; }
   
   .bp-pix-code-mini { margin-top: 12px; padding: 10px 12px; background: #f7f8fa; border: 1px solid #eef0f3; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #555; word-break: break-all; line-height: 1.5; cursor: pointer; max-height: 84px; overflow: auto; text-align: left; }
   .bp-pix-code-mini:hover { background: #f0f2f5; }
   
   .bp-pix-status { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; }
   .bp-pix-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: bpPulseDot 1.4s ease-in-out infinite; }
   @keyframes bpPulseDot { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
   
   .bp-pix-steps { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 18px; }
   .bp-pix-steps-title { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 10px; }
   .bp-pix-steps ol { margin: 0; padding-left: 22px; color: #444; font-size: 13.5px; line-height: 1.65; }
   .bp-pix-steps ol li { margin-bottom: 6px; }
   .bp-pix-steps ol li:last-child { margin-bottom: 0; }