:root {
  --bg: #ffffff;
  --band: #eef3f1;
  --text: #0f1416;
  --body: #2b3336;
  --line: #cfd8d4;
  --accent: #0a6b52;
  --accent-dark: #07533f;
  --accent-soft: #dff1ea;
  --red: #c0272d;
  --green: #12865f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
b { color: var(--text); font-weight: 700; }
a { color: var(--accent); font-weight: 600; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 22px; }

/* header */
.top { background: #fff; border-bottom: 2px solid var(--text); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 800; color: var(--text); text-decoration: none; font-size: 21px; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand .logo { width: 36px; height: 36px; flex: none; }
nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--accent); }
nav .login { border: 2px solid var(--text); padding: 6px 16px; border-radius: 6px; }
nav .login:hover { background: var(--text); color: #fff; }

/* headings */
h1 { font-size: clamp(36px, 6.5vw, 58px); line-height: 1.1; margin: 0 0 20px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.hl { color: var(--accent); }
h2 { font-size: 34px; line-height: 1.15; margin: 0 0 26px; color: var(--text); font-weight: 800; letter-spacing: -0.01em; padding-bottom: 12px; position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 4px; background: var(--accent); }
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; color: var(--text); font-weight: 700; }
p { margin: 0 0 12px; }

section { padding: 72px 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* hero */
.hero { padding: 76px 0 64px; }
.lead { font-size: 22px; line-height: 1.5; max-width: 700px; color: var(--body); }
.actions { margin: 30px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 6px; font-weight: 700; font-size: 17px;
  background: var(--accent); color: #fff; text-decoration: none; border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: #fff; }
.btn.full { display: block; text-align: center; }
.btn.light { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn.light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 52px; border: 2px solid var(--text); border-radius: 8px; overflow: hidden; }
.facts div { padding: 18px 22px; border-right: 2px solid var(--text); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-size: 21px; line-height: 1.2; }
.facts span { display: block; margin-top: 2px; font-size: 16px; }

/* feature cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 6px; padding: 22px 24px; }
.card p { margin: 0; font-size: 17px; }

.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; }
.dot.ok { background: var(--green); }
.dot.bad { background: var(--red); margin-left: 2px; }

/* steps */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; max-width: 720px; }
.steps li { counter-increment: s; padding: 18px 0 18px 62px; border-top: 1px solid var(--line); position: relative; font-size: 19px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; line-height: 40px; font-weight: 800; font-size: 19px; }

/* pricing */
.intro { font-size: 19px; max-width: 720px; }
.toggle { display: inline-flex; border: 2px solid var(--text); border-radius: 8px; overflow: hidden; margin: 8px 0 30px; background: #fff; }
.toggle button { font: inherit; font-size: 16px; font-weight: 700; padding: 11px 24px; border: 0; background: #fff; color: var(--text); cursor: pointer; }
.toggle button.on { background: var(--text); color: #fff; }
.toggle button span { font-weight: 600; font-size: 13px; margin-left: 6px; background: var(--accent-soft); color: var(--accent-dark); padding: 2px 8px; border-radius: 4px; }
.toggle button.on span { background: var(--accent); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.plan { background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 30px 26px 26px; position: relative; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tag { position: absolute; top: -14px; left: 24px; margin: 0; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 4px; }
.plan h3 { font-size: 24px; }
.for { font-size: 18px; margin-bottom: 18px; color: var(--body); }
.for b { display: block; font-size: 30px; line-height: 1.1; color: var(--accent); letter-spacing: -0.01em; }
.price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.amt { font-size: 52px; font-weight: 800; line-height: 1; color: var(--text); }
.amt::before { content: "$"; font-size: 26px; font-weight: 700; vertical-align: 16px; margin-right: 2px; }
.per { font-size: 17px; white-space: nowrap; }
.sub { font-size: 15px; margin: 8px 0 20px; min-height: 22px; }
/* 3 months: a "-15%" circle in the top right corner, the full price crossed out next to the new one */
.off { display: none; position: absolute; top: -18px; right: -10px; width: 62px; height: 62px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 18px; align-items: center; justify-content: center; transform: rotate(12deg); box-shadow: 0 4px 12px rgba(192, 39, 45, .35); }
.was { display: none; font-size: 24px; font-weight: 700; color: #7b8688; text-decoration: line-through; text-decoration-thickness: 2px; }
.plans.yearly .off { display: flex; }
.plans.yearly .was { display: inline; }
.plans.yearly .sub { color: var(--green); font-weight: 700; }
.plan ul { margin: 0 0 24px; padding: 0; list-style: none; flex: 1; }
.plan li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); font-size: 17px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(.9); }
.note { font-size: 16px; margin-top: 8px; }

/* faq */
details { border-top: 1px solid var(--line); padding: 18px 0; max-width: 780px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 19px; color: var(--text); list-style: none; position: relative; padding-right: 36px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -4px; font-size: 28px; font-weight: 500; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; }

/* closing band */
.cta { background: var(--accent); color: #fff; text-align: center; }
.cta h2 { color: #fff; padding-bottom: 0; }
.cta h2::after { display: none; }
.cta p { font-size: 20px; margin-bottom: 26px; }

footer { background: var(--text); color: #e7ecea; padding: 24px 0; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer a { color: #fff; }

@media (max-width: 800px) {
  nav { gap: 14px; }
  nav a:not(.login):not(.acct) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 2px solid var(--text); }
  .facts div:last-child { border-bottom: 0; }
  .hero { padding: 48px 0 44px; }
  .lead { font-size: 20px; }
  section { padding: 52px 0; }
  h2 { font-size: 29px; }
}

/* referral */
.acct { font-weight: 700; }
.ref-note { display: inline-block; margin: 0 0 6px; padding: 8px 14px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-size: 16px; font-weight: 600; }

/* account / legal pages */
.page { padding: 56px 0 72px; }
.narrow { max-width: 760px; }
.page-h { font-size: clamp(30px, 5vw, 42px); margin-bottom: 18px; }
.sub-h { font-size: 22px; margin: 28px 0 10px; padding-bottom: 0; }
.sub-h::after { display: none; }
.legal p { font-size: 17px; }
.muted { color: #5b6669; } .small { font-size: 15px; }
.msg { padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.msg.bad { background: #fde8e8; color: var(--red); } .msg.warn { background: #fff5e0; color: #8a5a00; }
.btn.google { margin: 10px 0 14px; }
.hello { font-size: 17px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.ref-box { background: var(--band); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin: 18px 0 24px; }
.ref-box label { display: block; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.copyrow { display: flex; gap: 10px; }
.copyrow input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
.copyrow .btn { padding: 12px 22px; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--text); border-radius: 8px; overflow: hidden; }
.stats div { padding: 18px 20px; border-right: 2px solid var(--text); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 34px; line-height: 1.1; color: var(--accent); }
.stats span { font-size: 15px; }
.recent table { width: 100%; border-collapse: collapse; font-size: 16px; }
.recent th, .recent td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 2px solid var(--text); }
  .stats div:last-child { border-bottom: 0; }
  .copyrow { flex-direction: column; }
  .recent { overflow-x: auto; }
}

/* account forms */
.tabs { display: inline-flex; border: 2px solid var(--text); border-radius: 8px; overflow: hidden; margin: 6px 0 18px; }
.tab { font: inherit; font-size: 16px; font-weight: 700; padding: 10px 22px; border: 0; background: #fff; color: var(--text); cursor: pointer; }
.tab.on { background: var(--text); color: #fff; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--text); font-size: 16px; }
.form input { font: inherit; font-weight: 400; font-size: 17px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
.form input:focus { outline: none; border-color: var(--accent); }
.form .btn { align-self: flex-start; cursor: pointer; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.msg.ok { background: var(--accent-soft); color: var(--accent-dark); }
[hidden] { display: none !important; }

/* ===== account: sign in / create account / referral dashboard ===== */
.acc { max-width: 1040px; margin: 0 auto; padding: 48px 22px 80px; }
.acc > .msg { max-width: 1040px; margin: 0 0 18px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow.light { color: #bfe9da; }

.auth { display: grid; grid-template-columns: 1fr 1.05fr; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 20, 22, .12); border: 1px solid var(--line); background: #fff; }
.auth-side { background: linear-gradient(155deg, #11916f 0%, #0a6b52 45%, #064534 100%); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { color: #fff; font-size: 32px; line-height: 1.15; margin: 0 0 26px; padding: 0; }
.auth-side h2::after { display: none; }
.perks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.perks li b { color: #fff; }
.perks svg { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.18); fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.side-note { margin: 0; font-size: 14px; color: #bfe9da; }
.auth-card { padding: 44px 48px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--band); border-radius: 10px; padding: 4px; margin-bottom: 28px; }
.seg button { font: inherit; font-size: 15px; font-weight: 700; border: 0; border-radius: 8px; padding: 10px 12px; background: transparent; color: #5b6669; cursor: pointer; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15,20,22,.12); }
.auth-title { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.01em; }
.auth-sub { margin: 0 0 22px; color: #5b6669; font-size: 16px; }
.form { display: grid; gap: 16px; max-width: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--text); }
.field label small { font-weight: 500; color: #7b8688; margin-left: 6px; }
.field input, .linkrow input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #c9d3cf; border-radius: 10px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .linkrow input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.eye:hover { background: var(--band); }
.eye svg { width: 20px; height: 20px; fill: none; stroke: #5b6669; stroke-width: 2; }
.eye.on svg { stroke: var(--accent); }
.btn.full { width: 100%; text-align: center; cursor: pointer; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: wait; }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.fine { margin: 0; font-size: 13px; color: #7b8688; line-height: 1.5; }
.msg { padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.msg.ok { background: var(--accent-soft); color: var(--accent-dark); }
.msg.bad { background: #fdecec; color: #a31f25; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.dash-title { font-size: clamp(28px, 4.5vw, 38px); margin: 0; }
.btn.ghost.small, .btn.small { padding: 9px 18px; font-size: 15px; cursor: pointer; border-radius: 10px; }
.hero-card { border-radius: 16px; padding: 30px 32px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #13a07a 0%, #0a6b52 50%, #054231 100%); box-shadow: 0 18px 44px rgba(10, 107, 82, .28); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-label { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #bfe9da; }
.chip { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; }
.chip.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5ff0b8; margin-right: 7px; vertical-align: 1px; }
.chip.wait { background: #fff2cc; color: #7a5300; }
.hero-code { font-size: clamp(38px, 7vw, 56px); font-weight: 800; letter-spacing: .06em; margin: 8px 0 18px; line-height: 1.05; }
.linkrow { display: flex; gap: 10px; }
.linkrow input { border-color: transparent; background: rgba(255,255,255,.95); }
.linkrow .btn { flex: none; cursor: pointer; border-radius: 10px; }
.hero-hint { margin: 14px 0 0; font-size: 15px; color: #dff5ec; }
.hero-hint b { color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 2px; }
.kpi-ico { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-size: 17px; font-weight: 700; }
.kpi b { font-size: 36px; line-height: 1.1; color: var(--text); }
.kpi-label { font-size: 15px; font-weight: 700; color: var(--text); }
.kpi small { font-size: 13px; color: #7b8688; }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.panel-h { font-size: 18px; margin: 0 0 14px; padding: 0; }
.panel-h::after { display: none; }
.empty-state { text-align: center; padding: 26px 10px; color: #7b8688; font-size: 15px; }
.empty-state b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
#recent table { width: 100%; border-collapse: collapse; font-size: 15px; }
#recent th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #7b8688; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
#recent td { padding: 11px 8px; border-bottom: 1px solid #eef2f0; }
.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: ms; display: grid; gap: 16px; }
.mini-steps li { counter-increment: ms; position: relative; padding-left: 44px; display: grid; gap: 2px; }
.mini-steps li::before { content: counter(ms); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.mini-steps b { font-size: 15px; } .mini-steps span { font-size: 14px; color: #5b6669; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 26px; }
  .auth-side h2 { font-size: 26px; }
  .auth-card { padding: 30px 22px; }
  .kpis { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .linkrow { flex-direction: column; }
  .hero-card { padding: 24px 20px; }
  .acc { padding: 28px 16px 60px; }
}
.field label { display: block; }
.linkbtn { text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand .logo { width: 30px; height: 30px; }
  nav { gap: 12px; }
  nav .acct { font-size: 15px; white-space: nowrap; }
  nav .login { padding: 5px 12px; font-size: 15px; }
}
@media (max-width: 440px) {
  nav .login { display: none; } /* Contact is also in the footer */
}
.dash-grid > * { min-width: 0; }
#recent { overflow-x: auto; }
#recent td, #recent th { white-space: nowrap; }
/* the footer always at the bottom, also on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* profile button + menu in the header (signed in) */
.profile { position: relative; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font: inherit; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #11916f, #064534); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent-soft); }
.avatar:hover, .avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.profile-menu { position: absolute; right: 0; top: calc(100% + 12px); z-index: 20; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,20,22,.16); padding: 8px; }
.pm-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 2px; }
.pm-head b { font-size: 16px; } .pm-head span { font-size: 14px; color: #5b6669; word-break: break-all; }
.pm-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.pm-item:hover { background: var(--band); color: var(--text); }
.pm-out { color: #a31f25; }
.pm-out:hover { color: #a31f25; }
/* profile button: far right, separated, a person icon + name + arrow (looks like an account button, not a logo) */
.profile { margin-left: 6px; padding-left: 20px; border-left: 1px solid var(--line); height: 40px; display: flex; align-items: center; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); transition: background .15s, border-color .15s, box-shadow .15s; }
.me-btn:hover, .me-btn[aria-expanded="true"] { background: var(--band); border-color: #b9c6c1; box-shadow: 0 2px 8px rgba(15,20,22,.08); }
.me-ico { width: 32px; height: 32px; border-radius: 50%; background: #e3e8e6; display: grid; place-items: center; }
.me-ico svg { width: 20px; height: 20px; fill: none; stroke: #5b6669; stroke-width: 2; stroke-linecap: round; }
.me-caret { width: 16px; height: 16px; fill: none; stroke: #5b6669; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.me-btn[aria-expanded="true"] .me-caret { transform: rotate(180deg); }
.me-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) {
  .profile { padding-left: 12px; margin-left: 0; }
  .me-name, .me-caret { display: none; }
  .me-btn { padding: 4px; }
}

/* ===== balance + payouts ===== */
.bal-card { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 20px; align-items: center; }
.bal-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.bal-amount { display: block; font-size: 40px; line-height: 1.1; color: var(--text); margin: 4px 0 2px; }
.bal-sub { font-size: 13px; color: #7b8688; }
.bal-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bal-side div { background: var(--band); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.bal-side span { font-size: 12px; color: #5b6669; font-weight: 600; } .bal-side b { font-size: 18px; color: var(--text); }
.bal-act { display: grid; gap: 6px; justify-items: end; }
.bal-act .btn { cursor: pointer; border-radius: 10px; white-space: nowrap; }
.bal-act .btn:disabled { background: #c9d3cf; border-color: #c9d3cf; color: #fff; cursor: not-allowed; opacity: 1; }
.bal-why { font-size: 12px; color: #7b8688; max-width: 200px; text-align: right; }
.po-form { margin-top: 16px; display: grid; gap: 16px; }
.po-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.po-m { border: 1.5px solid #c9d3cf; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.po-m:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.po-m input { accent-color: var(--accent); width: 18px; height: 18px; }
.po-m span { display: grid; } .po-m small { color: #5b6669; }
.po-fields { display: grid; gap: 14px; }
.field select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #c9d3cf; border-radius: 10px; background: #fff; }
.po-buttons { display: flex; gap: 10px; }
.po-buttons .btn { cursor: pointer; border-radius: 10px; }
.po-h { margin-top: 22px; }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.ok { background: var(--accent-soft); color: var(--accent-dark); } .st.wait { background: #fff2cc; color: #7a5300; } .st.no { background: #fdecec; color: #a31f25; } .st.grey { background: #eef2f0; color: #5b6669; }
.adm-gap { margin-top: 16px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #7b8688; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 10px 8px; border-bottom: 1px solid #eef2f0; vertical-align: top; }
.adm-table .mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
.adm-table .btn { padding: 6px 12px; font-size: 13px; border-radius: 8px; cursor: pointer; margin: 0 4px 4px 0; }
#a-payouts, #a-earnings, #payouts { overflow-x: auto; }
@media (max-width: 860px) {
  .bal-card { grid-template-columns: 1fr; }
  .bal-act { justify-items: stretch; } .bal-why { text-align: left; max-width: none; }
  .bal-side { grid-template-columns: 1fr 1fr 1fr; }
  .po-methods { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  nav .profile-menu a.pm-item { display: block; } /* the menu link must stay visible (the rule above hides the header links on phones) */
}

/* ---- legal pages, cookie notice ---- */
footer .foot-note { flex-basis: 100%; font-size: 13px; color: #b7c2bf; }
.legal ul { padding-left: 20px; } .legal li { margin: 6px 0; font-size: 17px; }
.operator { font-size: 15px; margin: 0 0 8px; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e1e6ea; vertical-align: top; }
.cookie-table code { background: #eef2f4; padding: 1px 6px; border-radius: 6px; }
@media (max-width: 700px) { .cookie-table thead { display: none; } .cookie-table tr { display: block; border-bottom: 1px solid #e1e6ea; padding: 6px 0; } .cookie-table td { display: block; border: 0; padding: 3px 0; } }
#cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 780px; margin: 0 auto; background: #fff; color: #1c2226; border: 1px solid #e1e6ea; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.2); padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; z-index: 60; }
#cookie-bar p { margin: 0; flex: 1 1 300px; font-size: 14px; line-height: 1.5; }
#cookie-bar a { color: #0a6b52; }
#cookie-bar .cb-btns { display: flex; gap: 8px; }
#cookie-bar button { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer; border: 1px solid #0a6b52; }
#cookie-bar button[data-c="all"] { background: #0a6b52; color: #fff; }
#cookie-bar button[data-c="essential"] { background: #fff; color: #0a6b52; }
