/* BenTech account — the site's own look: black, hairlines, one gold accent. */
:root {
  --bg: #000;
  --card: #0d0d0d;
  --field: #111;
  --line: #1d1d1d;
  --line-2: #2a2a2a;
  --ink: #fff;
  --ink-2: #b5b5b5;
  --muted: #858585;
  --gold: #b8965a;
  --gold-2: #cfa96a;
  --ok: #3fa87a;
  --bad: #ef5d5d;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans);
}
a { color: inherit; }
::selection { background: #fff; color: #000; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
}
.top .logo img { height: 34px; width: auto; display: block; }
.close-x { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line-2); transition: color .15s, border-color .15s, background .15s; }
.close-x:hover { color: var(--ink); border-color: #444; background: #111; }
.close-x svg { width: 18px; height: 18px; }

.wrap { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: 40px 16px 56px; }
.wrap.wide { max-width: 720px; }
.foot { text-align: center; color: #8a8a8a; font-size: 12.5px; padding: 0 16px 28px; }

.kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
h1 { font-family: var(--serif); font-weight: 750; font-size: clamp(28px, 5.4vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin: 8px 0 10px; }
h2 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.lead { color: var(--muted); margin-bottom: 26px; }
.lead strong { color: var(--ink-2); font-weight: 600; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 26px; }
.tabs a {
  text-align: center; padding: 8px; border-radius: 7px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { background: #1a1a1a; color: var(--ink); }

.field { margin-bottom: 16px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 9px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--ink);
  font: 500 16px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s;   /* 16px: no iPhone zoom on tap */
}
.input::placeholder { color: #4a4a4a; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,90,.18); }
.hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.pw { position: relative; }
.pw .input { padding-right: 48px; }
.pw button {
  position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 7px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.pw button:hover { color: var(--ink); background: #1a1a1a; }
.pw svg { width: 17px; height: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 9px; cursor: pointer; text-decoration: none;
  font: 700 14px var(--sans); border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { border-color: #444; background: #111; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #000; }
.btn.gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.block { width: 100%; height: 48px; }
.btn.sm { height: 36px; padding: 0 13px; font-size: 13px; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.err { color: var(--bad); font-size: 13.5px; min-height: 20px; margin: -4px 0 10px; }
.alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.alt a { color: var(--ink-2); }
.alt a:hover { color: var(--gold); }
.note { border: 1px solid var(--line-2); background: var(--card); border-radius: 9px; padding: 12px 14px; font-size: 13.5px; margin-top: 16px; color: var(--ink-2); word-break: break-all; }
.note.ok { border-color: rgba(63,168,122,.45); color: #bfe6d3; word-break: normal; }

.gbtn { min-height: 44px; display: flex; justify-content: center; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #8a8a8a; font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.fine { display: flex; gap: 8px; align-items: flex-start; margin-top: 26px; font-size: 12.5px; color: #8f8f8f; }
.fine svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }

/* signed in */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 14px; }
.me { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(184,150,90,.14); border: 1px solid rgba(184,150,90,.5); color: var(--gold); font-weight: 800;
}
.me .who { min-width: 0; flex: 1; }
.me .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who span { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.methods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 10px; color: var(--ink-2); }
.chip.on { border-color: rgba(63,168,122,.5); color: #9fdcbf; }

.prods { display: grid; gap: 10px; }
.prod {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 10px;
  border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background .15s;
}
.prod:hover { border-color: var(--gold); background: #111; }
.prod .mark { width: 38px; height: 38px; border-radius: 9px; background: #151515; display: grid; place-items: center; flex: none; }
.prod .mark i { width: 12px; height: 12px; border-radius: 50%; background: #17a34a; box-shadow: 0 0 12px rgba(23,163,74,.7); }
.prod .t { flex: 1; min-width: 0; }
.prod .t strong { display: block; }
.prod .t span { color: var(--muted); font-size: 13.5px; }
.prod .go { color: var(--gold); font-weight: 700; font-size: 13.5px; white-space: nowrap; }

.row { display: flex; gap: 10px; align-items: flex-end; }
.row .field { flex: 1; margin: 0; }
.section-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }

.spin { width: 26px; height: 26px; margin: 80px auto; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: #fff; color: #000; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 9px;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0s !important; } }
#profile .err:empty { display: none; }

.input.code { height: 58px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .4em; padding-left: .4em; font-variant-numeric: tabular-nums; }
.input.code::placeholder { color: #2c2c2c; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--gold); }
.linkish:disabled { color: #555; text-decoration: none; cursor: default; }

/* delete account */
.card.danger { border-color: rgba(239,93,93,.28); }
.card.danger p { color: var(--ink-2); font-size: 14px; }
.card.danger a { color: var(--ink); }
.danger-btn { margin-top: 14px; border-color: rgba(239,93,93,.5); color: #ff8a8a; }
.danger-btn:hover { background: rgba(239,93,93,.1); border-color: var(--bad); }
.danger-btn.solid { margin-top: 0; background: var(--bad); border-color: var(--bad); color: #fff; }
.danger-btn.solid:disabled { opacity: .4; cursor: not-allowed; }
.card.danger .row { justify-content: flex-end; }
[hidden] { display: none !important; }
.agree { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.agree a, .fine a { color: var(--ink-2); }
.agree a:hover, .fine a:hover { color: var(--gold); }
