/* AffiliateHub — design tokens, light/dark themes, RTL-safe (logical properties only) */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --font: "Inter", "Plex Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Default theme: Cognac & Forest on warm paper. Overridden by /theme.css (Admin → Theme). */
  --bg: #faf7f2; --bg-2: #f3eee6; --surface: #ffffff; --surface-2: #fcfaf6; --surface-3: #f4efe7;
  --text: #231a13; --text-2: #5a4b3f; --text-3: #8a7a6c;
  --border: #e9e1d6; --border-2: #dcd2c4;
  --primary: #9c5a2b; --primary-text: #ffffff;
  --accent: #2e7d5b; --accent-text: #ffffff;
  --success: #1f7a52; --warn: #a15c07; --danger: #b4233a; --info: #2b6390;
  --shadow: 0 1px 2px rgba(35,26,19,.05), 0 8px 24px -12px rgba(35,26,19,.14);
  --shadow-lg: 0 24px 60px -24px color-mix(in srgb, var(--primary) 35%, rgba(35,26,19,.4));
  --soft-mix: 12%;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #120e0b; --bg-2: #17120e; --surface: #1d1713; --surface-2: #221b16; --surface-3: #2a221b;
  --text: #f4ede6; --text-2: #c8bbae; --text-3: #988a7d;
  --border: #33291f; --border-2: #43362a;
  --primary: #d8955b; --primary-text: #1a120b;
  --accent: #4fc08d; --accent-text: #0b1a12;
  --success: #4fc08d; --warn: #f0b04a; --danger: #ff7a8a; --info: #6fb3e8;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.8);
  --soft-mix: 16%;
  color-scheme: dark;
}

:root {
  --primary-2: color-mix(in srgb, var(--primary) 84%, var(--text));
  --primary-soft: color-mix(in srgb, var(--primary) var(--soft-mix), var(--surface));
  --accent-soft: color-mix(in srgb, var(--accent) var(--soft-mix), var(--surface));
  --success-soft: color-mix(in srgb, var(--success) var(--soft-mix), var(--surface));
  --warn-soft: color-mix(in srgb, var(--warn) var(--soft-mix), var(--surface));
  --danger-soft: color-mix(in srgb, var(--danger) var(--soft-mix), var(--surface));
  --info-soft: color-mix(in srgb, var(--info) var(--soft-mix), var(--surface));
  --hero-glow: radial-gradient(60rem 30rem at 15% -10%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 60%), radial-gradient(40rem 26rem at 95% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  --grid-line: color-mix(in srgb, var(--primary) 8%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:lang(ar) body, body:lang(ar) { font-family: "Plex Arabic", "Inter", system-ui, sans-serif; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: .88em; }
::selection { background: var(--primary); color: var(--primary-text); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--primary); color: var(--primary-text); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.stack > * + * { margin-block-start: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.hidden { display: none !important; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2.5rem); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem; }
:lang(ar) .eyebrow { letter-spacing: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 16px -6px var(--primary); }
.nav-links { display: flex; gap: .25rem; margin-inline-start: 1.5rem; }
.nav-links a { color: var(--text-2); padding: .45rem .75rem; border-radius: 9px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-3); text-decoration: none; }
.nav-actions { display: flex; gap: .5rem; align-items: center; margin-inline-start: auto; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 60; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; color: var(--text); font: inherit; background: none; border: 0; cursor: pointer; text-align: start; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-3); text-decoration: none; }
.dropdown-menu .active { color: var(--primary); font-weight: 600; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding-inline: .7rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .85rem; }

.nav-wide { padding-inline: 1.25rem; }
.menu-who { padding: .5rem .7rem .6rem; font-size: .82rem; color: var(--text-3); border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.footer-tag { margin: .9rem 0 1rem; max-width: 22rem; }

/* Buttons */
.btn { --b: var(--surface); --c: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; border-radius: 11px; border: 1px solid var(--border-2); background: var(--b); color: var(--c); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { --b: var(--primary); --c: var(--primary-text); border-color: transparent; box-shadow: 0 8px 20px -10px var(--primary); }
.btn-primary:hover { --b: var(--primary-2); }
.btn-accent { --b: var(--accent); --c: var(--accent-text); border-color: transparent; }
.btn-ghost { --b: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { --b: var(--surface-3); box-shadow: none; }
.btn-danger { --b: var(--danger-soft); --c: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .85rem; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.02rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); background: var(--hero-glow); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .grad { background: linear-gradient(100deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-proof { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; color: var(--text-3); font-size: .9rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof svg { width: 16px; height: 16px; color: var(--accent); }

/* Flow visual (click → postback) */
.flow-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem; position: relative; }
.flow-card .dots { display: flex; gap: 6px; margin-bottom: 1rem; }
.flow-card .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.flow-step { display: grid; grid-template-columns: 36px 1fr auto; gap: .8rem; align-items: center; padding: .8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.flow-step + .flow-step { margin-top: .6rem; }
.flow-step .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.flow-step .ic svg { width: 18px; height: 18px; }
.flow-step.ok .ic { background: var(--accent-soft); color: var(--accent); }
.flow-step b { display: block; font-size: .92rem; }
.flow-step code { display: block; color: var(--text-3); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.flow-step .tag { font-size: .72rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.pad-lg { padding: 2rem; }
.card h3 { margin-bottom: .4rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.1rem; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem; }
.feature .ic svg { width: 22px; height: 22px; }
.feature p { color: var(--text-2); margin: 0; }
.feature.green .ic { background: var(--accent-soft); color: var(--accent); }
.audience { position: relative; overflow: hidden; padding: 2rem; }
.audience ul { padding: 0; margin: 1.2rem 0 1.6rem; list-style: none; }
.audience li { display: flex; gap: .6rem; align-items: flex-start; padding-block: .35rem; color: var(--text-2); }
.audience li svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--success); }
.model-card { border-top: 4px solid var(--primary); }
.model-card.cpa { border-top-color: var(--accent); }
.model-card .big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { list-style: none; counter-increment: s; position: relative; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-weight: 700; color: var(--primary); display: block; margin-bottom: .6rem; }
.steps { padding: 0; margin: 0; }

.cta-band { border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 50%, var(--accent))); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn { --b: #fff; --c: color-mix(in srgb, var(--primary) 70%, #000); border-color: transparent; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge.ok, .badge.approved, .badge.active, .badge.sent { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge.warn, .badge.pending, .badge.pendingreview, .badge.paused { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.danger, .badge.rejected, .badge.suspended, .badge.failed, .badge.ended { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.info, .badge.draft { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; }
.field > label, .label { font-weight: 600; font-size: .88rem; color: var(--text); }
.field .hint { font-size: .8rem; color: var(--text-3); }
.input, input[type=text].input, select.input, textarea.input { width: 100%; min-height: 44px; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.input.code, .input.code { font-family: var(--mono); font-size: .85rem; direction: ltr; text-align: left; }
.input:hover { border-color: var(--text-3); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.input[readonly] { background: var(--surface-2); }
.input.ltr, input[type=email].input, input[type=url].input, input[type=tel].input, input[inputmode=numeric].input { direction: ltr; text-align: start; }
[dir="rtl"] input[type=email].input, [dir="rtl"] input[type=url].input, [dir="rtl"] input[type=tel].input, [dir="rtl"] .input.ltr { text-align: right; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a8199' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; padding-inline-end: 2.2rem; }
[dir="rtl"] select.input { background-position: left .7rem center; }
.input-validation-error { border-color: var(--danger) !important; }
.field-validation-error, .text-danger { color: var(--danger); font-size: .82rem; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 1.1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--primary); flex: none; }
.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: 0; }
.input-group > :first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.input-group > :last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.input-group > * + * { margin-inline-start: -1px; }
.input-group .btn { border-radius: 0; min-height: 44px; }
.phone-group { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: .5rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 3rem; }
.pw-toggle { position: absolute; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--text-3); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pw-toggle svg { width: 18px; height: 18px; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { min-height: 65px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; margin: 0; }
legend { font-weight: 700; padding-inline: .4rem; }

/* Alerts */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; border: 1px solid transparent; font-size: .93rem; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.alert.ok { background: var(--success-soft); color: var(--success); }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert p { margin: 0; color: var(--text); }
.alert strong { color: inherit; }

/* Auth */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 3rem 1.25rem; background: var(--hero-glow); }
.auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-lg); }
.auth-card.wide { width: min(760px, 100%); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .35rem; }
.auth-steps { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.auth-steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--border); }
.auth-steps i.on { background: var(--primary); }
.who { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-weight: 600; direction: ltr; }
.who a { font-weight: 500; font-size: .85rem; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--text-3); font-size: .82rem; margin-block: 1.2rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social { display: grid; gap: .5rem; }
.social .btn { justify-content: flex-start; }
.social .btn svg { width: 20px; height: 20px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.role-pick a { display: block; padding: 1.1rem; border: 1.5px solid var(--border); border-radius: 14px; color: var(--text); background: var(--surface); }
.role-pick a:hover { border-color: var(--primary); text-decoration: none; }
.role-pick a.on { border-color: var(--primary); background: var(--primary-soft); }
.role-pick b { display: block; margin-bottom: .2rem; }
.role-pick span { font-size: .85rem; color: var(--text-3); }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: 200px; border: 1px solid var(--border); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; font-family: var(--mono); direction: ltr; }
.codes span { background: var(--surface-3); padding: .4rem .6rem; border-radius: 8px; text-align: center; }

/* Panel layout */
.panel { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 68px); }
.sidebar { border-inline-end: 1px solid var(--border); background: var(--surface); padding: 1.25rem .9rem; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; }
.sidebar .who-mini { padding: .6rem .7rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: .8rem; }
.sidebar .who-mini b { display: block; font-size: .95rem; }
.sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .93rem; }
.sidebar nav a svg { width: 18px; height: 18px; flex: none; }
.sidebar nav a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.sidebar nav a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sidebar .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 1rem .7rem .4rem; font-weight: 700; }
.sidebar .count { margin-inline-start: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .45rem; font-weight: 700; }
.panel-main { padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head p { margin: .3rem 0 0; color: var(--text-3); }
.crumbs { display: flex; gap: .4rem; align-items: center; font-size: .85rem; color: var(--text-3); margin-bottom: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--text-3); }
.crumbs svg { width: 14px; height: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat .k { font-size: .8rem; color: var(--text-3); font-weight: 600; }
.stat .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: .2rem; }
.stat .d { font-size: .78rem; color: var(--text-3); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: .5rem; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bars .bar .pair { display: flex; gap: 2px; align-items: flex-end; flex: 1 1 auto; min-height: 0; width: 100%; justify-content: center; }
.bars .bar i { width: 50%; max-width: 14px; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, color-mix(in srgb, var(--primary) 70%, transparent), var(--primary)); min-height: 2px; height: 2px; transition: height .6s var(--ease); }
.bars .bar i.conv { background: linear-gradient(to top, color-mix(in srgb, var(--accent) 70%, transparent), var(--accent)); }
.bars .bar span { font-size: .65rem; color: var(--text-3); }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--text-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); margin-inline-end: .35rem; vertical-align: -1px; }
.legend i.conv { background: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
:lang(ar) .table th { letter-spacing: 0; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table td.actions { white-space: nowrap; text-align: end; }
.table .mono { direction: ltr; unicode-bidi: isolate; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-3); }
.empty svg { width: 40px; height: 40px; margin: 0 auto .8rem; opacity: .6; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar .input { width: auto; min-width: 180px; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; }

/* Code & macros */
.code-box { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .85rem 3.2rem .85rem 1rem; font-family: var(--mono); font-size: .82rem; word-break: break-all; direction: ltr; text-align: left; color: var(--text); }
.code-box .copy { position: absolute; top: .45rem; right: .45rem; }
.code-box .m, .hl-macro { color: var(--primary); background: var(--primary-soft); border-radius: 4px; padding: 0 2px; font-weight: 600; }
.code-box .bad { color: var(--danger); background: var(--danger-soft); border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; font-family: var(--mono); font-size: .78rem; padding: .25rem .55rem; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent); background: var(--primary-soft); color: var(--primary); cursor: pointer; direction: ltr; }
.chip:hover { border-style: solid; }
.chip.alt { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--accent); }
.macro-table td:first-child { font-family: var(--mono); color: var(--primary); white-space: nowrap; direction: ltr; }
.mapper { display: grid; gap: .5rem; }
.mapper-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.2fr) minmax(160px, 1.3fr); gap: .5rem; align-items: center; padding: .55rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.mapper-row .k { font-family: var(--mono); font-weight: 700; direction: ltr; text-align: start; overflow-wrap: anywhere; }
.mapper-row .v { font-family: var(--mono); font-size: .8rem; color: var(--text-3); direction: ltr; overflow-wrap: anywhere; }
.mapper-row.mapped { border-color: color-mix(in srgb, var(--success) 50%, transparent); background: var(--success-soft); }
.mapper-head { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.2fr) minmax(160px, 1.3fr); gap: .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; padding-inline: .55rem; }
.test-result { border-radius: 12px; border: 1px solid var(--border); padding: 1rem; background: var(--surface-2); }
.test-result pre { margin: .6rem 0 0; white-space: pre-wrap; word-break: break-all; max-height: 180px; overflow: auto; direction: ltr; text-align: left; }
.test-result.ok { border-color: color-mix(in srgb, var(--success) 50%, transparent); }
.test-result.fail { border-color: color-mix(in srgb, var(--danger) 50%, transparent); }

/* Breadcrumb wizard (contact) */
.wizard-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); margin-bottom: 1.25rem; font-size: .9rem; }
.wizard-crumbs button { border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: .2rem .35rem; border-radius: 6px; }
.wizard-crumbs button:disabled { color: var(--text); cursor: default; }
.wizard-crumbs .sep { color: var(--text-3); }
.wizard-crumbs .sep svg { width: 14px; height: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 1rem 1.1rem; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); height: 100%; }
.choice span b { display: block; margin-bottom: .2rem; }
.choice span small { color: var(--text-3); }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.wizard[data-js] .wstep { display: none; }
.wizard[data-js] .wstep.on { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Samples */
.sample { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; padding: 2rem; }
.sample + .sample { margin-top: 1.5rem; }
.sample .flow { counter-reset: f; padding: 0; margin: 1rem 0; list-style: none; }
.sample .flow li { counter-increment: f; display: flex; gap: .75rem; padding-block: .45rem; color: var(--text-2); }
.sample .flow li::before { content: counter(f); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .8rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; font-size: .9rem; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 600; }
.sample-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; position: sticky; top: 76px; z-index: 5; padding: .5rem; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-radius: 14px; border: 1px solid var(--border); }
.sample-nav a { padding: .4rem .8rem; border-radius: 9px; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.sample-nav a:hover { background: var(--surface-3); text-decoration: none; }

/* Legal */
.legal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal p, .legal li { color: var(--text-2); }
.legal ul, .legal ol { padding-inline-start: 1.3rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .9rem; }
.legal td, .legal th { border: 1px solid var(--border); padding: .5rem .7rem; text-align: start; vertical-align: top; }
.legal .legal-missing { color: var(--warn); }
.legal-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.legal-tabs a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: .88rem; font-weight: 600; background: var(--surface); }
.legal-tabs a.on { background: var(--primary); color: var(--primary-text); border-color: transparent; }
.legal-tabs a:hover { text-decoration: none; }

/* Tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a, .tabs button { padding: .7rem 1rem; color: var(--text-3); font-weight: 600; border: 0; background: none; font: inherit; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs a.on, .tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 3.5rem 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: .9rem; }
:lang(ar) .site-footer h4 { letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer ul a { color: var(--text-2); font-size: .93rem; }
.site-footer address { font-style: normal; color: var(--text-2); font-size: .9rem; line-height: 1.7; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); }
.socials a:hover { color: var(--primary); border-color: var(--primary); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: var(--text-3); }
.footer-bottom nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-3); }

/* Translation editor */
.tr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.tr-row .src { font-size: .9rem; color: var(--text-2); direction: ltr; text-align: left; white-space: pre-wrap; }
.tr-row textarea { min-height: 44px; }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0; }

/* Error */
.error-page { text-align: center; padding-block: 6rem; }
.error-page .code { font-size: 5rem; font-weight: 800; background: linear-gradient(100deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .sample { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: .75rem 1.25rem 1.25rem; margin: 0; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem; }
  .menu-toggle { display: inline-grid; }
  .panel { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .sidebar nav { display: flex; overflow-x: auto; gap: .25rem; }
  .sidebar nav a { white-space: nowrap; }
  .sidebar .group, .sidebar .who-mini { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .form-grid, .role-pick, .tr-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mapper-row, .mapper-head { grid-template-columns: 1fr; }
  .mapper-head { display: none; }
  .nav-actions .hide-sm { display: none; }
  .phone-group { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .sidebar, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
.sample-title { font-size: 1.45rem; margin-top: .8rem; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: .7rem 0; }
.thumb { border-radius: 10px; margin-top: .5rem; border: 1px solid var(--border); }
.offer { color: var(--text); display: block; transition: transform .15s var(--ease), border-color .15s; }
.offer:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--primary); }
.offer-title { margin: .8rem 0 .2rem; font-size: 1.05rem; }
.offer-payout { font-size: 1.5rem; font-weight: 800; margin: .5rem 0; }
.stat-link { color: var(--text); }
.stat-link:hover { text-decoration: none; border-color: var(--primary); }
.stat-link .k { font-size: .8rem; color: var(--text-3); font-weight: 600; }
.stat-link .v { font-size: 1.8rem; font-weight: 800; }
.review + .review { margin-top: 1rem; }
.pct-cell { min-width: 140px; } .pct-cell .progress { margin-bottom: .25rem; } form.inline { display: inline-block; }
.unread { border-inline-start: 4px solid var(--primary); } .msg-body { white-space: pre-wrap; margin: 0; }
.hero-grid > *, .grid > *, .flow-step > div, .sample > *, .panel-main, .form-grid > * { min-width: 0; }
.only-sm { display: none !important; }
@media (max-width: 900px) { .nav-links .only-sm { display: block !important; } }
@media (max-width: 640px) {
  .nav { gap: .5rem; }
  .nav-actions { gap: .35rem; }
  .nav-actions > .btn, .nav-actions .hide-sm { display: none; }
  .brand span:last-child { font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .cta-band .row { width: 100%; }
}
.row > .input { width: auto; flex: 0 1 200px; } .row > input.input.mono, .row > input.input.ltr { flex-basis: 160px; }
.job-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; margin-top: 1rem; }
.job-layout aside { position: sticky; top: 84px; }
.job-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: .8rem; }
.job-body { padding: clamp(1.25rem, 3vw, 2rem); }
.job-body h2:first-child { margin-top: 0; }
.apply-title { font-size: 1.3rem; margin: 0; }
.job-card { display: flex; flex-direction: column; gap: .3rem; }
.score { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-weight: 800; background: var(--surface-3); }
.score.ok { background: var(--success-soft); color: var(--success); }
.score.warn { background: var(--warn-soft); color: var(--warn); }
.score.danger { background: var(--danger-soft); color: var(--danger); }
.ai-panel { border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 140px); }
.ai-panel ul { padding-inline-start: 1.1rem; margin: .3rem 0 1rem; }
.pre { white-space: pre-wrap; }
@media (max-width: 900px) { .job-layout { grid-template-columns: 1fr; } .job-layout aside { position: static; } }
:where(svg) { width: 1.1em; height: 1.1em; flex: none; } .job-card .row { margin-top: auto; color: var(--primary); font-weight: 600; } .card-head h3 svg { display: inline; vertical-align: -2px; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.preset { text-align: start; display: grid; gap: .35rem; padding: 1rem; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.preset:hover, .preset.on { border-color: var(--primary); }
.preset.on { background: var(--primary-soft); }
.preset small { color: var(--text-3); font-size: .82rem; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(0,0,0,.08); }
.color-row { display: flex; gap: .5rem; align-items: center; }
.color-row input[type=color] { width: 52px; height: 44px; padding: 3px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); cursor: pointer; flex: none; }

/* Wide cards inside a two-column grid (Security: sessions, devices) */
.grid > .card.full { grid-column: 1 / -1; }

/* Billing and payout statuses */
.badge.completed, .badge.paid { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge.awaitingreview, .badge.review, .badge.processing, .badge.unclaimed { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.refunded, .badge.returned, .badge.completedwitherrors { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.cancelled, .badge.excluded, .badge.skipped { background: var(--surface-3); color: var(--text-3); }
.money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.money-grid .stat { padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.money-grid .stat .k { font-size: .78rem; color: var(--text-3); }
.money-grid .stat .v { font-size: 1.25rem; font-weight: 700; margin-top: .2rem; }
.input.input-sm { padding: .35rem .55rem; font-size: .85rem; min-height: 0; width: auto; max-width: 11rem; }
.neg { color: var(--danger); }

/* Connected services & integrations */
.phase-title { font-size: 1.05rem; margin: 1.25rem 0 .75rem; color: var(--text-2); }
.service .card-head { align-items: flex-start; gap: 1rem; }
.service code { padding: .1rem .4rem; border-radius: 6px; background: var(--surface-3); font-size: .82rem; word-break: break-all; }
.row.confirm .input { max-width: 16rem; }
.service details > summary { list-style: none; cursor: pointer; display: inline-flex; }
.service details > summary::-webkit-details-marker { display: none; }
.service details[open] > summary { margin-bottom: 1rem; }
.test-form { margin-top: .75rem; }
