:root {
  --cream: #f7f3e7;
  --paper: #fffdf7;
  --ink: #14251f;
  --muted: #667064;
  --pine: #12352b;
  --pine-2: #1c4a3b;
  --lime: #d7f171;
  --lime-soft: #eef7c9;
  --olive: #5f6b4f;
  --line: #ded8c7;
  --rust: #b7643f;
  --blue: #4d6f8f;
  --shadow: 0 18px 50px rgba(29, 46, 35, .10);
  --radius: 18px;
  --serif: "Noto Serif SC", "Songti SC", STSong, "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.center { text-align: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 231, .90); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(222, 216, 199, .85); }
.nav { height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand small { display: block; font-size: 9px; letter-spacing: .16em; color: var(--muted); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 14px; color: #35443a; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-color: var(--pine); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 11px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 700; line-height: 1; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pine); color: #fffdf6; }
.btn-primary:hover { background: #1b4a3b; }
.btn-lime { background: var(--lime); color: #1a2e22; }
.btn-lime:hover { background: #cbeb59; }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.45); color: var(--ink); }
.btn-ghost:hover { border-color: #a7ae9c; }
.btn-soft { background: #e9efd9; color: #2c4436; }
.btn-danger { background: #f5e0d8; color: #8c3b24; }
.btn-sm { padding: 8px 13px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* typography bits */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #516247; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--olive); }
.kicker { font-size: 11px; letter-spacing: .18em; font-weight: 800; color: #66735a; text-transform: uppercase; }
.grad { color: #33523f; }

/* home hero */
.hero { padding: 58px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.3vw, 64px); margin: 16px 0 18px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 72%, var(--lime) 0); padding: 0 4px; }
.hero-lead { color: #4e5b50; font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 20px; color: var(--muted); font-size: 12px; }
.hero-proof span { display: inline-flex; gap: 7px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #83a152; display: inline-block; }
.hero-visual { position: relative; }
.mock { background: var(--pine); border-radius: 22px; padding: 14px; box-shadow: 0 30px 70px rgba(18, 53, 43, .22); transform: rotate(1.1deg); }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 2px 4px 10px; }
.mock-top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock-top span { margin-left: auto; color: #a9c7b4; font-size: 10px; letter-spacing: .08em; }
.mock-body { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.mock-side { background: #0d2b23; border-radius: 12px; padding: 11px 8px; }
.mock-side b { display: block; font-size: 8px; color: var(--lime); letter-spacing: .1em; margin-bottom: 12px; }
.mock-side u { display: block; height: 6px; border-radius: 4px; background: rgba(255,255,255,.12); margin: 9px 0; text-decoration: none; }
.mock-side u:nth-child(3) { background: rgba(215,241,113,.7); }
.mock-main { background: #0a241d; border-radius: 12px; padding: 12px; min-height: 272px; }
.mock-main .file-tab { display: inline-block; color: #cfe2c8; background: rgba(255,255,255,.08); border-radius: 6px 6px 0 0; font-size: 9px; padding: 6px 10px; margin-bottom: 10px; }
.code-lines { font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; line-height: 1.95; color: #d4e2d4; }
.code-lines .ln { color: #527366; display: inline-block; width: 20px; }
.code-lines .kw { color: #e9a58b; }
.code-lines .str { color: #d7f171; }
.code-lines .fn { color: #a9c9e8; }
.hero-float { position: absolute; right: -12px; bottom: -24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 11px 14px; display: flex; gap: 10px; align-items: center; font-size: 11px; transform: rotate(-1deg); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #80a34f; box-shadow: 0 0 0 5px rgba(128,163,79,.14); }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-top: 34px; }
.trust-row { display: flex; gap: 10px 34px; flex-wrap: wrap; align-items: center; justify-content: center; color: #5f6b58; font-size: 12px; }
.trust-row strong { color: var(--ink); font-size: 13px; }

/* sections */
.section { padding: 74px 0; }
.section.tight { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 44px); margin-top: 10px; }
.section-head p { max-width: 460px; color: var(--muted); font-size: 14px; }
.section-dark { background: var(--pine); color: #f4f7ea; }
.section-dark .muted, .section-dark p { color: #b9c9bb; }
.section-dark .kicker { color: var(--lime); }
.section-cream { background: #f0ead9; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--lime-soft); display: grid; place-items: center; margin-bottom: 14px; color: #28412f; font-weight: 800; }
.feature h3 { font-size: 18px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 13px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-media { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.split-media img { width: 100%; }
.check-list { display: grid; gap: 12px; margin: 22px 0; }
.check-list div { display: flex; gap: 10px; font-size: 14px; color: #405045; }
.check-list b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 12px; color: #1d3527; }

/* price cards */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.price-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; display: flex; flex-direction: column; }
.price-card.featured { border-color: #8cae42; box-shadow: 0 0 0 2px rgba(140,174,66,.17), var(--shadow); }
.price-card.dark { background: var(--pine); color: #f6f8ec; border-color: var(--pine); }
.price-card.dark .muted, .price-card.dark .price-list li { color: #b9c9bb; }
.price-badge { position: absolute; top: 12px; right: 12px; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: var(--lime-soft); color: #40552c; }
.price-card.dark .price-badge { background: rgba(215,241,113,.16); color: var(--lime); }
.plan-name { font-size: 17px; margin-bottom: 4px; }
.plan-tag { font-size: 11px; color: var(--muted); min-height: 30px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price strong { font-family: var(--serif); font-size: 36px; line-height: 1; }
.price span { font-size: 11px; color: var(--muted); }
.price-sub { font-size: 10px; color: var(--muted); min-height: 18px; }
.price-list { list-style: none; margin: 15px 0 20px; padding: 15px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12px; flex: 1; }
.price-list li { display: flex; gap: 7px; color: #465647; }
.price-list li::before { content: "✓"; color: #75953f; font-weight: 900; }
.price-card .btn { width: 100%; margin-top: auto; }
.price-note { margin-top: 14px; border: 1px dashed #cfc7b0; border-radius: 11px; padding: 11px 14px; font-size: 11px; color: #6b6653; background: rgba(255,255,255,.35); }

/* addons */
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.addon { display: grid; grid-template-columns: 38px 1fr auto; gap: 13px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.addon .icon { width: 38px; height: 38px; border-radius: 11px; background: #eaf0db; display: grid; place-items: center; font-size: 16px; }
.addon h3 { font-size: 14px; margin-bottom: 3px; }
.addon p { font-size: 11px; color: var(--muted); }
.addon .amount { text-align: right; font-size: 12px; white-space: nowrap; }
.addon .amount strong { font-size: 16px; font-family: var(--serif); }
.addon ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: 10px; color: #68745d; }

/* comparison table */
.compare-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 12px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid #e9e3d4; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; min-width: 190px; }
.compare-table thead th { background: #f0ebdc; font-family: var(--sans); font-size: 12px; position: sticky; top: 0; }
.compare-table tbody tr:hover { background: #fbf8ef; }
.compare-table .yes { color: #577a35; font-weight: 800; }
.compare-table .no { color: #a7a293; }
.compare-table small { display: block; font-size: 9px; color: var(--muted); font-weight: 400; }

/* storage / data */
.data-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.data-card { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.data-card h3 { font-size: 13px; margin-bottom: 6px; }
.data-card p { font-size: 11px; color: var(--muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 17px 18px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 13px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #70825f; font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p { margin-top: 9px; color: var(--muted); font-size: 12px; }

/* CTA */
.cta-band { background: var(--pine); color: #f7f8ee; border-radius: 22px; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -90px; width: 280px; height: 280px; border: 1px solid rgba(215,241,113,.25); border-radius: 50%; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); }
.cta-band p { color: #b9c9bb; font-size: 13px; margin-top: 7px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 38px 0 28px; color: #65705f; font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; color: #3e4f42; }
.site-footer a { display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 10px; }

/* auth and forms */
.auth-page { padding: 52px 0 80px; }
.auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; max-width: 960px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.auth-aside { background: var(--pine); color: #f5f7ea; padding: 42px; position: relative; overflow: hidden; }
.auth-aside h2 { font-size: 34px; margin: 16px 0 12px; }
.auth-aside p { color: #bccbbd; font-size: 13px; }
.auth-aside ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; font-size: 12px; }
.auth-aside li { display: flex; gap: 9px; align-items: flex-start; color: #dbe5d7; }
.auth-aside li::before { content: "✓"; color: var(--lime); font-weight: 900; }
.auth-form { padding: 40px 42px; }
.auth-form h1 { font-size: 28px; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.form { display: grid; gap: 13px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 5px; color: #3e4f43; }
.input, .form input, .form select, .form textarea,
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea,
.stack-form input:not([type="checkbox"]):not([type="radio"]), .stack-form select, .stack-form textarea,
.auth-form input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), .auth-form select {
  width: 100%; border: 1px solid #d9d2c2; background: #fffdf8; border-radius: 10px;
  padding: 11px 13px; font-size: 13px; color: var(--ink); outline: none; min-height: 42px;
  font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .form input:focus, .form select:focus, .form textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus,
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus,
.auth-form input:focus, .auth-form select:focus {
  border-color: #789b43; box-shadow: 0 0 0 3px rgba(120,155,67,.12);
}
.field textarea, .stack-form textarea { resize: vertical; line-height: 1.65; }
.catalog-card .field { margin-bottom: 11px; }
.catalog-card .form.row { margin-bottom: 11px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .hint { font-size: 10px; color: var(--muted); }
.form-actions { margin-top: 4px; }
.notice { border-radius: 10px; padding: 10px 13px; font-size: 12px; margin: 12px 0; }
.notice.error { background: #f8e1da; color: #8a3b24; }
.notice.ok { background: #e9f1d4; color: #3f5b2d; }
.notice.info { background: #e8eef2; color: #3e5768; }
.auth-switch { font-size: 12px; color: var(--muted); margin-top: 15px; text-align: center; }
.auth-switch a { color: var(--pine); font-weight: 700; }
.phone-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: var(--muted); }
.checkbox input { width: auto; margin-top: 3px; }

/* simple pages */
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(34px, 4vw, 52px); margin: 12px 0; }
.page-head p { max-width: 680px; color: var(--muted); }
.prose { max-width: 820px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 30px; font-size: 14px; color: #3e4d40; }
.prose h2 { font-size: 22px; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 8px 0; }
.prose ul { padding-left: 19px; }
.prose li { margin: 5px 0; }
.prose a { color: #3e6b4b; text-decoration: underline; }

/* download */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.download-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.download-card .tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #63823e; }
.download-card h2 { font-size: 25px; margin: 6px 0; }
.download-card p { color: var(--muted); font-size: 12px; }
.download-card .meta { display: grid; gap: 7px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; font-size: 11px; color: #5a6658; }
.download-card .actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.hash { font-family: Consolas, monospace; font-size: 10px; word-break: break-all; color: #7a7667; }

/* console */
.console-page { padding: 32px 0 70px; }
.console-grid { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.console-grid .inline-form { display: flex; flex-wrap: wrap; align-items: center; }
.console-grid .inline-form input:not([type="hidden"]), .console-grid .inline-form select { flex: 1 1 calc(50% - 8px); min-width: 0; width: auto; }
.console-grid .inline-form button { flex: 0 0 auto; white-space: nowrap; }
.console-grid .panel-head h2 { font-size: 18px; white-space: nowrap; }
.console-grid .console-add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.console-grid .console-add-form input:not([type="hidden"]), .console-grid .console-add-form select { width: 100%; min-width: 0; }
.console-grid .console-add-form button { grid-column: 1 / -1; width: 100%; justify-content: center; }
.console-grid .console-import-form { display: flex; flex-wrap: wrap; gap: 8px; }
.console-grid .console-import-form input[type="file"] { flex: 1 1 180px; min-width: 0; }
.console-grid .console-import-form button { white-space: nowrap; }
.console-side { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 13px; position: sticky; top: 88px; }
.console-side .who { padding: 7px 8px 13px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.console-side .who strong { display: block; font-size: 14px; }
.console-side .who span { font-size: 10px; color: var(--muted); }
.console-side nav { display: grid; gap: 2px; }
.console-side nav a { padding: 8px 10px; border-radius: 8px; font-size: 12px; color: #445343; }
.console-side nav a:hover, .console-side nav a.active { background: #edf1df; color: var(--ink); font-weight: 700; }
.console-main { min-width: 0; }
.console-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.console-head h1 { font-size: 30px; }
.console-head p { color: var(--muted); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
.stat span { display: block; font-size: 10px; color: var(--muted); letter-spacing: .05em; }
.stat strong { display: block; font-family: var(--serif); font-size: 26px; margin-top: 4px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 19px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { font-size: 18px; }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; font-size: 10px; letter-spacing: .08em; color: #7b806d; text-transform: uppercase; padding: 8px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 9px; border-bottom: 1px solid #eee9dc; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 9px; font-weight: 700; border-radius: 999px; padding: 3px 8px; background: #edf1df; color: #4a5b3c; white-space: nowrap; }
.badge.paid { background: #f5efd1; color: #7a6326; }
.badge.active { background: #dfeecb; color: #43642d; }
.badge.pending { background: #f1e8d7; color: #7b5d34; }
.badge.danger { background: #f4ddd5; color: #8c3b24; }
.badge.dark { background: var(--pine); color: #e8f1e2; }
.empty { text-align: center; padding: 45px 15px; color: var(--muted); font-size: 12px; }
.empty strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.inline-form { display: inline-flex; gap: 5px; align-items: center; }
.inline-form input, .inline-form select { border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font-size: 11px; background: #fffdf8; }
.license-key { font-family: Consolas, monospace; font-size: 12px; background: #0f2c24; color: #d7f171; border-radius: 8px; padding: 9px 11px; word-break: break-all; }
.meter { height: 6px; border-radius: 4px; background: #e9e4d5; overflow: hidden; }
.meter i { display: block; height: 100%; background: #91ab4c; border-radius: 4px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* admin */
.admin-top { background: var(--pine); color: #eef4e6; padding: 13px 0; }
.admin-top .container { display: flex; align-items: center; gap: 18px; }
.admin-top a { font-size: 12px; color: #c9d9c4; }
.admin-top a:hover { color: #fff; }
.admin-shell { padding: 24px 0 70px; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-nav a { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 13px; font-size: 11px; }
.admin-nav a.active { background: var(--pine); color: #fff; border-color: var(--pine); }
.order-detail { font-size: 11px; color: var(--muted); }

/* utility */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.copy-btn { border: 1px solid var(--line); background: transparent; border-radius: 6px; font-size: 10px; padding: 2px 6px; color: var(--muted); }

@media (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 30px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container { width: calc(100% - 30px); }
  .nav { height: 62px; gap: 12px; }
  .nav-links { display: none; position: absolute; left: 15px; right: 15px; top: 62px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px 10px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  .menu-btn { display: block; }
  .hero { padding: 34px 0 20px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { order: 2; margin-top: 18px; }
  .mock { transform: none; }
  .hero h1 { font-size: 40px; }
  .section { padding: 50px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .price-grid { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { padding: 24px 0 50px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { padding: 28px; }
  .auth-form { padding: 26px; }
  .download-grid { grid-template-columns: 1fr; }
  .console-grid { grid-template-columns: 1fr; }
  .console-side { position: static; }
  .console-side nav { display: flex; overflow-x: auto; }
  .console-side nav a { white-space: nowrap; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .compare-table { min-width: 760px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 34px; }
  .hero-proof { font-size: 11px; }
  .hero-float { right: 4px; bottom: -18px; }
  .data-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .form .row { grid-template-columns: 1fr; }
  .auth-form { padding: 22px 18px; }
  .auth-aside { padding: 22px; }
  .auth-aside h2 { font-size: 28px; }
  .cta-band { padding: 24px 20px; }
  .section-head h2 { font-size: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
}


/* console entitlement rows */
.entitlement-list { gap: 0; margin: 8px 0 14px; }
.entitlement-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: #405045; }
.entitlement-list li:last-child { border-bottom: 0; }
.entitlement-list b { width: auto; height: auto; min-width: 0; border-radius: 999px; padding: 3px 10px; background: var(--lime-soft); color: #28412f; font-size: 12px; font-weight: 700; }
.console-grid { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 980px) { .console-grid { grid-template-columns: 1fr; } }

/* admin manual grant */
.stack-form { display: flex; flex-direction: column; gap: 18px; }
.stack-form input:not([type="checkbox"]):not([type="radio"]), .stack-form select { width: 100%; border: 1px solid #d9d2c2; background: #fffdf8; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink); outline: none; }
.stack-form input:not([type="checkbox"]):not([type="radio"]):focus, .stack-form select:focus { border-color: #789b43; box-shadow: 0 0 0 3px rgba(120,155,67,.12); }
.stack-form .field > span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #3e4f43; }
.stack-form .check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 4px 0 0; }
.stack-form .check-item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf8; font-size: 13px; cursor: pointer; }
.stack-form .check-item input { flex: none; width: 16px; height: 16px; margin: 0; padding: 0; }
.stack-form .check-item span { line-height: 1.4; }
@media (max-width: 620px) { .stack-form .check-list { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.paytest-facts { display: grid; gap: 12px; margin: 18px 0; }
.paytest-facts div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.5; color: #405045; }
.paytest-facts b { color: var(--pine); }
.form-grid .field { margin: 0; }
.form-error { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #d9a3a3; border-radius: 10px; background: #fbeeee; color: #8f2f2f; font-size: 13px; }
.notice-inline { padding: 11px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; background: #fbf8ef; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grant-result { max-width: 860px; }
.grant-check { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--lime-soft); color: #28412f; font-size: 12px; font-weight: 700; }
.grant-result h2 { margin: 14px 0 18px; font-size: 26px; }
.grant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.grant-grid div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbf8ef; }
.grant-grid span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.grant-grid b { font-size: 14px; word-break: break-all; }
.license-key-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border: 1px solid var(--pine); border-radius: 12px; background: var(--pine); color: #eef6dd; }
.license-key-box span { width: 100%; font-size: 11px; letter-spacing: .1em; color: #b9d0a9; text-transform: uppercase; }
.license-key-box code { font-size: 20px; letter-spacing: .04em; color: var(--lime); word-break: break-all; }
.license-key-box .btn { margin-left: auto; }
@media (max-width: 620px) { .form-grid, .grant-grid { grid-template-columns: 1fr; } }

.pay-launch-page { min-height:100vh; display:grid; place-items:center; background:#f5f2e8; color:#10231d; }
.pay-launch-card { width:min(360px, calc(100vw - 40px)); padding:34px 28px; text-align:center; background:#fffdf8; border:1px solid #dfe3d5; border-radius:18px; box-shadow:0 20px 60px rgba(16,35,29,.08); }
.pay-launch-mark { width:44px; height:44px; margin:0 auto 16px; display:grid; place-items:center; border-radius:12px; background:#d7f171; color:#10231d; font-weight:800; }
.pay-launch-card h1 { margin:0 0 8px; font-size:20px; }
.pay-launch-card p { margin:0; color:#6f7a70; font-size:12px; }

/* Console org table: give role/seat/action enough room */
.console-grid { grid-template-columns: 360px minmax(0, 1fr); }
.console-grid .table { font-size: 11px; }
.console-grid .table th, .console-grid .table td { padding: 8px 5px; vertical-align: middle; }
.console-grid .table td:nth-child(2), .console-grid .table td:nth-child(3), .console-grid .table td:nth-child(4) { white-space: nowrap; }
.console-grid .table td:nth-child(4) .btn { white-space: nowrap; padding: 4px 7px; }
@media (max-width: 980px) { .console-grid { grid-template-columns: 1fr; } }

/* human verification */
.captcha { margin: 14px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbf8ee; }
.captcha-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font-size: 12px; font-weight: 700; color: var(--ink); }
.captcha-refresh { border: 0; background: transparent; color: var(--pine); font-size: 11px; cursor: pointer; font-weight: 700; }
.captcha-stage { position: relative; width: 100%; max-width: 280px; height: 74px; margin: 0 auto; border-radius: 9px; overflow: hidden; background: linear-gradient(120deg,#e8eed8,#f5efdb 55%,#dce9d2); border: 1px solid #d8dfc7; }
.captcha-stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#b9c9a8 1px, transparent 1px); background-size: 12px 12px; opacity: .45; }
.captcha-hole { position: absolute; top: 16px; width: 36px; height: 36px; border-radius: 8px; border: 2px dashed #7f9b6e; background: rgba(255,255,255,.45); transition: left .15s; }
.captcha-piece { position: absolute; top: 16px; left: 0; width: 36px; height: 36px; border-radius: 8px; background: var(--pine); box-shadow: 0 5px 12px rgba(10,40,30,.18); transition: left .05s linear; }
.captcha-range { display: block; width: 100%; max-width: 280px; margin: 10px auto 0; accent-color: var(--pine); }
.captcha-hint { margin-top: 6px; text-align: center; font-size: 11px; color: var(--muted); min-height: 16px; }
.captcha.solved .captcha-stage { border-color: #8fbf74; background: #e8f3df; }
.captcha.solved .captcha-piece { background: #4e8b51; }
.captcha.solved .captcha-hint { color: #3f7f46; font-weight: 700; }

/* admin catalog */
.catalog-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.catalog-card { padding:18px; }
.catalog-card .panel-head { margin-bottom:12px; }
.catalog-card .field { margin-bottom:10px; }
.catalog-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:6px; }
.catalog-save { position:sticky; bottom:14px; display:flex; justify-content:flex-end; padding:12px 0; background:linear-gradient(180deg,rgba(251,248,238,0),#fbf8ee 35%); }
@media(max-width:760px){ .catalog-grid{grid-template-columns:1fr} .catalog-features{grid-template-columns:1fr} }

/* promotion banner */
.promo-banner { max-width:1180px; margin:18px auto 0; padding:12px 18px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; border:1px solid #c8db9b; border-radius:12px; background:linear-gradient(90deg,#eef7d7,#faf7e6); color:var(--ink); font-size:13px; }
.promo-tag { display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:999px; background:var(--pine); color:#eef8cf; font-size:10px; font-weight:800; letter-spacing:.08em; }
.promo-banner strong { font-size:14px; }
.promo-banner span:not(.promo-tag) { color:var(--muted); }
.promo-banner span.promo-off { display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:999px; background:#dcefb4; color:#2f4a1c; font-size:11px; font-weight:800; }
.promo-banner em { font-style:normal; color:#7d6a2f; font-size:11px; }
.promo-banner a { margin-left:auto; color:var(--pine); font-weight:800; }
@media(max-width:760px){ .promo-banner{margin:12px 13px 0;align-items:flex-start} .promo-banner a{margin-left:0} }

/* announcements */
.home-news { max-width:1180px; margin:10px auto 0; display:flex; align-items:center; gap:10px; padding:10px 18px; border:1px solid var(--line); border-radius:10px; background:#fffdf6; font-size:12px; color:var(--ink); }
.home-news span:not(.promo-tag) { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-news em { margin-left:auto; font-style:normal; color:var(--pine); font-weight:700; flex:none; }
.news-card { display:block; padding:22px; margin-top:14px; background:var(--card); border:1px solid var(--line); border-radius:14px; color:var(--ink); transition:transform .18s, box-shadow .18s; }
.news-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.news-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:11px; }
.news-card h2 { margin:8px 0 6px; font-size:24px; }
.news-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.8; }
.news-more { display:inline-block; margin-top:10px; color:var(--pine); font-size:12px; font-weight:700; }
.news-detail { padding:34px; }
.news-detail h1 { margin:12px 0 18px; }
.news-body { white-space:pre-wrap; line-height:2; color:var(--ink); font-size:15px; }
.back-link { display:inline-block; margin-bottom:14px; color:var(--muted); font-size:12px; }
.admin-two { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.news-admin-row { display:flex; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); }
.news-admin-row:last-child { border-bottom:0; }
@media(max-width:760px){ .admin-two{grid-template-columns:1fr} .news-detail{padding:22px} .home-news{margin:10px 13px 0} .home-news span:not(.promo-tag){display:none} }

/* motion */
@keyframes cc-rise { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:none } }
@keyframes cc-fade { from { opacity:0 } to { opacity:1 } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-visual, .section-head, .plan-card, .feature-card, .news-card, .panel { animation: cc-rise .42s ease both; }
  .plan-card:nth-child(2) { animation-delay:.04s }
  .plan-card:nth-child(3) { animation-delay:.08s }
  .plan-card:nth-child(4) { animation-delay:.12s }
  .site-nav a, .btn, .plan-card, .feature-card, .download-card { transition: color .16s, background .16s, border-color .16s, transform .16s, box-shadow .16s; }
  .btn:active { transform:translateY(1px) }
}
.auth-shell, .checkout-card, .news-detail { animation: cc-fade .3s ease both; }


/* promotion workbench */
.promo-page { max-width: 960px; }
.promo-workbench { padding: 0; overflow: hidden; }
.promo-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 30px; background: linear-gradient(120deg,#f3f7e8,#fbf8ee); border-bottom: 1px solid var(--line); }
.promo-head h2 { margin: 4px 0 6px; font-size: 24px; }
.promo-head p { margin: 0; color: var(--muted); font-size: 12px; }
.switch-line { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch-line input { position: absolute; opacity: 0; pointer-events: none; }
.switch-copy { text-align: right; display: grid; gap: 2px; }
.switch-copy strong { font-size: 12px; color: var(--ink); }
.switch-copy small { font-size: 10px; color: var(--muted); }
.switch-track { width: 46px; height: 26px; border-radius: 99px; background: #cfc9b8; position: relative; transition: background .2s ease; flex: none; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fffdf8; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s ease; }
.switch-line input:checked + .switch-track { background: #5c8a3a; }
.switch-line input:checked + .switch-track::after { transform: translateX(20px); }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 26px 30px; }
.promo-span-2 { grid-column: 1 / -1; }
.promo-grid .field { margin-bottom: 0; }
.promo-grid .hint { margin-top: 5px; font-size: 10px; color: var(--muted); }
.promo-plans { display: flex; flex-wrap: wrap; gap: 9px; }
.promo-plan-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #d9d2c2; border-radius: 99px; background: #fffdf8; font-size: 11px; font-weight: 700; color: #3e4f43; cursor: pointer; }
.promo-plan-chip:has(input:checked) { border-color: #789b43; background: #eef5df; color: #31501f; }
.promo-plan-chip input { accent-color: #4f7a2f; }
.promo-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 30px; border-top: 1px solid var(--line); background: #fbf8ee; }
.promo-actions .flex { gap: 9px; }
@media (max-width: 760px) {
  .promo-head { align-items: flex-start; flex-direction: column; padding: 20px; }
  .switch-copy { text-align: left; }
  .promo-grid { grid-template-columns: 1fr; padding: 20px; }
  .promo-span-2 { grid-column: auto; }
  .promo-actions { align-items: stretch; flex-direction: column; padding: 16px 20px; }
  .promo-actions .flex { justify-content: flex-end; }
}

/* catalog compact rows */
.form.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catalog-card { padding: 22px; }
.catalog-card .panel-head { margin-bottom: 14px; }
.catalog-card .panel-head h2 { font-size: 20px; }
.catalog-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbf8ee; }
.catalog-features .check-item { margin: 0; font-size: 11px; }
@media (max-width: 760px) {
  .form.row { grid-template-columns: 1fr; }
  .catalog-card { padding: 17px; }
  .catalog-features { grid-template-columns: 1fr; }
}
.admin-db-sql { width: 100%; min-height: 180px; resize: vertical; font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; line-height: 1.65; }
.table code { white-space: normal; word-break: break-word; }
.admin-user-form .form-grid { gap: 14px; }
.guide-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.guide-links a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbf8ee; text-decoration: none; }
.guide-links a:hover { border-color: var(--pine); background: #f5f9e9; }
.guide-links strong { display: block; margin-bottom: 6px; color: var(--ink); }
.guide-links span { color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 760px) { .guide-links { grid-template-columns: 1fr; } }
