/*
 * The signed-in pages (dashboard, ambassador, elements, profile) dressed as
 * the marketing site: Plus Jakarta Sans, cards lifted by layered shadows with
 * no hairlines, section titles as small labelled pills, the action as the red
 * → orange pill with its soft glow, the second button a black pill — and some
 * sections black (.dash-dark), the way the site alternates dark and light.
 *
 * Plain CSS on top of the pages' compiled Tailwind, scoped to .brand-ui, so it
 * needs no asset rebuild (public/build is not part of a deploy).
 */
.brand-ui {
  --a: #fb0237; --b: #ff8a1e;
  --brand: linear-gradient(115deg, var(--a), var(--b));
  --ink: #0f1117; --body: #5a5d6a; --muted: #8a8d99;
  --line-1: #e9eaef; --sunk: #f6f7f9;
  --e1: 0 1px 2px rgba(18, 18, 24, .04), 0 4px 12px rgba(18, 18, 24, .04);
  --e2: 0 2px 4px rgba(18, 18, 24, .04), 0 12px 28px -8px rgba(18, 18, 24, .10);
  --glow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px -12px rgba(251, 2, 55, .75);
  --glow-hover: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 32px -12px rgba(251, 2, 55, .8);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}
.brand-ui ::selection { background: rgba(251, 2, 55, .16); }

/* The page and its header */
.brand-ui .bg-slate-50 { background-color: var(--sunk) !important; }
.brand-ui main { padding-top: 36px; }
.brand-ui > div > div > header { border-bottom-color: transparent !important; box-shadow: var(--e1); }
.brand-ui header h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem) !important; font-weight: 700 !important; letter-spacing: -.03em !important; color: var(--ink) !important; }
.brand-ui .text-slate-900 { color: var(--ink); }

/* The sidebar: black, with the site's gradient on the page you are on */
.brand-ui aside.bg-\[\#05060a\] { background: #000 !important; }
.brand-ui aside a.bg-gradient-to-r { background: var(--brand) !important; box-shadow: var(--glow) !important; border-radius: 999px !important; }
.brand-ui aside nav a { border-radius: 999px !important; }

/* Cards: lifted, not outlined */
.brand-ui .rounded-2xl.border.border-slate-200 {
  border-color: transparent !important; border-radius: 20px !important; box-shadow: var(--e2) !important;
}
/* A card that was dark already joins the black sections */
.brand-ui .rounded-2xl.bg-slate-900 {
  background: linear-gradient(180deg, #19191c 0%, #0c0c0e 34%, #050506 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 4px 10px rgba(0, 0, 0, .25), 0 30px 60px -28px rgba(0, 0, 0, .6) !important;
}
.brand-ui .bg-slate-900 h3.text-sm.font-semibold.uppercase.tracking-wide.text-slate-400 { background: rgba(255, 255, 255, .06); color: #ff9070 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.brand-ui .rounded-xl.border.border-slate-100 { border-color: var(--line-1) !important; border-radius: 14px !important; }

/* Section titles: the site's labelled pills */
.brand-ui h3.text-sm.font-semibold.uppercase.tracking-wide.text-slate-400,
.brand-ui p.text-xs.font-semibold.uppercase.tracking-wide.text-slate-400 {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  padding: 6px 12px; border-radius: 999px;
  font-size: .7rem !important; font-weight: 700 !important; letter-spacing: .08em !important; line-height: 1.2;
  background: rgba(251, 2, 55, .07); color: #e0002e !important; box-shadow: inset 0 0 0 1px rgba(251, 2, 55, .13);
}

/* Icon tiles: one family, in our colour */
.brand-ui .h-10.w-10.rounded-xl[class*="bg-"][class*="-50"],
.brand-ui .h-9.w-9.rounded-lg.bg-slate-50 {
  background: var(--brand) !important; color: #fff !important; box-shadow: var(--glow);
}

/* Buttons. The action: the red → orange pill. */
.brand-ui a.bg-yellow-400, .brand-ui button.bg-yellow-400,
.brand-ui a.bg-emerald-600, .brand-ui button.bg-emerald-600 {
  background: var(--brand) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  box-shadow: var(--glow); font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.brand-ui a.bg-yellow-400:hover, .brand-ui button.bg-yellow-400:hover,
.brand-ui a.bg-emerald-600:hover, .brand-ui button.bg-emerald-600:hover { transform: translateY(-1px); box-shadow: var(--glow-hover); }
/* The second button: a black pill */
.brand-ui a.border-yellow-400, .brand-ui button.border-yellow-400,
.brand-ui a.bg-slate-900, .brand-ui button.bg-slate-900 {
  background: #12141a !important; color: #fff !important; border-color: transparent !important; border-radius: 999px !important; transition: transform .2s, background .2s;
}
.brand-ui a.border-yellow-400:hover, .brand-ui button.border-yellow-400:hover,
.brand-ui a.bg-slate-900:hover, .brand-ui button.bg-slate-900:hover { background: #1d2028 !important; transform: translateY(-1px); }
/* Quiet buttons: white pills */
.brand-ui button.rounded-full.border.border-slate-200, .brand-ui a.rounded-full.border.border-slate-200 {
  background: #fff; border-color: transparent !important; box-shadow: 0 1px 2px rgba(18, 18, 24, .06), inset 0 0 0 1px rgba(15, 17, 23, .1);
}
.brand-ui .text-yellow-600, .brand-ui .text-yellow-700 { color: #e0002e !important; }

/* Fields */
.brand-ui input[type="text"], .brand-ui input[type="email"], .brand-ui input[type="password"], .brand-ui input:not([type]), .brand-ui select, .brand-ui textarea {
  border-radius: 12px; border-color: var(--line-1);
}
.brand-ui input:focus, .brand-ui select:focus, .brand-ui textarea:focus { border-color: #ff5a36 !important; box-shadow: 0 0 0 3px rgba(251, 2, 55, .12) !important; outline: 0; }

/* ---- Black sections -------------------------------------------------------- */
.brand-ui .dash-dark {
  /* Gloss black: a highlight along the top edge, black below — no colour haze. */
  background: linear-gradient(180deg, #19191c 0%, #0c0c0e 34%, #050506 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 4px 10px rgba(0, 0, 0, .25), 0 30px 60px -28px rgba(0, 0, 0, .6) !important;
  color: rgba(255, 255, 255, .7);
}
.brand-ui .dash-dark .text-slate-900, .brand-ui .dash-dark .text-slate-800, .brand-ui .dash-dark .text-slate-700 { color: #fff !important; }
.brand-ui .dash-dark .text-slate-600, .brand-ui .dash-dark .text-slate-500 { color: rgba(255, 255, 255, .62) !important; }
.brand-ui .dash-dark .text-slate-400 { color: rgba(255, 255, 255, .45) !important; }
.brand-ui .dash-dark .text-emerald-600 { color: #4ade80 !important; }
.brand-ui .dash-dark .text-amber-600 { color: #fbbf24 !important; }
.brand-ui .dash-dark .border-slate-100, .brand-ui .dash-dark .border-slate-200 { border-color: rgba(255, 255, 255, .08) !important; }
.brand-ui .dash-dark .bg-slate-50 { background-color: rgba(255, 255, 255, .05) !important; }
.brand-ui .dash-dark .bg-white { background-color: rgba(255, 255, 255, .04) !important; }
.brand-ui .dash-dark .rounded-xl.border.border-slate-100 { border-color: rgba(255, 255, 255, .08) !important; background: rgba(255, 255, 255, .03); }
.brand-ui .dash-dark h3.text-sm.font-semibold.uppercase.tracking-wide.text-slate-400 { background: rgba(255, 255, 255, .06); color: #ff9070 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
/* On black, the second button is white, the quiet one glass — as on the site */
.brand-ui .dash-dark a.bg-slate-900, .brand-ui .dash-dark button.bg-slate-900,
.brand-ui .dash-dark a.border-yellow-400, .brand-ui .dash-dark button.border-yellow-400 { background: #fff !important; color: var(--ink) !important; }
.brand-ui .dash-dark a.bg-slate-900:hover, .brand-ui .dash-dark button.bg-slate-900:hover,
.brand-ui .dash-dark a.border-yellow-400:hover, .brand-ui .dash-dark button.border-yellow-400:hover { background: #f1f2f5 !important; }
.brand-ui .dash-dark button.rounded-full.border.border-slate-200, .brand-ui .dash-dark a.rounded-full.border.border-slate-200,
.brand-ui .dash-dark button.rounded-full.text-slate-500 {
  background: rgba(255, 255, 255, .08) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1) !important;
}
.brand-ui .dash-dark button.rounded-full.text-slate-500:hover { background: rgba(255, 255, 255, .14) !important; }
.brand-ui .dash-dark input, .brand-ui .dash-dark select, .brand-ui .dash-dark textarea {
  background: rgba(255, 255, 255, .06) !important; color: #fff !important; border-color: rgba(255, 255, 255, .12) !important;
}
.brand-ui .dash-dark .h-9.w-9.rounded-lg.bg-slate-50 { background: rgba(255, 255, 255, .07) !important; color: #ff9070 !important; box-shadow: none; }

/* Progress bars (the referral goal, Buy it for me): the site's gradient on a
   quiet track. Their Tailwind gradient classes are not in the compiled CSS, so
   the fill was invisible and the track a bright strip on the black cards. */
.brand-ui .h-2.overflow-hidden.rounded-full { background: rgba(15, 17, 23, .08) !important; }
.brand-ui .dash-dark .h-2.overflow-hidden.rounded-full { background: rgba(255, 255, 255, .1) !important; }
.brand-ui .h-2.overflow-hidden.rounded-full > div { background: var(--brand) !important; box-shadow: 0 0 10px -2px rgba(251, 2, 55, .55); }

/*
 * One-click sign-up (v2/partials/quick-signup) — the marketing pages, which do
 * not have .brand-ui, so these are scoped by their own .qs- names. A slim lifted
 * card under the hero: the line on the left, the email field and the brand pill
 * inside one soft well on the right. Uses the v2 layout's tokens (--ink, --a…).
 */
.qs-band { padding: 34px 0 0; position: relative; z-index: 2; }
.qs-band.qs-inline { padding: 0; }
.qs-card {
  max-width: 880px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px;
  background: #fff; border-radius: 22px; padding: 12px 12px 12px 26px;
  box-shadow: 0 2px 4px rgba(18, 18, 24, .04), 0 12px 28px -8px rgba(18, 18, 24, .10);
}
.qs-copy { flex: 1 1 220px; min-width: 0; line-height: 1.35; }
.qs-copy b { display: block; color: var(--ink, #121218); font-weight: 600; font-size: 1.02rem; }
.qs-copy span { font-size: .86rem; color: var(--body, #63646d); }
.qs-form { flex: 2 1 400px; min-width: 0; display: flex; gap: 6px; align-items: center; background: var(--sunk, #f4f4f6); border-radius: 100px; padding: 5px; transition: box-shadow .2s; }
.qs-form:focus-within { box-shadow: 0 0 0 2px rgba(251, 2, 55, .28); }
.qs-form input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; font-size: .98rem; color: var(--ink, #121218); outline: none; box-shadow: none; }
.qs-form input[type=email]::placeholder { color: var(--muted, #8e8f99); }
.qs-form .btn { padding: 7px 7px 7px 20px; font-size: .95rem; gap: 10px; flex: none; }
.qs-form .btn .disc { width: 32px; height: 32px; }
.qs-fine { max-width: 880px; margin: 10px auto 0; text-align: center; font-size: .8rem; line-height: 1.5; color: var(--muted, #8e8f99); }
.qs-fine a { color: var(--ink, #121218); text-decoration: underline; text-underline-offset: 2px; }
.qs-msg, .qs-err { max-width: 880px; margin: 0 auto; border-radius: 16px; padding: 13px 18px; font-size: .92rem; text-align: center; }
.qs-msg { background: #fff; color: var(--ink, #121218); box-shadow: 0 2px 4px rgba(18, 18, 24, .04), 0 12px 28px -8px rgba(18, 18, 24, .10); }
.qs-err { margin-top: 10px; background: rgba(251, 2, 55, .07); color: #c4002b; }
.qs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.qs-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .qs-band { padding-top: 26px; }
  .qs-card { padding: 16px; border-radius: 20px; }
  .qs-form { flex-basis: 100%; }
  .qs-form input[type=email] { padding: 10px 12px; font-size: 16px; }
  .qs-form .btn { padding-left: 16px; }
}

/* The one-time password panel on the dashboard after a one-click sign-up. */
.brand-ui .qs-welcome {
  border-radius: 20px; padding: 22px 24px; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 42%), linear-gradient(155deg, #141417, #000);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .7);
}
.brand-ui .qs-welcome-title { margin: 0 0 6px; font-weight: 700; font-size: 1.05rem; color: #fff; }
.brand-ui .qs-welcome-text { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.brand-ui .qs-welcome-text b { color: #fff; }
.brand-ui .qs-welcome-pw { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.brand-ui .qs-welcome-pw code { font: 700 1.25rem/1.2 Menlo, Consolas, monospace; letter-spacing: .06em; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 14px; color: #fff; user-select: all; word-break: break-all; }
.brand-ui .qs-welcome-pw button { border: 0; border-radius: 100px; padding: 9px 18px; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: linear-gradient(115deg, #fb0237, #ff8a1e); box-shadow: 0 10px 24px -10px rgba(251, 2, 55, .7); }

/*
 * Skynat Live Hybrid Beta on the downloads page (config/skynat_beta.php):
 * a gloss-black panel of its own, apart from the current release's cards.
 */
.beta-panel {
  margin: 56px 0 0; border-radius: 28px; padding: 36px; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 40%), linear-gradient(155deg, #141417, #000);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6);
}
.beta-head h2 { color: #fff; margin: 10px 0 4px; }
.beta-pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; border-radius: 100px; padding: 5px 12px; background: linear-gradient(115deg, var(--a, #fb0237), var(--b, #ff8a1e)); }
.beta-ver { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.beta-note { margin: 14px 0 0; max-width: 64ch; font-size: .98rem; color: rgba(255, 255, 255, .82); }
.beta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.beta-item { display: flex; flex-direction: column; gap: 8px; border-radius: 18px; padding: 14px; background: rgba(255, 255, 255, .06); }
.beta-item .btn { justify-content: space-between; white-space: normal; text-align: left; line-height: 1.25; font-size: .95rem; padding: 8px 8px 8px 18px; }
.beta-sub { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.beta-sub a, .beta-oss a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.beta-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; align-items: start; }
.beta-foot h3 { color: #fff; font-size: 1rem; margin: 0 0 8px; }
.beta-foot ul { margin: 0; padding-left: 20px; line-height: 1.8; font-size: .92rem; color: rgba(255, 255, 255, .78); }
.beta-oss { margin: 0; font-size: .86rem; line-height: 1.6; color: rgba(255, 255, 255, .62); }
@media (max-width: 980px) { .beta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .beta-panel { padding: 24px 18px; } .beta-grid, .beta-foot { grid-template-columns: 1fr; } }
