:root {
  --bg: #fbf7f2;
  --card: #ffffff;
  --text: #3b2d28;
  --muted: #7d6a5f;
  --brand: #8a5a3b;
  --brand-dark: #6f452b;
  --line: #eaded4;
  --soft: #f8efe7;
  --warning: #fff8ef;
  --error: #fff0f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top left, #fff3e5 0, transparent 28%), var(--bg);
  color: var(--text);
}

.luxie-ai {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.hero {
  text-align: center;
  padding: 36px 0 20px;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12;
  margin: 10px 0;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
}

h3 {
  font-size: 18px;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 20px;
}

.trust-grid > div {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(234,222,212,.8);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.trust-grid span {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(234,222,212,.75);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 35px rgba(60, 42, 30, 0.08);
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 18px;
  font-weight: 700;
}

small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}

select,
input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.checkbox {
  display: flex;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
}

.checkbox input {
  margin-top: 4px;
  flex: 0 0 auto;
}

button,
.zalo-button,
.copy-button {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}

button:hover,
.zalo-button:hover,
.copy-button:hover {
  background: var(--brand-dark);
}

button:disabled {
  opacity: .62;
  cursor: wait;
}

.preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}

.preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.result-card h2 {
  margin-top: 0;
}

.result-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0e6dd;
}

.result-item h3 {
  margin: 0 0 8px;
  color: var(--brand);
}

.result-item p,
.result-item li {
  line-height: 1.6;
}

.warning {
  background: var(--warning);
  padding: 16px;
  border-radius: 18px;
  border-bottom: none;
  margin-top: 12px;
}

.zalo-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--soft);
}

.zalo-box p {
  line-height: 1.65;
  white-space: pre-wrap;
}

.copy-button {
  margin-bottom: 10px;
  background: #b58a6b;
}

.hidden {
  display: none;
}

.error {
  background: var(--error);
  border-color: #e7b8b8;
}

.soft-card {
  background: rgba(255,255,255,.72);
}

.note p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .luxie-ai {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .card {
    padding: 18px;
    border-radius: 20px;
  }

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

  .preview img {
    height: 180px;
  }
}
