/* Auth, dashboard, profile, 404 */

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 140px 16px 60px; }
.auth-card {
  width: 420px;
  max-width: 100%;
  padding: 32px 28px;
  background: rgba(16, 16, 16, 0.92);
  border: 1.6px solid rgb(24, 24, 24);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: dropIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-40px) scale(0.92); } to { opacity: 1; transform: none; } }
.auth-card .logo-big { width: 52px; height: 52px; margin: 0 auto 14px; }
.auth-card h1 { text-align: center; font-size: 28px; font-weight: 600; color: #fafafa; }
.auth-card > p { text-align: center; margin-top: 6px; font-size: 16px; color: rgb(167, 167, 167); }
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 500; color: rgb(207, 207, 207); }
.field .ctl { position: relative; }
.field .ctl .pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgb(150, 150, 150); font-size: 16px; pointer-events: none; }
.field input, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 16px;
  color: rgb(238, 238, 238);
  background: rgb(12, 12, 12);
  border: 1.6px solid rgb(26, 26, 26);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input { border-radius: 22px; }
.field textarea { height: 92px; padding: 12px 14px; border-radius: 18px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: rgba(214, 48, 62, 0.5); box-shadow: 0 0 0 3px rgba(214, 48, 62, 0.12); }
.field input.bad { border-color: rgba(255, 90, 100, 0.7); }
.field .hint { margin-top: 6px; font-size: 13px; color: rgb(140, 140, 140); min-height: 16px; }
.field .hint.err { color: #ff6b75; }
.field .hint.ok { color: #5cb85c; }

.btn-main {
  width: 100%;
  height: 46px;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 500;
  color: #fafafa;
  background: var(--plan-btn);
  border: 1.6px solid var(--plan-btn-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.25s, opacity 0.2s;
}
.btn-main:hover { background: rgba(176, 38, 52, 0.75); box-shadow: 0 0 22px rgba(214, 48, 62, 0.25); }
.btn-main[disabled] { opacity: 0.6; cursor: default; }
.btn-main .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.form-err { margin-top: 14px; min-height: 18px; text-align: center; font-size: 14px; color: #ff6b75; }
.demo-box { margin-top: 6px; text-align: center; }
.demo-box[hidden] { display: none; }
.demo-box .or { display: flex; align-items: center; gap: 12px; color: rgb(110, 110, 110); font-size: 13px; }
.demo-box .or::before, .demo-box .or::after { content: ""; flex: 1; height: 1px; background: rgb(32, 32, 32); }
.btn-demo {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #fafafa;
  background: rgb(22, 22, 22);
  border: 1.6px dashed rgba(214, 48, 62, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-demo:hover { background: rgb(28, 28, 28); border-color: rgba(214, 48, 62, 0.75); }
.btn-demo[disabled] { opacity: 0.6; cursor: default; }
.demo-box small { display: block; margin-top: 8px; font-size: 12.5px; color: rgb(110, 110, 110); }
.auth-alt { margin-top: 18px; text-align: center; font-size: 15px; color: rgb(150, 150, 150); }
.auth-alt a { color: var(--accent-strong); }
.auth-alt a:hover { text-decoration: underline; }

/* ---------- dashboard ---------- */
.dash { display: flex; min-height: 100vh; padding: 127px 24px 40px; gap: 20px; max-width: 1320px; margin: 0 auto; }
.dash-side {
  width: 240px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 127px;
  padding: 16px 12px;
  background: rgb(14, 14, 14);
  border: 1.6px solid rgb(22, 22, 22);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; }
.dash-user .av, .pf-av {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, #f05561, #6b1c24);
}
.dash-user b { display: block; color: #fafafa; font-size: 15px; font-weight: 600; }
.dash-user small { display: block; color: rgb(140, 140, 140); font-size: 13px; }
.dash-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 0; border-radius: 12px;
  background: transparent;
  color: rgb(200, 200, 200);
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.dash-tab svg { width: 18px; height: 18px; }
.dash-tab:hover { background: rgb(20, 20, 20); color: #fff; }
.dash-tab.on { background: rgba(214, 48, 62, 0.22); color: #fff; }
.dash-side .box { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgb(18, 18, 18); font-size: 13.5px; color: rgb(160, 160, 160); }
.dash-side .box a, .dash-side .box button {
  display: block; width: 100%; margin-top: 8px; padding: 8px; border-radius: 10px; border: 0;
  text-align: center; font-size: 14px; color: #fff; background: var(--plan-btn); cursor: pointer;
}
.dash-side .box button.ghost { background: rgb(26, 26, 26); }

.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dash-main h2 { font-size: 24px; font-weight: 600; color: #fafafa; }
.ov-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ov-card { padding: 18px; background: var(--card); border: 1.6px solid rgb(20, 20, 20); border-radius: 18px; animation: fadeIn6 0.5s ease both; }
.ov-card svg { width: 20px; height: 20px; color: var(--icon); margin-bottom: 12px; }
.ov-card small { display: block; font-size: 14px; color: rgb(150, 150, 150); }
.ov-card b { display: block; margin-top: 3px; font-size: 20px; font-weight: 600; color: #fafafa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel { padding: 22px; background: var(--card-2); border: 1.6px solid rgb(20, 20, 20); border-radius: 18px; animation: fadeIn6 0.5s ease both; }
.panel h3 { font-size: 18px; font-weight: 600; color: #fafafa; }
.panel > p { margin-top: 4px; color: rgb(150, 150, 150); font-size: 14.5px; }
.panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.link-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; margin-top: 10px; animation: fadeIn6 0.25s ease both; }
.link-row input { height: 42px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1.6px solid rgb(26, 26, 26); background: rgb(14, 14, 14); color: rgb(200, 200, 200); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: #ff6b75; border-color: rgba(214, 48, 62, 0.4); }
.icon-btn svg { width: 16px; height: 16px; }
.btn-line { margin-top: 12px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1.6px dashed rgb(40, 40, 40); background: transparent; color: rgb(190, 190, 190); cursor: pointer; font-size: 14.5px; }
.btn-line:hover { border-color: rgba(214, 48, 62, 0.5); color: #fff; }
.panel .btn-main { width: auto; padding: 0 26px; }
.share { display: flex; gap: 8px; margin-top: 14px; }
.share input { flex: 1; }
.share .btn-claim { height: 46px; }

/* ---------- public profile ---------- */
.pf-wrap { min-height: 100vh; display: grid; place-items: center; padding: 60px 16px; }
.pf-card {
  width: 440px; max-width: 100%;
  padding: 34px 26px 26px;
  text-align: center;
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: blur(14px);
  border: 1.6px solid rgba(214, 48, 62, 0.28);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(214, 48, 62, 0.08);
  animation: dropIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pf-av { width: 96px; height: 96px; margin: 0 auto; font-size: 38px; box-shadow: 0 0 0 4px rgba(214, 48, 62, 0.25); }
.pf-card h1 { margin-top: 14px; font-size: 28px; font-weight: 700; color: #fff; text-shadow: 0 0 16px rgba(255, 255, 255, 0.25); }
.pf-card .handle { margin-top: 2px; font-size: 14px; color: rgb(140, 140, 140); }
.pf-card .bio { margin-top: 12px; font-size: 16px; line-height: 1.5; color: rgb(205, 205, 205); white-space: pre-wrap; word-break: break-word; }
.pf-links { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.pf-links a {
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.6px solid rgba(255, 255, 255, 0.06);
  color: #f2f2f2;
  font-size: 15.5px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  animation: fadeIn6 0.5s ease both;
}
.pf-links a:hover { background: rgba(214, 48, 62, 0.16); border-color: rgba(214, 48, 62, 0.4); transform: translateY(-2px); }
.pf-foot { margin-top: 22px; display: flex; justify-content: space-between; font-size: 13px; color: rgb(130, 130, 130); }
.pf-foot a:hover { color: #fff; }

.center-msg { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 16px 60px; }
.center-msg h1 { font-size: 64px; font-weight: 700; color: #fafafa; }
.center-msg p { margin-top: 6px; font-size: 18px; color: rgb(170, 170, 170); }
.center-msg .btn-hero { margin-top: 24px; }

@media (max-width: 960px) {
  .dash { flex-direction: column; padding-top: 115px; }
  .dash-side { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .dash-side .dash-user { display: none; }
  .dash-side .box { flex: 1 1 200px; margin-top: 4px; }
  .ov-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .panel .row2 { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: 1fr auto; }
  .link-row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
