:root {
  --bg: #fbf8f6;
  --bg2: #f4eef0;
  --card: #ffffff;
  --text: #241f26;
  --muted: #7b7480;
  --accent: #c2185b;
  --accent2: #7b1fa2;
  --accent-soft: #fbe6ef;
  --border: #ece5e9;
  --shadow: 0 10px 30px rgba(60, 20, 50, 0.06);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Inter", sans-serif;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }
img { max-width: 100%; }

/* ---------------- Shop cabinet ---------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.topbar nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--text); font-size: 14px; }
.container { max-width: 1000px; margin: 0 auto; padding: 28px 20px 70px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin: 16px 0; box-shadow: var(--shadow);
}
.card.narrow { max-width: 440px; margin: 40px auto; }
.msg { background: #e8f5e9; border: 1px solid #b6e2b9; color: #256029; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; }
.error { background: #fdecea; border: 1px solid #f5c6c2; color: #a3271d; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; }
.notice { background: #fff8e1; border: 1px solid #ffe0a3; color: #7a5c00; padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-size: 14px; }
label { display: block; margin: 12px 0; font-size: 14px; color: var(--muted); }
input, textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  color: var(--text); font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { display: inline-block; padding: 11px 20px; border-radius: 12px; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 14px; font-family: inherit; transition: transform .05s ease, box-shadow .2s ease; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border: none; }
.inline { display: inline; }
.link { background: none; border: none; color: var(--text); font-size: 14px; cursor: pointer; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-size: 30px; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
code.copy { display: block; background: #241f26; color: #7fe08a; padding: 12px; border-radius: 12px; font-size: 13px; word-break: break-all; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #faf6f8; color: var(--muted); font-weight: 600; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.active { background: #e6f5ea; color: #1f7a3f; }
.badge.trial { background: #fff4d8; color: #946a00; }
.badge.suspended { background: #fde8e8; color: #a3271d; }

/* ---------------- Public site ---------------- */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; position: sticky; top: 0; z-index: 20;
  background: rgba(251,248,246,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .brand { font-size: 20px; }
.site-nav nav { display: flex; gap: 22px; align-items: center; }
.site-nav nav a { color: var(--text); font-size: 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(194,24,91,0.14), transparent 60%),
    radial-gradient(700px 400px at 10% 10%, rgba(123,31,162,0.12), transparent 55%);
  padding: 84px 0 64px;
}
.hero h1 { font-size: 46px; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .actions { gap: 14px; }
.btn.lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--muted); margin-bottom: 20px; box-shadow: var(--shadow); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .ico { font-size: 26px; margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--border); font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.panel { background: linear-gradient(160deg, #2a1a2e, #3d1f3a); color: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 20px 50px rgba(60,20,50,0.25); }
.panel h3 { margin: 0 0 18px; color: #fff; }
.chat { display: grid; gap: 12px; }
.bubble { padding: 12px 15px; border-radius: 14px; font-size: 14px; max-width: 90%; }
.bubble.user { background: rgba(255,255,255,0.12); justify-self: start; }
.bubble.bot { background: linear-gradient(135deg, var(--accent), var(--accent2)); justify-self: end; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); position: relative; }
.price-card .tag { position: absolute; top: -12px; left: 24px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { margin: 0 0 6px; font-size: 18px; }
.price-card .price { font-size: 30px; font-weight: 800; margin: 6px 0 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.price-card li { padding: 6px 0; }
.price-card .btn { margin-top: auto; text-align: center; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.cta { text-align: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-radius: 24px; padding: 56px 32px; }
.cta h2 { font-size: 32px; margin: 0 0 12px; color: #fff; }
.cta p { opacity: 0.9; margin: 0 0 26px; }
.cta .btn { background: #fff; color: var(--accent); border: none; }
footer { padding: 40px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); margin-top: 30px; }
footer .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------------- Admin ---------------- */
.admin-topbar { background: #241f26; color: #fff; }
.admin-topbar .brand { color: #fff; }
.admin-topbar nav a { color: #d8cfd6; }
.admin-topbar .link { color: #d8cfd6; }

@media (max-width: 900px) {
  .cards, .steps, .pricing, .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 620px) {
  .cards, .steps, .pricing, .grid { grid-template-columns: 1fr; }
  .site-nav nav { gap: 12px; }
  .hero h1 { font-size: 28px; }
}
