/* ============================================================
   paypalhelp — custom theme
   Dark blue + white, responsive, no image assets.
   ============================================================ */

:root {
  --navy-950: #050f1f;
  --navy-900: #081a31;
  --navy-850: #0b2342;
  --navy-800: #0e2c52;
  --navy-700: #153d6d;
  --navy-600: #1d5492;
  --blue-500: #2b82d8;
  --blue-400: #5aa6ea;
  --blue-200: #bcdcf7;
  --blue-100: #e6f2fd;
  --ink: #14243a;
  --muted: #60718a;
  --line: #dbe5f1;
  --white: #ffffff;
  --soft: #f4f8fd;
  --soft-2: #eef4fb;
  --green: #179c74;
  --amber: #d3891b;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 6px 18px rgba(8, 26, 49, .07);
  --shadow: 0 16px 40px rgba(8, 26, 49, .11);
  --shadow-lg: 0 24px 60px rgba(8, 26, 49, .16);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--navy-900); line-height: 1.25; font-weight: 750; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

img { max-width: 100%; }

::selection { background: var(--blue-200); color: var(--navy-900); }

.container-xxl-custom { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- Buttons ---------- */
.btn-theme,
.btn-outline-theme,
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 650;
  padding: 12px 26px;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-theme { background: var(--blue-500); color: #fff; box-shadow: 0 10px 24px rgba(43,130,216,.28); }
.btn-theme:hover { background: var(--navy-600); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29,84,146,.32); }
.btn-outline-theme { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline-theme:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.btn-theme svg, .btn-outline-theme svg, .btn-ghost-light svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 62%, var(--navy-700) 100%);
  box-shadow: 0 6px 24px rgba(5,15,31,.24);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-header .navbar { min-height: 74px; }
.brand-mark {
  display: inline-flex; align-items: center; gap: 11px;
  background: #ffffff;
  padding: 6px 13px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(5, 15, 31, .16);
}
.brand-mark svg { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark .brand-name { font-size: 1.3rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.4px; }
.brand-mark .brand-name span { color: var(--blue-500); }
.brand-mark .brand-tag { font-size: .63rem; letter-spacing: 1.5px; text-transform: uppercase; color: #000000; font-weight: 700; margin-top: 4px; }
.site-header .nav-link {
  color: rgba(255,255,255,.94);
  font-weight: 600;
  font-size: .95rem;
  padding: 10px 15px !important;
  border-radius: 8px;
  position: relative;
  transition: color .2s, background .2s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: #fff; background: rgba(255,255,255,.09); }
.site-header .nav-link.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; border-radius: 3px; background: var(--blue-400);
}
.navbar-toggler { border-color: rgba(255,255,255,.28) !important; padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Shared section utilities ---------- */
.section-pad { padding: 88px 0; }
.section-pad-sm { padding: 62px 0; }
.bg-soft { background: var(--soft); }
.bg-soft-2 { background: var(--soft-2); }
.bg-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,.78); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 800; letter-spacing: 1.7px;
  text-transform: uppercase; color: var(--blue-500);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.bg-navy .eyebrow { color: var(--blue-400); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.55rem); letter-spacing: -.6px; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.03rem; max-width: 730px; margin: 0 auto 38px; }
.bg-navy .section-sub { color: rgba(255,255,255,.75); }
.text-navy { color: var(--navy-700) !important; }
.lead-lg { font-size: 1.12rem; color: #40536d; }
.divider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(90,166,234,.24), transparent 42%),
    radial-gradient(circle at 12% 84%, rgba(27,84,146,.55), transparent 46%),
    linear-gradient(125deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-600) 100%);
  padding: 92px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 45%, transparent);
}
.hero .container-xxl-custom { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -1.3px; margin-bottom: 22px; }
.hero h1 .accent { color: var(--blue-400); }
.hero p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 620px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92); border-radius: 999px; padding: 8px 15px; font-size: .84rem; font-weight: 600;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--blue-400); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 24px 45px rgba(0,0,0,.32)); }

/* ---------- Cards ---------- */
.card-theme {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card-theme:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.card-theme .card-body { padding: 28px; }
.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--navy-600);
  margin-bottom: 18px;
}
.icon-box svg { width: 25px; height: 25px; }
.icon-box.light { background: rgba(255,255,255,.12); color: #fff; }
.card-theme h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card-theme p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; margin-top: 16px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Split content ---------- */
.split-visual {
  background: linear-gradient(145deg, var(--navy-850), var(--navy-600));
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-visual svg { width: 100%; max-width: 430px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 15px; color: #40536d; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-100);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5492' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-size: 13px; background-position: center;
}
.check-list li strong { color: var(--navy-800); }

/* ---------- Steps ---------- */
.step-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; height: 100%; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 46px; height: 46px; border-radius: 13px; background: var(--navy-800); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 18px;
}
.step-card h4 { font-size: 1.1rem; margin-bottom: 9px; }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Accordion / FAQ ---------- */
.accordion-theme .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; overflow: hidden; margin-bottom: 12px; }
.accordion-theme .accordion-button { font-weight: 700; color: var(--navy-800); background: var(--soft); box-shadow: none !important; }
.accordion-theme .accordion-button:not(.collapsed) { background: var(--blue-100); color: var(--navy-800); }
.accordion-theme .accordion-button::after { filter: saturate(.4) brightness(.9); }
.accordion-theme .accordion-body { color: var(--muted); font-size: .96rem; }

/* ---------- Blog cards ---------- */
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-top {
  height: 128px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
}
.blog-card-top svg { width: 64px; height: 64px; color: rgba(255,255,255,.92); }
.blog-card:nth-child(3n+2) .blog-card-top { background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); }
.blog-card:nth-child(3n+3) .blog-card-top { background: linear-gradient(135deg, var(--navy-900), var(--navy-600)); }
.blog-card .card-body { padding: 24px; }
.blog-meta { font-size: .76rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--blue-500); }
.blog-card h3 { font-size: 1.12rem; margin: 10px 0; }
.blog-card p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.read-time { color: #8493a7; font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; }
.read-time svg { width: 14px; height: 14px; }

/* ---------- Article ---------- */
.article-shell { max-width: 820px; margin-inline: auto; }
.article-hero {
  background: linear-gradient(125deg, var(--navy-950), var(--navy-700));
  color: #fff; padding: 74px 0 78px; position: relative; overflow: hidden;
}
.article-hero::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.8) 1px, transparent 1px); background-size: 26px 26px; }
.article-hero .container-xxl-custom { position: relative; z-index: 1; }
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 780px; }
.article-hero p { color: rgba(255,255,255,.78); max-width: 700px; margin-bottom: 0; }
.article-body { font-size: 1.03rem; color: #354760; }
.article-body h2 { font-size: 1.55rem; margin-top: 40px; margin-bottom: 14px; }
.article-body h3 { font-size: 1.2rem; margin-top: 28px; margin-bottom: 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 20px; }
.article-body li { margin-bottom: 9px; }
.article-callout {
  background: var(--blue-100); border-left: 4px solid var(--blue-500);
  border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 30px 0; color: var(--navy-800);
}
.article-callout strong { display: block; margin-bottom: 4px; }
.article-toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 34px; }
.article-toc h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--blue-500); margin-bottom: 12px; }
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.article-toc li:last-child { border-bottom: 0; }
.article-toc a { color: var(--navy-700); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(125deg, var(--navy-950), var(--navy-700));
  color: #fff; padding: 68px 0 72px; position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(rgba(255,255,255,.85) 1px, transparent 1px); background-size: 26px 26px; }
.page-hero .container-xxl-custom { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 700px; margin: 0; font-size: 1.06rem; }
.crumb { color: rgba(255,255,255,.6); font-size: .85rem; margin-bottom: 16px; }
.crumb a { color: rgba(255,255,255,.75); }
.crumb span { color: var(--blue-400); }

/* ---------- Forms ---------- */
.form-theme .form-label { font-weight: 650; color: var(--navy-800); font-size: .92rem; }
.form-theme .form-control {
  border-radius: 11px; border-color: var(--line); padding: 12px 15px; font-size: .95rem; color: var(--ink);
}
.form-theme .form-control:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,130,216,.14); }
.info-tile { display: flex; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; margin-bottom: 14px; }
.info-tile .icon-box { width: 42px; height: 42px; margin: 0; flex: none; }
.info-tile h5 { font-size: 1rem; margin: 0 0 3px; }
.info-tile p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Legal / prose pages ---------- */
.legal-shell { max-width: 860px; margin-inline: auto; }
.legal-content h2 { font-size: 1.45rem; margin-top: 36px; margin-bottom: 12px; }
.legal-content h3 { font-size: 1.13rem; margin-top: 26px; }
.legal-content p, .legal-content li { color: #40536d; }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.updated-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-100); color: var(--navy-700); border-radius: 999px; padding: 7px 15px; font-size: .83rem; font-weight: 650; margin-bottom: 24px; }
.updated-pill svg { width: 15px; height: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(125deg, var(--navy-900), var(--navy-600));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 34px solid rgba(255,255,255,.05); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.76); margin-bottom: 0; max-width: 620px; }
.cta-band .btn-theme { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.72);
  padding-top: 68px;
  margin-top: 0;
  border-top: 4px solid var(--blue-500);
}
.site-footer h5 { color: #fff; font-size: .95rem; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 20px; }
.site-footer a { color: rgba(255,255,255,.68); font-size: .92rem; display: block; padding: 4px 0; transition: color .2s, padding-left .2s; }
.site-footer .row > div > a:not(.brand-mark) { display: block; width: 100%; line-height: 1.9; padding: 5px 0; }
.site-footer a:hover { color: var(--blue-400); padding-left: 4px; }
.site-footer .brand-mark { margin-bottom: 16px; }
.site-footer .about-line { font-size: .92rem; color: rgba(255,255,255,.62); max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.footer-social a:hover { background: var(--blue-500); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 50px; padding: 20px 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { display: inline; color: rgba(255,255,255,.72); }
.footer-note { font-size: .8rem; color: rgba(255,255,255,.45); margin-top: 8px; }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .25s ease;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--blue-500); }
#backToTop svg { width: 19px; height: 19px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section-pad { padding: 68px 0; }
  .hero { padding: 70px 0 74px; }
  .hero-art { max-width: 420px; margin-top: 44px; }
  .cta-band { padding: 34px; }
  .site-header .navbar-collapse { background: var(--navy-900); border-radius: 0 0 14px 14px; padding: 10px 14px 16px; }
  .site-header .nav-link { margin-bottom: 3px; }
  .site-header .nav-link.active::after { display: none; }
}
@media (max-width: 767.98px) {
  .section-pad { padding: 56px 0; }
  .section-pad-sm { padding: 44px 0; }
  .section-title { font-size: 1.75rem; }
  .hero h1 { font-size: 2.15rem; }
  .hero-actions .btn-theme, .hero-actions .btn-ghost-light { width: 100%; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .56rem; }
  .card-theme .card-body { padding: 22px; }
  .cta-band { padding: 28px 22px; border-radius: 18px; }
  .cta-band .btn-theme { width: 100%; }
  .footer-bottom { text-align: center; }
  .article-hero, .page-hero { padding: 54px 0 58px; }
  .article-body { font-size: .98rem; }
  .site-footer { padding-top: 50px; }
}
@media (max-width: 399.98px) {
  .container-xxl-custom { padding-inline: 15px; }
  .hero h1 { font-size: 1.9rem; }
  .brand-mark svg { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
