* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f2f3f7;
  color: #333;
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* Container responsive: full màn hình trên điện thoại thật, tối đa 500px nếu mở trên máy tính */
.mobile-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: #f7f8fa;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.06);
}

/* App Header chuẩn WebApp */
.app-header {
  background-color: #1e58d8;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-right {
  width: 24px;
}

/* Content Area */
.app-content {
  flex: 1;
  padding-bottom: 75px;
  background-color: #f5f6f9;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* BANNERS VIDEO MP4 CHUẨN GỐC (logo1.mp4 & logo2.mp4) */
.banners-video-wrap {
  padding: 10px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner-video-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  background: transparent;
  display: flex;
  position: relative;
}

.banner-media-video,
.banner-media-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* Grid Menu Icons (Ảnh 1) */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 8px;
  background: #fff;
  padding: 22px 14px;
  margin: 0 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}

/* Gradient màu sắc icon */
.bg-orange { 
  background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%); 
}
.bg-blue   { 
  background: linear-gradient(135deg, #4facfe 0%, #0072ff 100%); 
}
.bg-coral  { 
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); 
}
.bg-teal   { 
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%); 
}
.bg-purple { 
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%); 
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
  position: relative; /* Để neo huy hiệu HOT chính xác vào nút */
}

/* Huy hiệu HOT: Căn vào giữa ngay trên đầu mép trên của icon-box */
.badge-hot-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: auto;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.35));
  animation: hot-bounce 1.6s infinite ease-in-out;
}

@keyframes hot-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-2px) scale(1.06); }
}

/* Menu chữ chú thích cuối trang chủ (Ảnh 1) */
.wechat-notice {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding: 24px 20px 85px; /* Thêm đệm dưới 85px để không bao giờ bị nút quét tròn che khuất */
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}
.method-selector {
  background: #1e58d8;
  padding: 4px 16px 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.method-title {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.tabs-capsule {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 3px;
  gap: 4px;
}

.method-tab {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  padding: 9px 0;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.method-tab.active {
  background: #fff;
  color: #1e58d8;
  font-weight: 600;
}

.scan-mode-content {
  padding: 20px 16px;
  text-align: center;
}

.scan-circle-container {
  width: 175px;
  height: 175px;
  margin: 25px auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Vòng tròn gradient mờ bao bên ngoài như ảnh gốc */
.scan-outer-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 45%, rgba(37, 99, 235, 0.05) 75%, transparent 100%);
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.scan-circle {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: #2563eb; /* Màu xanh coban chuẩn ảnh gốc */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scan-circle:active {
  transform: scale(0.95);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.scan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-text {
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 1px;
}

.scan-tip {
  font-size: 14px;
  color: #333;
  margin-top: 15px;
  font-weight: 500;
}

.scan-subtip {
  font-size: 11px;
  color: #e53935;
  margin: 10px 15px 20px;
  line-height: 1.4;
}

/* Example Box (Ảnh 6) */
.example-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.example-title {
  font-size: 13px;
  color: #666;
  border-bottom: 1px dashed #eee;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.example-body {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.product-mini-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottle-box-img {
  width: 130px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.example-desc {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  line-height: 1.7;
  text-align: left;
  padding-left: 10px;
}

.quick-code-test {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.btn-primary {
  background: #1e58d8;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Chế độ nhập mã cào (Ảnh 5) */
.laser-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.input-header {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  text-align: left;
}

.laser-input {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 16px;
  margin-bottom: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.laser-input.input-error {
  border-color: #ef4444;
  background-color: #fffaf0;
}

/* Thông báo chữ đỏ ở dưới ô input chuẩn app Trung Quốc */
.error-text-red {
  color: #ef4444;
  font-size: 12px;
  text-align: left;
  margin-bottom: 8px;
  animation: shake 0.25s ease-in-out;
  display: flex;
  align-items: center;
  gap: 4px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.laser-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.btn-verify-block {
  width: 100%;
  background: #1e58d8;
  color: #fff;
  border: none;
  height: 44px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.scratch-example {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0;
}

.scratch-sample-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.scratch-text {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-align: left;
  line-height: 1.6;
}

/* KẾT QUẢ XÁC MINH (Ảnh 7) */
.result-card {
  background: #fff;
  border-radius: 14px;
  margin: 14px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* MÀN HÌNH MÃ KHÔNG TỒN TẠI (GIẢ MẠO) */
.invalid-code-screen {
  padding: 20px 14px 40px;
}

.invalid-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08);
  border: 1px solid #fee2e2;
}

.invalid-icon-wrap {
  margin-bottom: 14px;
}

.invalid-title {
  font-size: 20px;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 4px;
}

.invalid-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}

.invalid-code-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 16px;
}

.invalid-warning-box {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
  font-size: 12px;
  color: #991b1b;
  line-height: 1.6;
  margin-bottom: 24px;
}

.invalid-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-link-home {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
}
.scratch-verify-screen {
  padding: 16px 14px 40px;
}

.success-first {
  color: #10b981;
}

.count-tag-first {
  background: #ecfdf5;
  color: #059669;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 15px;
  border: 1px solid #a7f3d0;
  margin-left: 6px;
}

.verify-sub-success {
  font-size: 12px;
  color: #059669;
  margin: 8px 10px 16px;
  line-height: 1.5;
  font-weight: 500;
}

.warning-repeated {
  color: #dc2626;
}

.count-highlight {
  color: #ef4444;
  font-size: 19px;
  margin: 0 4px;
}

.verify-sub-warning {
  font-size: 11px;
  color: #ef4444;
  margin: 8px 10px 16px;
  line-height: 1.4;
}

/* VÙNG HIỂN THỊ CHAI RƯỢU & VÒNG TRÒN VÀNG ĐỘNG (Dùng ảnh Gemini của bạn) */
.result-main-area {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 16px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.bottle-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.bottle-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Dãy số màu sắc tự động tính toán đè lên giữa vòng tròn vàng */
.dynamic-circle-digits {
  position: absolute;
  top: 25.8%;
  left: 77.8%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-family: Arial, "PingFang SC", sans-serif;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  white-space: nowrap;
}

/* Số lô & serial động ở góc dưới bên phải */
.dynamic-corner-meta {
  position: absolute;
  bottom: 8%;
  right: 6%;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.5px;
  line-height: 1.4;
  pointer-events: none;
}

.meta-batch {
  color: #475569;
}

.meta-serial {
  color: #1e293b;
  font-weight: 700;
}

.sample-notice {
  font-size: 10px;
  color: #ef4444;
  margin-bottom: 4px;
}

.color-match-notice {
  font-size: 12px;
  color: #ef4444;
  font-weight: bold;
}

.confirm-bar {
  margin: 14px 14px 20px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: relative;
  z-index: 10;
}

/* Trang cá nhân User (我的) chuẩn thiết kế cao cấp */
.profile-card {
  margin: 14px;
}

.user-info-row {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(30, 88, 216, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.user-avatar-gradient {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.user-name-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name-tag h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.user-level-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.user-details p {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.profile-list {
  background: #fff;
  border-radius: 16px;
  padding: 6px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-row:active {
  opacity: 0.7;
}

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

.row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Khung icon bo mềm mại với dải màu thương hiệu cao cấp */
.pro-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.icon-theme-blue {
  background: #eff6ff;
  color: #2563eb;
}

.icon-theme-red {
  background: #fef2f2;
  color: #dc2626;
}

.icon-theme-orange {
  background: #fffbeb;
  color: #d97706;
}

.icon-theme-teal {
  background: #f0fdfa;
  color: #0d9488;
}

.row-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

/* TRANG CHỨNG CHỈ XÁC THỰC THÀNH CÔNG (Dùng ảnh nền sân khấu 3D chuẩn từ bạn) */
.verified-success-page {
  background: url('/bg_stage.jpg') no-repeat top center;
  background-size: 100% 480px; /* Cố định chiều cao nền sân khấu vừa vặn nửa trên */
  background-color: #ebf3fd;
  min-height: calc(100vh - 120px);
  padding: 16px 14px 40px;
}

.verify-badge-pill {
  width: fit-content;
  margin: 0 auto 12px;
  background: #ffffff;
  border-radius: 20px;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #ffffff;
}

.pill-dot {
  color: #f59e0b;
  font-size: 12px;
}

.pill-text {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
}

/* Banner 3D Khiên bảo mật (Ảnh gốc chuẩn HD, sắc nét, không bị mờ hay hòa trộn) */
.security-3d-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 10px;
}

.security-banner-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.3));
}

.product-title-wrap {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 5;
}

.prod-name {
  font-size: 19px;
  font-weight: 800;
  color: #0f2b6b; /* Đậm màu xanh đậm tương phản cao, cực kỳ rõ nét */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

.prod-spec {
  font-size: 13px;
  color: #2563eb; /* Màu xanh rõ nét */
  font-weight: 600;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 2 Tab chuyển đổi chi tiết */
.detail-tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 6px;
  position: relative;
  z-index: 5;
}

.detail-tab {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  padding-bottom: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.detail-tab.active {
  color: #1e40af; /* Xanh đậm sắc nét */
}

.detail-tab.active::after {
  content: '';
  position: absolute;
  bottom: -7.5px;
  left: 0;
  right: 0;
  height: 3px;
  background: #1e40af;
  border-radius: 2px;
}

/* Thẻ Thông Tin Sản Xuất Có Con Dấu */
.production-sheet-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.sheet-table {
  position: relative;
  z-index: 2;
}

.sheet-row {
  display: flex;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed #f1f5f9;
}

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

.sheet-label {
  width: 90px;
  color: #64748b;
  flex-shrink: 0;
}

.sheet-val {
  color: #1e293b;
  font-weight: 500;
}

/* CON DẤU ĐỎ: 检验合格 (Kiểm định hợp cách) - Đặt chính giữa, phóng to hơn và độ mờ mờ tự nhiên như dấu in chìm */
.quality-stamp-box {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0.55; /* Làm mờ vừa phải để thấy rõ chữ bên dưới */
}

.stamp-border {
  border: 4.5px solid #dc2626;
  border-radius: 10px;
  padding: 10px 28px;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
  background: rgba(254, 242, 242, 0.08);
}

.stamp-border span {
  font-size: 34px; /* Phóng to kích thước chữ */
  font-weight: 900;
  color: #dc2626;
  letter-spacing: 8px;
  font-family: "KaiTi", "STKaiti", "SimHei", sans-serif;
  text-shadow: 0 0 1px #dc2626;
  white-space: nowrap;
}

.confirm-label {
  font-size: 13px;
  color: #333;
  margin-bottom: 12px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.btn-check {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.btn-no {
  background: #f1f5f9;
  color: #475569;
}

.btn-yes {
  background: #10b981;
  color: #fff;
}

/* ADMIN TAB - TẠO MÃ & XUẤT TEM (Ảnh 2) */
.admin-card {
  background: #fff;
  border-radius: 14px;
  margin: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.admin-card h3 {
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 4px;
}

.admin-desc {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.4;
}

.admin-form .form-group {
  margin-bottom: 12px;
}

.admin-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.admin-form input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.full-width {
  width: 100%;
  margin-top: 6px;
  padding: 11px 0;
}

.stickers-preview {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sticker-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.sticker-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sticker-qr {
  width: 75px;
  height: 75px;
}

.sticker-subtext {
  font-size: 9px;
  color: #64748b;
}

.sticker-divider {
  width: 1px;
  height: 70px;
  background: #e2e8f0;
  border-left: 1px dashed #cbd5e1;
}

.sticker-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sticker-circle {
  width: 75px;
  height: 75px;
  background: #fde047;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* Bottom Nav Bar (Ảnh 1 & Ảnh 6) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11px;
}

.nav-item.active {
  color: #1e58d8;
}

.nav-item.nav-scan-center {
  position: relative;
  top: -12px;
}

.scan-floating-btn {
  width: 50px;
  height: 50px;
  background: #1e58d8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 88, 216, 0.4);
}

/* WECHAT LOADING DIALOG: 加载中... (Chuẩn 100% theo ảnh bạn gửi) */
.wechat-loading-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wechat-loading-mask.active {
  opacity: 1;
  visibility: visible;
}

.wechat-loading-box {
  width: 110px;
  height: 110px;
  background: rgba(35, 35, 38, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wechat-loading-mask.active .wechat-loading-box {
  transform: scale(1);
}

/* Vòng xoay tròn Spinner chuẩn WeChat */
.wechat-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: wechat-spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes wechat-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wechat-loading-text {
  font-size: 13px;
  color: #ededed;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.app-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s;
}

.app-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  z-index: 9999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.camera-modal.active {
  display: flex;
}

.camera-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  z-index: 10;
}

.camera-title {
  font-size: 16px;
  font-weight: 600;
}

.btn-close-camera {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

.camera-viewport-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#qr-reader {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

#qr-reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Khung ngắm quét mã laser */
.scan-target-box {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 5;
}

.target-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #3b82f6;
  border-style: solid;
}

.target-corner.tl {
  top: -2px;
  left: -2px;
  border-width: 4px 0 0 4px;
}

.target-corner.tr {
  top: -2px;
  right: -2px;
  border-width: 4px 4px 0 0;
}

.target-corner.bl {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 4px 4px;
}

.target-corner.br {
  bottom: -2px;
  right: -2px;
  border-width: 0 4px 4px 0;
}

.laser-scanner-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, transparent);
  box-shadow: 0 0 10px #3b82f6;
  animation: scanning 2s infinite ease-in-out;
}

@keyframes scanning {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 98%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

.camera-footer {
  padding: 24px 20px;
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 10;
}

.camera-tip-text {
  color: #e2e8f0;
  font-size: 13px;
  letter-spacing: 0.5px;
}
