button.button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

/* Author .button { display } beats the UA [hidden] rule without this. */
.button[hidden],
.my-ip-cta[hidden] {
  display: none !important;
}

.my-ip-hero {
  padding: 96px 48px 48px;
  text-align: center;
}

.my-ip-hero .badge {
  margin-bottom: 20px;
}

.my-ip-hero h1 {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 68px;
  color: var(--ink);
}

.my-ip-hero > p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.my-ip-panel {
  max-width: 760px;
  margin: 0 auto 72px;
  padding: 0 20px;
}

.my-ip-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 32, 64, 0.06);
}

.my-ip-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.my-ip-value-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.my-ip-value {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--blue);
  word-break: break-all;
}

.my-ip-copy {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.my-ip-copy:hover,
.my-ip-copy:focus-visible {
  color: var(--blue);
  outline: none;
}

.my-ip-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.my-ip-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.my-ip-status[data-state="protected"] {
  background: rgba(23, 178, 106, 0.12);
  color: #067647;
}

.my-ip-status[data-state="unprotected"] {
  background: rgba(240, 68, 56, 0.12);
  color: #b42318;
}

.my-ip-status[data-state="unavailable"],
.my-ip-status[data-state="loading"] {
  background: rgba(113, 118, 128, 0.12);
  color: #475467;
}

.my-ip-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.my-ip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.my-ip-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
}

.my-ip-info dt {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.my-ip-info dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.my-ip-error {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(240, 68, 56, 0.08);
  color: #b42318;
  text-align: center;
}

.my-ip-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.my-ip-cta {
  max-width: 760px;
  margin: 0 auto 96px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.my-ip-cta h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 40px;
}

.my-ip-cta p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: var(--muted);
  line-height: 26px;
}

@media (max-width: 760px) {
  .my-ip-hero {
    padding: 72px 20px 32px;
  }

  .my-ip-hero h1 {
    font-size: 38px;
    line-height: 48px;
  }

  .my-ip-value {
    font-size: 28px;
  }

  .my-ip-grid {
    grid-template-columns: 1fr;
  }

  .my-ip-card,
  .my-ip-cta {
    padding: 28px 20px;
  }
}
