:root {
  --bg: #f3f5fb;
  --panel: #ffffff;
  --border: #d9dfef;
  --text: #172033;
  --muted: #5c667d;
  --primary: #2a5bd7;
  --primary-dark: #1f47ac;
  --danger-bg: #ffe4e4;
  --danger-text: #8d2020;
  --success-bg: #e2f7e9;
  --success-text: #1c6b33;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-body {
  padding: 28px 0 48px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2 { margin: 0 0 8px; }
.section-heading p { margin: 0; color: var(--muted); }

.flash {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.flash-success { background: var(--success-bg); color: var(--success-text); }
.flash-error { background: var(--danger-bg); color: var(--danger-text); }

.grid {
  display: grid;
  gap: 16px;
}
.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 20px;
}

.card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}
.stat-label {
  color: var(--muted);
}

.toolbar,
.inline-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-size: .95rem;
}

.button:hover,
.link-button:hover { text-decoration: none; }

.button-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: #eef2fb; }

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
}

.inline-form { display: inline; }
.stack-form { display: inline-flex; margin-right: 8px; }

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th { background: #eef2fb; }
tr:last-child td { border-bottom: 0; }

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
}

.price-line {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.meta-line,
.small-text { color: var(--muted); font-size: .9rem; }

.narrow-card { max-width: 680px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  margin: 0 0 18px;
}
.checkout-grid dt { font-weight: 700; }
.checkout-grid dd { margin: 0; }

@media (max-width: 640px) {
  .header-row { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .checkout-grid { grid-template-columns: 1fr; }
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, #2a5bd7, #5fb8ff);
  color: #0b1838;
}
.brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-title {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}
.brand-subtitle {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero-heading { max-width: 760px; }
.bot-card-media {
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
}
.bot-card-media img,
.bot-hero-media img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.bot-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bot-hero-media {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
}
@media (max-width: 640px) {
  .bot-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
