/* =========================================================
   bit-settled — PayPal-style light theme
   Loaded after the page's own styles so it can override the
   original dark fintech skin without changing any behavior.
   ========================================================= */
body.paypal-theme {
  --bg: #f5f7fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef3f8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --ink: #001435;
  --ink-2: #14355c;
  --muted: #5b6b7c;
  --muted-2: #7c8b9a;
  --emerald: #0070ba;
  --emerald-2: #005ea6;
  --emerald-ink: #ffffff;
  --emerald-dim: rgba(0, 112, 186, .08);
  --emerald-line: rgba(0, 112, 186, .32);
  --gold: #ffc439;
  --gold-2: #e7a900;
  --gold-ink: #001435;
  --gold-dim: rgba(255, 196, 57, .16);
  --gold-line: rgba(231, 169, 0, .4);
  --danger: #d9363e;
  --danger-dim: rgba(217, 54, 62, .08);
  --danger-line: rgba(217, 54, 62, .3);
  --blue: #0070ba;
  --blue-dim: rgba(0, 112, 186, .08);
  --blue-line: rgba(0, 112, 186, .3);
  --shadow: 0 10px 30px -22px rgba(0, 20, 53, .22);
  --shadow-pop: 0 24px 60px -30px rgba(0, 20, 53, .32);
  color-scheme: light;
  background: #f5f7fa !important;
  color: #001435 !important;
}
body.paypal-theme .bg { background: #f5f7fa !important; }
body.paypal-theme .bg::after {
  opacity: .35 !important;
  background-image:
    linear-gradient(rgba(0, 112, 186, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 112, 186, .045) 1px, transparent 1px) !important;
}
body.paypal-theme h1, body.paypal-theme h2, body.paypal-theme h3, body.paypal-theme h4 { color: #001435 !important; }
body.paypal-theme p, body.paypal-theme .page-sub, body.paypal-theme .demo-sub, body.paypal-theme .hub-hero p { color: #5b6b7c !important; }
body.paypal-theme a { color: #0070ba; }
body.paypal-theme .eyebrow, body.paypal-theme .hub-kicker, body.paypal-theme .integrate-step,
body.paypal-theme .das-kicker, body.paypal-theme .demo-hero-copy .eyebrow,
body.paypal-theme .mkt-kicker, body.paypal-theme .agent-setup-note b { color: #0070ba !important; }
body.paypal-theme .muted, body.paypal-theme .muted-2, body.paypal-theme .tiny.muted,
body.paypal-theme .demo-hero-note, body.paypal-theme .demo-progress, body.paypal-theme .step-endpoint { color: #5b6b7c !important; }
body.paypal-theme .mono { color: inherit; }

/* top navigation */
body.paypal-theme .topbar, body.paypal-theme .topnav {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px -6px rgba(0, 20, 53, .18) !important;
  backdrop-filter: none !important;
}
body.paypal-theme .topbar-inner, body.paypal-theme .topnav-in { background: #ffffff !important; }
body.paypal-theme .brand-name, body.paypal-theme .brand-copy b, body.paypal-theme .brand b { color: #001435 !important; }
body.paypal-theme .brand-sub, body.paypal-theme .brand-copy small { color: #5b6b7c !important; }
body.paypal-theme .brand-mark { background: #e8f3fb !important; border-color: #b9d9ef !important; color: #0070ba !important; }
body.paypal-theme .nav a, body.paypal-theme .nav a:visited { color: #2c2e2f !important; }
body.paypal-theme .nav a:hover, body.paypal-theme .nav a.active,
body.paypal-theme .nav a.is-active { color: #0070ba !important; border-bottom-color: #0070ba !important; }
body.paypal-theme .env-pill, body.paypal-theme .nav-merchant { background: #eef6fc !important; border-color: #b9d9ef !important; color: #0070ba !important; }
body.paypal-theme .env-pill .dot { background: #0070ba !important; }
body.paypal-theme .tier { background: #e8f3fb !important; color: #005ea6 !important; border-color: #b9d9ef !important; }

/* cards, panels, steps */
body.paypal-theme .panel, body.paypal-theme .hub-card, body.paypal-theme .demo-step,
body.paypal-theme .axis-card, body.paypal-theme .demo-result, body.paypal-theme .demo-final,
body.paypal-theme .mkt-card, body.paypal-theme .product-row, body.paypal-theme .integrate-card,
body.paypal-theme .embed-card, body.paypal-theme .store-card, body.paypal-theme .what-card,
body.paypal-theme .agent-setup-panel, body.paypal-theme .pr-group, body.paypal-theme .import-panel,
body.paypal-theme .ai-block, body.paypal-theme .demo-log-panel, body.paypal-theme .claim-panel,
body.paypal-theme .order-panel, body.paypal-theme .neg-panel, body.paypal-theme .checkout-panel,
body.paypal-theme .receipt-panel, body.paypal-theme .card, body.paypal-theme .surface {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #001435 !important;
  box-shadow: 0 10px 26px -24px rgba(0, 20, 53, .22) !important;
}
body.paypal-theme .demo-step.is-active, body.paypal-theme .axis-card.is-done {
  border-color: rgba(0, 112, 186, .45) !important;
  background: #f2f8fd !important;
  box-shadow: 0 10px 26px -22px rgba(0, 112, 186, .3) !important;
}
body.paypal-theme .axis-card::before { background: #cbd5e1 !important; }
body.paypal-theme .axis-card.is-done::before { background: #0070ba !important; }
body.paypal-theme .axis-bar { background: #e8eef5 !important; }
body.paypal-theme .axis-bar span, body.paypal-theme .axis-card.is-done .axis-bar span { background: #0070ba !important; }
body.paypal-theme .axis-after, body.paypal-theme .axis-card.is-done .axis-after { color: #0070ba !important; }
body.paypal-theme .axis-before, body.paypal-theme .axis-card.is-done .axis-before,
body.paypal-theme .axis-name, body.paypal-theme .axis-foot,
body.paypal-theme .axis-card.is-done .axis-foot { color: #5b6b7c !important; }
body.paypal-theme .axis-dot { background: #cbd5e1 !important; }
body.paypal-theme .axis-card.is-done .axis-dot { background: #0070ba !important; box-shadow: 0 0 0 3px rgba(0,112,186,.14) !important; }

/* buttons */
body.paypal-theme .btn-primary, body.paypal-theme button.btn-primary {
  background: #0070ba !important; border-color: #0070ba !important; color: #ffffff !important;
}
body.paypal-theme .btn-primary:hover { background: #005ea6 !important; }
body.paypal-theme .btn-gold { background: #ffc439 !important; border-color: #ffc439 !important; color: #001435 !important; }
body.paypal-theme .btn-ghost { background: #ffffff !important; border-color: #cbd5e1 !important; color: #001435 !important; }
body.paypal-theme .btn-danger { background: #d9363e !important; border-color: #d9363e !important; color: #fff !important; }
body.paypal-theme .btn, body.paypal-theme button { color: #001435; }
body.paypal-theme .btn-primary, body.paypal-theme .btn-primary * { color: #fff !important; }

/* badges */
body.paypal-theme .badge, body.paypal-theme .chip, body.paypal-theme .pill {
  background: #eef3f8 !important; border-color: #d7e0ea !important; color: #14355c !important;
}
body.paypal-theme .badge.emerald, body.paypal-theme .badge.green { background: #e8f3fb !important; border-color: #b9d9ef !important; color: #005ea6 !important; }
body.paypal-theme .badge.gold { background: #fff4d6 !important; border-color: #f2d38a !important; color: #7a5300 !important; }
body.paypal-theme .badge.danger { background: #fdecee !important; border-color: #f3b8bd !important; color: #b4232c !important; }

/* forms */
body.paypal-theme input, body.paypal-theme textarea, body.paypal-theme select,
body.paypal-theme .input, body.paypal-theme .m-input {
  background: #ffffff !important; border-color: #cbd5e1 !important; color: #001435 !important;
}
body.paypal-theme input::placeholder, body.paypal-theme textarea::placeholder { color: #8b98a7 !important; }
body.paypal-theme .field-label, body.paypal-theme label { color: #14355c !important; }
body.paypal-theme .switch-track { background: #cbd5e1 !important; }
body.paypal-theme .switch input:checked + .switch-track { background: #0070ba !important; }

/* code, logs, chat */
body.paypal-theme .demo-log, body.paypal-theme .log-entry, body.paypal-theme .hub-code,
body.paypal-theme .codeblock, body.paypal-theme .install-code, body.paypal-theme .log-json,
body.paypal-theme .code-strip, body.paypal-theme pre, body.paypal-theme code {
  background: #f6f8fb !important; border-color: #e2e8f0 !important; color: #0f2b46 !important;
}
body.paypal-theme .log-head, body.paypal-theme .log-block, body.paypal-theme .log-label,
body.paypal-theme .log-path, body.paypal-theme .log-ms,
body.paypal-theme .ai-rationale, body.paypal-theme .ai-msg { color: #5b6b7c !important; border-color: #e2e8f0 !important; }
body.paypal-theme .log-status { background: #eef3f8 !important; border-color: #d7e0ea !important; color: #14355c !important; }
body.paypal-theme .log-status.ok { background: #e8f3fb !important; border-color: #b9d9ef !important; color: #005ea6 !important; }
body.paypal-theme .agent-chat, body.paypal-theme .chat-bubble, body.paypal-theme .chat-bubble.merchant {
  background: #f6f8fb !important; border-color: #e2e8f0 !important; color: #001435 !important;
}
body.paypal-theme .chat-bubble.buyer { background: #eef6fc !important; border-color: #b9d9ef !important; }

/* tables */
body.paypal-theme table, body.paypal-theme .rules-table { background: #ffffff !important; color: #001435 !important; }
body.paypal-theme th { background: #f6f8fb !important; color: #5b6b7c !important; border-color: #e2e8f0 !important; }
body.paypal-theme td, body.paypal-theme tr { border-color: #e2e8f0 !important; }

/* PayPal-specific surfaces */
body.paypal-theme .pp-button { background: #ffc439 !important; color: #001435 !important; border-color: #ffc439 !important; }
body.paypal-theme .pp-button .pp-word, body.paypal-theme .pp-button .pp-buy { color: #001435 !important; }
body.paypal-theme .hub-hero h1 em, body.paypal-theme .integrate-hero h1 em,
body.paypal-theme .demo-title em, body.paypal-theme .store-title em { color: #0070ba !important; }
body.paypal-theme .hub-card:hover { border-color: #0070ba !important; }
body.paypal-theme .hub-card .hub-arrow { color: #5b6b7c !important; }
body.paypal-theme .hub-card:hover .hub-arrow { color: #0070ba !important; }
body.paypal-theme .hub-code b, body.paypal-theme .codeblock b { color: #0070ba !important; }
body.paypal-theme .demo-agent-strip { background: #f2f8fd !important; border-color: #b9d9ef !important; }
body.paypal-theme .das-left b { color: #001435 !important; }
body.paypal-theme .das-status { color: #5b6b7c !important; }
body.paypal-theme .das-link { color: #0070ba !important; }
body.paypal-theme .merchant-layout, body.paypal-theme .merchant-main { background: transparent !important; }
body.paypal-theme .product-row .pr-name, body.paypal-theme .pr-id, body.paypal-theme .pr-meta { color: #001435 !important; }
body.paypal-theme .pr-meta, body.paypal-theme .pr-group-label { color: #5b6b7c !important; }
body.paypal-theme .pr-group.private { background: #fff8e8 !important; border-color: #f2d38a !important; }
body.paypal-theme .pr-group.public { background: #f2f8fd !important; border-color: #b9d9ef !important; }
body.paypal-theme .import-result, body.paypal-theme .import-error, body.paypal-theme .agent-setup-result { background: #f6f8fb !important; border-color: #e2e8f0 !important; }
body.paypal-theme .market-card, body.paypal-theme .offer-card, body.paypal-theme .mkt-card { background: #fff !important; }
body.paypal-theme .mkt-card .mkt-price, body.paypal-theme .mkt-card .mkt-range { color: #001435 !important; }
body.paypal-theme .mkt-card .mkt-merchant, body.paypal-theme .mkt-card .mkt-meta { color: #5b6b7c !important; }
body.paypal-theme .store-buy, body.paypal-theme .embed-side, body.paypal-theme .store-detail { background: #fff !important; border-color: #e2e8f0 !important; color: #001435 !important; }
body.paypal-theme .store-desc, body.paypal-theme .store-kicker, body.paypal-theme .buy-hint { color: #5b6b7c !important; }
body.paypal-theme .store-title, body.paypal-theme .buy-amount { color: #001435 !important; }
body.paypal-theme .what-card, body.paypal-theme .install-card { background: #fff !important; }
body.paypal-theme .what-list li, body.paypal-theme .what-list p { color: #5b6b7c !important; }
body.paypal-theme .topnav .nav a[href="start.html"] { color: #0070ba !important; }

/* ---- page-specific fixes ---- */
body.paypal-theme .step-empty, body.paypal-theme .empty, body.paypal-theme .log-empty,
body.paypal-theme .demo-log-empty, body.paypal-theme .agent-setup-result:empty {
  background: #f6f8fb !important; color: #5b6b7c !important;
  border-color: #dbe4ee !important;
}
body.paypal-theme .step-empty *, body.paypal-theme .empty * { color: #5b6b7c !important; }
body.paypal-theme .step-num, body.paypal-theme .step-n {
  background: #001435 !important; border-color: #001435 !important; color: #fff !important;
}
body.paypal-theme .step, body.paypal-theme .demo-step, body.paypal-theme .panel { color: #001435 !important; }
body.paypal-theme .demo-step .step-main, body.paypal-theme .demo-step .step-title { color: #001435 !important; }
body.paypal-theme .demo-step .step-sub, body.paypal-theme .step-sub { color: #5b6b7c !important; }

/* market indexer panels */
body.paypal-theme .mkt-ix-card {
  background: #fff !important; border-color: #e2e8f0 !important;
  box-shadow: 0 10px 26px -24px rgba(0,20,53,.22) !important;
}
body.paypal-theme .mkt-ix-card::before { background: linear-gradient(#0070ba, rgba(0,112,186,0)) !important; }
body.paypal-theme .mkt-ix-title, body.paypal-theme .mkt-ix-sub b,
body.paypal-theme .mkt-ix-sub .mono, body.paypal-theme .mkt-ix-code { color: #001435 !important; }
body.paypal-theme .mkt-ix-sub { color: #5b6b7c !important; }
body.paypal-theme .mkt-ix-row {
  background: #f6f8fb !important; border-color: #e2e8f0 !important;
}
body.paypal-theme .mkt-ix-label { color: #5b6b7c !important; }
body.paypal-theme .mkt-copy {
  background: #fff !important; border-color: #cbd5e1 !important; color: #005ea6 !important;
}
body.paypal-theme .mkt-ix-foot, body.paypal-theme .mkt-ix-foot .dot { color: #5b6b7c !important; background-color: transparent !important; }
body.paypal-theme .mkt-ix-json pre, body.paypal-theme .mkt-ix-json code,
body.paypal-theme #mktJsonExample { background: #f6f8fb !important; color: #0f2b46 !important; border-color: #e2e8f0 !important; }

/* negotiate facts + chat + call log */
body.paypal-theme .facts { background: #e2e8f0 !important; border-color: #e2e8f0 !important; }
body.paypal-theme .fact { background: #fff !important; }
body.paypal-theme .fact-label { color: #5b6b7c !important; }
body.paypal-theme .fact-value { color: #001435 !important; }
body.paypal-theme .chat, body.paypal-theme .guard, body.paypal-theme .call-log,
body.paypal-theme .hash-line, body.paypal-theme .neg-note {
  background: #f6f8fb !important; border-color: #e2e8f0 !important; color: #001435 !important;
}
body.paypal-theme .chat * { color: inherit; }
body.paypal-theme .chat .bubble, body.paypal-theme .chat .msg { background: #fff !important; color: #001435 !important; border-color: #e2e8f0 !important; }
body.paypal-theme .guard { border-left-color: #ffc439 !important; }
body.paypal-theme .call-log { background: #fff !important; }
body.paypal-theme .api-error { background: #fdecee !important; border-color: #f3b8bd !important; color: #b4232c !important; }

/* embed demo */
body.paypal-theme .embed-nav {
  background: #fff !important; border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px -6px rgba(0,20,53,.18) !important;
}
body.paypal-theme .embed-links a { color: #2c2e2f !important; }
body.paypal-theme .embed-links a:hover, body.paypal-theme .embed-links a.is-active { color: #0070ba !important; }
body.paypal-theme .embed-chips span {
  background: #f2f8fd !important; border-color: #b9d9ef !important; color: #005ea6 !important;
}
body.paypal-theme .embed-chips span b { color: #0070ba !important; }
body.paypal-theme .store-features li {
  background: #f6f8fb !important; border-color: #e2e8f0 !important; color: #14355c !important;
}
body.paypal-theme .store-card, body.paypal-theme .store-detail, body.paypal-theme .store-buy {
  background: #fff !important; color: #001435 !important;
}
body.paypal-theme .store-art { background: #001435 !important; }

/* merchant page contrast */
body.paypal-theme .agent-chip {
  background: #eef3f8 !important; border-color: #cbd5e1 !important; color: #14355c !important;
}
body.paypal-theme .pr-thumb, body.paypal-theme .agent-avatar-lg, body.paypal-theme .agent-avatar {
  background: #001435 !important; color: #fff !important; border-color: #001435 !important;
}
body.paypal-theme .privacy-sub, body.paypal-theme .agent-note, body.paypal-theme .agent-row span,
body.paypal-theme .privacy-title, body.paypal-theme .agent-op, body.paypal-theme .agent-tone,
body.paypal-theme .pr-foot, body.paypal-theme .catalog-foot, body.paypal-theme .panel-foot { color: #5b6b7c !important; }
body.paypal-theme .agent-row, body.paypal-theme .privacy-row { border-color: #e2e8f0 !important; }
body.paypal-theme .agent-note b, body.paypal-theme .privacy-title { color: #001435 !important; }
body.paypal-theme .privacy-row.private { background: #fff8e8 !important; border-color: #f2d38a !important; }
body.paypal-theme .privacy-row.public { background: #f2f8fd !important; border-color: #b9d9ef !important; }
body.paypal-theme .agent-tone { background: #e8f3fb !important; border-color: #b9d9ef !important; color: #005ea6 !important; }
body.paypal-theme .switch span:not(.switch-track) { color: #14355c !important; }

/* remaining contrast fixes */
body.paypal-theme .privacy-note { color: #7a5300 !important; }
body.paypal-theme .term, body.paypal-theme .prod-meta span {
  background: #f2f8fd !important; border-color: #b9d9ef !important; color: #005ea6 !important;
}
body.paypal-theme .term svg { color: #0070ba !important; }
body.paypal-theme .mkt-chip {
  background: #fff !important; border-color: #cbd5e1 !important; color: #14355c !important;
}
body.paypal-theme .mkt-chip:hover { background: #f2f8fd !important; border-color: #0070ba !important; color: #005ea6 !important; }
body.paypal-theme .mkt-chip.is-active { background: #e8f3fb !important; border-color: #0070ba !important; color: #005ea6 !important; }
body.paypal-theme .mkt-chip .n { background: #eef3f8 !important; border-color: #d7e0ea !important; color: #5b6b7c !important; }
body.paypal-theme .mkt-chip.is-active .n { background: #fff !important; border-color: #b9d9ef !important; color: #0070ba !important; }
body.paypal-theme .mkt-board-name { color: #0070ba !important; }
body.paypal-theme .mkt-board-name i, body.paypal-theme .mkt-board-count { color: #5b6b7c !important; }

/* dashboard + store + integrate */
body.paypal-theme .stat {
  background: #fff !important; border-color: #e2e8f0 !important;
  box-shadow: 0 8px 20px -22px rgba(0,20,53,.22) !important;
}
body.paypal-theme .stat::after { display: none !important; }
body.paypal-theme .stat-label, body.paypal-theme .stat-sub { color: #5b6b7c !important; }
body.paypal-theme .stat-value { color: #001435 !important; }
body.paypal-theme .stat-label i { background: #0070ba !important; }
body.paypal-theme .trust-metric { background: #fff !important; }
body.paypal-theme .tm-label { color: #5b6b7c !important; }
body.paypal-theme .tm-value { color: #001435 !important; }
body.paypal-theme .protect-note {
  background: #f6f8fb !important; border-color: #e2e8f0 !important;
}
body.paypal-theme .protect-note .pn-title { color: #001435 !important; }
body.paypal-theme .protect-note .pn-sub { color: #5b6b7c !important; }
body.paypal-theme .integrate-note {
  background: #f2f8fd !important; border-color: #b9d9ef !important; color: #14355c !important;
}
body.paypal-theme .integrate-note b { color: #0070ba !important; }
body.paypal-theme .integrate-note a { color: #005ea6 !important; }
body.paypal-theme .integrate-table th { background: #f6f8fb !important; }
body.paypal-theme .integrate-table td { background: #fff !important; }
html { color-scheme: light !important; }
body.paypal-theme ::selection { background: #cce8fb !important; color: #001435 !important; }
body.paypal-theme :focus-visible { outline-color: #0070ba !important; }

/* ---- PayPal design philosophy: blue-first, human, accessible ---- */
body.paypal-theme {
  --sans: "Avenir Next", "Futura", "Century Gothic", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 14px 34px -28px rgba(0, 20, 53, .26);
}
body.paypal-theme .bg {
  background:
    radial-gradient(52% 42% at 8% -10%, rgba(0, 112, 186, .12), transparent 62%),
    radial-gradient(40% 34% at 96% 0%, rgba(0, 48, 135, .09), transparent 60%),
    #f5f7fa !important;
}
body.paypal-theme .bg::after { opacity: .22 !important; }
body.paypal-theme h1, body.paypal-theme .demo-title, body.paypal-theme .hub-hero h1,
body.paypal-theme .page-title, body.paypal-theme .merchant-title {
  letter-spacing: -.035em;
}
body.paypal-theme .brand-mark, body.paypal-theme .hub-card .hub-kicker,
body.paypal-theme .eyebrow { color: #0070ba !important; }
body.paypal-theme .badge.gold, body.paypal-theme .badge.amber {
  background: #e8f3fb !important; border-color: #b9d9ef !important; color: #005ea6 !important;
}
body.paypal-theme .btn, body.paypal-theme .hub-card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease; }
body.paypal-theme .btn:active { transform: translateY(1px); }
body.paypal-theme .hub-card:hover { box-shadow: 0 16px 34px -28px rgba(0, 20, 53, .28) !important; }
body.paypal-theme .hub-actions .btn-primary { box-shadow: 0 8px 20px -12px rgba(0, 112, 186, .55); }
@media (prefers-reduced-motion: reduce) {
  body.paypal-theme *, body.paypal-theme *::before, body.paypal-theme *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
