* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f6f8fa;
  color: #1f2933;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.sub { color: #52606d; margin-bottom: 1rem; }

.badge {
  display: inline-block;
  background: #fff3cd;
  border: 1px solid #e6c35c;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.badge code, .footer code, .hint code, .meta code { background: #e4e7eb; border-radius: 4px; padding: 0.1rem 0.35rem; }

.cancelled { color: #b25e09; font-weight: 600; }

.plans {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem 1rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.plan-card {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 1.75rem;
  width: 300px;
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.08);
}

.plan-card h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.plan-card .desc { color: #52606d; font-size: 0.9rem; min-height: 2.5rem; }
.plan-card .price { font-size: 2rem; font-weight: 700; margin: 1rem 0 0.25rem; }
.plan-card .price span { font-size: 1rem; font-weight: 400; color: #52606d; }
.plan-card .meta { font-size: 0.7rem; color: #9aa5b1; margin-bottom: 1.25rem; word-break: break-all; }

.button {
  display: inline-block;
  background: #635bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { background: #5148e0; }
.button:disabled { opacity: 0.6; cursor: wait; }

.status-card {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  max-width: 560px;
  margin: 1rem auto;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.08);
}

.summary { text-align: left; margin-bottom: 1.5rem; line-height: 1.8; }

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status.pending { background: #fff3cd; color: #8a6100; }
.status.pending .dot { background: #e6a700; animation: pulse 1.2s infinite; }
.status.processing { background: #dce7f8; color: #1c3d5a; }
.status.processing .dot { background: #3e7bd6; animation: pulse 1.2s infinite; }
.status.paid { background: #d9f2e5; color: #14633c; }
.status.paid .dot { background: #2ea46e; }
.status.failed { background: #fbe3e4; color: #8f1d26; }
.status.failed .dot { background: #d64550; }

.sub-status { color: #52606d; margin-bottom: 1rem; }
.hint { color: #b25e09; font-size: 0.85rem; margin-bottom: 1.25rem; }

.footer { text-align: center; color: #52606d; font-size: 0.85rem; padding: 1rem; }

.error { color: #8f1d26; font-weight: 600; text-align: center; margin-top: 1rem; }
.hidden { display: none !important; }

.skeleton-block { height: 1rem; background: #e4e7eb; border-radius: 4px; margin-bottom: 0.75rem; }
.skeleton-block.short { width: 60%; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
