* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #fffaf6 0, #fbf4ee 38%, #f7eee6 100%);
  color: #3b2d28;
}
.luxie-ai { max-width: 880px; margin: 0 auto; padding: 28px 16px 60px; }
.hero { text-align: center; padding: 28px 0 20px; }
.brand-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(60, 42, 30, 0.14);
  border: 1px solid rgba(138, 90, 59, 0.12);
}
.brand-logo {
  width: 100%;
  max-width: 96px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none;
}
.eyebrow { color: #a2734f; text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px; font-weight: 700; margin: 6px 0; }
h1 { font-size: 34px; line-height: 1.15; margin: 10px 0; color: #2e231f; }
.lead { font-size: 17px; line-height: 1.6; max-width: 700px; margin: 0 auto; }
.limit-note { display: inline-block; margin-top: 16px; padding: 9px 14px; border-radius: 999px; background: #fff; color: #7c5b46; box-shadow: 0 8px 25px rgba(60,42,30,.07); font-size: 14px; }
.card { background: rgba(255,255,255,.95); border-radius: 22px; 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; }
select, input[type="file"] { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #eaded4; border-radius: 12px; background: #fff; font-size: 15px; }
.checkbox { display: flex; gap: 10px; font-weight: 400; line-height: 1.5; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 18px; }
button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 18px; border: none; border-radius: 999px; background: #8a5a3b; color: #fff; font-size: 16px; font-weight: 700; text-align: center; cursor: pointer; transition: .2s ease; }
button:hover { filter: brightness(.96); }
button:disabled { opacity: .72; cursor: not-allowed; }
.btn-spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -4px 0 18px; }
.preview img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; border: 1px solid #eaded4; }
.hidden { display: none !important; }
.result-card h2 { margin-top: 0; }
.result-item { padding: 16px 0; border-bottom: 1px solid #f0e6dd; }
.result-item h3 { margin: 0 0 8px; color: #8a5a3b; }
.result-item p, .result-item li { line-height: 1.55; }
.warning { background: #fff8ef; padding: 16px; border-radius: 16px; border-bottom: none; }
.report-box, .zalo-box { margin-top: 18px; padding: 18px; border-radius: 18px; background: #f8efe7; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.action-link, .copy-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 14px; border-radius: 999px; background: #8a5a3b; color: #fff; text-decoration: none; font-weight: 700; border: none; cursor: pointer; }
.copy-button { background: #6f4a35; }
.error { border: 1px solid #e7b8b8; background: #fff5f5; }
.meta-note { color: #866f62; font-size: 14px; }
@media (max-width: 600px) {
  .luxie-ai { padding: 18px 12px 44px; }
  .brand-wrap { width: 116px; height: 116px; padding: 16px; }
  .brand-logo { max-width: 84px; }
  h1 { font-size: 27px; }
  .card { padding: 18px; }
  .preview { grid-template-columns: repeat(3, 1fr); }
  .actions { grid-template-columns: 1fr; }
}


.report-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.report-link-input {
  width: 100%;
  border: 1px solid #eaded4;
  border-radius: 999px;
  padding: 12px 14px;
  color: #5f4637;
  background: #fff;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}
.copy-link-button {
  white-space: nowrap;
  width: auto;
  padding: 12px 16px;
  background: #6f4a35;
}
.contact-strip { text-align: center; }
.contact-strip h2 { margin: 0 0 8px; font-size: 24px; }
.contact-strip p { margin: 0 0 16px; color: #7b6b62; }
.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
}
.contact-btn.zalo { background: #0068ff; }
.contact-btn.messenger { background: #1877f2; }
.contact-btn:hover { filter: brightness(.96); }
@media (max-width: 600px) {
  .report-link-row { grid-template-columns: 1fr; }
  .copy-link-button { width: 100%; }
  .contact-actions { grid-template-columns: 1fr; }
}


@media (prefers-color-scheme: dark) {
  .brand-wrap {
    background: #fff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255,255,255,0.7) inset;
  }
  .brand-logo {
    filter: none;
  }
}


.history-box h2 {
  margin: 0 0 8px;
  font-size: 24px;
  text-align: center;
}
.history-note,
.history-empty {
  margin: 0 0 14px;
  color: #7b6b62;
  text-align: center;
  line-height: 1.5;
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.history-item a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #eaded4;
  background: #fffaf6;
  border-radius: 16px;
  color: #3b2d28;
  text-decoration: none;
  transition: .18s ease;
}
.history-item a:hover {
  border-color: rgba(138, 90, 59, .45);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(60, 42, 30, .08);
}
.history-title {
  font-weight: 700;
  line-height: 1.35;
}
.history-date {
  color: #8a5a3b;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .history-item a {
    align-items: flex-start;
    flex-direction: column;
  }
  .history-date {
    white-space: normal;
  }
}

/* Camera + gallery upload options */
.upload-section {
  margin-bottom: 18px;
}

.upload-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #3b2d28;
}

.upload-hint {
  margin: 0 0 12px;
  color: #7b6b62;
  line-height: 1.5;
  font-size: 14px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-option {
  display: block;
  border: 1px solid #eaded4;
  background: #fffaf6;
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: .18s ease;
  font-weight: 400;
}

.upload-option:hover {
  border-color: rgba(138, 90, 59, .45);
  box-shadow: 0 8px 22px rgba(60, 42, 30, .08);
  transform: translateY(-1px);
}

.upload-option-title {
  display: block;
  font-weight: 800;
  color: #8a5a3b;
  margin-bottom: 4px;
}

.upload-option-desc {
  display: block;
  color: #7b6b62;
  line-height: 1.4;
  font-size: 13px;
  margin-bottom: 10px;
}

.upload-option input[type="file"] {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

/* Single combined upload field: mobile browsers usually show Camera / Photo Library / Browse */
.single-upload-field {
  display: block;
  margin-bottom: 18px;
}

.field-note {
  display: block;
  margin: 6px 0 10px;
  color: #7b6b62;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.single-upload-field input[type="file"] {
  width: 100%;
}

/* Home navigation */
a.brand-wrap {
  text-decoration: none;
}

.home-link-button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(138, 90, 59, .28);
  background: #fffaf6;
  color: #8a5a3b;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: .18s ease;
}

.home-link-button:hover {
  background: #f7ede4;
  border-color: rgba(138, 90, 59, .45);
  transform: translateY(-1px);
}
