﻿:root {
  --ct-bg: #f4f7fa;
  --ct-card: #ffffff;
  --ct-text: #0b1f33;
  --ct-muted: #5b6b7d;
  --ct-border: #d9e2ea;
  --ct-primary: #00a878;
  --ct-primary-hover: #078a68;
  --ct-menu: #041b2d;
  --ct-menu-hover: #0a2a43;
  --ct-danger: #d92d20;
  --ct-warning: #b54708;
  --ct-shadow: 0 12px 36px rgba(11, 31, 51, .08);
  --ct-radius: 16px;
  --ct-transition: 180ms ease;
  --background: var(--ct-bg);
  --ds-bg: var(--ct-bg);
  --surface: var(--ct-card);
  --surface-2: #eef3f6;
  --card: var(--ct-card);
  --border: var(--ct-border);
  --text: var(--ct-text);
  --text-muted: var(--ct-muted);
  --muted: var(--ct-muted);
  color-scheme: light;
}

[data-theme="dark"] {
  --ct-bg: #08131f;
  --ct-card: #10202e;
  --ct-text: #edf4f8;
  --ct-muted: #a9b8c5;
  --ct-border: #223546;
  --ct-shadow: 0 16px 42px rgba(0, 0, 0, .24);
  --background: var(--ct-bg);
  --ds-bg: var(--ct-bg);
  --surface: var(--ct-card);
  --surface-2: #152837;
  --card: var(--ct-card);
  --border: var(--ct-border);
  --text: var(--ct-text);
  --text-muted: var(--ct-muted);
  --muted: var(--ct-muted);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 3px solid rgba(0, 168, 120, .32); outline-offset: 3px; }
body { text-rendering: optimizeLegibility; }
.btn, button, a, input, select, textarea { transition: border-color var(--ct-transition), background-color var(--ct-transition), color var(--ct-transition), box-shadow var(--ct-transition), transform var(--ct-transition); }
.btn.primary, button.primary { background: var(--ct-primary); border-color: var(--ct-primary); color: #fff; box-shadow: 0 8px 20px rgba(0, 168, 120, .16); }
.btn.primary:hover, button.primary:hover { background: var(--ct-primary-hover); border-color: var(--ct-primary-hover); transform: translateY(-1px); }

/* Public surfaces: stronger premium contrast and recognizable payment brands. */
.lp-nav {
  color: #eef6f7;
  background: rgba(4, 37, 43, .96);
  border-bottom-color: rgba(102, 222, 190, .18);
  box-shadow: 0 10px 30px rgba(4, 27, 45, .10);
}
.lp-nav .lp-brand,
.lp-nav .lp-brand-name,
.lp-nav .lp-links a,
.lp-nav .lp-login { color: #d9e8eb; }
.lp-nav .lp-brand-name { color: #ffffff; }
.lp-nav .lp-links a:hover,
.lp-nav .lp-login:hover { color: #72e1c1; }
.lp-nav .lp-login { padding: 10px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; }
.lp-brand-icon { width: 24px; height: 24px; flex: 0 0 24px; display: inline-grid; place-items: center; overflow: hidden; border-radius: 7px; background: #fff; }
.lp-brand-icon img { width: 21px; height: 21px; display: block; object-fit: contain; }
.lp-brand-icon-mp img { width: 52px; height: 52px; max-width: none; transform: scale(1.08); }
.lp-trust-items b { display: inline-flex; align-items: center; gap: 8px; }
.lp-orbit-node { min-height: 48px; padding: 8px 12px; font-weight: 750; }
.lp-orbit-node .lp-brand-icon { width: 26px; height: 26px; flex-basis: 26px; }

/* Landing: light fintech surface */
.lp-body, .lp-page { background: #f4f7fa; color: var(--ct-text); }
.lp-body { color-scheme: light !important; }
.lp-shell { width: min(1180px, calc(100% - 40px)); }
.lp-nav { background: rgba(4, 37, 43, .96); border-bottom: 1px solid rgba(102,222,190,.18); box-shadow: 0 10px 30px rgba(4,27,45,.10); backdrop-filter: blur(16px); }
.lp-nav .lp-brand, .lp-nav .lp-links a, .lp-nav .lp-login { color: #d9e8eb; text-transform: none; }
.lp-brand-mark { width: auto; height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
.lp-brand-mark img { width: 34px; height: 34px; object-fit: contain; background: transparent; }
.lp-brand-name { font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.lp-nav .lp-links a:hover, .lp-nav .lp-login:hover { color: #72e1c1; }
.lp-btn { border-radius: 12px; font-weight: 750; }
.lp-btn-primary { color: #fff; background: linear-gradient(135deg, #12b886, #009c75); border: 1px solid #00956f; box-shadow: 0 9px 24px rgba(0, 168, 120, .18); }
.lp-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 168, 120, .22); }
.lp-hero { min-height: auto; padding: 108px 0 82px; background: linear-gradient(115deg, #fff 0%, #f5faf9 58%, #edf8f5 100%); border-bottom: 1px solid var(--ct-border); overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11,31,51,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(11,31,51,.025) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.lp-hero-glow { display: none; }
.lp-hero-grid { gap: clamp(44px, 7vw, 92px); }
.lp-eyebrow, .lp-eyebrow-light { color: #087b5f; }
.lp-eyebrow-light i { background: var(--ct-primary); box-shadow: none; }
.lp-hero-copy h1 { color: var(--ct-text); font-size: clamp(48px, 5.1vw, 74px); line-height: .98; letter-spacing: -.065em; max-width: 720px; }
.lp-hero-copy h1 em { color: var(--ct-primary); text-shadow: none; }
.lp-hero-copy p { color: var(--ct-muted); font-size: 18px; line-height: 1.7; max-width: 650px; }
.lp-text-link { color: var(--ct-text); }
.lp-text-link:hover, .lp-text-link-accent { color: #087b5f; }
.lp-hero-assurance { color: var(--ct-muted); }
.lp-hero-assurance span::before { color: var(--ct-primary); }
.lp-dashboard-wrap { filter: none; }
.lp-dashboard { color: var(--ct-text); background: #fff; border: 1px solid #cdd9e3; border-radius: 18px; box-shadow: 0 24px 64px rgba(11,31,51,.14); }
.lp-dashboard-top { background: #f8fafc; border-bottom-color: var(--ct-border); }
.lp-mini-brand { color: var(--ct-text); }
.lp-dashboard-side { background: #f7fafc; border-right: 1px solid var(--ct-border); }
.lp-dashboard-side span { background: #d8e2e9; }
.lp-dashboard-side span.active { background: var(--ct-primary); box-shadow: none; }
.lp-dashboard-heading small, .lp-dashboard-heading > span, .lp-metrics small, .lp-chart small, .lp-connection small { color: #6b7b8d; }
.lp-dashboard-heading strong, .lp-metrics b, .lp-chart b, .lp-connection b { color: var(--ct-text); }
.lp-metrics span, .lp-connection em { color: #0d8a6a; }
.lp-chart-labels { color: #64748b; }
.lp-metrics article, .lp-chart, .lp-connection { background: #f8fafc; border-color: var(--ct-border); }
.lp-bars i { background: linear-gradient(180deg, #32c79b, #009c75); box-shadow: none; }
.lp-floating-card { color: var(--ct-text); background: #fff; border-color: var(--ct-border); box-shadow: 0 14px 36px rgba(11,31,51,.14); }
.lp-floating-card small { color: var(--ct-muted); }
.lp-floating-card b { color: var(--ct-text); }
.lp-float-icon, .lp-float-avatar { color: #087b5f; background: #e7f7f1; }
.lp-trust-strip { background: #fff; border-color: var(--ct-border); color: var(--ct-muted); }
.lp-trust-items b { color: #34475b; }
.lp-section { background: #f4f7fa; color: var(--ct-text); }
.lp-section-intro h2, .lp-product-copy h3, .lp-comparison h3, .lp-integration-copy h2, .lp-plan h3, .lp-faq-copy h2 { color: var(--ct-text); }
.lp-section-intro p, .lp-product-copy p, .lp-integration-copy p, .lp-plan p, .lp-faq-copy p { color: var(--ct-muted); }
.lp-product-row { border-color: var(--ct-border); }
.lp-product-index { color: #8a9aaa; }
.lp-product-visual { background: #fff; border: 1px solid var(--ct-border); box-shadow: var(--ct-shadow); }
.lp-message-window, .lp-timeline, .lp-mini-table { color: var(--ct-text); background: #f7faf9; border-color: #cfe6de; }
.lp-message-top, .lp-mini-table-head { border-color: var(--ct-border); color: var(--ct-muted); }
.lp-message-bubble { color: var(--ct-text); background: #e9f5f1; }
.lp-message-window button { color: #087b5f; border-color: #b9dfd2; background: #fff; }
.lp-timeline span, .lp-mini-table > div { color: var(--ct-text); border-color: var(--ct-border); }
.lp-timeline small, .lp-mini-table span { color: var(--ct-muted); }
.lp-mini-table b { color: #0b1f33; }
.lp-mini-table-head { background: #edf4f2; }
.lp-mini-table em.paid { color: #0d8a6a; background: #e2f6ef; }
.lp-mini-table em.pending { color: #a16207; background: #fef3c7; }
.lp-mini-table em.late { color: #b91c1c; background: #fee2e2; }
.lp-tag { color: #087b5f; background: #e9f7f2; border-color: #c8e9dd; }
.lp-detail-link { color: #087b5f; }
.lp-detail-link b { color: #087b5f; }
.lp-results { background: #fff; }
.lp-comparison { background: #fff; border-color: var(--ct-border); box-shadow: var(--ct-shadow); }
.lp-comparison-before { background: #fbfcfd; }
.lp-comparison-after { background: linear-gradient(145deg, #f5fbf9, #ebf8f3); border-color: #9fd9c6; }
.lp-comparison li { color: var(--ct-muted); }
.lp-integration-card { background: #fff; border: 1px solid var(--ct-border); box-shadow: var(--ct-shadow); }
.lp-orbit-ring { border-color: rgba(0,168,120,.24); }
.lp-orbit-core, .lp-orbit-node { color: var(--ct-text); background: #fff; border-color: var(--ct-border); box-shadow: 0 10px 24px rgba(11,31,51,.08); }
.lp-pricing { background: #fff; }
.lp-plan { color: var(--ct-text); background: #fff; border-color: #cbd8e2; box-shadow: 0 10px 32px rgba(11,31,51,.075); }
.lp-plan.is-featured,
.lp-plan-featured { background: linear-gradient(180deg, #f1fbf7, #fff); border-color: var(--ct-primary); box-shadow: 0 18px 42px rgba(0,168,120,.12); }
.lp-plan-name { color: #0b1f33; font-weight: 850; }
.lp-plan p { color: #53677b; }
.lp-plan li, .lp-plan small, .lp-price span { color: var(--ct-muted); }
.lp-plan em { color: #0d8a6a; background: #e2f6ef; }
.lp-price strong { color: var(--ct-text); }
.lp-plan .lp-btn-outline { color: #087b5f; background: #eef8f4; border-color: #9fd8c5; }
.lp-plan .lp-btn-outline:hover { color: #fff; background: #087b5f; border-color: #087b5f; }
.lp-industries, .lp-faq-section { background: #f4f7fa; }
.lp-industry-list span, .lp-faq details { color: var(--ct-text); background: #fff; border-color: #cbd8e2; }
.lp-faq { border-top-color: #cbd8e2; }
.lp-faq summary { color: #132c42; font-weight: 780; }
.lp-faq details p { color: var(--ct-muted); }
.lp-signup-section { background: #eef5f4; }
.lp-signup { background: var(--ct-menu); border: 1px solid #12344e; box-shadow: 0 24px 60px rgba(4,27,45,.18); }
.lp-signup-copy, .lp-signup-copy h2 { color: #fff; }
.lp-signup-copy p, .lp-signup-benefits { color: #c6d4df; }
.lp-pricing-help a { color: #087b5f; }
.lp-form { background: #fff; border-color: var(--ct-border); color: var(--ct-text); }
.lp-form .lp-form-heading span { color: #0b1728; }
.lp-form .lp-form-heading small { color: #64748b; }
.lp-field label, .lp-form-terms { color: var(--ct-muted); }
.lp-field input, .lp-field select { color: var(--ct-text); background: #fff; border-color: var(--ct-border); }
.lp-final-cta { color: #fff; background: #07324a; }
.lp-footer { color: #dce7ee; background: var(--ct-menu); }
.lp-footer .lp-brand,
.lp-footer .lp-brand-name { color: #ffffff; }
.lp-footer-brand > p { color: #a9bac7; }
.lp-footer-trust span { color: #a8bbc8; border-color: rgba(255,255,255,.14); }
.lp-footer-col b { color: #f4f8fa; }
.lp-footer-col a { color: #a8bbc8; }
.lp-footer-bottom { color: #8298a8; }

/* Authentication */
.auth-screen { min-height: 100vh; color: var(--ct-text); background: var(--ct-bg); }
.auth-topbar { height: 68px; padding: 0 clamp(20px, 4vw, 56px); color: #eef6f7; background: #062b31; border-bottom: 1px solid rgba(102,222,190,.18); }
.auth-topbar .brand, .auth-topbar a { color: #eef6f7; }
.auth-topbar .brand-logo, .login-side .brand-logo { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
.login-premium { min-height: calc(100vh - 68px); background: var(--ct-bg); }
.login-side { flex: 0 0 42%; padding: clamp(48px, 6vw, 92px); color: #fff; background: linear-gradient(145deg, #041b2d, #07324a); }
.login-side h1 { color: #fff; font-size: clamp(40px, 4vw, 62px); letter-spacing: -.055em; }
.login-side h1 span { color: #43d4a9; }
.login-side > p { color: #c8d6df; }
.login-benefits > div { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.login-benefits span { color: #c8d6df; }
.login-form-wrap { background: #f7f9fb; }
.login-panel { width: min(100%, 520px); padding: clamp(28px, 4vw, 44px); color: var(--ct-text); background: #fff; border: 1px solid var(--ct-border); border-radius: 18px; box-shadow: var(--ct-shadow); }
.login-panel h2 { color: var(--ct-text); font-size: clamp(30px, 3vw, 40px); letter-spacing: -.045em; }
.login-panel.auth-panel-2fa h2 { max-width: 100%; line-height: 1.08; overflow-wrap: anywhere; }
.login-panel > p, .login-top-link { color: var(--ct-muted); }
.login-panel label { color: #3c5064; }
.login-panel input { color: var(--ct-text); background: #fff; border: 1px solid var(--ct-border); border-radius: 12px; }
.login-panel input:focus { border-color: var(--ct-primary); box-shadow: 0 0 0 4px rgba(0,168,120,.10); }
.password-toggle { color: #087b5f; background: #edf8f4; border-color: #c4e8db; }
.safe-note { color: #087b5f; background: #eaf8f3; }
.auth-code-summary > div { background: #f7f9fb; border-color: var(--ct-border); }
.auth-code-summary span { color: var(--ct-muted); }
.ds-otp-input { color: var(--ct-text); background: #fff; border-color: var(--ct-border); }

/* Legal documents */
.legal-page { color: var(--ct-text) !important; background: var(--ct-bg) !important; }
.legal-hero { padding: 48px 0 76px !important; color: #fff !important; background: radial-gradient(circle at 82% 10%, rgba(0,168,120,.24), transparent 31%), linear-gradient(135deg, #041b2d, #073b46) !important; border-bottom: 1px solid rgba(102,222,190,.18); }
.legal-hero a, .legal-hero h1, .legal-brand { color: #fff !important; }
.legal-hero img, .legal-brand img { padding: 0 !important; background: transparent !important; border-radius: 0 !important; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 54px) !important; letter-spacing: -.05em !important; }
.legal-hero p { color: #c2d6dc !important; }
.legal-card { margin-top: -32px !important; border-top: 4px solid #00a878 !important; border-radius: 18px !important; border-right-color: var(--ct-border) !important; border-bottom-color: var(--ct-border) !important; border-left-color: var(--ct-border) !important; box-shadow: 0 20px 54px rgba(11,31,51,.12) !important; }
.legal-card p, .legal-card li { color: var(--ct-muted) !important; font-weight: 500 !important; }
.legal-dpo-box, .abuse-box { color: var(--ct-text) !important; background: #eef7f4 !important; border: 1px solid #c9e6dc; border-radius: 14px !important; }
.legal-dpo-box p, .abuse-box p { color: var(--ct-muted) !important; }
.legal-dpo-box a, .abuse-box a { color: #087b5f !important; }
.legal-tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--ct-border); }
.legal-index { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.legal-index strong { width: 100%; color: var(--ct-text); font-size: 13px; }
.legal-index a { color: #087b5f; font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.legal-print { flex: 0 0 auto; padding: 10px 14px; color: #087b5f; background: #fff; border: 1px solid #9fd8c5; border-radius: 10px; font-weight: 750; cursor: pointer; }
.legal-card h2 { scroll-margin-top: 24px; color: #0b1f33 !important; }

/* Shared application shell */
.app-body { color: var(--ct-text); background: var(--ct-bg); }
.app-sidebar, .master-body .app-sidebar { color: #e8f0f5; background: var(--ct-menu) !important; border-right: 1px solid #12344e !important; box-shadow: none !important; }
.sidebar-brand { color: #fff; }
.sidebar-brand .brand-logo { padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.side-nav a { color: #c3d0da; border: 1px solid transparent; border-radius: 12px; }
.side-nav a:hover { color: #fff; background: var(--ct-menu-hover); }
.side-nav a.active { color: #fff; background: rgba(0,168,120,.15); border-color: rgba(55,209,165,.32); box-shadow: none; }
.side-nav a > span { color: #42d0a6; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.08); }
.side-nav-section { border-color: rgba(255,255,255,.09); }
.side-nav-section-title { color: #8fa2b2; }
.sidebar-user, .sidebar-user-menu-panel, .sidebar-card { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); }
.sidebar-user-menu-panel a, .sidebar-user-menu-action { color: #e8f0f5; border-color: rgba(255,255,255,.09); }
.sidebar-logout button { color: #c3d0da; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); }
.app-main, .tenant-body .app-content, .master-body .app-content { background: var(--ct-bg) !important; }
.app-topbar { min-height: 124px; padding: 28px clamp(24px, 3vw, 42px); background: var(--ct-card); border-bottom: 1px solid var(--ct-border); }
.app-topbar h1 { color: var(--ct-text); font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.055em; }
.app-topbar p { color: var(--ct-muted); }
.app-topbar .eyebrow, .eyebrow { color: #087b5f; }
.ds-theme-toggle { color: var(--ct-muted); background: var(--ct-card); border-color: var(--ct-border); box-shadow: none; }
.app-content { padding: clamp(20px, 3vw, 38px); }
.panel, .card, .overview-card, .revenue-card-v3, .integrations-card-v3, .monthly-forecast-panel, .insight-card, .support-card, .activation-progress-panel, .activation-workspace, .activation-goal-card, .master-stat-card, .master-growth-panel, .master-module-card, .ops-panel, .master-page-header { color: var(--ct-text); background: var(--ct-card); border-color: var(--ct-border); border-radius: var(--ct-radius); box-shadow: 0 8px 28px rgba(11,31,51,.055); }
.panel p, .card p, .panel small, .card small, .overview-card span, .master-page-header p { color: var(--ct-muted); }
.panel h2, .panel h3, .card h2, .card h3, .master-page-header h2 { color: var(--ct-text); }
.activation-shell { color: var(--ct-text); background: var(--ct-card); border: 1px solid var(--ct-border); border-radius: 18px; box-shadow: var(--ct-shadow); }
.activation-hero { min-height: 230px; padding: clamp(28px, 4vw, 48px); color: #fff; background: linear-gradient(120deg, #071f33, #0b3c47); border: 1px solid #1a5261; border-radius: 18px; box-shadow: none; }
.activation-hero h2 { font-size: clamp(34px, 4vw, 54px); }
.activation-hero p { color: #d1e0e7; }
.activation-ring { box-shadow: none; }
.activation-progress-panel { margin-top: 18px; }
.activation-step { border-radius: 12px; }
.master-page-header { padding: 26px 28px; }
.master-page-header h2 { font-size: clamp(34px, 4vw, 48px); }
.responsive-table, .table-wrap, table { color: var(--ct-text); background: var(--ct-card); border-color: var(--ct-border); }
table th { color: #405469; background: #f3f6f8; }
table td { border-color: var(--ct-border); }
input, select, textarea { color: var(--ct-text); background: var(--ct-card); border-color: var(--ct-border); }
.tenant-context-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 14px 16px; color: #103d35; background: #e8f7f1; border: 1px solid #a8ddca; border-radius: 14px; }
.tenant-context-banner div { display: grid; gap: 3px; }
.tenant-context-banner span { color: #42675f; font-size: 13px; }
.tenant-context-banner button { padding: 9px 12px; color: #fff; background: #087b5f; border: 0; border-radius: 10px; font-weight: 750; }
.app-footer { color: var(--ct-muted); border-color: var(--ct-border); }
.profile-sessions-panel { margin-top: 20px; }
.profile-session-list { display: grid; gap: 10px; }
.profile-session-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; background: var(--ct-bg); border: 1px solid var(--ct-border); border-radius: 12px; }
.profile-session-row > div { display: grid; gap: 3px; min-width: 0; }
.profile-session-row span, .profile-session-row small { overflow: hidden; color: var(--ct-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

[data-theme="dark"] .app-topbar,
[data-theme="dark"] .panel,
[data-theme="dark"] .card,
[data-theme="dark"] .overview-card,
[data-theme="dark"] .revenue-card-v3,
[data-theme="dark"] .integrations-card-v3,
[data-theme="dark"] .monthly-forecast-panel,
[data-theme="dark"] .insight-card,
[data-theme="dark"] .support-card,
[data-theme="dark"] .activation-progress-panel,
[data-theme="dark"] .activation-workspace,
[data-theme="dark"] .activation-goal-card,
[data-theme="dark"] .master-stat-card,
[data-theme="dark"] .master-growth-panel,
[data-theme="dark"] .master-module-card,
[data-theme="dark"] .ops-panel,
[data-theme="dark"] .master-page-header,
[data-theme="dark"] .responsive-table,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] table { color: var(--ct-text) !important; background: var(--ct-card) !important; border-color: var(--ct-border) !important; box-shadow: none !important; }
[data-theme="dark"] .panel,
[data-theme="dark"] .card,
[data-theme="dark"] .tenant-page-header,
[data-theme="dark"] .tenant-form-card,
[data-theme="dark"] .tenant-table-card,
[data-theme="dark"] .premium-crud-panel,
[data-theme="dark"] .premium-table-panel,
[data-theme="dark"] .client-form-card,
[data-theme="dark"] .client-list-card,
[data-theme="dark"] .activation-progress-panel,
[data-theme="dark"] .activation-timeline,
[data-theme="dark"] .activation-goal-card,
[data-theme="dark"] .activation-workspace { color: var(--ct-text) !important; background: var(--ct-card) !important; border-color: var(--ct-border) !important; box-shadow: none !important; }
[data-theme="dark"] .panel h1,
[data-theme="dark"] .panel h2,
[data-theme="dark"] .panel h3,
[data-theme="dark"] .card h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .tenant-page-header h2,
[data-theme="dark"] .activation-section-head h2,
[data-theme="dark"] .activation-step-title h3,
[data-theme="dark"] .activation-goal-card h2 { color: var(--ct-text) !important; -webkit-text-fill-color: var(--ct-text) !important; }
[data-theme="dark"] .panel p,
[data-theme="dark"] .panel small,
[data-theme="dark"] .card p,
[data-theme="dark"] .activation-section-head p,
[data-theme="dark"] .activation-step-body p,
[data-theme="dark"] .activation-mini-list span { color: var(--ct-muted) !important; -webkit-text-fill-color: var(--ct-muted) !important; }
[data-theme="dark"] .activation-hero h2 { color: #fff !important; -webkit-text-fill-color: #fff !important; }
[data-theme="dark"] .activation-hero p { color: #d7e7f2 !important; -webkit-text-fill-color: #d7e7f2 !important; }
[data-theme="dark"] .activation-hero .eyebrow { color: #8ff4e5 !important; -webkit-text-fill-color: #8ff4e5 !important; }
[data-theme="dark"] .activation-milestone { color: var(--ct-muted) !important; background: var(--surface-2) !important; border-color: var(--ct-border) !important; }
[data-theme="dark"] .activation-milestone.active { color: #67e7c0 !important; background: #102b2c !important; border-color: #16876f !important; }
[data-theme="dark"] .activation-milestone.done { color: #65dc8d !important; background: #102b25 !important; border-color: #1b6d45 !important; }
[data-theme="dark"] .activation-goal-meter { color: var(--ct-text) !important; background: #0c1a26 !important; border-color: var(--ct-border) !important; }
[data-theme="dark"] .metric { color: var(--ct-text) !important; background: var(--ct-card) !important; border-color: var(--ct-border) !important; }
[data-theme="dark"] .metric span, [data-theme="dark"] .metric small { color: var(--ct-muted) !important; }
[data-theme="dark"] table th { color: #d4e0e8; background: #152837; }
[data-theme="dark"] table td { color: var(--ct-text) !important; background: var(--ct-card) !important; border-color: var(--ct-border) !important; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color: var(--ct-text) !important; background: #0c1a26 !important; border-color: var(--ct-border) !important; -webkit-text-fill-color: var(--ct-text) !important; }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #7f92a2 !important; -webkit-text-fill-color: #7f92a2 !important; }
[data-theme="dark"] .tenant-context-banner { color: #dff8ef; background: #0d342f; border-color: #1b6b5a; }
[data-theme="dark"] .tenant-context-banner span { color: #b8d8cf; }

/* Tenant dark mode: this selector intentionally outranks the legacy page packages
   while they remain as a compatibility layer during the CSS migration. */
html[data-theme="dark"] body.tenant-body .app-content .panel:not(.connect-hero):not(.map-hero):not(.master-hero):not(.automation-card),
html[data-theme="dark"] body.tenant-body .app-content .card,
html[data-theme="dark"] body.tenant-body .app-content .metric,
html[data-theme="dark"] body.tenant-body .app-content .tenant-page-header,
html[data-theme="dark"] body.tenant-body .app-content .tenant-form-card,
html[data-theme="dark"] body.tenant-body .app-content .tenant-table-card,
html[data-theme="dark"] body.tenant-body .app-content .premium-crud-panel,
html[data-theme="dark"] body.tenant-body .app-content .premium-table-panel,
html[data-theme="dark"] body.tenant-body .app-content .activation-progress-panel,
html[data-theme="dark"] body.tenant-body .app-content .activation-timeline,
html[data-theme="dark"] body.tenant-body .app-content .activation-goal-card {
  color: var(--ct-text) !important;
  background-color: #10202e !important;
  background-image: linear-gradient(180deg, #10202e, #0c1a26) !important;
  border-color: var(--ct-border) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18) !important;
}
html[data-theme="dark"] body.tenant-body .app-content .panel:not(.connect-hero):not(.map-hero):not(.master-hero):not(.automation-card) h1,
html[data-theme="dark"] body.tenant-body .app-content .panel:not(.connect-hero):not(.map-hero):not(.master-hero):not(.automation-card) h2,
html[data-theme="dark"] body.tenant-body .app-content .panel:not(.connect-hero):not(.map-hero):not(.master-hero):not(.automation-card) h3,
html[data-theme="dark"] body.tenant-body .app-content .premium-crud-panel h2,
html[data-theme="dark"] body.tenant-body .app-content .premium-table-panel h2,
html[data-theme="dark"] body.tenant-body .app-content .tenant-page-header h2,
html[data-theme="dark"] body.tenant-body .app-content .activation-step-title h3 {
  color: var(--ct-text) !important;
  -webkit-text-fill-color: var(--ct-text) !important;
}
html[data-theme="dark"] body.tenant-body .app-content .panel:not(.connect-hero):not(.map-hero):not(.master-hero):not(.automation-card) p,
html[data-theme="dark"] body.tenant-body .app-content .panel:not(.connect-hero):not(.map-hero):not(.master-hero):not(.automation-card) small,
html[data-theme="dark"] body.tenant-body .app-content .panel:not(.connect-hero):not(.map-hero):not(.master-hero):not(.automation-card) label,
html[data-theme="dark"] body.tenant-body .app-content .tenant-page-header p,
html[data-theme="dark"] body.tenant-body .app-content .activation-step-body p {
  color: var(--ct-muted) !important;
  -webkit-text-fill-color: var(--ct-muted) !important;
}
html[data-theme="dark"] body.tenant-body .app-content .activation-step,
html[data-theme="dark"] body.tenant-body .app-content .client-card,
html[data-theme="dark"] body.tenant-body .app-content .product-card,
html[data-theme="dark"] body.tenant-body .app-content .responsive-table tbody tr,
html[data-theme="dark"] body.tenant-body .app-content .tenant-data-table tbody tr {
  color: var(--ct-text) !important;
  background: #0c1a26 !important;
  border-color: var(--ct-border) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body.tenant-body .app-content table,
html[data-theme="dark"] body.tenant-body .app-content table td {
  color: var(--ct-text) !important;
  background: #0c1a26 !important;
  border-color: var(--ct-border) !important;
}
html[data-theme="dark"] body.tenant-body .app-content table th {
  color: #d4e0e8 !important;
  background: #152837 !important;
  border-color: var(--ct-border) !important;
}
html[data-theme="dark"] body.tenant-body .app-content table td strong,
html[data-theme="dark"] body.tenant-body .app-content table td b {
  color: var(--ct-text) !important;
  -webkit-text-fill-color: var(--ct-text) !important;
}
html[data-theme="dark"] body.tenant-body .app-content table td small {
  color: var(--ct-muted) !important;
  -webkit-text-fill-color: var(--ct-muted) !important;
}
html[data-theme="dark"] body.tenant-body .app-content input,
html[data-theme="dark"] body.tenant-body .app-content select,
html[data-theme="dark"] body.tenant-body .app-content textarea {
  color: var(--ct-text) !important;
  background: #08131f !important;
  border-color: var(--ct-border) !important;
  -webkit-text-fill-color: var(--ct-text) !important;
}

/* Passo 1 do redesign (2026-08-20): tenant-page-header sem título/subtítulo
   (o topbar global já mostra isso, ver layouts/app.php $tenantTopbar) vira
   uma barra de ferramentas compacta, não mais um "hero card". Especificidade
   elevada de propósito para vencer de forma determinística e sem depender de
   ordem de arquivo: app.css:5430 (.tenant-page-header base), app.css:7716 e
   7719 (blobs .tenant-body .tenant-page-header), app.css:7772/9379/9909
   (variantes client/contract/settings-hero), e o bloco dark acima (linha 348). */
body.tenant-body .app-content .tenant-page-header.header-actions-only,
html[data-theme="dark"] body.tenant-body .app-content .tenant-page-header.header-actions-only {
  padding: 0 !important;
  margin: 0 0 16px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-height: auto !important;
}
body.tenant-body .app-content .tenant-page-header.header-actions-only .tenant-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Passo 2 do redesign (2026-08-20): os cards de métrica (Total na base, Com
   e-mail, Ação rápida etc.) tinham a legenda espremida numa coluna de grid
   de 58px, quebrando o texto em 2-3 linhas. Havia 8 definições concorrentes
   de grid-template-columns para .metric espalhadas por app.css, todas
   !important e empatadas em especificidade — a vencedora era só acidente de
   ordem no arquivo (ver app.css ~linha 2326 e ~3437, ambas
   ".premium-metrics .metric, .dashboard-v2-metrics.premium-metrics .metric,
   .admin-metrics .metric"). Especificidade elevada de propósito aqui evita
   depender de ordem de arquivo. */
body.tenant-body .app-content .tenant-focus-metrics .metric {
  grid-template-columns: minmax(0,1fr) !important;
}
body.tenant-body .app-content .tenant-focus-metrics .metric span,
body.tenant-body .app-content .tenant-focus-metrics .metric strong,
body.tenant-body .app-content .tenant-focus-metrics .metric small {
  grid-column: 1 !important;
  width: auto !important;
  max-width: none !important;
  white-space: normal !important;
}

#toast-container { position: fixed; right: 24px; bottom: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; max-width: 400px; pointer-events: none; }
.toast { padding: 14px 18px; color: #fff; background: #10202e; border: 1px solid #294052; border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.24); opacity: 0; transform: translateY(16px); pointer-events: auto; }
.toast-show { opacity: 1; transform: translateY(0); }
.toast-success { border-left: 4px solid var(--ct-primary); }
.toast-error { border-left: 4px solid var(--ct-danger); }
.toast-warning { border-left: 4px solid #f59e0b; }
.confirm-modal { position: fixed; inset: 0; z-index: 99998; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.confirm-modal-show { opacity: 1; pointer-events: auto; }
.confirm-modal-backdrop { position: absolute; inset: 0; background: rgba(4,27,45,.58); }
.confirm-modal-content { position: relative; width: min(420px, calc(100% - 32px)); padding: 26px; color: var(--ct-text); background: var(--ct-card); border: 1px solid var(--ct-border); border-radius: 16px; box-shadow: var(--ct-shadow); }
.confirm-modal-message { color: var(--ct-text); }
.confirm-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.payments-modal-content { width: min(760px, calc(100% - 32px)); padding: 0; overflow: hidden; }
.payments-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid var(--ct-border); }
.payments-modal-head h3 { margin: 4px 0 0; color: var(--ct-text); font-size: 18px; }
.payments-modal-close { border: 0; background: none; color: var(--ct-muted); font-size: 26px; line-height: 1; cursor: pointer; }
.payments-modal-close:hover { color: var(--ct-text); }
.payments-modal-totals { display: flex; gap: 18px; padding: 16px 26px; border-bottom: 1px solid var(--ct-border); }
.payments-modal-totals > div { display: flex; flex-direction: column; gap: 2px; }
.payments-modal-totals span { color: var(--ct-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.payments-modal-totals strong { color: var(--ct-primary); font-size: 20px; }
.payments-modal-scroll { max-height: min(52vh, 440px); overflow-y: auto; padding: 10px 26px 22px; }
.payments-table th, .payments-table td { color: var(--ct-text); }
.payments-table small { display: block; color: var(--ct-muted); }
.automation-modal-content { width: min(640px, calc(100% - 32px)); padding: 0; overflow: hidden; }
.automation-modal-content form { padding: 18px 26px 24px; }
.automation-modal-content .form-grid { margin-bottom: 14px; }
.automation-modal-content label { color: var(--ct-text); font-size: 13px; font-weight: 700; }
.automation-modal-content input,
.automation-modal-content select,
.automation-modal-content textarea { color: var(--ct-text); background: var(--ct-card); border-color: var(--ct-border); font-size: 16px; }
/* .automation-modal-content label / .client-modal-content label (abaixo) definem font-size:
   13px - sem essa regra, o <input> dentro do <label> herdava esse 13px (nenhuma regra achava
   o elemento diretamente pra vencer a herança) e no iOS Safari, qualquer campo focado com
   menos de 16px de fonte dispara o zoom automático da página. */
/* max-height em duas declarações (não aninhado em min()) de propósito: se algum navegador
   não entender "dvh", a linha inteira é ignorada e a de 100vh acima continua valendo -
   min()/calc() com uma unidade desconhecida invalida o valor INTEIRO, não só aquele termo. */
.client-modal-content { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 0; }
.client-modal-content .payments-modal-head { border-bottom: 0; padding-bottom: 4px; }
.client-modal-content .payments-modal-head p { margin: 6px 0 0; color: var(--ct-muted); font-size: 13px; line-height: 1.5; }
.client-modal-content form { padding: 6px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
/* Coluna única no modal - o par País/DDI + WhatsApp continua lado a lado (grid próprio de
   .phone-combo), mas os outros campos (Nome, Email, Documento...) ficam empilhados em vez de
   2 colunas: com uns tendo texto de ajuda embaixo e outros não, a grade de 2 colunas ficava
   desalinhada visualmente. */
.client-modal-content .form-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 0; }
.client-modal-content .form-grid > label,
.client-modal-content .form-grid > div { margin: 0; }
.client-modal-content label { display: flex; flex-direction: column; gap: 6px; color: var(--ct-text); font-size: 13px; font-weight: 700; }
.client-modal-content label small { font-weight: 500; }
.client-modal-content input,
.client-modal-content select,
.client-modal-content textarea { color: var(--ct-text); background: var(--ct-card); border-color: var(--ct-border); font-weight: 500; font-size: 16px; }
.client-modal-content .form-grid .phone-combo { display: grid; grid-template-columns: minmax(150px,.42fr) minmax(0,1fr); gap: 12px; align-items: start; }
.client-modal-content .form-grid .phone-combo > label { gap: 6px; }
.client-modal-content form > .btn,
.client-modal-content form > a.btn { align-self: stretch; text-align: center; }
.contract-modal-content { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 0; }
.contract-modal-content .contract-studio-card { margin: 0; border: 0; box-shadow: none; border-radius: 16px; }
.contract-modal-content .contract-modal-head { position: sticky; top: 0; z-index: 2; margin: 0; padding: 24px 26px 18px; background: var(--ct-card); border-bottom: 1px solid var(--ct-border); }
.contract-modal-content .contract-studio-steps { padding: 20px 26px 26px; }
.contract-modal-content .payments-modal-close { flex: 0 0 auto; }
.despacha-result-card { margin-bottom: 18px; }
.despacha-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.despacha-result-grid > div, .despacha-cfg-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--ct-border); border-radius: 16px; background: var(--ct-card); }
.despacha-result-grid span, .despacha-cfg-grid span { color: var(--ct-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.despacha-result-grid strong, .despacha-cfg-grid strong { color: var(--ct-text); font-size: 18px; word-break: break-word; }
.despacha-cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.despacha-access-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.despacha-access-actions form { margin: 0; }
.despacha-access-hint { color: var(--ct-muted); font-size: 13px; font-weight: 600; }
.despacha-mode-fieldset { margin: 4px 0 14px; padding: 14px 16px 6px; border: 1px dashed var(--ct-border); border-radius: 16px; }
.despacha-mode-fieldset legend { padding: 0 8px; color: var(--ct-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.despacha-mode-fieldset label.radio, .despacha-mode-fieldset label.despacha-mode-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 6px; cursor: pointer; }
.despacha-mode-fieldset label.radio + label.radio, .despacha-mode-fieldset label.despacha-mode-option + label.despacha-mode-option { border-top: 1px solid var(--ct-border); }
.despacha-mode-fieldset label.radio input, .despacha-mode-fieldset label.despacha-mode-option input { margin-top: 3px; accent-color: var(--ct-primary, #0a9f7c); }
.despacha-mode-fieldset label.radio span, .despacha-mode-fieldset label.despacha-mode-option span { display: flex; flex-direction: column; gap: 2px; }
.despacha-mode-fieldset label.radio strong, .despacha-mode-fieldset label.despacha-mode-option b { color: var(--ct-text); font-size: 14px; }
.despacha-mode-fieldset label.radio small, .despacha-mode-fieldset label.despacha-mode-option small { color: var(--ct-muted); font-size: 12px; line-height: 1.45; }
.despacha-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.despacha-actions form { margin: 0; }
.despacha-how-list { margin: 0; padding: 0 0 0 18px; color: var(--ct-muted); font-size: 13.5px; line-height: 1.7; }
.despacha-how-list li + li { margin-top: 6px; }
.despacha-how-list b { color: var(--ct-text); }
.despacha-test-result { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--ct-border); background: rgba(255,255,255,.03); color: var(--ct-text); }
.despacha-test-result.success { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.1); color: #15803d; }
.despacha-test-result.error { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.1); color: #dc2626; }
.despacha-config-form .form-actions { display: flex; gap: 10px; margin-top: 6px; }
.btn.success { background: rgba(34,197,94,.12); color: #15803d; border: 1px solid rgba(34,197,94,.25); }
.btn.success:hover { background: rgba(34,197,94,.2); }
label.danger-check { color: var(--ct-muted); }
.sidebar-theme-toggle { display: none; }

@media (max-width: 900px) {
  .lp-nav-panel { color: #eef6f7; background: #062b31; border-color: rgba(102,222,190,.18); box-shadow: 0 20px 46px rgba(4,27,45,.22); }
  .lp-menu-toggle span { background: #ffffff; }
  .lp-hero { padding: 78px 0 58px; }
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-dashboard-wrap { margin-top: 18px; }
  .login-side { flex-basis: 36%; padding: 42px 30px; }
  .login-side h1 { font-size: 38px; }
}

@media (max-width: 720px) {
  .lp-shell { width: min(100% - 28px, 1180px); }
  .lp-hero-copy h1 { font-size: clamp(42px, 13vw, 58px); }
  .lp-hero-copy p { font-size: 16px; }
  .lp-hero-actions { align-items: stretch; }
  .lp-btn-large { width: 100%; justify-content: center; }
  .lp-dashboard { border-radius: 14px; }
  .lp-floating-card { display: none; }
  .lp-trust-strip .lp-shell, .lp-section-intro-split { grid-template-columns: 1fr; }
  .lp-trust-items { overflow-x: auto; scrollbar-width: none; }
  .lp-product-row, .lp-product-row-reverse { grid-template-columns: 1fr; }
  .lp-product-index { display: none; }
  .lp-comparison-grid { grid-template-columns: 1fr; }
  .lp-integration-card { padding: 28px 20px; }
  .lp-orbit { transform: scale(.86); }
  .lp-signup { grid-template-columns: 1fr; }
  .auth-topbar nav { display: none; }
  .login-premium { display: block; }
  .login-side { display: none; }
  .login-form-wrap { min-height: calc(100vh - 68px); padding: 24px 16px; }
  .login-top-link { margin: 0 auto 18px; text-align: center; }
  .login-panel { padding: 28px 20px; border-radius: 16px; }
  .login-panel.auth-panel-2fa h2 { font-size: 28px; letter-spacing: -.035em; }
  .auth-code-summary { grid-template-columns: 1fr; }
  .ds-otp-container { gap: 7px; }
  .ds-otp-input { min-width: 0; height: 54px; }
  .legal-tools { align-items: stretch; flex-direction: column; }
  .legal-print { width: 100%; }
  .app-topbar { min-height: 76px; padding: 14px 18px; }
  .app-topbar > div:not(.topbar-actions) { display: none; }
  .app-content, .tenant-body .app-content, .master-body .app-content, .onboarding-body .app-content { padding: 16px 14px calc(92px + env(safe-area-inset-bottom)) !important; }
  .app-footer { padding-bottom: 82px; }
  .tenant-body .tenant-focus-metrics .metric { display: grid !important; grid-template-columns: 1fr !important; align-content: center !important; align-items: start !important; gap: 4px !important; }
  .tenant-body .tenant-focus-metrics .metric > span,
  .tenant-body .tenant-focus-metrics .metric > strong,
  .tenant-body .tenant-focus-metrics .metric > small { width: 100% !important; min-width: 0 !important; grid-column: 1 !important; overflow-wrap: normal !important; word-break: normal !important; }
  .support-widget-button { bottom: 86px; }
  .support-widget-panel { bottom: 84px; max-height: calc(100vh - 110px); }
  .tenant-context-banner { align-items: stretch; flex-direction: column; }
  .tenant-context-banner button { width: 100%; }
  .sidebar-theme-toggle { display: flex !important; align-items: center; gap: 10px; width: calc(100% - 28px); margin: 12px 14px; padding: 12px 14px; color: #e8f0f5; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; }
  .sidebar-theme-toggle b { font-size: 13px; }
  #toast-container { right: 14px; bottom: 90px; left: 14px; }
}

@media (max-width: 900px) {
  .app-main, .tenant-body .app-main, .master-body .app-main, .onboarding-body .app-main { padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .app-content, .tenant-body .app-content, .master-body .app-content, .onboarding-body .app-content { padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .tenant-body .tenant-focus-metrics .metric { display: grid !important; grid-template-columns: 1fr !important; align-content: center !important; align-items: start !important; gap: 4px !important; }
  .tenant-body .tenant-focus-metrics .metric > span,
  .tenant-body .tenant-focus-metrics .metric > strong,
  .tenant-body .tenant-focus-metrics .metric > small { width: 100% !important; min-width: 0 !important; grid-column: 1 !important; overflow-wrap: normal !important; word-break: normal !important; }
}

@media (min-width: 561px) and (max-width: 900px) {
  .tenant-body .tenant-focus-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 560px) {
  .tenant-body .tenant-focus-metrics { grid-template-columns: 1fr !important; }
}

/* Fintech refinement â€” public presentation, authentication and onboarding */
html[data-force-theme="light"] {
  --ct-bg: #f4f7fa;
  --ct-card: #ffffff;
  --ct-text: #0b1f33;
  --ct-muted: #5b6b7d;
  --ct-border: #d9e2ea;
  color-scheme: light !important;
}

/* Landing hero: product proof with dashboard + WhatsApp payment flow. */
.lp-hero {
  min-height: 670px;
  padding: 82px 0 68px;
  background:
    radial-gradient(circle at 88% 24%, rgba(0, 168, 120, .10), transparent 27%),
    linear-gradient(115deg, #ffffff 0%, #f7fafb 58%, #eef7f4 100%);
}
.lp-hero-grid { grid-template-columns: minmax(430px, .88fr) minmax(570px, 1.12fr); gap: clamp(34px, 4vw, 64px); }
.lp-hero-copy h1 { max-width: 650px; font-size: clamp(50px, 4.55vw, 67px); line-height: .97; letter-spacing: -.06em; }
.lp-hero-copy p { max-width: 600px; font-size: 17px; line-height: 1.65; }
.lp-dashboard-wrap { min-height: 510px; place-items: initial; isolation: isolate; }
.lp-dashboard-wrap .lp-dashboard {
  position: absolute;
  z-index: 1;
  top: 82px;
  left: 0;
  width: min(550px, calc(100% - 72px));
  min-height: 356px;
  transform: none;
}
.lp-dashboard-wrap .lp-dashboard-body { min-height: 303px; }
.lp-dashboard-wrap .lp-dashboard-main { padding: 24px 22px 20px; }
.lp-phone-demo { position: absolute; z-index: 3; top: 4px; right: 0; width: 214px; filter: drop-shadow(0 26px 34px rgba(11, 31, 51, .24)); }
.lp-phone-frame { position: relative; overflow: hidden; min-height: 438px; padding: 10px 9px 16px; color: #0b1f33; background: #f8fafc; border: 7px solid #0b1f33; border-radius: 34px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.lp-phone-frame::before { content: ""; position: absolute; z-index: 5; top: 7px; left: 50%; width: 62px; height: 17px; border-radius: 0 0 12px 12px; background: #0b1f33; transform: translateX(-50%); }
.lp-phone-status { height: 24px; padding: 0 7px; display: flex; align-items: center; gap: 4px; color: #33475b; font-size: 8px; font-weight: 800; }
.lp-phone-status span { margin-right: auto; }
.lp-phone-status i { width: 4px; height: 4px; border-radius: 50%; background: #0b1f33; }
.lp-phone-status b { font-size: 8px; }
.lp-phone-chat-head { height: 50px; margin: 0 -2px; padding: 0 9px; display: grid; grid-template-columns: 30px 1fr 7px; gap: 7px; align-items: center; color: #fff; background: #087b67; border-radius: 13px 13px 0 0; }
.lp-phone-brand { width: 28px; height: 28px; display: grid; place-items: center; background: #fff; border-radius: 50%; }
.lp-phone-brand img { width: 22px; height: 22px; object-fit: contain; }
.lp-phone-chat-head div { min-width: 0; display: grid; gap: 2px; }
.lp-phone-chat-head b { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.lp-phone-chat-head small { color: #c9eee5; font-size: 6px; }
.lp-phone-online { width: 6px; height: 6px; border-radius: 50%; background: #8bf1cf; box-shadow: 0 0 0 3px rgba(139,241,207,.18); }
.lp-phone-chat { position: relative; min-height: 312px; padding: 13px 9px 10px; overflow: hidden; background: linear-gradient(rgba(240,245,244,.93), rgba(240,245,244,.93)), radial-gradient(circle at 20% 20%, #d5e6e0 1px, transparent 1px); background-size: auto, 12px 12px; }
.lp-phone-day { display: table; margin: 0 auto 10px; padding: 3px 7px; color: #607284; background: rgba(255,255,255,.9); border-radius: 999px; font-size: 6px; font-weight: 750; }
.lp-phone-message { width: 94%; margin: 0 0 0 auto; padding: 10px; color: #24384a; background: #fff; border: 1px solid #d7e2e7; border-radius: 12px 3px 12px 12px; box-shadow: 0 8px 18px rgba(11,31,51,.08); animation: ct-message-drop 7s cubic-bezier(.2,.8,.2,1) infinite; transform-origin: top right; }
.lp-phone-message p { margin: 0 0 8px; font-size: 7px; line-height: 1.45; }
.lp-phone-charge { padding: 9px; display: grid; gap: 4px; background: #f5faf8; border: 1px solid #d5e8e1; border-radius: 9px; }
.lp-phone-charge small, .lp-phone-charge span { color: #6a7b8b; font-size: 6px; }
.lp-phone-charge strong { color: #0b1f33; font-size: 13px; letter-spacing: -.03em; }
.lp-phone-charge button { min-height: 26px; margin-top: 4px; color: #fff; background: #00a878; border: 0; border-radius: 7px; font-size: 7px; font-weight: 850; }
.lp-phone-message time { display: block; margin-top: 4px; color: #698093; font-size: 6px; text-align: right; }
.lp-phone-payment-state { position: absolute; right: 8px; bottom: 14px; left: 8px; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; padding: 9px; color: #0b5749; background: #eaf8f2; border: 1px solid #bde5d6; border-radius: 10px; opacity: 0; transform: translateY(18px); animation: ct-payment-confirm 7s ease infinite; }
.lp-phone-payment-state > span { width: 26px; height: 26px; display: grid; place-items: center; color: #fff; background: #00a878; border-radius: 50%; font-size: 12px; font-weight: 900; }
.lp-phone-payment-state div { display: grid; gap: 2px; }
.lp-phone-payment-state small { color: #4d746c; font-size: 6px; }
.lp-phone-payment-state b { font-size: 8px; }
.lp-phone-composer { height: 34px; padding: 0 8px 0 11px; display: flex; align-items: center; color: #8b99a6; background: #fff; border-top: 1px solid #dfe7ec; font-size: 7px; }
.lp-phone-composer span { flex: 1; padding: 7px 9px; background: #f2f5f7; border-radius: 999px; }
.lp-phone-composer i { width: 24px; height: 24px; margin-left: 6px; display: grid; place-items: center; color: #fff; background: #00a878; border-radius: 50%; font-size: 14px; font-style: normal; }
.lp-phone-home { position: absolute; bottom: 6px; left: 50%; width: 66px; height: 3px; border-radius: 999px; background: #0b1f33; transform: translateX(-50%); }
.lp-dashboard-wrap .lp-floating-payment { z-index: 4; top: 52px; right: 112px; }
.lp-dashboard-wrap .lp-floating-message { z-index: 4; bottom: 18px; left: 42px; }

@keyframes ct-message-drop {
  0%, 8% { opacity: 0; transform: translateY(-34px) scale(.96); }
  15%, 76% { opacity: 1; transform: translateY(0) scale(1); }
  86%, 100% { opacity: .28; transform: translateY(0) scale(1); }
}
@keyframes ct-payment-confirm {
  0%, 48% { opacity: 0; transform: translateY(18px); }
  57%, 82% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(8px); }
}

/* Public authentication: fixed light theme, compact proof and resilient autofill. */
html[data-force-theme="light"] body.auth-screen { color: #0b1f33 !important; background: #f4f7fa !important; }
body.auth-screen .auth-topbar { position: relative !important; inset: auto !important; height: 68px !important; min-height: 68px !important; padding: 0 clamp(20px, 4vw, 54px) !important; background: #062b31 !important; border-bottom: 1px solid rgba(102,222,190,.18) !important; box-shadow: 0 10px 28px rgba(4,27,45,.10) !important; }
body.auth-screen .auth-topbar .brand span, body.auth-screen .auth-topbar a { color: #eef6f7 !important; -webkit-text-fill-color: #eef6f7 !important; }
body.auth-screen .auth-topbar nav a { color: #c2d5da !important; }
body.auth-screen .login-premium { min-height: calc(100vh - 68px) !important; padding-top: 0 !important; display: grid !important; grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr) !important; background: #f4f7fa !important; }
body.auth-screen .login-side { position: relative; min-width: 0; padding: clamp(48px, 5vw, 78px) clamp(38px, 5vw, 74px) !important; justify-content: center; color: #fff !important; background: radial-gradient(circle at 12% 90%, rgba(0,168,120,.18), transparent 34%), linear-gradient(145deg, #061a2b, #0a3045) !important; }
body.auth-screen .login-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); }
body.auth-screen .login-side > * { position: relative; z-index: 1; }
body.auth-screen .login-side-eyebrow { margin-bottom: 14px; color: #78e2c4; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
body.auth-screen .login-side h1 { max-width: 580px; margin: 0 0 20px; color: #fff; font-size: clamp(38px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.052em; }
body.auth-screen .login-side h1 span { display: block; color: #62d9b7; }
body.auth-screen .login-side > p { max-width: 560px; margin: 0; color: #c8d7e0; font-size: 16px; line-height: 1.65; }
.login-proof-card { width: min(100%, 550px); margin-top: 32px; padding: 20px; color: #dfeaf0; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; box-shadow: 0 18px 46px rgba(0,0,0,.12); backdrop-filter: blur(8px); }
.login-proof-head, .login-proof-status { display: flex; align-items: center; gap: 10px; }
.login-proof-head { justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.10); }
.login-proof-head span { font-size: 12px; font-weight: 750; }
.login-proof-head b { color: #7ce2c5; font-size: 10px; font-weight: 700; }
.login-proof-metrics { padding: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.login-proof-metrics > div { display: grid; gap: 5px; }
.login-proof-metrics small { color: #9db0be; font-size: 9px; }
.login-proof-metrics strong { color: #fff; font-size: 20px; letter-spacing: -.035em; }
.login-proof-metrics em { color: #72dfbf; font-size: 9px; font-style: normal; font-weight: 750; }
.login-proof-status { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.10); }
.login-proof-status > i { width: 9px; height: 9px; border-radius: 50%; background: #42d0a6; box-shadow: 0 0 0 5px rgba(66,208,166,.12); }
.login-proof-status > span { flex: 1; display: grid; gap: 2px; }
.login-proof-status b { color: #fff; font-size: 11px; }
.login-proof-status small { color: #9db0be; font-size: 9px; }
.login-proof-status > strong { color: #72dfbf; font-size: 10px; }
.login-trust-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.login-trust-row span { padding: 7px 9px; color: #b9c9d3; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10); border-radius: 999px; font-size: 9px; font-weight: 700; }
.login-security-card { width: min(100%, 550px); margin-top: 32px; padding: 18px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; color: #fff; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; }
.login-security-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #062d27; background: #6ce0be; border-radius: 12px; font-weight: 900; }
.login-security-card b { font-size: 13px; }
.login-security-card p { margin: 4px 0 0; color: #b9cbd6; font-size: 11px; line-height: 1.5; }
body.auth-screen .login-form-wrap { min-width: 0; padding: 76px clamp(28px, 6vw, 86px) 54px !important; display: grid !important; align-content: center !important; justify-items: center !important; background: linear-gradient(135deg, #f4f7fa, #fbfcfd 58%, #f0f8f5) !important; }
body.auth-screen .login-top-link { top: 24px !important; right: clamp(28px, 5vw, 64px) !important; color: #526273 !important; }
body.auth-screen .login-panel { width: min(100%, 450px) !important; padding: 34px !important; color: #0b1f33 !important; background: #fff !important; border: 1px solid #d9e2ea !important; border-radius: 16px !important; box-shadow: 0 18px 48px rgba(11,31,51,.09) !important; }
body.auth-screen .login-panel.auth-panel-2fa { width: min(100%, 500px) !important; }
.login-panel-eyebrow { display: block; margin-bottom: 8px; color: #087b5f; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
body.auth-screen .login-panel h2 { margin: 0 0 7px; color: #0b1f33 !important; font-size: clamp(30px, 3vw, 38px); line-height: 1.05; letter-spacing: -.045em; -webkit-text-fill-color: #0b1f33 !important; }
body.auth-screen .login-panel > p { margin: 0 0 22px; color: #657587 !important; -webkit-text-fill-color: #657587 !important; }
body.auth-screen .login-panel .form-stack { gap: 16px; }
body.auth-screen .login-panel label { color: #34495e !important; font-size: 12px; font-weight: 750; }
body.auth-screen .login-panel input:not([type="checkbox"]):not(.ds-otp-input) { height: 50px !important; padding: 0 14px !important; color: #0b1f33 !important; background: #fff !important; border: 1px solid #cfd9e2 !important; border-radius: 10px !important; -webkit-text-fill-color: #0b1f33 !important; caret-color: #0b1f33 !important; }
body.auth-screen .login-panel .password-field input { padding-right: 92px !important; }
body.auth-screen .login-panel input::placeholder { color: #8998a7 !important; -webkit-text-fill-color: #8998a7 !important; }
body.auth-screen .login-panel input:not([type="checkbox"]):focus { background: #fff !important; border-color: #00a878 !important; box-shadow: 0 0 0 4px rgba(0,168,120,.11) !important; }
body.auth-screen .login-panel input:-webkit-autofill,
body.auth-screen .login-panel input:-webkit-autofill:hover,
body.auth-screen .login-panel input:-webkit-autofill:focus,
body.auth-screen .login-panel input[data-autocompleted] {
  color: #0b1f33 !important;
  -webkit-text-fill-color: #0b1f33 !important;
  caret-color: #0b1f33 !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  background-color: #ffffff !important;
  border-color: #b9c8d4 !important;
}
body.auth-screen .login-panel .password-toggle { right: 7px !important; min-height: 36px !important; padding: 0 12px !important; color: #087b5f !important; background: #edf8f4 !important; border: 1px solid #c6e6db !important; border-radius: 9px !important; }
body.auth-screen .login-panel .check { gap: 9px; color: #526273 !important; }
body.auth-screen .login-panel .btn.primary { width: 100% !important; min-height: 48px !important; border-radius: 10px !important; box-shadow: 0 8px 20px rgba(0,168,120,.16) !important; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #8b98a8; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8ee; }
.google-btn, a.google-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; color: #0b1f33 !important; font-weight: 700; font-size: 14px; text-decoration: none; background: #fff !important; border: 1px solid #d9e2ea !important; border-radius: 10px; box-shadow: none !important; }
.google-btn:hover, a.google-btn:hover { background: #f7f9fb !important; border-color: #c7d2dc !important; transform: translateY(-1px); }
body.auth-screen .safe-note { margin-top: 20px; padding: 13px 14px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; color: #0b5749 !important; background: #edf8f4 !important; border: 1px solid #d1ebe2; border-radius: 11px; text-align: left; }
body.auth-screen .safe-note > span { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: #00a878; border-radius: 50%; }
body.auth-screen .safe-note div { display: grid; gap: 2px; }
body.auth-screen .safe-note b { font-size: 11px; }
body.auth-screen .safe-note small { color: #5d756f; font-size: 9px; font-weight: 600; }
body.auth-screen .auth-code-summary { margin-bottom: 16px; gap: 10px; }
body.auth-screen .auth-code-summary > div { min-width: 0; padding: 13px 14px; background: #f7f9fb !important; border: 1px solid #d9e2ea !important; border-radius: 11px; }
body.auth-screen .auth-code-summary strong { display: block; overflow-wrap: anywhere; color: #0b1f33 !important; font-size: 12px; line-height: 1.35; -webkit-text-fill-color: #0b1f33 !important; }
body.auth-screen .auth-otp-wrapper { width: 100% !important; display: grid !important; gap: 9px !important; justify-content: stretch !important; }
body.auth-screen .auth-otp-label { color: #405469 !important; font-size: 11px; font-weight: 750; }
body.auth-screen .auth-panel-2fa .auth-otp-container.ds-otp-container { width: 100% !important; max-width: none !important; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px !important; flex-wrap: nowrap !important; }
body.auth-screen .auth-panel-2fa .auth-otp-container .ds-otp-input { width: 100% !important; min-width: 0 !important; max-width: none !important; height: 54px !important; flex: initial !important; padding: 0 !important; color: #0b1f33 !important; background: #fff !important; border: 1px solid #cfd9e2 !important; border-radius: 10px !important; font-size: 21px !important; -webkit-text-fill-color: #0b1f33 !important; }
body.auth-screen .auth-panel-2fa .auth-otp-container .ds-otp-input:focus { border-color: #00a878 !important; box-shadow: 0 0 0 4px rgba(0,168,120,.11) !important; transform: none !important; }
body.auth-screen .auth-secondary-actions { gap: 10px; }
body.auth-screen .auth-secondary-actions .btn { min-height: 44px !important; color: #405469 !important; background: #fff !important; border: 1px solid #d9e2ea !important; border-radius: 10px !important; }

/* Legal pages are always light and readable, independent of the saved panel theme. */
html[data-force-theme="light"] .legal-page { color: #0b1f33 !important; background: #f4f7fa !important; }
html[data-force-theme="light"] .legal-hero { padding: 42px 0 66px !important; color: #ffffff !important; background: radial-gradient(circle at 82% 10%, rgba(0,168,120,.24), transparent 31%), linear-gradient(135deg, #041b2d, #073b46) !important; }
html[data-force-theme="light"] .legal-hero a,
html[data-force-theme="light"] .legal-hero h1 { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html[data-force-theme="light"] .legal-hero h1 { font-size: clamp(34px, 4vw, 48px) !important; line-height: 1.04 !important; }
html[data-force-theme="light"] .legal-hero p { max-width: 820px; color: #c2d6dc !important; -webkit-text-fill-color: #c2d6dc !important; }
html[data-force-theme="light"] .legal-card { padding: 32px !important; color: #0b1f33 !important; background: #fff !important; border: 1px solid #d9e2ea !important; border-top: 4px solid #00a878 !important; border-radius: 16px !important; }
html[data-force-theme="light"] .legal-card h2,
html[data-force-theme="light"] .legal-card strong { color: #0b1f33 !important; -webkit-text-fill-color: #0b1f33 !important; }
html[data-force-theme="light"] .legal-card p,
html[data-force-theme="light"] .legal-card li { color: #526273 !important; -webkit-text-fill-color: #526273 !important; }
html[data-force-theme="light"] .legal-dpo-box,
html[data-force-theme="light"] .abuse-box { color: #0b1f33 !important; background: #eef8f4 !important; }

/* App shell density and a useful onboarding dashboard above the fold. */
body.tenant-body .app-topbar, body.master-body .app-topbar { min-height: 92px !important; padding: 20px clamp(22px, 3vw, 36px) !important; }
body.tenant-body .app-topbar h1, body.master-body .app-topbar h1 { font-size: clamp(30px, 3vw, 40px) !important; line-height: 1 !important; letter-spacing: -.045em !important; }
body.tenant-body .app-topbar p, body.master-body .app-topbar p { margin-top: 5px !important; font-size: 14px !important; }
html[data-theme="light"] body.tenant-body .app-topbar .eyebrow,
html[data-theme="light"] body.master-body .app-topbar .eyebrow { color: #526273 !important; -webkit-text-fill-color: #526273 !important; }
body.tenant-body .app-content, body.master-body .app-content { padding: 22px clamp(22px, 2.5vw, 34px) 38px !important; }
.app-content .activation-shell-compact { display: grid !important; gap: 16px !important; padding: 0 !important; color: var(--ct-text) !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.app-content .activation-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.app-content .activation-summary-grid article { min-width: 0; min-height: 124px; padding: 18px; display: grid; align-content: center; gap: 7px; color: var(--ct-text); background: var(--ct-card); border: 1px solid var(--ct-border); border-radius: 14px; box-shadow: 0 8px 24px rgba(11,31,51,.055); }
.app-content .activation-summary-grid article span { color: var(--ct-muted); font-size: 11px; font-weight: 750; }
.app-content .activation-summary-grid article strong { overflow-wrap: anywhere; color: var(--ct-text); font-size: clamp(24px, 2.2vw, 32px); line-height: 1; letter-spacing: -.045em; }
.app-content .activation-summary-grid article small { color: var(--ct-muted); font-size: 10px; }
.app-content .activation-summary-grid article.is-warning { border-color: #f2cfaa; background: #fffaf4; }
.app-content .activation-summary-grid article.is-warning strong { color: #a34b00; }
.app-content .activation-focus-card { padding: 24px; display: grid; grid-template-columns: minmax(300px, .78fr) minmax(420px, 1.22fr); gap: 28px; align-items: center; color: var(--ct-text); background: var(--ct-card); border: 1px solid var(--ct-border); border-radius: 16px; box-shadow: 0 10px 30px rgba(11,31,51,.06); }
.app-content .activation-focus-copy h2 { margin: 7px 0 8px; color: var(--ct-text) !important; font-size: clamp(26px, 2.6vw, 36px) !important; line-height: 1.04 !important; letter-spacing: -.045em !important; }
.app-content .activation-focus-copy p { max-width: 570px; margin: 0; color: var(--ct-muted) !important; font-size: 13px; line-height: 1.55; }
.app-content .activation-focus-card .activation-actions { margin-top: 16px !important; gap: 9px !important; }
.app-content .activation-progress-compact { min-width: 0; padding: 18px; background: var(--ct-bg); border: 1px solid var(--ct-border); border-radius: 14px; }
.app-content .activation-progress-compact > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.app-content .activation-progress-compact > div:first-child strong { color: #087b5f; font-size: 24px; letter-spacing: -.04em; }
.app-content .activation-progress-compact > div:first-child span { color: var(--ct-muted); font-size: 11px; font-weight: 700; }
.app-content .activation-shell-compact .activation-progress-line { height: 7px !important; margin-top: 11px; background: #dfe7ec !important; border-radius: 999px !important; box-shadow: none !important; }
.app-content .activation-shell-compact .activation-progress-line span { height: 100% !important; display: block !important; background: linear-gradient(90deg, #008c6a, #26c99a) !important; box-shadow: none !important; }
.app-content .activation-shell-compact .activation-milestones { margin-top: 12px !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 7px !important; }
.app-content .activation-shell-compact .activation-milestone { min-width: 0 !important; min-height: 42px; padding: 7px !important; gap: 6px !important; color: var(--ct-muted) !important; background: var(--ct-card) !important; border: 1px solid var(--ct-border) !important; border-radius: 10px !important; box-shadow: none !important; }
.app-content .activation-shell-compact .activation-milestone i { width: 26px !important; height: 26px !important; flex: 0 0 26px !important; border-radius: 8px !important; font-size: 11px; }
.app-content .activation-shell-compact .activation-milestone span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.app-content .activation-shell-compact .activation-milestone.active { color: #087b5f !important; background: #eef8f4 !important; border-color: #80cdb5 !important; }
.app-content .activation-shell-compact .activation-milestone.active i { color: #fff !important; background: #00a878 !important; }
.app-content .activation-shell-compact .activation-milestone.done { color: #157449 !important; background: #f0faf4 !important; border-color: #b8e1c8 !important; }
.app-content .activation-shell-compact .activation-milestone.done i { color: #fff !important; background: #21a663 !important; }
.app-content .activation-status-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-content .activation-status-strip a { min-width: 0; padding: 14px 15px; display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; color: var(--ct-text); background: var(--ct-card); border: 1px solid var(--ct-border); border-radius: 13px; text-decoration: none; }
.app-content .activation-status-strip i { width: 9px; height: 9px; border-radius: 50%; }
.app-content .activation-status-strip i.ok { background: #20a861; box-shadow: 0 0 0 4px rgba(32,168,97,.11); }
.app-content .activation-status-strip i.pending { background: #d88816; box-shadow: 0 0 0 4px rgba(216,136,22,.11); }
.app-content .activation-status-strip span { min-width: 0; display: grid; gap: 2px; }
.app-content .activation-status-strip b { color: var(--ct-text); font-size: 12px; }
.app-content .activation-status-strip small { overflow: hidden; color: var(--ct-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.app-content .activation-status-strip strong { color: #087b5f; font-size: 10px; }

html[data-theme="dark"] body.tenant-body .activation-summary-grid article,
html[data-theme="dark"] body.tenant-body .activation-focus-card,
html[data-theme="dark"] body.tenant-body .activation-status-strip a { color: #edf4f8 !important; background: #10202e !important; border-color: #223546 !important; box-shadow: 0 10px 28px rgba(0,0,0,.16) !important; }
html[data-theme="dark"] body.tenant-body .activation-summary-grid article.is-warning { background: #271e16 !important; border-color: #5d4226 !important; }
html[data-theme="dark"] body.tenant-body .activation-summary-grid article.is-warning strong { color: #f0b56d !important; }
html[data-theme="dark"] body.tenant-body .activation-summary-grid article strong,
html[data-theme="dark"] body.tenant-body .activation-focus-copy h2,
html[data-theme="dark"] body.tenant-body .activation-status-strip b { color: #edf4f8 !important; -webkit-text-fill-color: #edf4f8 !important; }
html[data-theme="dark"] body.tenant-body .activation-summary-grid article span,
html[data-theme="dark"] body.tenant-body .activation-summary-grid article small,
html[data-theme="dark"] body.tenant-body .activation-focus-copy p,
html[data-theme="dark"] body.tenant-body .activation-status-strip small { color: #a9b8c5 !important; -webkit-text-fill-color: #a9b8c5 !important; }
html[data-theme="dark"] body.tenant-body .activation-progress-compact { color: #edf4f8 !important; background: #0c1a26 !important; border-color: #223546 !important; }
html[data-theme="dark"] body.tenant-body .activation-shell-compact .activation-milestone { color: #a9b8c5 !important; background: #10202e !important; border-color: #223546 !important; }
html[data-theme="dark"] body.tenant-body .activation-shell-compact .activation-milestone.active { color: #6ddcba !important; background: #11302d !important; border-color: #267c68 !important; }
html[data-theme="dark"] body.tenant-body .activation-shell-compact .activation-milestone.done { color: #76dc9d !important; background: #122c24 !important; border-color: #285f43 !important; }
html[data-theme="dark"] body.tenant-body .app-topbar p,
html[data-theme="dark"] body.master-body .app-topbar p { color: #a9b8c5 !important; -webkit-text-fill-color: #a9b8c5 !important; }
html[data-theme="dark"] body.tenant-body .app-topbar .eyebrow,
html[data-theme="dark"] body.master-body .app-topbar .eyebrow,
html[data-theme="dark"] body.tenant-body .activation-focus-copy > span,
html[data-theme="dark"] body.tenant-body .activation-progress-compact > div:first-child strong { color: #69dbb8 !important; -webkit-text-fill-color: #69dbb8 !important; }
html[data-theme="dark"] body.tenant-body .activation-progress-compact > div:first-child span,
html[data-theme="dark"] body.tenant-body .activation-status-strip strong { color: #b8c7d1 !important; -webkit-text-fill-color: #b8c7d1 !important; }
html[data-theme="dark"] body.tenant-body .app-footer,
html[data-theme="dark"] body.tenant-body .app-footer strong,
html[data-theme="dark"] body.tenant-body .app-footer a { color: #8fa3b3 !important; -webkit-text-fill-color: #8fa3b3 !important; }

/* Landing V3: motion, depth, partner identities and video showcase. */
.lp-trust-strip { padding: 20px 0; background: linear-gradient(90deg, #ffffff, #f4faf8 48%, #ffffff); }
.lp-trust-items { justify-content: flex-start; gap: clamp(24px, 5vw, 68px); }
.lp-trust-brand { min-width: 116px; min-height: 38px; justify-content: center; padding: 5px 10px; border: 1px solid transparent; border-radius: 12px; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.lp-trust-brand:hover { background: #fff; border-color: #d5e2e8; box-shadow: 0 10px 28px rgba(11,31,51,.08); transform: translateY(-2px); }
.lp-trust-brand > img { width: 116px; height: 32px; display: block; object-fit: contain; }
.lp-trust-mercado > img { width: 90px; height: 54px; }
.lp-trust-asaas > img { width: 112px; height: 30px; }
.lp-trust-pix > img { width: 122px; height: 34px; }
.lp-trust-whatsapp { color: #0b6858 !important; }

.lp-video-showcase { position: relative; padding: 108px 0; overflow: hidden; color: #fff; background: radial-gradient(circle at 74% 36%, rgba(34,227,182,.18), transparent 25%), radial-gradient(circle at 8% 88%, rgba(0,168,120,.14), transparent 28%), linear-gradient(135deg, #041b2d 0%, #073b46 56%, #062b31 100%); }
.lp-video-showcase::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .36; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to right, #000, transparent 72%); }
.lp-video-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: clamp(56px, 8vw, 110px); align-items: center; }
.lp-video-copy h2 { max-width: 680px; margin: 16px 0 22px; color: #fff; font-size: clamp(43px, 5vw, 66px); line-height: .98; letter-spacing: -.06em; }
.lp-video-copy > p { max-width: 620px; margin: 0; color: #bfd2d8; font-size: 16px; line-height: 1.75; }
.lp-video-steps { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.lp-video-steps span { min-height: 76px; padding: 14px; display: grid; align-content: center; gap: 8px; color: #dce9ec; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; font-size: 11px; font-weight: 750; backdrop-filter: blur(8px); }
.lp-video-steps i { color: #63dfbc; font-size: 9px; font-style: normal; letter-spacing: .12em; }
.lp-video-phone-wrap { position: relative; min-height: 620px; display: grid; place-items: center; isolation: isolate; }
.lp-video-orbit { position: absolute; z-index: -1; border: 1px dashed rgba(99,223,188,.22); border-radius: 50%; animation: ct-video-orbit 24s linear infinite; }
.lp-video-orbit-one { width: 500px; height: 500px; }
.lp-video-orbit-two { width: 390px; height: 390px; animation-direction: reverse; animation-duration: 18s; }
.lp-video-orbit::after { content: ""; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; background: #55ddb7; border-radius: 50%; box-shadow: 0 0 0 8px rgba(85,221,183,.10), 0 0 24px rgba(85,221,183,.55); }
.lp-video-phone { position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 18.5; padding: 13px; overflow: hidden; background: #061522; border: 8px solid #0a1721; border-radius: 48px; box-shadow: 0 35px 90px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.12); transform: rotate(2deg); transition: transform .35s ease, box-shadow .35s ease; }
.lp-video-phone:hover { transform: rotate(0) translateY(-7px); box-shadow: 0 45px 110px rgba(0,0,0,.46), inset 0 0 0 1px rgba(255,255,255,.12); }
.lp-video-speaker { position: absolute; z-index: 3; top: 10px; left: 50%; width: 94px; height: 24px; background: #07111a; border-radius: 0 0 16px 16px; transform: translateX(-50%); }
.lp-video-media { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; overflow: hidden; background: #071b2a; border-radius: 33px; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lp-video-placeholder { position: relative; height: 100%; padding: 52px 20px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 24%, rgba(34,227,182,.20), transparent 30%), linear-gradient(180deg, #0c3541, #071b2a); border-radius: 33px; }
.lp-video-placeholder::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 32px 32px; }
.lp-video-brand { position: absolute; z-index: 1; top: 45px; left: 20px; display: flex; align-items: center; gap: 9px; color: #fff; font-size: 11px; font-weight: 800; }
.lp-video-brand img { width: 28px; height: 28px; object-fit: contain; }
.lp-video-preview-card { position: relative; z-index: 1; width: 100%; margin-bottom: 25px; padding: 20px; display: grid; gap: 7px; color: #dfecee; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 18px 45px rgba(0,0,0,.18); backdrop-filter: blur(12px); animation: ct-preview-float 4s ease-in-out infinite; }
.lp-video-preview-card small, .lp-video-preview-card span { color: #a9c5ca; font-size: 9px; }
.lp-video-preview-card strong { color: #fff; font-size: 28px; letter-spacing: -.045em; }
.lp-video-preview-card span::before { content: ""; width: 7px; height: 7px; margin-right: 6px; display: inline-block; background: #45d1a9; border-radius: 50%; box-shadow: 0 0 0 5px rgba(69,209,169,.12); }
.lp-video-play { position: relative; z-index: 1; width: 74px; height: 74px; display: grid; place-items: center; padding-left: 5px; color: #063027; background: linear-gradient(135deg, #6ce5c3, #28c99d); border: 7px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 14px 36px rgba(34,227,182,.25); animation: ct-video-pulse 2.2s ease-in-out infinite; }
.lp-video-caption { position: absolute; z-index: 1; right: 20px; bottom: 42px; left: 20px; display: grid; gap: 5px; text-align: center; }
.lp-video-caption b { color: #fff; font-size: 12px; }
.lp-video-caption small { color: #9bb8bf; font-size: 9px; }
.lp-video-home { position: absolute; z-index: 3; bottom: 10px; left: 50%; width: 86px; height: 4px; background: rgba(255,255,255,.78); border-radius: 999px; transform: translateX(-50%); }

.lp-product { background: radial-gradient(circle at 12% 22%, rgba(0,168,120,.065), transparent 24%), linear-gradient(180deg, #f4f7fa, #edf5f3 52%, #f4f7fa); }
.lp-product-list { border-top: 0; display: grid; gap: 22px; }
.lp-product-row { padding: 38px 38px 38px 94px; background: rgba(255,255,255,.78); border: 1px solid #d4e0e7; border-radius: 22px; box-shadow: 0 16px 44px rgba(11,31,51,.065); backdrop-filter: blur(10px); }
.lp-product-row:nth-child(2) { background: linear-gradient(135deg, rgba(238,249,245,.96), rgba(255,255,255,.90)); }
.lp-product-row:last-child { border-bottom: 1px solid #d4e0e7; }
.lp-product-index { top: 38px; left: 28px; display: grid; gap: 8px; justify-items: center; }
.lp-product-index b { color: #7890a0; font-size: 9px; font-weight: 750; }
.lp-product-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #087b5f; background: #e5f7f1; border: 1px solid #bee7d9; border-radius: 11px; font-family: Inter, sans-serif; font-size: 17px; font-weight: 850; box-shadow: 0 8px 20px rgba(0,168,120,.10); }
.lp-product-visual { transition: transform .3s ease, box-shadow .3s ease; }
.lp-product-row:hover .lp-product-visual { transform: translateY(-5px) scale(1.012); box-shadow: 0 22px 54px rgba(11,31,51,.12); }
.lp-message-window { animation: ct-preview-float 4.5s ease-in-out infinite; }
.lp-timeline .current { animation: ct-timeline-glow 2.6s ease-in-out infinite; }

.lp-results { background: radial-gradient(circle at 82% 18%, rgba(0,168,120,.08), transparent 28%), #ffffff; }
.lp-comparison { position: relative; overflow: hidden; transition: transform .28s ease, box-shadow .28s ease; }
.lp-comparison:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(11,31,51,.12); }
.lp-comparison::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 230px; height: 230px; border: 1px solid rgba(11,31,51,.055); border-radius: 50%; box-shadow: 0 0 0 35px rgba(11,31,51,.018), 0 0 0 70px rgba(11,31,51,.012); }
.lp-comparison-after::after { border-color: rgba(0,168,120,.11); box-shadow: 0 0 0 35px rgba(0,168,120,.025), 0 0 0 70px rgba(0,168,120,.015); }
.lp-comparison-icon { width: 44px; height: 44px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 14px; font-size: 24px; font-weight: 800; }
.lp-comparison-icon-before { color: #8a98a5; background: #eef2f5; border: 1px solid #d9e2e8; }
.lp-comparison-icon-after { color: #087b5f; background: #dff7ee; border: 1px solid #b5e7d6; box-shadow: 0 10px 26px rgba(0,168,120,.10); }

.lp-integration-card { background: radial-gradient(circle at 78% 46%, rgba(0,168,120,.10), transparent 33%), linear-gradient(135deg, #ffffff, #f4faf8); }
.lp-orbit-ring { animation: ct-orbit-ring 28s linear infinite; }
.lp-orbit-ring-two { animation-direction: reverse; animation-duration: 36s; }
.lp-orbit-node { overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; animation: ct-node-float 5s ease-in-out infinite; }
.lp-orbit-node:nth-of-type(even) { animation-delay: -2.5s; }
.lp-orbit-node small { width: 0; overflow: hidden; opacity: 0; color: #087b5f; font-size: 8px; font-weight: 800; white-space: nowrap; transition: width .25s ease, opacity .25s ease; }
.lp-orbit-node:hover { z-index: 5; border-color: #6bc8aa; box-shadow: 0 16px 36px rgba(0,168,120,.18); transform: translateY(-4px); }
.lp-orbit-node:hover small { width: 58px; opacity: 1; }
.lp-node-logo { display: block; object-fit: contain; }
.lp-node-logo-mercado { width: 70px; height: 46px; }
.lp-node-logo-asaas { width: 82px; height: 24px; }
.lp-node-logo-pix { width: 86px; height: 30px; }
.lp-node-asaas { top: 112px; left: 0; }

.js-reveal [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Legal page must occupy the viewport instead of inheriting the old centered-card grid. */
.legal-page,
html[data-force-theme="light"] .legal-page { min-height: 100vh !important; display: block !important; place-items: initial !important; padding: 0 !important; background: linear-gradient(180deg, #eef4f6, #f7fafb 520px) !important; }
.legal-shell,
html[data-force-theme="light"] .legal-shell { width: min(1120px, calc(100% - 40px)) !important; }
.legal-hero,
html[data-force-theme="light"] .legal-hero { width: 100% !important; padding: 58px 0 94px !important; }
.legal-card,
html[data-force-theme="light"] .legal-card { width: min(1120px, calc(100% - 40px)) !important; margin: -42px auto 72px !important; padding: clamp(32px, 5vw, 58px) !important; border-radius: 24px !important; box-shadow: 0 26px 74px rgba(11,31,51,.13) !important; }
.legal-card > p,
.legal-card > ul,
.legal-card > h2 { max-width: 900px; }
.legal-tools { position: sticky; top: 12px; z-index: 4; margin: -10px -14px 32px; padding: 18px 14px; background: rgba(255,255,255,.92); border: 1px solid #e1e8ed; border-radius: 14px; box-shadow: 0 10px 28px rgba(11,31,51,.06); backdrop-filter: blur(14px); }
.legal-dpo-box { padding: 24px !important; background: linear-gradient(135deg, #e9f8f3, #f5fbf9) !important; border-left: 4px solid #00a878 !important; }

@keyframes ct-video-orbit { to { transform: rotate(360deg); } }
@keyframes ct-preview-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ct-video-pulse { 0%,100% { transform: scale(1); box-shadow: 0 14px 36px rgba(34,227,182,.25); } 50% { transform: scale(1.06); box-shadow: 0 16px 46px rgba(34,227,182,.38); } }
@keyframes ct-timeline-glow { 0%,100% { box-shadow: inset 3px 0 0 rgba(0,168,120,.18); } 50% { box-shadow: inset 3px 0 0 #00a878, 0 0 26px rgba(0,168,120,.10); } }
@keyframes ct-orbit-ring { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ct-node-float { 0%,100% { margin-top: 0; } 50% { margin-top: -7px; } }

@media (max-width: 900px) {
  .lp-video-grid { grid-template-columns: 1fr; }
  .lp-video-copy { max-width: 700px; }
  .lp-video-phone-wrap { min-height: 580px; }
  .lp-product-row, .lp-product-row-reverse { padding: 30px 24px 30px 76px; }
  .lp-node-asaas { left: 10px; }
  .legal-tools { position: static; margin-inline: 0; }
}

@media (max-width: 620px) {
  .lp-trust-strip .lp-shell { align-items: flex-start; flex-direction: column; gap: 14px; }
  .lp-trust-items { width: 100%; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x proximity; }
  .lp-trust-brand { min-width: 126px; scroll-snap-align: start; }
  .lp-video-showcase { padding: 76px 0; }
  .lp-video-copy h2 { font-size: clamp(39px, 12vw, 52px); }
  .lp-video-steps { grid-template-columns: 1fr; }
  .lp-video-steps span { min-height: 60px; }
  .lp-video-phone-wrap { min-height: 540px; }
  .lp-video-orbit-one { width: 410px; height: 410px; }
  .lp-video-orbit-two { width: 320px; height: 320px; }
  .lp-video-phone { width: min(290px, 86vw); }
  .lp-product-row, .lp-product-row-reverse { padding: 76px 18px 24px; }
  .lp-product-index { top: 20px; left: 20px; grid-auto-flow: column; align-items: center; }
  .legal-shell, html[data-force-theme="light"] .legal-shell,
  .legal-card, html[data-force-theme="light"] .legal-card { width: min(100% - 24px, 1120px) !important; }
  .legal-card, html[data-force-theme="light"] .legal-card { margin-top: -26px !important; padding: 24px 18px !important; border-radius: 18px !important; }
}

/* Landing: readable automation timeline and verified social-proof area. */
.lp-timeline-visual {
  background:
    radial-gradient(circle at 76% 26%, rgba(0, 168, 120, .10), transparent 34%),
    linear-gradient(145deg, #ffffff, #f2f8f6) !important;
  border-color: #cbded7 !important;
}

.lp-timeline {
  padding: 20px 24px 20px 18px;
  border: 1px solid #c7ddd5 !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 18px 44px rgba(11, 31, 51, .09);
}

.lp-timeline span {
  border-left-color: #b8d8ce !important;
}

.lp-timeline b {
  color: #102a32 !important;
  font-size: 12px;
  font-weight: 850;
}

.lp-timeline small {
  color: #58717b !important;
  font-size: 10px;
  font-weight: 650;
}

.lp-timeline i {
  color: #087b5f !important;
  background: #e4f7f0 !important;
  border-color: #9fd9c6 !important;
  box-shadow: 0 0 0 5px #fff, 0 8px 18px rgba(0, 168, 120, .13);
}

.lp-timeline .current {
  border-left-color: #00a878 !important;
  background: linear-gradient(90deg, rgba(0, 168, 120, .14), rgba(0, 168, 120, .025)) !important;
}

.lp-social-proof {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 168, 120, .085), transparent 28%),
    linear-gradient(180deg, #f3f7f8, #ffffff);
}

.lp-social-proof::before {
  content: "";
  position: absolute;
  top: 110px;
  right: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(0, 168, 120, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(0, 168, 120, .025), 0 0 0 96px rgba(0, 168, 120, .015);
}

.lp-testimonials {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lp-testimonial-card {
  min-height: 306px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d5e2e7;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(11, 31, 51, .07);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.lp-testimonial-card:hover {
  transform: translateY(-5px);
  border-color: #9ed8c5;
  box-shadow: 0 24px 58px rgba(11, 31, 51, .11);
}
.lp-case-card:focus-visible {
  outline: 2px solid #0D7A67;
  outline-offset: 2px;
}

.lp-testimonial-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-testimonial-rating span {
  color: #00a878;
  font-size: 13px;
  letter-spacing: .14em;
}

.lp-testimonial-rating small {
  padding: 6px 9px;
  color: #547078;
  background: #edf5f3;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lp-testimonial-card blockquote {
  margin: 36px 0 32px;
  color: #17313a;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.lp-testimonial-card footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-testimonial-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #e9fff8;
  background: linear-gradient(145deg, #0d765f, #00a878);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.lp-testimonial-card footer div {
  display: grid;
  gap: 3px;
}

/* Cartões de "Cenário de uso" (ilustrativos, sem depoimento real) - markup mais
   simples que o de depoimento real (sem blockquote/footer), reaproveita
   .lp-testimonial-avatar como base. */
.lp-testimonial-avatar-icon {
  margin-bottom: 18px;
  font-size: 18px;
}

.lp-testimonial-scenario-label {
  display: block;
  margin-bottom: 10px;
  color: #087b5f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lp-testimonial-card > p {
  margin: 0;
  color: #33475b;
  font-size: 15px;
  line-height: 1.6;
}

/* Portado de app.css (568KB - a única coisa dessa folha realmente usada nas
   páginas públicas). Sem escopo de .lp-body de propósito: usado também em
   signup_verify.php e payment.php (pagamento do cliente final), que não
   carregam landing.css/não têm classe .lp-body. Permite remover o <link> de
   app.css de vez das páginas públicas. Ver Fase 7 do plano. */
.alert {
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 16px;
  background: rgba(22, 163, 74, .12);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, .22);
  font-weight: 700;
}
.alert.error {
  background: rgba(239, 68, 68, .12);
  color: #991b1b;
  border-color: rgba(239, 68, 68, .22);
}
.alert.warn,
.alert.warning {
  background: rgba(245, 158, 11, .12);
  color: #92400e;
  border-color: rgba(245, 158, 11, .24);
}

/* Página pública de pagamento (/pay/{token}) e "cobrança não encontrada" (app/Views/public/payment.php e
   payment_not_found.php). .payment-page/.payment-card só existiam no app.css interno removido das páginas
   públicas (ver comentário acima, "Fase 7 do plano") - nada portou essas classes pra cá, então a página
   renderizava sem cartão, sem marca e com o botão sem aparência de botão (só cor de fundo, sem padding/raio
   /borda: .btn aqui só tem .btn.primary com cor, o formato vem do app.css que também não chega nestas
   páginas). Escopado em .payment-page pra não vazar pra app.php/store.php/auth.php, que também carregam
   este arquivo. Usa as variáveis --ct-* já redefinidas em [data-theme='dark'] no topo do arquivo, então
   segue o tema automaticamente sem bloco escuro separado. */
.payment-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: radial-gradient(circle at 15% -10%, rgba(0, 168, 120, .14), transparent 32%), var(--ct-bg);
}
.payment-card {
  width: min(480px, 100%);
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 24px;
  padding: clamp(24px, 6vw, 36px);
  box-shadow: 0 24px 60px rgba(11, 31, 51, .12);
}
.payment-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 15px;
  color: var(--ct-text);
  margin-bottom: 20px;
}
.payment-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.payment-card .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 168, 120, .12);
  color: var(--ct-primary-hover);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
}
.payment-card h1 {
  margin: 14px 0 6px;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ct-text);
}
.payment-card > p {
  margin: 0 0 4px;
  color: var(--ct-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.payment-amount {
  margin: 20px 0 6px;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ct-text);
}
.payment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ct-border);
  font-size: 14px;
}
.payment-meta span {
  color: var(--ct-muted);
  font-weight: 700;
}
.payment-meta strong {
  text-align: right;
  color: var(--ct-text);
  font-weight: 800;
}
.payment-status-pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(91, 107, 125, .14);
  color: var(--ct-muted);
}
.payment-status-pill.is-paid {
  background: rgba(0, 168, 120, .14);
  color: var(--ct-primary-hover);
}
.payment-status-pill.is-overdue {
  background: rgba(217, 45, 32, .12);
  color: var(--ct-danger);
}
.payment-page .qr-box {
  display: grid;
  place-items: center;
  margin: 22px 0 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: 18px;
}
.payment-page .qr-box img {
  width: min(220px, 100%);
  height: auto;
  border-radius: 8px;
}
.pix-copy-field {
  display: grid;
  gap: 8px;
  margin: 6px 0 14px;
  font-weight: 800;
  font-size: 12px;
  color: var(--ct-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pix-copy-field textarea {
  font: 600 12.5px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--ct-text);
  word-break: break-all;
  resize: none;
  background: var(--ct-bg);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  padding: 10px 12px;
  text-transform: none;
  letter-spacing: normal;
}
.payment-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  background: var(--ct-card);
  color: var(--ct-text);
}
.payment-page .btn.primary {
  /* UX Value Pass 01/10 - o .btn genérico desta página (linha acima) usa fundo
     --ct-card/texto --ct-text (visual de botão secundário/ghost); esta regra só
     tirava a borda, então o único CTA da tela de pagamento (que converte dinheiro
     de verdade) ficava com baixo contraste. app.css tem o verde sólido padrão do
     Contro (ex. botão "Entrar" do login), mas foi removido das páginas públicas -
     reaplicando aqui, escopado, o mesmo verde/gradiente já aprovado. */
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 168, 120, .26);
}
.payment-page .btn.primary:hover {
  filter: brightness(1.05);
}
.payment-card > .btn.wide,
.payment-card form > .btn.wide {
  margin-top: 14px;
}
.payment-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ct-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ct-muted);
  font-size: 12px;
  font-weight: 700;
}
/* P1 (Freeze pass 01/10): identificação da empresa (CNPJ) e link de verificação - ação de confiança
   SECUNDÁRIA, discreta, nunca compete visualmente com o CTA de pagamento (valor/PIX seguem acima). */
.payment-issuer-doc {
  color: var(--ct-muted);
  font-weight: 600;
  font-size: .92em;
}
.payment-verify-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ct-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.payment-verify-link:hover,
.payment-verify-link:focus-visible {
  color: inherit;
}

.wide {
  grid-column: 1 / -1;
}

.lp-testimonial-card footer b {
  color: #102a32;
  font-size: 12px;
}

.lp-testimonial-card footer small {
  color: #647b84;
  font-size: 10px;
}

.lp-testimonial-card footer i {
  width: 24px;
  height: 24px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #087b5f;
  background: #e3f7ef;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.lp-testimonial-note {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  color: #637881;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 900px) {
  .lp-testimonials { grid-template-columns: 1fr; }
  .lp-testimonial-card { min-height: 250px; }
}

@media (max-width: 620px) {
  .lp-timeline { padding: 16px 18px 16px 14px; }
  .lp-testimonial-card { min-height: 0; padding: 24px 20px; }
  .lp-testimonial-card blockquote { margin: 28px 0; }
  .lp-testimonial-rating { align-items: flex-start; flex-direction: column; }
  .lp-testimonial-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-video-orbit, .lp-video-preview-card, .lp-video-play, .lp-orbit-ring, .lp-orbit-node, .lp-message-window, .lp-timeline .current { animation: none !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1120px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-copy { max-width: 720px; }
  .lp-dashboard-wrap { width: min(100%, 720px); margin: 18px auto 0; }
  body.auth-screen .login-premium { grid-template-columns: minmax(320px, .72fr) minmax(500px, 1.28fr) !important; }
  body.auth-screen .login-side { padding-inline: 38px !important; }
  body.auth-screen .login-side h1 { font-size: 38px; }
  .app-content .activation-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-content .activation-focus-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .lp-hero { min-height: auto; padding: 62px 0 46px; }
  .lp-hero-copy h1 { font-size: clamp(41px, 12.2vw, 55px); }
  /* Ajuste 2026-09-13: o mockup do celular (top:0, âncora à direita) sobrepunha
     a métrica "Taxa de pagamento" (3ª coluna, canto superior direito do
     dashboard) nessa faixa de largura - dashboard empurrado mais pra baixo e
     celular um pouco menor pra abrir clearance vertical real entre os dois.
     Primeiro ajuste orientado pelas medidas do CSS; validar visualmente ao
     vivo em 320-760px depois do deploy e recalibrar se ainda sobrepor. */
  .lp-dashboard-wrap { min-height: 560px; }
  .lp-dashboard-wrap .lp-dashboard { top: 210px; width: 100%; }
  .lp-phone-demo { top: 0; right: 12px; width: 160px; }
  .lp-phone-frame { min-height: 396px; border-width: 6px; border-radius: 29px; }
  .lp-phone-chat { min-height: 276px; }
  .lp-dashboard-wrap .lp-floating-card { display: none; }
  body.auth-screen .auth-topbar { padding-inline: 18px !important; }
  body.auth-screen .login-premium { display: block !important; }
  body.auth-screen .login-side { display: none !important; }
  body.auth-screen .login-form-wrap { min-height: calc(100vh - 68px); padding: 54px 16px 28px !important; }
  body.auth-screen .login-top-link { top: 16px !important; right: 16px !important; left: 16px !important; justify-content: center !important; }
  body.auth-screen .login-panel { padding: 26px 20px !important; }
  body.auth-screen .auth-panel-2fa .auth-otp-container.ds-otp-container { gap: 6px !important; }
  body.auth-screen .auth-panel-2fa .auth-otp-container .ds-otp-input { height: 50px !important; font-size: 19px !important; }
  html[data-force-theme="light"] .legal-shell { width: min(100% - 28px, 980px); }
  html[data-force-theme="light"] .legal-card { margin-top: -18px !important; padding: 22px !important; }
  .app-content .activation-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-content .activation-status-strip { grid-template-columns: 1fr; }
  .app-content .activation-summary-grid article { min-height: 104px; padding: 15px; }
  .app-content .activation-summary-grid article strong { font-size: clamp(20px, 6.2vw, 26px); }
  .app-content .activation-focus-card { padding: 18px; }
  .app-content .activation-shell-compact .activation-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .app-content .activation-status-strip small { white-space: normal; }
}

@media (max-width: 390px) {
  body.auth-screen .auth-panel-2fa .auth-otp-container.ds-otp-container { gap: 5px !important; }
  body.auth-screen .auth-panel-2fa .auth-otp-container .ds-otp-input { height: 46px !important; border-radius: 8px !important; font-size: 18px !important; }
  .app-content .activation-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-content .activation-summary-grid article { min-height: 98px; padding: 13px; }
  .app-content .activation-summary-grid article strong { font-size: 20px; }
  .app-content .activation-summary-grid article small { font-size: 9px; }
}

@media print {
  .legal-page { background: #fff !important; }
  .legal-hero { padding: 20px 0 32px !important; }
  .legal-card { width: 100% !important; margin: 0 !important; padding: 20px 0 !important; border: 0 !important; box-shadow: none !important; }
  .legal-index, .legal-print { display: none !important; }
  .legal-card h2 { break-after: avoid; }
  .legal-card p, .legal-card li { color: #26384a !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition-duration: .01ms; animation-duration: .01ms; animation-iteration-count: 1; }
}
