/* GBX AiPost — design system (Bootstrap 5.3 + tokens próprios, dark/light) */
:root,
[data-bs-theme="light"] {
  --gx-bg: #f4f5fb;
  --gx-surface: #ffffff;
  --gx-surface-2: #f8f9fd;
  --gx-surface-3: #eef0f8;
  --gx-border: #e3e6f1;
  --gx-text: #141831;
  --gx-muted: #6b7290;
  --gx-primary: #6d5ef5;
  --gx-primary-rgb: 109, 94, 245;
  --gx-primary-soft: rgba(109, 94, 245, .1);
  --gx-accent: #0fb5d6;
  --gx-success: #12b981;
  --gx-warning: #f59e0b;
  --gx-danger: #ef4462;
  --gx-grad: linear-gradient(135deg, #7c6cff 0%, #22d3ee 100%);
  --gx-shadow: 0 1px 2px rgba(20, 24, 49, .05), 0 8px 24px -12px rgba(20, 24, 49, .12);
  --gx-shadow-lg: 0 24px 60px -24px rgba(20, 24, 49, .28);
  --gx-radius: 14px;
  --gx-sidebar: #ffffff;
  --gx-sidebar-w: 256px;

  --bs-body-bg: var(--gx-bg);
  --bs-body-color: var(--gx-text);
  --bs-border-color: var(--gx-border);
  --bs-secondary-color: var(--gx-muted);
  --bs-primary: var(--gx-primary);
  --bs-primary-rgb: var(--gx-primary-rgb);
  --bs-link-color: var(--gx-primary);
  --bs-link-color-rgb: var(--gx-primary-rgb);
  --bs-link-hover-color: #5546e6;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 14px;
  --bs-tertiary-bg: var(--gx-surface-2);
  --bs-secondary-bg: var(--gx-surface-3);
}

[data-bs-theme="dark"] {
  --gx-bg: #0a0e1d;
  --gx-surface: #11162a;
  --gx-surface-2: #151b33;
  --gx-surface-3: #1b2240;
  --gx-border: #232b4a;
  --gx-text: #e8eaf6;
  --gx-muted: #8d94b5;
  --gx-primary: #8b7dff;
  --gx-primary-rgb: 139, 125, 255;
  --gx-primary-soft: rgba(139, 125, 255, .14);
  --gx-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --gx-shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --gx-sidebar: #0d1224;

  --bs-body-bg: var(--gx-bg);
  --bs-body-color: var(--gx-text);
  --bs-border-color: var(--gx-border);
  --bs-secondary-color: var(--gx-muted);
  --bs-primary: var(--gx-primary);
  --bs-primary-rgb: var(--gx-primary-rgb);
  --bs-link-color: var(--gx-primary);
  --bs-link-color-rgb: var(--gx-primary-rgb);
  --bs-link-hover-color: #a89dff;
  --bs-tertiary-bg: var(--gx-surface-2);
  --bs-secondary-bg: var(--gx-surface-3);
  --bs-emphasis-color: #fff;
}

html, body { background: var(--gx-bg); color: var(--gx-text); }
body { font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .display-font { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; }
.text-muted, .text-secondary { color: var(--gx-muted) !important; }
a { text-decoration: none; }
::selection { background: rgba(var(--gx-primary-rgb), .25); }
.svg-icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.22em; }
.net-svg { width: 1em; height: 1em; vertical-align: -.125em; }
.small-xs { font-size: .75rem; }
.fw-600 { font-weight: 600; }
.mw-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }

/* Botões */
.btn { font-weight: 600; border-radius: 10px; }
.btn-primary { --bs-btn-bg: var(--gx-primary); --bs-btn-border-color: var(--gx-primary); --bs-btn-hover-bg: #5b4be8; --bs-btn-hover-border-color: #5b4be8; --bs-btn-active-bg: #5040de; --bs-btn-disabled-bg: var(--gx-primary); --bs-btn-disabled-border-color: var(--gx-primary); }
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #fff; --bs-btn-hover-bg: #7a6bff; }
.btn-grad { background: var(--gx-grad); color: #fff; border: 0; box-shadow: 0 8px 24px -10px rgba(109, 94, 245, .7); }
.btn-grad:hover { color: #fff; filter: brightness(1.06); }
.btn-soft { background: var(--gx-primary-soft); color: var(--gx-primary); border: 0; }
.btn-soft:hover { background: rgba(var(--gx-primary-rgb), .2); color: var(--gx-primary); }
.btn-ghost { background: transparent; border: 1px solid var(--gx-border); color: var(--gx-text); }
.btn-ghost:hover { background: var(--gx-surface-2); color: var(--gx-text); }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm.btn-icon { width: 30px; height: 30px; }

/* Cards */
.card { background: var(--gx-surface); border: 1px solid var(--gx-border); border-radius: var(--gx-radius); box-shadow: var(--gx-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--gx-border); padding: 1rem 1.25rem; font-weight: 700; }
.card-body { padding: 1.25rem; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--gx-shadow-lg); }
.surface-2 { background: var(--gx-surface-2); }
.border-dashed { border-style: dashed !important; }

.form-control, .form-select { background-color: var(--gx-surface); border-color: var(--gx-border); color: var(--gx-text); border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--gx-primary-rgb), .6); box-shadow: 0 0 0 .2rem rgba(var(--gx-primary-rgb), .15); background-color: var(--gx-surface); color: var(--gx-text); }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-text { color: var(--gx-muted); }
.input-group-text { background: var(--gx-surface-2); border-color: var(--gx-border); color: var(--gx-muted); }
.form-check-input:checked { background-color: var(--gx-primary); border-color: var(--gx-primary); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--gx-text); --bs-table-border-color: var(--gx-border); --bs-table-hover-bg: var(--gx-surface-2); }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gx-muted); font-weight: 700; border-bottom-width: 1px; }
.dropdown-menu { --bs-dropdown-bg: var(--gx-surface); --bs-dropdown-border-color: var(--gx-border); --bs-dropdown-link-hover-bg: var(--gx-surface-2); --bs-dropdown-link-color: var(--gx-text); border-radius: 12px; box-shadow: var(--gx-shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; font-size: .9rem; }
.modal-content { background: var(--gx-surface); border: 1px solid var(--gx-border); border-radius: 18px; box-shadow: var(--gx-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--gx-border); }
.nav-tabs { border-color: var(--gx-border); }
.nav-tabs .nav-link { color: var(--gx-muted); font-weight: 600; border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { color: var(--gx-primary); background: transparent; border-bottom-color: var(--gx-primary); }
.nav-pills .nav-link { color: var(--gx-muted); font-weight: 600; border-radius: 10px; }
.nav-pills .nav-link.active { background: var(--gx-primary-soft); color: var(--gx-primary); }
.badge { font-weight: 600; letter-spacing: .01em; }
.badge-soft { background: var(--gx-surface-3); color: var(--gx-text); }
.text-bg-primary-soft { background: var(--gx-primary-soft) !important; color: var(--gx-primary) !important; }
.progress { background: var(--gx-surface-3); height: 7px; border-radius: 99px; }
.progress-bar { background: var(--gx-grad); border-radius: 99px; }
.list-group-item { background: transparent; border-color: var(--gx-border); color: var(--gx-text); }
.alert { border-radius: 12px; border: 0; }
.pagination { --bs-pagination-bg: var(--gx-surface); --bs-pagination-border-color: var(--gx-border); --bs-pagination-color: var(--gx-text); --bs-pagination-active-bg: var(--gx-primary); --bs-pagination-active-border-color: var(--gx-primary); --bs-pagination-hover-bg: var(--gx-surface-2); --bs-pagination-disabled-bg: var(--gx-surface); --bs-pagination-border-radius: 10px; margin: 0; flex-wrap: wrap; gap: 4px; }
.pagination .page-link { border-radius: 8px !important; min-width: 36px; text-align: center; }
nav[role="navigation"] p.small { margin: 0; color: var(--gx-muted); }

/* Layout do painel */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--gx-sidebar-w); background: var(--gx-sidebar); border-right: 1px solid var(--gx-border); position: fixed; inset: 0 auto 0 0; z-index: 1035; display: flex; flex-direction: column; transition: transform .2s ease; }
.sidebar-brand { display: flex; align-items: center; gap: .65rem; padding: 1.1rem 1.25rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--gx-text); }
.sidebar-brand .svg-icon { width: 34px; height: 34px; }
.sidebar-brand small { display: block; font-family: "Plus Jakarta Sans"; font-size: .68rem; color: var(--gx-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-scroll { overflow-y: auto; flex: 1; padding: .25rem .75rem 1rem; scrollbar-width: thin; }
.nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--gx-muted); font-weight: 700; padding: 1rem .75rem .4rem; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 10px; color: var(--gx-muted); font-weight: 600; font-size: .9rem; margin-bottom: 2px; position: relative; }
.side-link i, .side-link .svg-icon { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.side-link:hover { background: var(--gx-surface-2); color: var(--gx-text); }
.side-link.active { background: var(--gx-primary-soft); color: var(--gx-primary); }
.side-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gx-primary); }
.side-link .badge { margin-left: auto; }
.sidebar-cta { margin: .75rem; padding: 1rem; border-radius: 14px; background: var(--gx-grad); color: #fff; position: relative; overflow: hidden; }
.sidebar-cta::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.sidebar-cta .progress { background: rgba(255, 255, 255, .25); height: 5px; }
.sidebar-cta .progress-bar { background: #fff; }
.main { flex: 1; margin-left: var(--gx-sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; background: color-mix(in srgb, var(--gx-bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--gx-border); padding: .65rem 1.5rem; display: flex; align-items: center; gap: .75rem; }
.content { padding: 1.5rem; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--gx-muted); }
.brand-switch { background: var(--gx-surface); border: 1px solid var(--gx-border); border-radius: 10px; padding: .35rem .7rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .875rem; color: var(--gx-text); }
.brand-dot { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; color: #fff; flex-shrink: 0; overflow: hidden; }
.brand-dot img { width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 26px; height: 26px; }
.avatar-lg { width: 64px; height: 64px; }
.notif-dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--gx-danger); color: #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.sidebar-backdrop { display: none; }
.impersonate-bar { background: var(--gx-warning); color: #1b1300; font-weight: 600; font-size: .85rem; padding: .4rem 1.5rem; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--gx-shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(5, 8, 20, .5); z-index: 1030; }
  .main { margin-left: 0; }
  .content { padding: 1rem; }
  .topbar { padding: .6rem 1rem; }
  .page-head h1 { font-size: 1.35rem; }
}

/* Estatísticas */
.stat { position: relative; overflow: hidden; }
.stat .stat-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--gx-primary-soft); color: var(--gx-primary); }
.stat .stat-value { font-family: "Space Grotesk"; font-size: 1.75rem; font-weight: 700; line-height: 1.1; margin-top: .65rem; }
.stat .stat-label { color: var(--gx-muted); font-size: .82rem; font-weight: 600; }
.icon-chip { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Redes */
.net-chip { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .82rem; flex-shrink: 0; }
.net-chip.sm { width: 20px; height: 20px; font-size: .68rem; border-radius: 6px; }
.net-chip.lg { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 12px; }
.net-stack { display: inline-flex; }
.net-stack .net-chip { border: 2px solid var(--gx-surface); margin-left: -6px; }
.net-stack .net-chip:first-child { margin-left: 0; }
.net-tile { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .7rem .9rem; border: 1px solid var(--gx-border); border-radius: 12px; background: var(--gx-surface); color: var(--gx-text); font-weight: 600; transition: all .15s; text-align: left; }
.net-tile:hover:not(:disabled) { border-color: rgba(var(--gx-primary-rgb), .5); box-shadow: 0 0 0 3px var(--gx-primary-soft); }
.net-tile:disabled { opacity: .55; cursor: not-allowed; }
.acc-avatar { position: relative; display: inline-block; }
.acc-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--gx-surface-3); }
.acc-avatar .net-chip { position: absolute; right: -4px; bottom: -4px; border: 2px solid var(--gx-surface); }
.acc-initial { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--gx-surface-3); color: var(--gx-text); }

/* Status */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.st-draft { background: #94a3b8; } .st-scheduled { background: var(--gx-primary); } .st-published { background: var(--gx-success); }
.st-failed { background: var(--gx-danger); } .st-partial, .st-pending_approval { background: var(--gx-warning); } .st-queued, .st-publishing { background: var(--gx-accent); }

/* Lista de posts */
.post-row { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gx-border); }
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: var(--gx-surface-2); }
.post-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--gx-surface-3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--gx-muted); font-size: 1.4rem; overflow: hidden; position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .25); font-size: 1.2rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Estado vazio */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gx-muted); }
.empty-state .svg-icon { width: 120px; height: 90px; color: var(--gx-primary); margin-bottom: 1rem; }
.empty-state h5 { color: var(--gx-text); }

/* Composer */
.composer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.25rem; align-items: start; }
@media (max-width: 1199.98px) { .composer-grid { grid-template-columns: 1fr; } }
.preview-sticky { position: sticky; top: 80px; }
.acc-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.acc-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem .3rem .3rem; border: 1px solid var(--gx-border); border-radius: 99px; background: var(--gx-surface); cursor: pointer; user-select: none; font-size: .85rem; font-weight: 600; transition: all .12s; }
.acc-pill img, .acc-pill .acc-initial { width: 28px; height: 28px; font-size: .7rem; }
.acc-pill.active { border-color: var(--gx-primary); background: var(--gx-primary-soft); box-shadow: 0 0 0 2px rgba(var(--gx-primary-rgb), .25); }
.acc-pill .net-chip { width: 18px; height: 18px; font-size: .62rem; border-radius: 5px; }
.caption-box { position: relative; }
.caption-box textarea { min-height: 220px; resize: vertical; padding-bottom: 2.5rem; font-size: .95rem; line-height: 1.55; }
.caption-tools { position: absolute; left: .5rem; right: .5rem; bottom: .45rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.char-counters { display: flex; gap: .4rem; flex-wrap: wrap; }
.char-counter { font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; background: var(--gx-surface-3); color: var(--gx-muted); display: inline-flex; gap: .3rem; align-items: center; }
.char-counter.over { background: rgba(239, 68, 98, .14); color: var(--gx-danger); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.media-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--gx-surface-3); border: 1px solid var(--gx-border); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .media-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.media-item:hover .media-actions { opacity: 1; }
.media-item .media-actions button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(10, 14, 29, .75); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.media-item .media-badge { position: absolute; left: 6px; bottom: 6px; background: rgba(10, 14, 29, .75); color: #fff; font-size: .65rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; }
.media-item.selectable { cursor: pointer; }
.media-item.selected { outline: 3px solid var(--gx-primary); outline-offset: -3px; }
.media-item.selected::after { content: "\F26B"; font-family: bootstrap-icons; position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--gx-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.media-add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--gx-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: var(--gx-muted); cursor: pointer; font-size: .75rem; font-weight: 600; background: transparent; }
.media-add:hover { border-color: var(--gx-primary); color: var(--gx-primary); }
.dropzone-active { outline: 2px dashed var(--gx-primary); outline-offset: 4px; }
.ai-panel { border: 1px solid rgba(var(--gx-primary-rgb), .35); background: linear-gradient(180deg, var(--gx-primary-soft), transparent 70%); }
.ai-chip { border: 1px solid var(--gx-border); background: var(--gx-surface); border-radius: 99px; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; color: var(--gx-text); }
.ai-chip:hover { border-color: var(--gx-primary); color: var(--gx-primary); }
.schedule-opt { border: 1px solid var(--gx-border); border-radius: 12px; padding: .75rem; cursor: pointer; display: block; height: 100%; }
.schedule-opt:has(input:checked) { border-color: var(--gx-primary); background: var(--gx-primary-soft); }
.schedule-opt input { display: none; }
.spinner-ai { width: 1rem; height: 1rem; border-width: .15em; }

/* Prévias das redes */
.pv-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pv-tab { border: 1px solid var(--gx-border); background: var(--gx-surface); border-radius: 10px; padding: .3rem .55rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--gx-muted); }
.pv-tab.active { border-color: var(--gx-primary); color: var(--gx-text); }
.pv { background: #fff; color: #0f1419; border-radius: 16px; overflow: hidden; border: 1px solid #e6e8ee; font-size: .9rem; box-shadow: var(--gx-shadow); }
.pv-dark { background: #000; color: #e7e9ea; border-color: #2f3336; }
.pv-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; }
.pv-head img, .pv-head .acc-initial { width: 36px; height: 36px; border-radius: 50%; font-size: .75rem; }
.pv-name { font-weight: 700; font-size: .88rem; line-height: 1.1; }
.pv-sub { font-size: .75rem; color: #6b7280; }
.pv-text { padding: 0 .85rem .7rem; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.pv-text .more { color: #6b7280; }
.pv-media { background: #f1f2f6; display: grid; gap: 2px; }
.pv-media img, .pv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-media.n1 img, .pv-media.n1 video { max-height: 420px; }
.pv-media.n2 { grid-template-columns: 1fr 1fr; } .pv-media.n2 img { aspect-ratio: 1; }
.pv-media.n3, .pv-media.n4 { grid-template-columns: 1fr 1fr; } .pv-media.n3 img, .pv-media.n4 img { aspect-ratio: 1; }
.pv-actions { display: flex; gap: 1.1rem; padding: .55rem .85rem; color: #4b5563; font-size: 1.05rem; }
.pv-ig .pv-media { aspect-ratio: 4/5; display: block; position: relative; }
.pv-ig .pv-media img, .pv-ig .pv-media video { height: 100%; max-height: none; }
.pv-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.pv-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.pv-dots span:first-child { background: #3897f0; }
.pv-tiktok { background: #000; color: #fff; aspect-ratio: 9/16; position: relative; max-height: 560px; border: 0; }
.pv-tiktok img, .pv-tiktok video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pv-tiktok .tt-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font-size: .82rem; }
.pv-tiktok .tt-side { position: absolute; right: .6rem; bottom: 5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 1.5rem; align-items: center; }
.pv-yt .yt-thumb { aspect-ratio: 16/9; background: #111; position: relative; }
.pv-yt .yt-thumb img, .pv-yt .yt-thumb video { width: 100%; height: 100%; object-fit: cover; }
.pv-pin { border-radius: 20px; }
.pv-pin img { border-radius: 16px; width: 100%; }
.pv-tg { background: #e6ebee; padding: .9rem; border: 0; }
.pv-tg .bubble { background: #fff; border-radius: 14px 14px 14px 4px; overflow: hidden; max-width: 92%; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.pv-dc { background: #313338; color: #dbdee1; border-color: #1e1f22; }
.pv-dc .pv-sub { color: #949ba4; }
.pv-gbp .gbp-cta { margin: 0 .85rem .85rem; border: 1px solid #dadce0; border-radius: 99px; padding: .35rem 1rem; color: #1a73e8; font-weight: 600; display: inline-block; font-size: .82rem; }
.pv-empty { border: 2px dashed var(--gx-border); border-radius: 16px; padding: 2.5rem 1rem; text-align: center; color: var(--gx-muted); }

/* Calendário */
.fc { --fc-border-color: var(--gx-border); --fc-page-bg-color: var(--gx-surface); --fc-neutral-bg-color: var(--gx-surface-2); --fc-today-bg-color: rgba(var(--gx-primary-rgb), .07); --fc-event-bg-color: transparent; --fc-event-border-color: transparent; --fc-button-bg-color: var(--gx-surface); --fc-button-border-color: var(--gx-border); --fc-button-text-color: var(--gx-text); --fc-button-hover-bg-color: var(--gx-surface-2); --fc-button-hover-border-color: var(--gx-border); --fc-button-active-bg-color: var(--gx-primary-soft); --fc-button-active-border-color: var(--gx-primary); --fc-list-event-hover-bg-color: var(--gx-surface-2); font-size: .85rem; }
.fc .fc-toolbar-title { font-family: "Space Grotesk"; font-size: 1.3rem; font-weight: 700; }
.fc .fc-button { border-radius: 10px !important; font-weight: 600; text-transform: capitalize; box-shadow: none !important; padding: .35rem .75rem; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: var(--gx-primary); }
.fc .fc-col-header-cell-cushion { color: var(--gx-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: .6rem 0; }
.fc .fc-daygrid-day-number { color: var(--gx-text); font-weight: 600; font-size: .8rem; }
.fc .fc-daygrid-day:hover { background: var(--gx-surface-2); cursor: copy; }
.fc-event { cursor: pointer; }
.fc-h-event, .fc-v-event { background: transparent; border: 0; }
.ev-card { background: var(--gx-surface); border: 1px solid var(--gx-border); border-left: 3px solid var(--gx-primary); border-radius: 9px; padding: .3rem .4rem; display: flex; gap: .4rem; align-items: center; width: 100%; overflow: hidden; color: var(--gx-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ev-card img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.ev-card .ev-meta { min-width: 0; flex: 1; }
.ev-card .ev-title { font-size: .74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-card .ev-time { font-size: .66rem; color: var(--gx-muted); display: flex; gap: .25rem; align-items: center; }
.ev-card .net-chip { width: 15px; height: 15px; font-size: .52rem; border-radius: 4px; }
.ev-published .ev-card { border-left-color: var(--gx-success); }
.ev-failed .ev-card { border-left-color: var(--gx-danger); }
.ev-partial .ev-card, .ev-pending_approval .ev-card { border-left-color: var(--gx-warning); }
.ev-draft .ev-card { border-left-color: #94a3b8; border-style: dashed; border-left-style: solid; }
.ev-queued .ev-card, .ev-publishing .ev-card { border-left-color: var(--gx-accent); }
.legend-dot { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--gx-muted); font-weight: 600; }

/* Assistente */
.chat-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; height: calc(100vh - 140px); min-height: 520px; }
@media (max-width: 991.98px) { .chat-wrap { grid-template-columns: 1fr; height: auto; } .chat-list { display: none; } }
.chat-list { overflow-y: auto; }
.chat-list a { display: block; padding: .55rem .7rem; border-radius: 10px; color: var(--gx-text); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list a.active, .chat-list a:hover { background: var(--gx-surface-2); }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 1.25rem; min-height: 360px; }
.msg { display: flex; gap: .75rem; margin-bottom: 1.1rem; max-width: 860px; }
.msg.user { margin-left: auto; flex-direction: row-reverse; }
.msg .bubble { padding: .75rem 1rem; border-radius: 16px; background: var(--gx-surface-2); border: 1px solid var(--gx-border); line-height: 1.55; font-size: .93rem; min-width: 0; }
.msg.user .bubble { background: var(--gx-primary); color: #fff; border-color: transparent; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.assistant .bubble { border-bottom-left-radius: 4px; }
.msg .bubble img { max-width: 100%; max-height: 360px; border-radius: 12px; margin: .4rem 0; display: block; }
.msg .bubble p:last-child { margin-bottom: 0; }
.msg .bubble pre { background: var(--gx-surface-3); padding: .6rem; border-radius: 8px; font-size: .8rem; }
.msg .ai-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--gx-grad); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.tool-trace { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.tool-trace span { font-size: .72rem; padding: .15rem .5rem; border-radius: 6px; background: var(--gx-surface-3); color: var(--gx-muted); font-weight: 600; }
.tool-trace span.err { color: var(--gx-danger); }
.chat-input { border-top: 1px solid var(--gx-border); padding: .9rem; }
.chat-input textarea { resize: none; max-height: 180px; }
.typing span { width: 7px; height: 7px; background: var(--gx-muted); border-radius: 50%; display: inline-block; margin-right: 3px; animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.suggest-card { border: 1px solid var(--gx-border); border-radius: 14px; padding: .9rem; background: var(--gx-surface); text-align: left; color: var(--gx-text); width: 100%; height: 100%; font-size: .87rem; }
.suggest-card:hover { border-color: var(--gx-primary); }

/* Studio */
.studio { display: grid; grid-template-columns: 64px 300px minmax(0, 1fr) 280px; height: calc(100vh - 57px); background: var(--gx-bg); }
.studio-rail { border-right: 1px solid var(--gx-border); background: var(--gx-surface); display: flex; flex-direction: column; align-items: center; padding: .5rem 0; gap: .25rem; }
.studio-rail button { width: 52px; border: 0; background: transparent; color: var(--gx-muted); border-radius: 10px; padding: .45rem 0; font-size: .62rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.studio-rail button i { font-size: 1.2rem; }
.studio-rail button.active, .studio-rail button:hover { background: var(--gx-primary-soft); color: var(--gx-primary); }
.studio-panel { border-right: 1px solid var(--gx-border); background: var(--gx-surface); overflow-y: auto; padding: 1rem; }
.studio-stage { overflow: auto; display: flex; align-items: center; justify-content: center; padding: 2rem; background-image: radial-gradient(var(--gx-border) 1px, transparent 1px); background-size: 18px 18px; position: relative; }
.studio-stage .canvas-shell { box-shadow: var(--gx-shadow-lg); background: #fff; }
.studio-props { border-left: 1px solid var(--gx-border); background: var(--gx-surface); overflow-y: auto; padding: 1rem; }
.studio-top { height: 57px; display: flex; align-items: center; gap: .5rem; padding: 0 1rem; border-bottom: 1px solid var(--gx-border); background: var(--gx-surface); }
.studio-top .name-input { border: 1px solid transparent; background: transparent; font-weight: 700; color: var(--gx-text); border-radius: 8px; padding: .25rem .5rem; max-width: 260px; }
.studio-top .name-input:hover, .studio-top .name-input:focus { border-color: var(--gx-border); outline: 0; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.asset { aspect-ratio: 1; border-radius: 10px; background: var(--gx-surface-2); border: 1px solid var(--gx-border); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; color: var(--gx-text); padding: 6px; }
.asset:hover { border-color: var(--gx-primary); }
.asset img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.asset.icon img { object-fit: contain; }
[data-bs-theme="dark"] .asset.icon img { filter: invert(1); }
.text-preset { display: block; width: 100%; text-align: left; border: 1px solid var(--gx-border); border-radius: 10px; background: var(--gx-surface-2); padding: .6rem .8rem; margin-bottom: .5rem; color: var(--gx-text); }
.text-preset:hover { border-color: var(--gx-primary); }
.layer-item { display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; border-radius: 8px; font-size: .82rem; cursor: pointer; }
.layer-item:hover, .layer-item.active { background: var(--gx-surface-2); }
.layer-item.active { color: var(--gx-primary); }
.color-swatch { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--gx-border); cursor: pointer; }
.form-control-color { width: 42px; height: 34px; padding: .2rem; }
.studio-zoom { position: absolute; bottom: 1rem; right: 1rem; background: var(--gx-surface); border: 1px solid var(--gx-border); border-radius: 10px; padding: .25rem; display: flex; align-items: center; gap: .25rem; box-shadow: var(--gx-shadow); }
@media (max-width: 1199.98px) { .studio { grid-template-columns: 56px 260px minmax(0, 1fr); } .studio-props { display: none; } .studio-props.show { display: block; position: fixed; right: 0; top: 57px; bottom: 0; width: 280px; z-index: 30; box-shadow: var(--gx-shadow-lg); } }
@media (max-width: 767.98px) { .studio { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; height: auto; min-height: calc(100vh - 57px); } .studio-panel { grid-column: 2; max-height: 300px; border-right: 0; border-bottom: 1px solid var(--gx-border); } .studio-stage { grid-column: 1 / -1; padding: 1rem; min-height: 60vh; } .studio-rail { grid-row: 1; } }

/* Comentários */
.comment-card { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gx-border); }
.comment-card:last-child { border-bottom: 0; }
.comment-reply { border-left: 3px solid var(--gx-primary); background: var(--gx-surface-2); padding: .5rem .75rem; border-radius: 0 10px 10px 0; font-size: .87rem; }

/* Toasts */
.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; max-width: min(380px, calc(100vw - 2rem)); }
.gx-toast { background: var(--gx-surface); border: 1px solid var(--gx-border); border-radius: 12px; padding: .75rem 1rem; box-shadow: var(--gx-shadow-lg); display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; animation: toastIn .2s ease; }
.gx-toast i { font-size: 1.1rem; margin-top: 1px; }
.gx-toast.success i { color: var(--gx-success); } .gx-toast.error i { color: var(--gx-danger); } .gx-toast.info i { color: var(--gx-primary); }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-side { background: radial-gradient(circle at 20% 20%, rgba(124, 108, 255, .55), transparent 45%), radial-gradient(circle at 80% 70%, rgba(34, 211, 238, .4), transparent 45%), #0b1020; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h2 { font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.75rem; font-weight: 700; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; border: 1px solid var(--gx-border); background: var(--gx-surface); color: var(--gx-text); border-radius: 10px; padding: .6rem; font-weight: 600; width: 100%; }
.oauth-btn:hover { background: var(--gx-surface-2); color: var(--gx-text); }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--gx-muted); font-size: .8rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--gx-border); }
.float-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(10px); border-radius: 16px; padding: 1rem; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 1.5rem; font-family: "Space Grotesk"; font-weight: 700; }
.code-box { font-family: ui-monospace, monospace; background: var(--gx-surface-2); border: 1px solid var(--gx-border); border-radius: 10px; padding: .75rem; }

/* Planos */
.plan-card { position: relative; height: 100%; }
.plan-card.featured { border: 2px solid var(--gx-primary); box-shadow: 0 20px 60px -25px rgba(var(--gx-primary-rgb), .6); }
.plan-card .price { font-family: "Space Grotesk"; font-size: 2.4rem; font-weight: 700; }
.plan-card ul { list-style: none; padding: 0; margin: 0; }
.plan-card li { display: flex; gap: .55rem; padding: .3rem 0; font-size: .9rem; }
.plan-card li i { color: var(--gx-success); }
.plan-card li.off { color: var(--gx-muted); text-decoration: line-through; }
.plan-card li.off i { color: var(--gx-muted); }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gx-grad); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 99px; white-space: nowrap; }
.billing-toggle { display: inline-flex; background: var(--gx-surface-2); border: 1px solid var(--gx-border); border-radius: 99px; padding: 4px; }
.billing-toggle button { border: 0; background: transparent; border-radius: 99px; padding: .35rem 1rem; font-weight: 600; color: var(--gx-muted); font-size: .88rem; }
.billing-toggle button.active { background: var(--gx-surface); color: var(--gx-text); box-shadow: var(--gx-shadow); }

/* Utilidades */
.kbd { font-size: .72rem; padding: .1rem .35rem; border: 1px solid var(--gx-border); border-radius: 5px; background: var(--gx-surface-2); }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { font-size: 1.05rem; margin-top: .8rem; }
.markdown-body ul { padding-left: 1.2rem; }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--gx-bg) 90%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--gx-border); padding: .75rem 0; z-index: 10; }
.skeleton { background: linear-gradient(90deg, var(--gx-surface-2), var(--gx-surface-3), var(--gx-surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.perm-group { border: 1px solid var(--gx-border); border-radius: 12px; padding: .75rem 1rem; }
.chart-box { position: relative; height: 280px; }
.fw-700 { font-weight: 700; }

/* ── Sem azul padrão do Bootstrap: tudo segue a cor da marca ── */
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
  --bs-focus-ring-color: rgba(var(--gx-primary-rgb), .25);
  --bs-primary-text-emphasis: var(--gx-primary);
  --bs-primary-bg-subtle: var(--gx-primary-soft);
  --bs-primary-border-subtle: rgba(var(--gx-primary-rgb), .35);
  --bs-link-hover-color-rgb: var(--gx-primary-rgb);
  --bs-form-valid-color: var(--gx-success);
  --bs-form-invalid-color: var(--gx-danger);
}
.dropdown-menu { --bs-dropdown-link-active-bg: var(--gx-primary-soft); --bs-dropdown-link-active-color: var(--gx-primary); }
.dropdown-item.active, .dropdown-item:active { background: var(--gx-primary-soft); color: var(--gx-primary); font-weight: 600; }
.list-group { --bs-list-group-active-bg: var(--gx-primary); --bs-list-group-active-border-color: var(--gx-primary); }
.list-group-item-action:active { background: var(--gx-primary-soft); color: var(--gx-text); }
.btn-outline-primary { --bs-btn-color: var(--gx-primary); --bs-btn-border-color: var(--gx-primary); --bs-btn-hover-bg: var(--gx-primary); --bs-btn-hover-border-color: var(--gx-primary); --bs-btn-active-bg: var(--gx-primary); --bs-btn-active-border-color: var(--gx-primary); }
.btn-link { --bs-btn-color: var(--gx-primary); --bs-btn-hover-color: var(--gx-primary); }
.btn:focus-visible, .btn-close:focus, .form-check-input:focus, .page-link:focus, .accordion-button:focus, .nav-link:focus-visible { box-shadow: 0 0 0 .2rem rgba(var(--gx-primary-rgb), .2); border-color: rgba(var(--gx-primary-rgb), .5); outline: 0; }
.form-check-input:focus { border-color: rgba(var(--gx-primary-rgb), .6); }
.form-switch .form-check-input:focus:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%238b7dff'/%3e%3c/svg%3e"); }
.form-check-input[type=checkbox]:indeterminate { background-color: var(--gx-primary); border-color: var(--gx-primary); }
.form-range::-webkit-slider-thumb { background: var(--gx-primary); }
.form-range::-webkit-slider-thumb:active { background: rgba(var(--gx-primary-rgb), .6); }
.form-range::-moz-range-thumb { background: var(--gx-primary); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--gx-surface), 0 0 0 .2rem rgba(var(--gx-primary-rgb), .25); }
.form-range::-webkit-slider-runnable-track { background: var(--gx-surface-3); }
.form-range::-moz-range-track { background: var(--gx-surface-3); }
.accordion { --bs-accordion-active-bg: var(--gx-primary-soft); --bs-accordion-active-color: var(--gx-primary); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--gx-primary-rgb), .2); }
.alert-primary, .alert-info { background: var(--gx-primary-soft); color: var(--gx-text); }
.alert-info i, .alert-primary i { color: var(--gx-primary); }
.text-bg-primary { background-color: var(--gx-primary) !important; color: #fff !important; }
.text-bg-info { background-color: rgba(15, 181, 214, .16) !important; color: #0b89a3 !important; }
[data-bs-theme="dark"] .text-bg-info { color: #5fd8ef !important; }
.page-link:hover { color: var(--gx-primary); }
.page-item.active .page-link { color: #fff; }
::selection { background: rgba(var(--gx-primary-rgb), .28); }

/* ── Abas roláveis sem barra de rolagem ── */
.nav-scroll { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll .nav-link { white-space: nowrap; }

/* ── Barras de rolagem discretas (light/dark) ── */
* { scrollbar-width: thin; scrollbar-color: var(--gx-border) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--gx-border); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--gx-muted); background-clip: padding-box; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

/* ── Planos ── */
.plan-card li .val { font-weight: 700; }
.plan-card li .bi-infinity { color: var(--gx-primary); font-size: 1rem; line-height: 1; }
.plan-card .plan-actions { display: grid; gap: .5rem; }
.btn-pix { background: #32bcad; color: #fff; border: 0; }
.btn-pix:hover { background: #27a194; color: #fff; }

/* ── PIX ── */
.pix-qr { width: 240px; height: 240px; margin: 0 auto; padding: 12px; background: #fff; border-radius: 18px; border: 1px solid var(--gx-border); box-shadow: var(--gx-shadow); }
.pix-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.pix-code { font-family: ui-monospace, monospace; font-size: .75rem; word-break: break-all; max-height: 92px; overflow: auto; }
.pix-status { border-radius: 14px; padding: .9rem 1rem; display: flex; gap: .75rem; align-items: center; font-weight: 600; }
.pix-status.pending { background: rgba(245, 158, 11, .12); color: #b45309; }
[data-bs-theme="dark"] .pix-status.pending { color: #fbbf24; }
.pix-status.approved { background: rgba(18, 185, 129, .14); color: var(--gx-success); }
.pix-status.failed { background: rgba(239, 68, 98, .12); color: var(--gx-danger); }
.pix-pulse { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pixPulse 1.4s infinite; flex-shrink: 0; }
@keyframes pixPulse { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 10px transparent; opacity: .6; } 100% { opacity: 1; } }
.pix-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.pix-steps li { counter-increment: s; display: flex; gap: .7rem; padding: .35rem 0; font-size: .9rem; }
.pix-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 8px; background: var(--gx-primary-soft); color: var(--gx-primary); font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Cabeçalho de páginas: ações alinhadas e sem esticar */
.page-head-actions > * { flex-shrink: 0; }
.page-head-actions .form-select, .page-head-actions .form-control { width: auto; }

/* Filtro de período dos relatórios */
.report-range { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.report-presets .btn { min-width: 46px; }
.report-presets .btn.active { background: var(--gx-primary-soft); color: var(--gx-primary); border-color: rgba(var(--gx-primary-rgb), .4); }
.report-dates { display: inline-flex; align-items: center; gap: .45rem; height: 31px; padding: 0 .65rem; border: 1px solid var(--gx-border); border-radius: 10px; background: var(--gx-surface); }
.report-dates input { border: 0; background: transparent; color: var(--gx-text); font-size: .85rem; font-weight: 600; width: 128px; padding: 0; outline: 0; }
.report-dates input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
[data-bs-theme="dark"] .report-dates input { color-scheme: dark; }
.report-dates:focus-within { border-color: rgba(var(--gx-primary-rgb), .6); box-shadow: 0 0 0 .2rem rgba(var(--gx-primary-rgb), .15); }
@media (max-width: 575.98px) {
  .page-head-actions { width: 100%; }
  .report-range { width: 100%; }
  .report-dates { flex: 1; justify-content: space-between; }
  .report-dates input { width: 100%; min-width: 0; }
}

/* ── Onboarding ─────────────────────────────────────────────── */
.onb-badge { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--gx-grad); color: #fff; font-size: 1.5rem; flex-shrink: 0; box-shadow: 0 10px 26px -12px rgba(109, 94, 245, .8); }
.onb-num { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; border: 2px solid var(--gx-border); color: var(--gx-muted); flex-shrink: 0; background: var(--gx-surface); }
.onb-num.is-done { background: #10b981; border-color: #10b981; color: #fff; }
.onb-steps .list-group-item { background: transparent; border-color: var(--gx-border); color: var(--gx-text); }
.onb-steps .active-step { background: var(--gx-primary-soft); box-shadow: inset 3px 0 0 rgb(var(--gx-primary-rgb)); }
.onb-steps .active-step .onb-num:not(.is-done) { border-color: rgb(var(--gx-primary-rgb)); color: rgb(var(--gx-primary-rgb)); }
.onb-color { position: relative; cursor: pointer; }
.onb-color input { position: absolute; opacity: 0; pointer-events: none; }
.onb-color span { display: block; width: 34px; height: 34px; border-radius: 10px; background: var(--c); border: 3px solid transparent; box-shadow: 0 0 0 1px var(--gx-border); transition: transform .12s; }
.onb-color input:checked + span { border-color: var(--gx-surface); box-shadow: 0 0 0 2px var(--c); transform: scale(1.06); }
.onb-choice { position: relative; cursor: pointer; margin: 0; }
.onb-choice input { position: absolute; opacity: 0; pointer-events: none; }
.onb-choice span { display: block; padding: .65rem .85rem; border-radius: 12px; border: 1px solid var(--gx-border); font-size: .875rem; font-weight: 600; background: var(--gx-surface); transition: all .15s; }
.onb-choice input:checked + span { border-color: rgb(var(--gx-primary-rgb)); background: var(--gx-primary-soft); color: rgb(var(--gx-primary-rgb)); }
.onb-tip { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: var(--gx-primary-soft); font-size: .85rem; }
.onb-tip > i { color: rgb(var(--gx-primary-rgb)); font-size: 1.1rem; }
.onb-check { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; color: var(--gx-text); font-size: .875rem; font-weight: 600; }
.onb-check:hover { background: var(--gx-primary-soft); }
.onb-check.is-done { color: var(--gx-muted); text-decoration: line-through; font-weight: 500; }
@media (max-width: 575.98px) { .onb-progress { width: 100%; text-align: left !important; } .onb-progress .progress { width: 100% !important; } }

/* ── Páginas legais ─────────────────────────────────────────── */
.legal-body { background: var(--gx-bg); }
.legal-top { border-bottom: 1px solid var(--gx-border); background: var(--gx-surface); }
.legal-tabs .nav-link { border-radius: 10px; color: var(--gx-muted); font-weight: 600; }
.legal-tabs .nav-link.active { background: var(--gx-primary-soft); color: var(--gx-primary); }
.legal { font-size: .975rem; line-height: 1.75; }
.legal h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.legal h2 { font-size: 1.12rem; font-weight: 700; margin: 2rem 0 .65rem; padding-top: 1.25rem; border-top: 1px solid var(--gx-border); }
.legal .lead { font-size: 1.05rem; color: var(--gx-text); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal p, .legal li { color: var(--gx-text); }
