:root {
  --bg: #f3efe5;
  --bg-accent: #e2d2bc;
  --surface: rgba(255, 250, 242, 0.86);
  --surface-strong: #fffaf2;
  --text: #2e261d;
  --muted: #6b5e51;
  --line: rgba(46, 38, 29, 0.1);
  --accent: #8c4f2b;
  --accent-soft: #dca97d;
  --shadow: 0 20px 60px rgba(73, 49, 27, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 169, 125, 0.35), transparent 32%),
    radial-gradient(circle at bottom right, rgba(140, 79, 43, 0.18), transparent 28%),
    linear-gradient(135deg, var(--bg), #fbf6ee 55%, var(--bg-accent));
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.94), rgba(250, 240, 226, 0.8));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 20px;
}

.lead {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(140, 79, 43, 0.18);
  background: rgba(255, 250, 242, 0.92);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h2 {
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.card p {
  color: var(--muted);
  line-height: 1.8;
}

.accent {
  background:
    linear-gradient(180deg, rgba(140, 79, 43, 0.98), rgba(113, 61, 33, 0.98)),
    var(--surface-strong);
  color: #fff7ef;
}

.accent p,
.accent span {
  color: rgba(255, 247, 239, 0.74);
}

.contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contacts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 247, 239, 0.18);
}

.contacts strong {
  text-align: right;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .page {
    padding: 20px 0 32px;
  }

  .hero,
  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .contacts li {
    flex-direction: column;
  }

  .contacts strong {
    text-align: left;
  }
}

.page-admin {
  width: 100%;
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(86, 206, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(162, 255, 190, 0.12), transparent 22%),
    linear-gradient(180deg, #071018 0%, #0b1420 100%);
  color: #eef7ff;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.publicPage {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.page-admin a,
.page-admin button,
.page-admin input,
.page-admin select,
.page-admin textarea {
  font: inherit;
}

.page-admin h1,
.page-admin h2,
.page-admin h3,
.page-admin p {
  margin-top: 0;
}

.adminPage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.sidebar,
.workspace,
.panel,
.metricCard,
.heroCard,
.brandCard,
.systemBanner {
  border: 1px solid rgba(137, 196, 255, 0.14);
  background: rgba(8, 18, 29, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  border-radius: 28px;
}

.sidebar {
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  overflow: hidden;
}

.workspace {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.brandCard {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.brandVisual,
.heroVisual {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 140px;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.18), rgba(111, 255, 196, 0.1));
}

.brandGlow,
.heroOrb {
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(127, 213, 255, 0.95), transparent 32%),
    radial-gradient(circle at 70% 60%, rgba(141, 255, 186, 0.72), transparent 28%),
    rgba(255, 255, 255, 0.03);
  filter: blur(2px);
}

.label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #8fd2ff;
}

.sidebarHint,
.fieldHint,
.data-table th,
.page-admin p,
.simple-list {
  color: #98aec2;
}

.sidebarNavList {
  min-height: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.sidebarNavList::-webkit-scrollbar {
  width: 8px;
}

.sidebarNavList::-webkit-scrollbar-thumb {
  background: rgba(143, 210, 255, 0.22);
  border-radius: 999px;
}

.navButton,
.primaryButton,
.ghostButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
}

.navButton {
  background: rgba(255, 255, 255, 0.04);
  color: #dbeeff;
  text-align: left;
  width: 100%;
  justify-content: flex-start;
}

.navButton.active,
.primaryButton {
  background: linear-gradient(135deg, #7fd5ff, #8dffba);
  color: #041018;
  font-weight: 800;
}

.ghostButton {
  background: rgba(255, 255, 255, 0.08);
  color: #eef7ff;
}

.primaryButton.small {
  padding: 10px 12px;
}

.heroCard {
  padding: 20px;
  display: grid;
  grid-template-columns: 1.2fr 280px;
  gap: 16px;
  align-items: center;
}

.publicHero {
  margin-bottom: 18px;
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.cardGridAdmin,
.installGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metricCard,
.panel {
  padding: 18px;
}

.metricCard span {
  color: #98aec2;
  display: block;
  margin-bottom: 8px;
}

.metricCard strong {
  font-size: 34px;
}

.twoColumn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sectionTitleRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(137, 196, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.data-table a {
  color: #8fd2ff;
}

.inlineLink {
  color: #8fd2ff;
  text-decoration: none;
}

.inlineLink:hover {
  text-decoration: underline;
}

.stackForm {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.fieldBlock {
  display: grid;
  gap: 8px;
}

.fieldBlock span {
  color: #98aec2;
  font-size: 13px;
}

.page-admin input,
.page-admin select,
.page-admin textarea {
  width: 100%;
  border: 1px solid rgba(137, 196, 255, 0.14);
  background: rgba(4, 10, 17, 0.86);
  color: #eef7ff;
  border-radius: 16px;
  padding: 12px 14px;
}

.checkRow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eef7ff;
}

.checkRow input {
  width: auto;
}

.inline-form,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(127, 213, 255, 0.16);
  color: #8fd2ff;
}

.simple-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.orderedList {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  line-height: 1.6;
}

.publicLead {
  max-width: 760px;
  line-height: 1.7;
  color: #dbeeff;
}

.profileCard {
  display: grid;
  gap: 12px;
}

.profileCard h3,
.installCard h3 {
  margin: 0;
}

.profileCard-all {
  background: linear-gradient(180deg, rgba(8, 18, 29, 0.88), rgba(10, 32, 46, 0.92));
}

.profileCard-gpt {
  background: linear-gradient(180deg, rgba(8, 18, 29, 0.88), rgba(18, 43, 35, 0.92));
}

.profileMeta {
  display: grid;
  gap: 6px;
}

.profileMeta span,
.fieldHint {
  color: #98aec2;
}

.profileMeta code,
.codeBlock code {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(4, 10, 17, 0.86);
  color: #8fd2ff;
  overflow-x: auto;
}

.codeBlock {
  margin: 0;
}

.systemBanner {
  padding: 14px 16px;
  color: #ffd2d8;
}

.systemBannerSuccess {
  color: #b7ffd4;
}

@media (max-width: 1100px) {
  .adminPage,
  .heroCard,
  .metricGrid,
  .twoColumn,
  .cardGridAdmin,
  .installGrid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebarNavList {
    overflow: visible;
    padding-right: 0;
  }
}
