
:root {
  --bg: #02030d;
  --bg-card: #05071a;
  --accent: #5b8dff;
  --accent-soft: rgba(91, 141, 255, 0.25);
  --accent-pink: #ff4fbc;
  --text-main: #f5f7ff;
  --text-muted: #a4a9c8;
  --danger: #ff4f6a;
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.75);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text","Inter", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, #1b2640 0, transparent 55%),
    radial-gradient(circle at bottom right, #25072b 0, transparent 55%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.matty-shell {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top left, rgba(77, 104, 255, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 79, 188, 0.12), transparent 55%),
              var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 26px;
  position: relative;
  overflow: hidden;
}
.matty-shell::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: linear-gradient(120deg,
    rgba(91, 141, 255, 0.14),
    rgba(255, 79, 188, 0.15),
    rgba(91, 141, 255, 0.14));
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}
.matty-shell-inner { position: relative; z-index: 1; }

.matty-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.matty-logo-mark {
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(145deg, #2e3760, #14172b);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: #f5f7ff;
  text-shadow: 0 0 10px rgba(91, 141, 255, 0.75);
}
.matty-logo-text { margin-left: 8px; }
.matty-logo-name {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.95;
}
.matty-logo-sub { font-size: 11px; color: var(--text-muted); }

.matty-hint-pill {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(1, 4, 18, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.matty-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5bffae;
  box-shadow: 0 0 8px #5bffae;
}

.matty-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.matty-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.matty-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
  display: inline-block;
}

.matty-input-wrap { position: relative; }

.matty-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 6, 20, 0.92);
  color: var(--text-main);
  padding: 10px 12px 10px 34px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.matty-input::placeholder { color: rgba(165, 174, 210, 0.75); }
.matty-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(91, 141, 255, 0.5);
  background: rgba(5, 8, 28, 0.98);
}
.matty-input-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.65;
}

.matty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.matty-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}
.matty-remember input[type="checkbox"] {
  accent-color: var(--accent);
  width: 13px; height: 13px;
}

.matty-link {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.matty-link:hover { text-decoration: underline; }

.matty-btn-primary {
  width: 100%;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  color: white;
  font-weight: 600;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 12px 32px rgba(91, 141, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.matty-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(91, 141, 255, 0.65);
}
.matty-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(91, 141, 255, 0.5);
  opacity: 0.9;
}

.matty-btn-secondary {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 6, 22, 0.98);
  color: var(--text-main);
  font-weight: 500;
  padding: 9px 12px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}
.matty-btn-secondary:hover {
  background: rgba(8, 10, 32, 0.98);
  border-color: rgba(255, 255, 255, 0.28);
}

.matty-footer {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.matty-footer span { opacity: 0.85; }
.matty-footer strong { color: var(--accent); font-weight: 600; }

.matty-status {
  margin-top: 10px;
  font-size: 11px;
  min-height: 18px;
  color: var(--text-muted);
  white-space: pre-wrap;
}
.matty-status.error { color: var(--danger); }
.matty-status.ok { color: #5bffae; }

.matty-chip-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.matty-chip {
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 6, 18, 0.9);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.matty-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(91, 141, 255, 0.8);
}

/* Avatar */
.matty-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 4px;
}
.matty-avatar-ring {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    conic-gradient(from 180deg, #5b8dff, #ff4fbc, #5b8dff);
  padding: 2px;
  box-shadow: 0 0 16px rgba(91, 141, 255, 0.7);
}
.matty-avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 10%, #3a3d5e, #05071a);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
#avatar-fallback {
  font-size: 26px;
  font-weight: 600;
  color: #f5f7ff;
  opacity: 0.9;
}
.matty-avatar-btn {
  width: auto;
  padding-inline: 10px;
  font-size: 11px;
}

/* Artist card layout */
.artist-body { padding: 16px; }
.artist-shell {
  max-width: 460px;
  width: 100%;
  background:
    radial-gradient(circle at top, rgba(91,141,255,0.18), transparent 60%),
    radial-gradient(circle at bottom, rgba(255,79,188,0.16), transparent 55%),
    var(--bg-card);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.85);
  padding: 22px 20px 24px;
  position: relative;
  overflow: hidden;
}
.artist-shell::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.16), transparent 55%),
    conic-gradient(from 180deg, rgba(91,141,255,0.35), rgba(255,79,188,0.4), rgba(91,141,255,0.35));
  opacity: 0.26;
  mix-blend-mode: screen;
}
.artist-inner { position: relative; z-index: 1; }

.artist-header {
  display: flex; align-items: center; gap: 14px;
}
.artist-avatar-ring {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 999px;
  padding: 2px;
  background: conic-gradient(from 200deg, #5b8dff, #ff4fbc, #5b8dff);
  box-shadow: 0 0 18px rgba(91,141,255,0.7);
}
.artist-avatar-inner {
  width: 100%; height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: radial-gradient(circle at 30% 10%, #3a3d5e, #05071a);
  display: flex; align-items: center; justify-content: center;
}
#artist-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
#artist-avatar-fallback {
  font-size: 32px;
  font-weight: 600;
  color: #f5f7ff;
}

.artist-name {
  font-size: 20px;
  font-weight: 650;
}
.artist-handle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.artist-bio {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.artist-main-link { margin-top: 12px; }
.artist-main-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(4,6,22,0.98);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px;
  color: var(--text-main);
  text-decoration: none;
}
.artist-main-link a span.icon { font-size: 14px; }
.artist-main-link a:hover { border-color: rgba(255,255,255,0.28); }

.artist-qr-section {
  margin-top: 18px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(2,4,14,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.artist-qr-box {
  width: 120px; height: 120px;
  border-radius: 18px;
  padding: 6px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.18), transparent 60%),
    conic-gradient(from 200deg, #5b8dff, #ff4fbc, #5b8dff);
  display: flex; align-items: center; justify-content: center;
}
.artist-qr-inner {
  width: 100%; height: 100%;
  border-radius: 14px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#artist-qr-img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.artist-qr-copy { flex: 1; min-width: 140px; }
.artist-qr-title {
  font-size: 13px;
  font-weight: 600;
}
.artist-qr-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.artist-footer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 480px) {
  body { padding: 12px; }
  .matty-shell,
  .artist-shell {
    padding: 18px 16px 22px;
    border-radius: 16px;
  }
}

