/* ==========================================================================
   ROS INFINITY — account page: sign in, sign up, recovery and the dashboard.
   Builds on the tokens and the .cut chamfer system in style.css.
   ========================================================================== */

/* ---------- 1. Page + backdrop ---------- */
.auth {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) 0 clamp(64px, 8vw, 110px);
}
.auth__bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.auth__bg .hero__bg {
  background:
    radial-gradient(42% 55% at 74% 46%, rgba(244, 24, 33, .2), transparent 70%),
    radial-gradient(35% 40% at 18% 22%, rgba(240, 181, 74, .07), transparent 70%),
    radial-gradient(70% 45% at 50% 108%, rgba(244, 24, 33, .26), transparent 72%),
    radial-gradient(120% 90% at 50% 30%, #0c0c10 0%, var(--bg) 62%);
}
.auth__bg .hero__topo.is-ready { opacity: .14; }
.auth__art {                              /* the homepage key art, dimmed: every page looks like the same world */
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: .3;
  filter: saturate(.85);
}
.auth__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 6, .55), transparent 22%, transparent 70%, rgba(5, 5, 6, .8));
}
.page-account .footer { position: relative; z-index: 1; }

/* ---------- 2. Guest stage ---------- */
.auth__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;                     /* top-aligned: switching tabs changes the card height, not the intro's place */
}
.auth__intro { padding-top: clamp(0px, 3vw, 40px); }
.auth__title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.auth__lead { max-width: 520px; margin-top: 24px; color: var(--muted); font-size: 1.12rem; }

.perks { display: grid; gap: 22px; max-width: 520px; margin-top: 40px; }
.perk { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.perk__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--gold);
  background: rgba(240, 181, 74, .07);
  border: 1px solid rgba(240, 181, 74, .25);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.perk__icon .icon { width: 24px; height: 24px; }
.perk__title { margin: 4px 0 4px; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.perk p { color: var(--muted); font-size: .96rem; line-height: 1.55; }

.auth__status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font: 600 12px/1 var(--font-cond);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth__status > span { display: inline-flex; align-items: center; gap: 10px; }
.auth__status b { font: 700 1.15rem/1 var(--font-display); letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- 3. Card ---------- */
.auth-card {
  --cut: 28px;
  --bd: linear-gradient(160deg, rgba(244, 24, 33, .8), rgba(255, 255, 255, .09) 34%, rgba(255, 255, 255, .05) 64%, rgba(240, 181, 74, .55));
  --fill:                                 /* .cut fills must be opaque: the border layer sits right behind them */
    radial-gradient(120% 55% at 50% 0%, rgba(244, 24, 33, .13), transparent 62%),
    linear-gradient(180deg, #121217, #09090c);
  width: 100%;
  padding: clamp(26px, 3.4vw, 40px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6));
}
.auth-card__hud {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 24px;
  font: 600 11px/1 var(--font-cond);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--dim);
}
.auth-card__hud span:first-child { color: var(--red-hot); }

.auth-view:not([hidden]), .auth-form[role="tabpanel"]:not([hidden]) { animation: view-in .5s var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }

/* loading + offline */
.auth-loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 380px;
  font: 600 12px/1 var(--font-cond);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  animation: fade-in .4s .25s forwards;            /* fast answers never flash a spinner */
}
.auth-loading svg { width: 120px; overflow: visible; }
.auth-loading__track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 7; }
.auth-loading__trace {
  fill: none;
  stroke: url(#ld-grad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: .32 .68;
  filter: drop-shadow(0 0 8px rgba(244, 24, 33, .8));
  animation: loop-trace 1.6s linear infinite;
}
@keyframes loop-trace { to { stroke-dashoffset: -1; } }
.auth-noscript { max-width: 300px; text-align: center; letter-spacing: .08em; line-height: 1.6; color: var(--muted); }

.auth-offline { padding: 30px 0 12px; text-align: center; }
.auth-offline__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  color: var(--gold);
  background: rgba(240, 181, 74, .07);
  border: 1px solid rgba(240, 181, 74, .3);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.auth-offline__icon .icon { width: 30px; height: 30px; }
.auth-offline .auth-form__sub { max-width: 380px; margin: 10px auto 26px; }
.auth-offline__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 4. Tabs ---------- */
.seg {
  --cut: 10px;
  --fill: #0b0b0e;
  --tab: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
  padding: 4px;
}
.seg__tab {
  position: relative;
  z-index: 1;
  padding: 14px 10px;
  font: 700 13px/1 var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.seg__tab:hover { color: #fff; }
.seg__tab[aria-selected="true"] { color: #fff; }
.seg__tab:focus-visible { outline-offset: -4px; }
.seg__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc(50% - 4px);
  background: var(--grad-red);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transform: translateX(calc(var(--tab) * 100%));
  transition: transform .5s var(--ease-out);
}

/* ---------- 5. Forms ---------- */
.auth-form__head { margin-bottom: 26px; }
.auth-form__title { font-size: clamp(1.45rem, 2.4vw, 1.85rem); letter-spacing: .02em; text-transform: uppercase; }
.auth-form__title:focus { outline: none; }
.auth-form__sub { margin-top: 8px; color: var(--muted); font-size: .98rem; }

.field { margin-bottom: 18px; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__label {
  display: block;
  margin-bottom: 10px;
  font: 600 12px/1 var(--font-cond);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__link { font: 600 12px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--red-hot); transition: color .2s; }
.field__link:hover { color: #fff; }

.input {
  --cut: 10px;
  --bd: var(--line-2);
  --fill: linear-gradient(180deg, #0a0a0d, #0e0e12);
  display: flex;
  align-items: center;
  height: 54px;
  transition: filter .3s var(--ease);
}
.input:hover { --bd: rgba(255, 255, 255, .24); }
.input:focus-within {
  --bd: linear-gradient(120deg, var(--red-hot), rgba(244, 24, 33, .45) 55%, var(--gold));
  --fill: linear-gradient(180deg, #170a0c, #0e0e12);
  filter: drop-shadow(0 0 14px rgba(244, 24, 33, .25));
}
.input__icon { width: 20px; height: 20px; margin-left: 17px; color: var(--dim); transition: color .25s; }
.input:focus-within .input__icon { color: var(--gold); }
.input__el {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 500 1rem/1 var(--font-body);
  letter-spacing: .02em;
}
.input__el::placeholder { color: rgba(161, 161, 173, .45); }
.input__el--mono { font: 600 .98rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.input__el:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 100px #131318 inset;
  transition: background-color 99999s;
}
.input__el::-ms-reveal { display: none; }
.input__btn { display: grid; place-items: center; flex: none; width: 48px; height: 100%; color: var(--dim); transition: color .2s; }
.input__btn:hover, .input__btn[aria-pressed="true"] { color: #fff; }
.input__btn:focus-visible { outline-offset: -6px; }

.input__status { display: none; place-items: center; flex: none; width: 22px; height: 22px; margin-right: 16px; }
.input__status > * { display: none; grid-area: 1 / 1; }
.input__status .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.st-ok { color: var(--green); }
.st-bad { color: var(--red-hot); }
.field[data-state="checking"] .input__status, .field[data-state="ok"] .input__status, .field[data-state="error"] .input__status { display: grid; }
.field[data-state="checking"] .spin, .field[data-state="ok"] .st-ok, .field[data-state="error"] .st-bad { display: block; }

.field[data-state="error"] .input { --bd: linear-gradient(120deg, var(--red-hot), var(--red-deep)); }
.field[data-state="error"] .input__icon { color: var(--red-hot); }
.field[data-state="ok"] .input:not(:focus-within) { --bd: linear-gradient(120deg, rgba(62, 224, 143, .7), rgba(62, 224, 143, .2)); }

.field__msg { margin-top: 9px; color: var(--dim); font-size: .87rem; line-height: 1.45; }
.field__msg:empty { display: none; }
.field[data-state="error"] .field__msg { color: #ff8277; }
.field[data-state="ok"] .field__msg { color: var(--green); }
.field__caps {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(240, 181, 74, .3);
  background: rgba(240, 181, 74, .08);
  font: 600 11px/1 var(--font-cond);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.field__caps[hidden] { display: none; }
.field__caps .icon { width: 14px; height: 14px; }

.spin {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* password strength */
.meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 6px; margin-top: 12px; }
.meter span {
  height: 5px;
  background: rgba(255, 255, 255, .08);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  transition: background-color .3s;
}
.meter b {
  min-width: 82px;
  margin-left: 8px;
  text-align: right;
  font: 700 11px/1 var(--font-cond);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .3s;
}
.meter[data-score="0"] span:nth-child(-n + 1) { background: var(--red); }
.meter[data-score="1"] span:nth-child(-n + 1) { background: #ff6a3d; }
.meter[data-score="2"] span:nth-child(-n + 2) { background: var(--gold); }
.meter[data-score="3"] span:nth-child(-n + 3) { background: #9be15d; }
.meter[data-score="4"] span:nth-child(-n + 4) { background: var(--green); box-shadow: 0 0 10px rgba(62, 224, 143, .5); }
.meter[data-score="0"] b { color: var(--red-hot); }
.meter[data-score="1"] b { color: #ff8a5c; }
.meter[data-score="2"] b { color: var(--gold); }
.meter[data-score="3"] b { color: #b6ec82; }
.meter[data-score="4"] b { color: var(--green); }

.rules { display: grid; gap: 8px; margin-top: 14px; color: var(--dim); font-size: .87rem; }
.rules li { display: flex; align-items: center; gap: 10px; transition: color .25s; }
.rules .icon {
  width: 17px;
  height: 17px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  stroke-width: 3.2;
  opacity: .45;
  transition: opacity .25s, background-color .25s, border-color .25s;
}
.rules li.is-met { color: var(--green); }
.rules li.is-met .icon { opacity: 1; border-color: transparent; background: rgba(62, 224, 143, .16); }
.rules li.is-bad { color: #ff8277; }

/* checkbox */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 24px;
  font-size: .95rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.field--check .check { margin-bottom: 0; }
.field--check { margin: 4px 0 24px; }
.check__input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .03);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.check__box .icon { width: 14px; height: 14px; stroke-width: 3.2; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--ease-out); }
.check:hover .check__box { border-color: rgba(255, 255, 255, .5); }
.check__input:checked + .check__box { border-color: var(--red); background: var(--grad-red); box-shadow: 0 0 12px rgba(244, 24, 33, .45); }
.check__input:checked + .check__box .icon { opacity: 1; transform: none; }
.check__input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.check a { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.field[data-state="error"] .check__box { border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(244, 24, 33, .15); }
.field--check .field__msg { margin-left: 34px; }

/* honeypot: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid rgba(244, 24, 33, .35);
  border-left: 3px solid var(--red);
  background: rgba(244, 24, 33, .09);
  color: #ffd8d3;
  font-size: .94rem;
  line-height: 1.45;
}
.alert:not([hidden]) { animation: nudge .45s var(--ease-out); }
.alert .icon { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--red-hot); }
.alert--info { border-color: rgba(240, 181, 74, .3); border-left-color: var(--gold); background: rgba(240, 181, 74, .07); color: #f6e5c3; }
.alert--info .icon { color: var(--gold); }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* buttons in forms */
.auth-form .btn--block { margin-top: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { transform: none; }
.btn:disabled:hover::after { background-position: 120% 0, 0 0; }
.btn[aria-busy="true"] { opacity: .85; cursor: progress; }
.btn[aria-busy="true"] > .icon { display: none; }
.btn .spin { width: 16px; height: 16px; border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }

.auth-form__alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: .95rem; }
.auth-form__alt a, .auth-note a, .key-warn a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--red); transition: color .2s; }
.auth-form__alt a:hover, .auth-note a:hover { color: var(--red-hot); }
.auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--dim);
  font-size: .87rem;
}
.auth-note .icon { flex: none; width: 16px; height: 16px; color: var(--gold); }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font: 600 12px/1 var(--font-cond);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.auth-back:hover { color: #fff; }
.auth-back .icon { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.auth-back:hover .icon { transform: translateX(-3px); }

/* ---------- 6. Recovery key ---------- */
.auth-key { text-align: center; }
.auth-key .auth-form__sub { max-width: 400px; margin-inline: auto; }
.seal { width: 92px; height: 92px; margin: 2px auto 22px; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal circle {
  fill: rgba(62, 224, 143, .06);
  stroke: var(--green);
  stroke-width: 3;
  stroke-dasharray: 277;
  stroke-dashoffset: 277;
  filter: drop-shadow(0 0 10px rgba(62, 224, 143, .55));
  animation: draw .9s var(--ease-out) .1s forwards;
}
.seal path {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw .5s var(--ease-out) .75s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.key-card {
  --cut: 16px;
  --bd: linear-gradient(135deg, rgba(240, 181, 74, .85), rgba(240, 181, 74, .14) 50%, rgba(240, 181, 74, .6));
  --fill: radial-gradient(90% 80% at 50% 0%, rgba(240, 181, 74, .12), transparent 70%), linear-gradient(180deg, #15120c, #0b0b0e);
  margin: 26px 0 16px;
  padding: 22px 18px;
  text-align: center;
}
.key-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--font-cond);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.key-card__label .icon { width: 15px; height: 15px; }
.key-card__key { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 8px; margin: 18px 0 20px; }
.key-card__key span {
  padding: 9px 10px;
  border: 1px solid rgba(240, 181, 74, .28);
  background: rgba(0, 0, 0, .4);
  font: 700 1.1rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .12em;
  color: #fff;
  user-select: all;
}
.key-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.key-warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.key-warn .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.auth-key .check { text-align: left; }

/* ---------- 7. Dashboard ---------- */
.dash { position: relative; }
.dash__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.dash__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); overflow-wrap: anywhere; }
.dash__title:focus { outline: none; }
.dash__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.dash__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }
.dcard {
  --cut: 22px;
  --bd: linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05) 45%, rgba(244, 24, 33, .38));
  --fill: linear-gradient(180deg, #121217, #0a0a0d);
  padding: clamp(22px, 2.8vw, 34px);
}
.dcard--sec { grid-column: 1 / -1; }
.dcard__title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase; }
.dcard__title .icon { color: var(--red); }

.idcard { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.idcard__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  background: var(--grad-red);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  font: 800 2rem/1 var(--font-display);
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.idcard__avatar.is-founder { background: var(--grad-gold); color: #1d1206; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.idcard__main { min-width: 0; }
.idcard__label { font: 600 11px/1 var(--font-cond); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.idcard__name { margin: 8px 0 12px; font: 800 clamp(1.35rem, 2.6vw, 1.9rem)/1.05 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  font: 700 11px/1 var(--font-cond);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge[hidden] { display: none; }
.badge .icon { width: 13px; height: 13px; }
.badge--gold { border-color: transparent; background: var(--grad-gold); color: #1d1206; }

.facts { display: grid; gap: 14px; }
.facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt { font: 600 12px/1.4 var(--font-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.facts dd { display: inline-flex; align-items: center; font-weight: 600; text-align: right; color: #fff; }
.state { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.facts--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts--tiles > div,
.facts--tiles > div:last-child { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.facts--tiles dd { font: 700 1.05rem/1.2 var(--font-display); text-align: left; }

.gstat { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.level-ring {
  --p: 0;
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  flex: none;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #ffe08f, var(--gold) calc(var(--p) * 1turn), rgba(255, 255, 255, .08) 0);
  filter: drop-shadow(0 0 16px rgba(240, 181, 74, .25));
}
.level-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #17171d, #0b0b0e); }
.level-ring b, .level-ring span { position: relative; }
.level-ring b { font: 800 2.2rem/1 var(--font-display); }
.level-ring span { margin-top: 4px; font: 600 10px/1 var(--font-cond); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.gstat__main { flex: 1; min-width: 0; }
.gstat__nick { font: 800 clamp(1.3rem, 2.4vw, 1.7rem)/1.1 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.gstat__xp { margin-top: 8px; font: 600 12px/1 var(--font-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.xpbar { height: 7px; margin-top: 12px; background: rgba(255, 255, 255, .08); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.xpbar span { display: block; width: calc(var(--p, 0) * 100%); height: 100%; background: var(--grad-gold); transition: width 1.2s var(--ease-out); }

.empty { padding: 4px 0; text-align: center; }
.empty__icon { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--gold); stroke-width: 1.3; filter: drop-shadow(0 0 14px rgba(240, 181, 74, .35)); }
.empty__title { font: 800 1.2rem/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.empty__text { max-width: 380px; margin: 8px auto 22px; color: var(--muted); font-size: .95rem; }
.mini-steps { display: grid; gap: 10px; width: fit-content; margin: 0 auto; text-align: left; }
.mini-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .94rem; }
.mini-steps li b { color: #fff; }
.mini-steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(244, 24, 33, .55);
  background: rgba(244, 24, 33, .08);
  font: 700 12px/1 var(--font-display);
  color: var(--red-hot);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.sec-list { display: grid; gap: 12px; }
.sec-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: border-color .25s, background-color .25s;
}
.sec-item:hover { border-color: var(--line-2); }
.sec-group:has(.sec-panel:not([hidden])) .sec-item { border-color: rgba(244, 24, 33, .4); background: rgba(244, 24, 33, .05); }
.sec-item__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--gold);
  background: rgba(240, 181, 74, .07);
  border: 1px solid rgba(240, 181, 74, .22);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.sec-item__name { font: 700 1rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.sec-item__meta { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.sec-panel {
  padding: 24px clamp(18px, 3vw, 28px) 26px;
  border: 1px solid rgba(244, 24, 33, .3);
  border-top: 0;
  background: linear-gradient(180deg, rgba(244, 24, 33, .05), rgba(255, 255, 255, .01));
}
.sec-panel:not([hidden]) { animation: view-in .45s var(--ease-out); }
.sec-form, .sec-keyout { max-width: 520px; }
.sec-form__note { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.sec-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sec-keyout .key-card { margin-top: 0; }

/* delete account: red icon and warning; the button stays hollow until hovered (primary buttons are already red) */
.sec-group--danger .sec-item__icon { color: var(--red-hot); background: rgba(244, 24, 33, .07); border-color: rgba(244, 24, 33, .3); }
.sec-form__note--danger { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; color: #ffb3b5;
  border: 1px solid rgba(244, 24, 33, .35); background: rgba(244, 24, 33, .07); }
.sec-form__note--danger .icon { flex: none; margin-top: 2px; color: var(--red-hot); }
.btn--danger { --bw: 1px; --bd: linear-gradient(135deg, var(--red-hot), var(--red-deep)); --fill: linear-gradient(#1c090b, #130608); color: #ff8f93; }
.btn--danger:hover { --fill: linear-gradient(135deg, var(--red-hot), var(--red-deep)); color: #fff; }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1024px) {
  .auth__stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 34px; }
  .auth__intro { max-width: 620px; padding-top: 0; text-align: center; }
  .auth__intro .kicker { margin-inline: auto; }
  .auth__lead { margin-inline: auto; }
  .perks { display: none; }
  .auth__status { justify-content: center; margin-top: 26px; padding-top: 0; border-top: 0; }
  .auth-card { max-width: 540px; }
  .dash__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .auth__title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .auth__lead { font-size: 1rem; }
  .dash__head { align-items: flex-start; }
  .dash__actions { width: 100%; }
  .dash__actions .btn { flex: 1; }
  .facts--tiles { grid-template-columns: minmax(0, 1fr); }
  .facts--tiles > div, .facts--tiles > div:last-child { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

@media (max-width: 520px) {
  .auth { padding-top: calc(var(--nav-h) + 22px); }
  .auth-card { --cut: 20px; padding: 24px 18px 26px; }
  .auth-card__hud { margin-bottom: 20px; }
  .seg__tab { padding: 13px 6px; font-size: 12px; letter-spacing: .1em; }
  .key-card__key span { padding: 8px 7px; font-size: .98rem; }
  .idcard { gap: 16px; }
  .idcard__avatar { width: 70px; height: 70px; font-size: 1.6rem; }
  .gstat { gap: 18px; }
  .level-ring { width: 88px; height: 88px; }
  .level-ring b { font-size: 1.8rem; }
  .sec-item { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .sec-item__icon { width: 40px; height: 40px; }
  .sec-item .btn { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-loading { opacity: 1; }
  .seal circle, .seal path { stroke-dashoffset: 0; }
}
