/* === Nền & font chung (light) === */
/*body {*/
/*  background: #ffffff;*/
/*  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;*/
/*  color: #111827;*/
/*  margin: 0;*/
/*}*/

.osg-page-center {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;   /* giữa dọc */
  background: #022a63;  /* hoặc #fff tuỳ bạn */
}
/* === Form kiểm tra serial === */
.osg-serial-form {
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15,23,42,0.10);
  width: 100%;
  max-width: 520px;
  padding: 24px 20px 28px;
  margin: 0; 
}

.osg-serial-form h2 {
  font-weight: 600;
  margin: 0 0 18px;
  font-size: 20px;
  color: #111827;
}

.osg-input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px !important;
  border: 1px solid #d2d2d7;
  background: #f9f9fb;
  color: #111827;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-size: 16px;
  line-height: 1.4;
}

.osg-input:focus {
  outline: none;
  border-color: #0071e3;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}

.osg-btn {
  width: 100%;
  padding: 12px;
  background: #0071e3;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .1s;
}

.osg-btn:hover {
  background: #005bb5;
  box-shadow: 0 8px 16px rgba(0,113,227,0.3);
}

.osg-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0,113,227,0.25);
}

/* Fix iOS zoom khi focus */
.osg-input,
.osg-btn {
  display: block;
  box-sizing: border-box;
}

/* Mobile: form đừng trôi xuống quá thấp */
@media (max-width: 768px) {
  .osg-serial-form {
    width: 84%;
    margin: 40px auto;
  }
  .osg-apple-style .osg-thumb{
    width: 80px !important;
  }
  .osg-popup-content{
    max-height: 85vh !important;
  }
}

/* === Popup kết quả === */
/* Popup phủ toàn màn hình, canh giữa cố định */
.osg-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  justify-content: center;   /* ngang */
  align-items: center;       /* dọc */
  box-sizing: border-box;
  z-index: 99999;
}

/* Hộp popup – tăng width */
.osg-popup-content {
  background: #ffffff;
  padding: 24px 24px 22px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.25);
  max-width: 820px;   /* rộng hơn */
  width: 94%;
  max-height: 90vh;   /* tránh tràn màn hình nhỏ */
  overflow-y: auto;   /* nếu quá dài mới hiện scroll */
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .osg-popup-content {
    padding: 18px 16px;
    width: 94%;
  }
}

.osg-close {
  float: right;
  font-size: 32px;
  cursor: pointer;
  color: #cf2e2e;
  margin-top: -20px;
}

.osg-close:hover {
  color: #111827;
}

/* ====== Apple Style Result (light) ====== */
.osg-apple-style {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #f9fafb;
  color: #111827;
  padding: 18px 18px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  text-align: left;
}

.osg-apple-style .osg-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.osg-apple-style .osg-thumb {
  width: 115px;
  height: auto;
  border-radius: 8px;
}

.osg-apple-style .osg-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #111827;
}

.osg-apple-style p {
  margin: 3px 0;
  font-size: 14px;
  color: #4b5563;
}

.osg-apple-style .osg-desc {
  margin: 12px 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.osg-apple-style .osg-warranty-box {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
}

.osg-apple-style .osg-warranty-box h3 {
  font-size: 15px;
  margin: 0 0 8px 0;
  color: #111827;
}

.osg-apple-style .osg-warranty-box p {
  font-size: 13px;
  margin: 3px 0;
  color: #4b5563;
}

.osg-apple-style .osg-warranty-box hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 8px 0;
}

.osg-apple-style .osg-warranty-box ul {
  padding-left: 18px;
  margin: 6px 0 4px;
}

.osg-apple-style .osg-warranty-box li {
  margin: 4px 0;
  font-size: 13px;
  color: #4b5563;
}

.osg-apple-style a {
  color: #0a84ff;
  text-decoration: none;
  font-size: 14px;
}

.osg-apple-style a:hover {
  text-decoration: underline;
}

/* Extra info & nút chứng nhận */
.osg-extra-info {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
  text-align: left;
}

.osg-cert-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.osg-cert-btn {
  background: #111827;
  color: #ffffff !important;
  padding: 7px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.1s;
}

.osg-cert-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

/* Nếu vẫn còn dùng .osg-lang-switcher thì để nó sát form */
.osg-lang-switcher {
  margin-top: 10px;
  text-align: center;
}
/* Highlight khi chọn row */
.osg-serials-table tbody tr.osg-selected {
  background-color: #e0f0ff;
  border-left: 3px solid #0071e3;
}

.osg-serials-table tbody tr.osg-selected:hover {
  background-color: #d0e8ff;
}
