/* SBAgency Cloud and sbcode.eu: the app's "obsidian" look (near-black,
   greys, fine borders, the gem). Shared by the account pages and the
   landing page. */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
:root {
  --bg: #0a0a0a; --card: rgba(18, 18, 18, .97); --glass: rgba(22, 22, 22, .72); --raised: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .15);
  --text: #ececec; --muted: #9d9d9d; --faint: #626262;
  --silver1: #f4f4f5; --silver2: #a1a1aa; --silver3: #d4d4d8;
  --grad: linear-gradient(120deg, #f4f4f5, #a1a1aa);
  --heading: linear-gradient(120deg, #ffffff, #d4d4d8 60%, #a1a1aa);
  --ok: #6ee7a8; --err: #f87171; --warn: #fbbf24;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", ui-monospace, "SF Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; font: 15px/1.55 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
a { color: var(--text); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
code { font-family: var(--mono); font-size: .92em; }

/* the gem, as in the app's title bar */
@keyframes spinAngle { to { --angle: 360deg; } }
.gem { position: relative; display: inline-block; flex: none; width: 13px; height: 13px; transform: rotate(45deg); border-radius: 3px; background: conic-gradient(from var(--angle), var(--silver3), var(--silver2), var(--silver1), var(--silver3)); animation: spinAngle 6s linear infinite; box-shadow: 0 0 14px rgba(228, 228, 231, .35); }
.gem > span { position: absolute; inset: 3px; border-radius: 2px; background: var(--bg); }
.gem.big { width: 54px; height: 54px; border-radius: 12px; box-shadow: 0 0 50px rgba(228, 228, 231, .25); }
.gem.big > span { inset: 10px; border-radius: 7px; background: radial-gradient(circle at 30% 30%, #2a2a2a, var(--bg)); }
@media (prefers-reduced-motion: reduce) { .gem { animation: none; } }

.top { position: sticky; top: 0; z-index: 10; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: rgba(10, 10, 10, .9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; letter-spacing: .2px; text-decoration: none; color: var(--text); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .by { font-weight: 400; color: var(--faint); font-size: 12px; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav button { background: none; border: 1px solid transparent; color: var(--muted); padding: 5px 11px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; }
nav button.on, nav button:hover { color: var(--text); background: var(--raised); }

.card { max-width: 860px; margin: 40px auto; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.card.narrow { max-width: 420px; }
h1 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -.2px; }
h2 { margin: 26px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 7px; }
input { font: inherit; font-size: 16px; color: var(--text); background: rgba(0, 0, 0, .5); border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 12px; }
input:focus { outline: none; border-color: var(--silver2); box-shadow: 0 0 0 3px rgba(161, 161, 170, .15); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; color: #0a0a0a; background: var(--grad); border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 6px 18px -8px rgba(0, 0, 0, .8); }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghostbtn, button.ghost { color: var(--text); background: none; border: 1px solid var(--line-strong); box-shadow: none; font-weight: 500; }
button.ghost { font: inherit; font-size: 13px; border-radius: 8px; padding: 6px 11px; cursor: pointer; }
.btn.ghostbtn:hover, button.ghost:hover { background: var(--raised); filter: none; }
button.danger:hover { color: var(--err); border-color: var(--err); }
.btn.danger-btn { background: #7f1d1d; color: #fff; }
.err { color: var(--err); margin: 0; min-height: 1em; font-size: 13px; }
.ok { color: var(--ok); margin: 0; font-size: 13px; }
.list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .02); flex-wrap: wrap; }
.grow { flex: 1; min-width: 180px; }
.name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(110, 231, 168, .6); }
.dot.off { background: #3f3f46; }
.code { font: 600 15px var(--mono); letter-spacing: 1px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #161616; border: 1px solid var(--line-strong); padding: 9px 16px; border-radius: 10px; font-size: 13.5px; }
@media (max-width: 520px) {
  .card { margin: 16px; padding: 20px; }
  .top { padding: 0 14px; }
  .brand .by { display: none; }
  nav { gap: 0; }
  nav button { padding: 5px 8px; }
  .item { flex-direction: column; align-items: stretch; }
  .acts .btn { flex: 1; }
}
