body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6d9eeb, #8e7cc3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    width: 100%;
    max-width: 550px;
    text-align: center;
}

h2 {
    color: #333;
    margin-bottom: 25px;
}

input[type="text"] {
    width: 90%;
    padding: 12px;
    font-size: 18px;
    border: 2px solid #0066cc;
    border-radius: 8px;
}

button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 18px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #004a99;
}

.result {
    margin-top: 25px;
    text-align: left;
    display: none;
}

.result p {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    color: #333;
}

.loading {
    color: #ff4500;
    font-weight: bold;
    text-align: center;
}

.logo {
    max-width: 100px;
    margin-bottom: 20px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  background: #ffffff;
  animation: fadeIn .4s ease-in-out;
}

.card-header {
  background: linear-gradient(135deg, #0066cc, #4a90e2);
  color: white;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.card-body {
  padding: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.row:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: #555;
}

.value {
  color: #222;
  text-align: right;
}

.highlight {
  background: #f0f7ff;
  border-radius: 6px;
  padding: 10px;
  margin-top: 6px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.warranty-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  overflow: hidden;
  font-size: 15px;
}

.wc-header {
  background: linear-gradient(135deg, #0d6efd, #4f8df7);
  color: white;
  padding: 18px;
  text-align: center;
}

.wc-title {
  font-size: 18px;
  font-weight: 650;
}

.wc-sub {
  font-size: 13px;
  opacity: .85;
}

.wc-section {
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.wc-section:last-child {
  border-bottom: none;
}

.wc-row {
  display: grid;
  grid-template-columns: 120px 1fr; /* cột nhãn cố định */
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.wc-row:last-child {
  margin-bottom: 0;
}

.wc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;              /* 👈 then chốt */
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.wc-value {
    font-size: 12px;
  color: #000000;
  text-align: right;
  font-weight: bold;
  text-transform: uppercase;
}

.wc-full {
  align-items: flex-start;
}

.wc-block {
  display: block;
  background: #f6f8ff;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
  margin-top: 6px;
  font-weight: 600;
  color: #0d47a1;
}

.wc-highlight {
  background: #f8faff;
}
/* ===== TOOTH POSITION ===== */
.tooth-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* Khung chứa vị trí răng */
.tooth-wrapper {
  width: 100%;
  padding: 4px 0;
}

/* Lưới răng – KHÔNG DÙNG FLEX */
.tooth-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr); /* 8 răng / hàng */
  gap: 6px;
}


/* Ô răng */
.tooth-chip {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #0b4dbb;
  background: #dbeafe;
  border-radius: 8px;
  padding: 6px 0;
  line-height: 1;
  min-height: 14px;
}

.wc-section {
  padding: 20px 22px;
}

.wc-section + .wc-section {
  border-top: 1px solid #e6e6e6;
}

/* Hàng xen kẽ */
.wc-alt {
  background: #fafcff;
}


/* Tablet */
@media (min-width: 600px) and (max-width: 1023px) {
  .tooth-diagram-row {
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .tooth-diagram-row {
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
  }
}

.tooth-box {
  font-size: 13px;
  padding: 6px 0;
  text-align: center;
  border-radius: 6px;
  background: #f1f3f5;
  color: #999;
  font-weight: 600;
}

.tooth-box.active {
  background: #dbeafe;
  color: #0d47a1;
}

.zalo-browser .tooth-chip {
    display: inline-block !important;
    margin: 2px 1px;
    font-size: 10px;
    min-height: 12px;
}

.zalo-browser .tooth-row {
    display: block !important;
    white-space: normal !important;
}

/* Răng không có (xám) */
.tooth-chip.inactive {
  background: #e5e7eb;
  color: #9ca3af;
}

/* FIX RIÊNG CHO ZALO */
.zalo-browser .tooth-grid {
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
}

@media (max-width: 600px) {
  .wc-row {
    grid-template-columns: 100px 1fr; /* 👈 nhỏ hơn nữa */
  }
  .wc-label {
    font-size: 13px;
    height: 100%; 
    padding: 6px 8px;
  }
  .tooth-chip {
      display: inline-block !important;
      margin: 2px 1px;
      font-size: 10px;
      min-height: 12px;
  }
  .tooth-row {
      display: block !important;
      white-space: normal !important;
  }
  .tooth-grid {
      grid-template-columns: repeat(16, 1fr);
      gap: 2px;
  }
}