*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #1c1e21;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
}

.logo {
  font-size: 40px;
  font-weight: 700;
  color: #1877f2;
  letter-spacing: -1px;
  line-height: 1;
}

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 396px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 24px;
  text-align: center;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: #e4e6eb;
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-label {
  font-size: 13px;
  color: #65676b;
}

.account-name {
  font-size: 17px;
  font-weight: 600;
  color: #1c1e21;
}

.location-required-note {
  margin: 0 0 16px;
  text-align: center;
}

.card-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #65676b;
}

.location-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
}

.link-muted {
  color: #1877f2;
  text-decoration: none;
}

.link-muted:hover {
  text-decoration: underline;
}

.card-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.card-subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.4;
  color: #65676b;
}

.card-subtitle code {
  font-size: 13px;
  background: #f0f2f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.state.hidden {
  display: none;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 6px;
  background: #1877f2;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #166fe5;
}

.btn-primary:disabled {
  background: #e4e6eb;
  color: #bcc0c4;
  cursor: not-allowed;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid #e4e6eb;
  border-top-color: #1877f2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #42b72a;
  color: #fff;
  font-size: 28px;
  line-height: 48px;
  font-weight: 700;
}

.coords-display {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: #f0f2f5;
  padding: 12px;
  border-radius: 6px;
  word-break: break-all;
  text-align: left;
  margin-bottom: 16px;
}
