.td-create-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, .12), transparent 40%),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 35%, #fff 100%);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  color: #0f172a;
}
.td-create-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #eceff3;
  backdrop-filter: blur(8px);
}
.td-create-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
  color: #334155;
}
.td-create-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.td-create-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.td-create-brand span {
  display: block;
  font-size: 12px;
  color: #64748b;
}
.td-create-home {
  font-size: 13px;
  font-weight: 600;
  color: #c2410c;
  white-space: nowrap;
}
.td-create-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}
.td-create-intro h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.td-create-intro p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
.td-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.td-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.td-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
}
.td-label em {
  color: #c2410c;
  font-style: normal;
}
.td-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.td-label-row .td-label { margin-bottom: 0; }
.td-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
  outline: 0;
}
.td-input:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}
textarea.td-input { resize: vertical; min-height: 110px; }
.td-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.td-hint {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #94a3b8;
}
.td-map-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #64748b;
}
.td-map {
  height: 280px;
  min-height: 280px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  margin-bottom: 10px;
  background: #dbe4ee;
  position: relative;
  z-index: 1;
}
.td-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  z-index: 1;
}
/*
 * home.css: img { max-width:100%; height:auto } phá vỡ ô tile 256x256.
 * Bắt buộc ghi đè width/height cố định cho tile.
 */
.td-map .leaflet-container img,
.td-map img.leaflet-tile,
.leaflet-container img.leaflet-tile,
.leaflet-tile-container img {
  max-width: none !important;
  max-height: none !important;
  width: 256px !important;
  height: 256px !important;
}
.td-map .leaflet-marker-icon,
.td-map .leaflet-marker-shadow,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
}
.td-coords .td-input {
  background: #f8fafc;
  font-size: 13px;
}
.td-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.td-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #c2410c;
  flex: none;
}
.td-subfields {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
.td-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.td-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.td-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(194, 65, 12, .28);
  cursor: pointer;
}
.td-submit:disabled {
  opacity: .7;
  cursor: wait;
}
.td-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12.5px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.td-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13.5px;
}
.td-alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}
.td-alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.td-success {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 20px);
}
.td-success-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}
.td-success-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 28px;
  font-weight: 800;
}
.td-success-card h1 {
  font-size: 24px;
  font-weight: 800;
}
.td-success-card > p {
  margin-top: 8px;
  color: #475569;
  line-height: 1.55;
}
.td-pin-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.td-pin-box span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
}
.td-pin-box strong {
  display: block;
  margin: 6px 0;
  font-size: 34px;
  letter-spacing: .18em;
  color: #c2410c;
}
.td-pin-box small {
  display: block;
  font-size: 12.5px;
  color: #7c2d12;
  line-height: 1.45;
}
.td-success-meta {
  text-align: left;
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.td-success-meta div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}
.td-success-meta dt {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}
.td-success-meta dd {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.td-success-actions {
  display: grid;
  gap: 10px;
}
@media (min-width: 768px) {
  .td-create-intro h1 { font-size: 30px; }
  .td-map { height: 360px; }
  .td-create-main { padding-top: 28px; }
}
