:root {
  --bg: #f5f7fb;
  --text: #16203a;
  --muted: #64708a;
  --line: #e4e9f2;
  --primary: #2196f3;
  --primary-dark: #1565c0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.wrap { width: min(1100px, 100% - 40px); margin: 0 auto; }
.store-top { background: #fff; border-bottom: 1px solid var(--line); }
.store-top .wrap { display: flex; align-items: center; height: 64px; }
.store-top .logo { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.store-top .toplink { margin-left: auto; color: var(--primary-dark); text-decoration: none; font-weight: 600; font-size: 14px; }
.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 { font-size: 34px; margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 24px 0 60px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.plan.featured { border-color: var(--primary); box-shadow: 0 16px 40px rgba(33, 150, 243, .14); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 30px; font-weight: 800; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.plan ul li::before { content: "✓ "; color: var(--primary); font-weight: 800; }
.plan .btn { margin-top: auto; }
.btn {
  display: inline-block; border: 0; background: var(--primary); color: #fff; padding: 13px 18px;
  border-radius: 10px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 15px; text-align: center;
}
.btn:hover { background: var(--primary-dark); }
.btn.ghost { background: #eef3f9; color: #24507a; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; max-width: 520px; margin: 30px auto 60px; }
.card h1 { margin: 0 0 6px; font-size: 24px; }
label { display: block; font-weight: 700; font-size: 13px; color: #3d4964; margin: 14px 0 0; }
input {
  display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #d5dbe6;
  border-radius: 10px; font: inherit; background: #fff;
}
input:focus { outline: 2px solid #bcdcf7; border-color: var(--primary); }
.alert { padding: 13px 15px; border-radius: 10px; margin: 16px 0; font-weight: 600; }
.alert.error { background: #fff0f1; color: #a52d3e; }
.alert.success { background: #ecfff5; color: #16714a; }
.alert.info { background: #eaf4fe; color: #14568f; }
.key { display: block; background: #f4f7fc; border: 1px dashed #b9c6da; border-radius: 10px; padding: 16px; font-family: ui-monospace, Consolas, monospace; font-size: 18px; text-align: center; letter-spacing: 1px; margin: 14px 0; word-break: break-all; }
.muted { color: var(--muted); }
.store-foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13px; text-align: center; }
.steps { color: var(--muted); font-size: 14px; padding-left: 20px; }
.themetoggle { margin-left: 12px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-weight: 600; font-size: 12px; }
[data-theme="dark"] { color-scheme: dark; --bg: #0d1220; --text: #e6ebf5; --muted: #94a1b8; --line: #273149; }
[data-theme="dark"] .store-top { background: #151c2c; }
[data-theme="dark"] .store-top .logo { color: var(--text); }
[data-theme="dark"] .store-top .toplink { color: #7cc0f5; }
[data-theme="dark"] .plan, [data-theme="dark"] .card { background: #151c2c; }
[data-theme="dark"] .plan.featured { box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
[data-theme="dark"] input { background: #0f1626; color: var(--text); border-color: #2c3852; }
[data-theme="dark"] .btn.ghost { background: #1e2a42; color: #bcd4ef; }
[data-theme="dark"] .key { background: #0f1626; border-color: #2c3852; }
[data-theme="dark"] .alert.error { background: #3a1a1c; color: #f2a3a6; }
[data-theme="dark"] .alert.success { background: #123a2a; color: #6ee7a8; }
[data-theme="dark"] .alert.info { background: #13233a; color: #8ec5f0; }
[data-theme="dark"] .store-foot { border-color: var(--line); }
