:root {
  --ink: #20191f;
  --muted: #766b72;
  --paper: #fffaf6;
  --paper-2: #f6efe9;
  --line: #eadfd7;
  --plum: #3f203d;
  --rose: #c66c8e;
  --gold: #c89a4a;
  --emerald: #2f6d5d;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(42, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 108, 142, 0.14), transparent 28rem),
    linear-gradient(180deg, #fffdfb 0%, var(--paper) 42%, #f7f0ec 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(234, 223, 215, 0.82);
  background: rgba(255, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--plum), var(--rose) 55%, var(--gold));
  box-shadow: 0 10px 28px rgba(63, 32, 61, 0.2);
}

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

.nav-links a {
  padding: 9px 11px;
  border-radius: 999px;
  color: #4f434b;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  background: #fff;
  color: var(--plum);
  box-shadow: 0 6px 20px rgba(63, 32, 61, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
button,
input[type="submit"] {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 700;
  color: #fff;
  background: var(--plum);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(63, 32, 61, 0.2);
}

.button.secondary {
  color: var(--plum);
  background: #fff;
  border: 1px solid var(--line);
}

.button.gold {
  color: #2d1d16;
  background: linear-gradient(135deg, #efd08f, var(--gold));
}

.button.whatsapp {
  background: #138c64;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: center;
  color: #fff;
  background: #21151f;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 25, 31, 0.92) 0%, rgba(32, 25, 31, 0.72) 44%, rgba(32, 25, 31, 0.18) 100%),
    url("/assets/crystal-hero.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 72px 0 100px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

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

h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  margin-bottom: 12px;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  max-width: 560px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
  max-width: 620px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 22px;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.52);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head p,
.muted {
  color: var(--muted);
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(63, 32, 61, 0.08);
  overflow: hidden;
}

.card-body {
  padding: 18px;
}

.image-frame {
  aspect-ratio: 4 / 3;
  background: #eadfd7;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip,
.filter-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #5c4f56;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.2;
}

.filter-link.active,
.chip.dark {
  color: #fff;
  border-color: var(--plum);
  background: var(--plum);
}

.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f7eee8);
}

.category-tile span {
  color: var(--gold);
  font-size: 26px;
}

.page-hero {
  padding: 62px 0 32px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.fact-list {
  display: grid;
  gap: 12px;
}

.fact {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact strong {
  color: var(--plum);
}

.prose {
  color: #4f434b;
}

.prose ul {
  padding-left: 20px;
}

.price {
  color: var(--plum);
  font-size: 24px;
  font-weight: 900;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

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

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: #3d3038;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.report-result {
  margin-top: 22px;
  display: none;
}

.report-result.show {
  display: block;
}

.recommendation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.notice {
  border: 1px solid rgba(47, 109, 93, 0.22);
  border-radius: 8px;
  background: rgba(47, 109, 93, 0.08);
  color: #255a4d;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.footer {
  padding: 36px 0;
  color: #6e6269;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}

.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border-radius: 999px;
  background: #138c64;
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(19, 140, 100, 0.28);
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #241621;
  color: #fff;
  padding: 24px;
}

.admin-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-main {
  padding: 28px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(63, 32, 61, 0.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

.json-editor {
  min-height: 520px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    min-height: 620px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(32, 25, 31, 0.94), rgba(32, 25, 31, 0.68)),
      url("/assets/crystal-hero.png") center / cover no-repeat;
  }

  .grid.three,
  .grid.four,
  .grid.two,
  .detail-grid,
  .footer-grid,
  .recommendation,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-main {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .hero-content {
    padding: 54px 0 84px;
  }

  h1 {
    font-size: 40px;
  }

  .button,
  button,
  input[type="submit"] {
    width: 100%;
  }

  .fact {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .float-whatsapp {
    left: 14px;
    right: 14px;
    justify-content: center;
    text-align: center;
  }
}
