:root {
  --bg: #071426;
  --panel: rgba(255,255,255,0.08);
  --panel-strong: rgba(255,255,255,0.13);
  --line: rgba(255,255,255,0.14);
  --text: #f7fbff;
  --muted: #a8b5c8;
  --gold: #f5c76a;
  --blue: #49a7ff;
  --green: #54d88a;
  --red: #ff6b7a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(73,167,255,.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(245,199,106,.18), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.app-shell { max-width: 1380px; margin: 0 auto; padding: 28px; }
.hero {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 24px;
  align-items: center;
}
.brand-pill { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.logo-dot { width: 12px; height: 12px; border-radius: 99px; background: var(--gold); box-shadow: 0 0 22px var(--gold); }
h1 { margin: 12px 0 8px; font-size: clamp(30px, 4vw, 56px); line-height: 1.05; }
.hero p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.btn {
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), #ffe2a2); color: #1d1302; }
.btn-dark { background: #020814; color: var(--white); border: 1px solid var(--line); }
.btn-blue { background: linear-gradient(135deg, var(--blue), #86c6ff); color: #02111f; }
.btn-red { background: var(--red); color: white; }
.btn-green { background: var(--green); color: #031409; }
.grid { display: grid; gap: 18px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,.18);
}
.card-title { font-size: 22px; font-weight: 900; margin: 0 0 16px; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 34px; font-weight: 950; margin-top: 8px; }
.stat-sub { color: var(--muted); margin-top: 6px; font-size: 13px; }
.section { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
}
select option { color: #111827; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.48); }
.check-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.check-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.check-row input, table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1000px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--gold); font-size: 13px; background: rgba(255,255,255,.06); }
td { color: #eaf1fb; }
.badge { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; }
.badge-veg { background: rgba(84,216,138,.16); color: #95ffbd; }
.badge-meat { background: rgba(255,107,122,.16); color: #ffb0b8; }
.mini { padding: 8px 11px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.config-grid { display: grid; gap: 12px; }
.config-row { display: grid; grid-template-columns: 110px 110px 90px 1.2fr 1.2fr 130px 90px; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 12px; background: rgba(255,255,255,.04); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.68); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { max-width: 900px; width: 100%; background: #08172a; border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.modal textarea { min-height: 480px; resize: vertical; line-height: 1.55; }
.show { display: flex; }
.footer-note { color: var(--muted); text-align: center; padding: 22px; font-size: 13px; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .stats, .form-grid { grid-template-columns: 1fr 1fr; }
  .config-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-shell { padding: 16px; }
  .stats, .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
