/* =========================================================
   GMZ STUDIOS — Konto-Seite (Anmelden, Registrieren, Beta-Key)
   ========================================================= */

.acc { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(80px, 10vw, 120px); position: relative; overflow: hidden; }
.acc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: .6;
}
.acc__wrap { display: grid; justify-items: center; gap: 28px; text-align: center; }
.acc__wrap h1 { margin: 0; font-size: clamp(44px, 7vw, 88px); }
.acc__wrap .lead { margin: 0 auto; max-width: 52ch; }

.acc-card {
  position: relative; width: min(480px, 100%); text-align: left;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: rgba(13, 13, 17, .88); backdrop-filter: blur(10px);
  padding: clamp(24px, 4vw, 36px); box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.acc-card[hidden], .acc-form[hidden], .acc [hidden] { display: none !important; }
.acc-download { width: 100%; }
#btn-show-key { margin-bottom: 12px; }
.acc-card h2 { font-size: clamp(26px, 3vw, 32px); margin: 0 0 8px; }
.acc-card > p, .acc-view > p { margin: 0 0 22px; font-size: 15px; }

/* Tabs */
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 999px; }
.acc-tabs button {
  height: 40px; border-radius: 999px; color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.acc-tabs button.is-active { background: #fff; color: #000; }

/* Formular */
.acc-form { display: grid; gap: 16px; }
.acc-field { display: grid; gap: 7px; }
.acc-field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.acc-field input {
  height: 50px; padding: 0 16px; border-radius: 12px; width: 100%;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.5); color: #fff; font: inherit; font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
.acc-field input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.acc-field small { font-size: 12px; color: var(--faint); }
.acc-field--code input { font-family: var(--font-mono); font-size: 24px; letter-spacing: .5em; text-align: center; height: 62px; }
.acc-field--key input { font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.acc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.acc-check input { margin-top: 3px; accent-color: #fff; width: 16px; height: 16px; flex: none; }
.acc-check a, .acc-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.acc-form .btn { width: 100%; margin-top: 4px; }
.acc-form .btn[disabled] { opacity: .55; cursor: wait; }
.acc-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; }
.acc-links button { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.acc-links button:hover { color: #fff; }
.acc-links button[disabled] { opacity: .5; cursor: default; text-decoration: none; }

/* Meldungen */
.acc-msg { min-height: 0; margin: 0; font-size: 14px; border-radius: 10px; }
.acc-msg:not(:empty) { padding: 12px 14px; margin-top: 4px; }
.acc-msg.is-error { color: #ff9d9d; background: rgba(255, 90, 90, .08); border: 1px solid rgba(255, 90, 90, .3); }
.acc-msg.is-ok { color: var(--ok); background: rgba(125, 255, 178, .07); border: 1px solid rgba(125, 255, 178, .3); }
.acc-msg.is-info { color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); }

/* Konto-Übersicht */
.acc-user { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.acc-user__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 30%, #1b1b22, #060608);
  font-family: var(--font-display); font-size: 24px; color: #fff; text-transform: uppercase;
}
.acc-user h3 { margin: 0; font-size: 26px; font-weight: 400; word-break: break-word; }
.acc-user small { display: block; color: var(--muted); font-size: 13px; word-break: break-all; }
.acc-status {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; margin-bottom: 22px;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,.35);
}
.acc-status__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.acc-status.is-entitled { border-color: rgba(125,255,178,.35); background: rgba(125,255,178,.05); }
.acc-status.is-entitled .acc-status__dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.acc-status.is-banned { border-color: rgba(255,90,90,.35); }
.acc-status.is-banned .acc-status__dot { background: #ff6b6b; box-shadow: 0 0 12px #ff6b6b; }
.acc-status b { display: block; color: #fff; font-weight: 500; margin-bottom: 2px; }
.acc-status span { font-size: 14px; color: var(--muted); }
.acc-divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }
.acc-loading { display: grid; place-items: center; gap: 14px; padding: 30px 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.acc-loading i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: #fff; animation: spinPlain .8s linear infinite; }
.acc-note { font-size: 12px; color: var(--faint); text-align: center; margin-top: 18px; }
.acc-hint { margin: 0; font-size: 14px; color: var(--muted); }
#acc-auth-msg:not(:empty) { margin: 0 0 20px; }
.acc-form .acc-links { margin-top: 2px; justify-content: center; }

/* ---------- Konto-Dashboard ---------- */
.acc.is-dash { padding-top: calc(var(--nav-h) + 40px); }
.acc.is-dash .acc__wrap > .eyebrow, .acc.is-dash .acc__wrap > h1, .acc.is-dash .acc__wrap > .lead { display: none; }
.acc-dash {
  width: min(1080px, 100%); display: grid; grid-template-columns: 280px minmax(0, 1fr); text-align: left;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(13, 13, 17, .9); backdrop-filter: blur(10px); box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.acc-side { display: flex; flex-direction: column; gap: 18px; padding: 28px 20px; border-right: 1px solid var(--line); background: rgba(0,0,0,.35); }
.acc-side .acc-user { margin: 0 4px; }
.acc-side .acc-user h3 { font-size: 20px; }
.acc-pill { align-self: flex-start; margin: 0 4px; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.acc-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.acc-pill.is-entitled { color: var(--ok); border-color: rgba(125,255,178,.35); }
.acc-pill.is-entitled i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.acc-pill.is-banned { color: #ff8a8a; border-color: rgba(255,90,90,.35); }
.acc-pill.is-banned i { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }
.acc-menu { display: grid; gap: 4px; margin-top: 6px; }
.acc-menu button, .acc-side__logout {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  color: var(--muted); font-size: 15px; text-align: left; transition: background .25s, color .25s;
}
.acc-menu svg, .acc-side__logout svg { width: 19px; height: 19px; flex: none; }
.acc-menu button:hover, .acc-side__logout:hover { background: rgba(255,255,255,.05); color: #fff; }
.acc-menu button.is-active { background: #fff; color: #000; }
.acc-side__logout { margin-top: auto; }
.acc-main { padding: clamp(24px, 4vw, 40px); min-height: 520px; }
.acc-main > .acc-msg:not(:empty) { margin-bottom: 18px; }
.acc-panel h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 8px; }
.acc-panel h3 { font-size: 20px; margin: 0 0 4px; }
.acc-panel > .acc-hint { margin-bottom: 22px; }
.acc-panel .acc-form { max-width: 460px; }
.acc-panel .acc-download { max-width: 460px; }
.acc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.acc-tile {
  display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,.3);
  text-align: left; transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.acc-tile:hover { border-color: var(--line-strong); background: rgba(255,255,255,.03); transform: translateY(-3px); }
.acc-tile svg { width: 22px; height: 22px; margin-bottom: 8px; color: #fff; }
.acc-tile b { color: #fff; font-weight: 500; font-size: 16px; }
.acc-tile span { color: var(--muted); font-size: 13px; }
.acc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.acc-facts div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.3); }
.acc-facts dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.acc-facts dd { margin: 0; color: #fff; word-break: break-all; }
.acc-saves { display: grid; gap: 10px; }
.acc-save { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.3); }
.acc-save svg { width: 20px; height: 20px; flex: none; color: var(--ok); }
.acc-save b { display: block; color: #fff; font-weight: 500; }
.acc-save small { color: var(--faint); font-size: 12px; }
@media (max-width: 860px) {
  .acc-dash { grid-template-columns: minmax(0, 1fr); }
  .acc-side, .acc-main { min-width: 0; }
  .acc-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 16px 14px; gap: 14px; }
  .acc-menu { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .acc-menu::-webkit-scrollbar { display: none; }
  .acc-menu button { width: auto; flex: none; height: 40px; font-size: 14px; border: 1px solid var(--line); }
  .acc-side__logout { position: absolute; top: 20px; right: 16px; width: auto; height: 36px; padding: 0 10px; font-size: 13px; }
  .acc-side { position: relative; }
  .acc-main { min-height: 0; }
  .acc-tiles, .acc-facts { grid-template-columns: 1fr; }
}

/* Konto löschen */
.acc-danger-link { color: #ff8a8a !important; }
.acc-danger { margin-top: 20px; padding: 20px; border-radius: var(--radius); border: 1px solid rgba(255, 90, 90, .35); background: rgba(255, 90, 90, .05); }
.acc-danger > b { color: #ff9d9d; font-weight: 500; }
.btn--danger { background: transparent; color: #ff8a8a; border: 1px solid rgba(255, 90, 90, .6); }
.btn--danger:hover { background: #ff5a5a; color: #000; border-color: #ff5a5a; box-shadow: 0 0 24px rgba(255, 90, 90, .35); }
