:root {
  --accent: #2b6cb0;
  --accent-dark: #1a4e8a;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1a202c;
  --muted: #64748b;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 56px;
}

.brand {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

main.container {
  padding-top: 32px;
  padding-bottom: 32px;
  min-height: 60vh;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

button,
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: var(--accent-dark);
}

input[type="text"],
input[type="email"] {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  width: 100%;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 16px 0 32px;
}
.service-card { padding: 32px; }
.service-card select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.billing-section button { min-height: 44px; background: #3369ff; }
.billing-section button:hover { background: #1854db; }
.billing-section button:disabled { background: #e7e9ee; color: #636b7c; cursor: default; }
.billing-section a { display: inline-flex; align-items: center; min-height: 44px; color: #141821; }
.billing-section a[hidden] { display: none; }
.billing-section :is(button, a):focus-visible { outline: 2px solid #3369ff; outline-offset: 2px; }
.service-label { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.service-badge { display: inline-block; padding: 5px 10px; border-radius: 6px; background: #fff3d6; color: #805b10; font-size: .85rem; }
.service-badge-ready { background: #e7f5ec; color: #24653c; }
.service-card h1 { margin: 18px 0 12px; font-size: 1.65rem; line-height: 1.4; }
.service-description { color: #475569; line-height: 1.8; }
.service-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.service-help h2 { margin: 0 0 12px; font-size: 1rem; }
.service-help p { margin: 10px 0; }
.service-contact { margin: 24px 0 0; overflow-wrap: anywhere; }
.account-section { margin-top: 28px; }
.account-section h2 { font-size: 1.1rem; }
.account-section label, #code-entry-form label { display: block; margin: 16px 0 8px; font-weight: 600; }
.account-section textarea { width: 100%; resize: vertical; border: 1px solid var(--border); border-radius: 6px; padding: 12px; font: inherit; }
button:disabled { opacity: .65; cursor: wait; }
.account-feedback { margin: 18px 0; padding: 16px; border-radius: 6px; overflow-wrap: anywhere; }
.account-error { background: #fff1f0; color: #9b2c2c; border: 1px solid #fed7d7; }
.account-success { background: #f0fff4; border: 1px solid #c6f6d5; }
.account-feedback h3 { margin: 0 0 12px; font-size: 1rem; }
.account-facts { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; }
@media (max-width: 480px) {
  .service-card { padding: 24px 20px; }
  .service-card h1 { font-size: 1.4rem; }
}
