* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  background: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(at 0% 0%, rgba(56,189,248,0.1) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(129,140,248,0.08) 0px, transparent 50%);
  z-index: -1; }

.container { width: 100%; max-width: 500px; }

.header { text-align: center; margin-bottom: 2.5rem; }
.header-logo {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  color: #475569; text-transform: uppercase; margin-bottom: 0.75rem;
}
.header-logo-img { width: 20px; height: 20px; vertical-align: middle; margin-right: 4px; }
.header-logo span {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header h1 { font-size: 1.5rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.25rem; }
.header p { font-size: 0.9rem; color: #64748b; }

.accounts-grid {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-bottom: 1.5rem;
}

.account-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 1rem; border-radius: 16px;
  background: rgba(30,41,59,0.7); border: 1px solid rgba(148,163,184,0.1);
  cursor: pointer; transition: all 0.2s;
  width: calc(33.33% - 0.7rem); min-width: 100px; max-width: 140px;
  text-decoration: none; color: inherit; position: relative;
}
.account-card:hover {
  background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.25);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.account-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
  border: 2px solid rgba(148,163,184,0.15); flex-shrink: 0;
}
.account-name {
  font-size: 0.82rem; font-weight: 600; color: #cbd5e1;
  text-align: center; word-break: break-all; max-width: 100%;
  line-height: 1.2;
}
.account-remove {
  position: absolute; top: 4px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(148,163,184,0.15);
  background: rgba(15,23,42,0.8);
  color: #64748b; font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; opacity: 0;
}
.account-card:hover .account-remove { opacity: 1; }
.account-remove:hover {
  background: rgba(248,113,113,0.2); color: #f87171; border-color: rgba(248,113,113,0.3);
}

.add-account-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.9rem; border-radius: 12px;
  border: 1px dashed rgba(148,163,184,0.2);
  background: rgba(148,163,184,0.03);
  color: #94a3b8; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.add-account-btn:hover {
  background: rgba(56,189,248,0.05); border-color: rgba(56,189,248,0.25);
  color: #38bdf8;
}

.back-link {
  text-align: center; margin-top: 1.5rem;
}
.back-link a {
  color: #475569; text-decoration: none; font-size: 0.85rem; transition: color 0.15s;
}
.back-link a:hover { color: #94a3b8; }

.empty-state { text-align: center; padding: 2rem; color: #64748b; }
.empty-state p { margin-bottom: 1rem; font-size: 0.95rem; }

@media (max-width: 480px) {
  .account-card { width: calc(50% - 0.5rem); min-width: 80px; padding: 1rem 0.5rem; }
  .account-avatar { width: 48px; height: 48px; font-size: 1.2rem; }
  .header h1 { font-size: 1.3rem; }
}
