[hidden] { display: none !important; }
.link-card h1 { margin-bottom: 10px; }
.lead { color: var(--muted); margin: 14px 0 22px; }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 700; background: var(--line); color: var(--fg); }
.step.active { border-color: var(--pink); color: var(--fg); }
.step.active span { background: var(--pink); }
.step.done { border-color: rgba(0, 170, 240, 0.5); color: var(--fg); }
.step.done span { background: var(--blue); }

.accounts { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: stretch; }
.account { background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-height: 170px;
  display: flex; flex-direction: column; }
.account > div:not(.account-head) { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.account-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.account-head h2 { margin: 0; font-size: 17px; color: var(--fg); }
.platform-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.platform-icon svg, .btn-icon svg { width: 60%; height: 60%; fill: currentColor; }
.steam .platform-icon { background: linear-gradient(135deg, #1b2838, #2a475e); }
.discord .platform-icon { background: #5865f2; }
.status { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

.connector { display: grid; place-items: center; }
.connector span { width: 100%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--blue)); opacity: 0.7; }

.profile { flex-direction: row !important; justify-content: flex-start !important; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: #000; }
.name { font-weight: 600; }
.id { font-size: 13px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-left: auto; }
.badge.ok { background: rgba(0, 170, 240, 0.15); color: var(--blue); border: 1px solid rgba(0, 170, 240, 0.4); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; color: #fff; width: 100%; }
.btn-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.btn-icon svg { width: 100%; height: 100%; }
.btn-steam { background: linear-gradient(135deg, #1b2838, #2a475e); border-color: #3d6c8d; }
.btn-steam:hover { border-color: #66c0f4; color: #fff; }
.btn-discord { background: #5865f2; }
.btn-discord:hover { background: #4752c4; color: #fff; }
.btn.disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: linear-gradient(90deg, var(--magenta), var(--pink)); }
.btn-primary:hover { color: #fff; filter: brightness(1.1); }
.btn-danger { background: transparent; border-color: rgba(255, 45, 120, 0.6); color: var(--pink); }
.btn-danger:hover { background: rgba(255, 45, 120, 0.12); color: var(--pink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }

.actions { display: flex; gap: 12px; margin-top: 20px; }
.actions form, .actions > .btn { flex: 1; }
.actions.tight { margin-top: 12px; }

.group-card { margin-top: 18px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.group-card .status { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-card .status .badge { margin-left: 0; }
.group-card .text-link { display: inline-block; margin-top: 10px; }
.steam-bg { background: linear-gradient(135deg, #1b2838, #2a475e); }
.optional { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

.text-link { color: var(--blue); font-size: 14px; }
.text-link.muted { color: var(--muted); }
.text-link.muted:hover { color: var(--pink); }
.danger-zone { text-align: center; margin: 18px 0 0; }

.confirm { margin-top: 20px; border: 1px solid rgba(255, 45, 120, 0.5); background: rgba(255, 45, 120, 0.06); border-radius: 14px; padding: 18px; }
.confirm h2 { margin: 0 0 8px; font-size: 18px; color: var(--fg); }
.confirm p { margin: 0; color: var(--muted); font-size: 15px; }

.alert { border: 1px solid rgba(255, 215, 106, 0.45); background: rgba(255, 215, 106, 0.08); border-radius: 12px;
  padding: 12px 14px; margin: 0 0 20px; font-size: 15px; }
.alert strong { display: block; margin-bottom: 2px; }

.preview-bar { background: #000; color: #aaa; font-size: 13px; padding: 6px 12px; }
.preview-bar a { color: var(--yellow); margin-left: 10px; }

@media (max-width: 640px) {
  .accounts { grid-template-columns: 1fr; gap: 0; }
  .connector { height: 26px; }
  .connector span { width: 3px; height: 100%; background: linear-gradient(180deg, var(--pink), var(--blue)); }
  .actions { flex-direction: column; }
  .step { font-size: 13px; padding: 7px 8px; }
}
