/*
 * CSS widget "Ngày Tốt Xấu" — dùng LẠI bộ design token (màu/font/bo góc)
 * của plugin Client (tuvi-do-nhat-client/assets/css/tuvi.css) để đồng bộ
 * giao diện toàn hệ thống. Khai báo lại :root ở đây (namespace riêng
 * --ntx-*) để widget này chạy độc lập được, không bắt buộc phải cài
 * chung site với plugin Client.
 */
.tuvi-ntx-wrap {
  --ntx-primary:     #7A1F1F;
  --ntx-gold:        #B58A3C;
  --ntx-bg:          #FFFDF8;
  --ntx-border:      #D8C79B;
  --ntx-text:        #2A1A12;
  --ntx-text-muted:  #666666;
  --ntx-success:     #1a6b2e;
  --ntx-error:       #7A1F1F;
  --ntx-error-bg:    #f7e9e6;
  --ntx-radius:      10px;
  --ntx-font:        'Be Vietnam Pro', 'Inter', 'Segoe UI', Arial, sans-serif;
  --ntx-font-title:  'Cormorant Garamond', 'Be Vietnam Pro', 'Inter', 'Segoe UI', Arial, sans-serif;

  font-family: var(--ntx-font);
  color: var(--ntx-text);
  max-width: 560px;
  margin: 0 auto;
}

.tuvi-ntx-card {
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius);
  box-shadow: 0 2px 18px rgba(96,76,60,.10);
  padding: 24px;
}

/* Header tổng của trang chủ — tạo cảm giác thương hiệu, không chỉ 1 form rời rạc */
.ntx-page-head { text-align: center; margin-bottom: 16px; }
.ntx-page-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ntx-gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.ntx-page-title {
  font-family: var(--ntx-font-title);
  font-weight: 700;
  font-size: 26px;
  color: var(--ntx-primary);
  margin: 0 0 6px;
}
.ntx-page-sub { font-size: 13px; color: var(--ntx-text-muted); margin: 0; }

.tuvi-ntx-title {
  font-family: var(--ntx-font-title);
  font-weight: 600;
  font-size: 22px;
  color: var(--ntx-primary);
  margin: 0 0 18px;
  text-align: center;
}

.tuvi-ntx-form-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.tuvi-ntx-field { flex: 1 1 200px; margin-bottom: 14px; }
.tuvi-ntx-field label { display: block; font-size: 13px; color: var(--ntx-text-muted); margin-bottom: 6px; }

.tuvi-ntx-field input,
.tuvi-ntx-field select,
.tuvi-ntx-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ntx-gold);
  border-radius: var(--ntx-radius);
  background: #FFFCF3;
  color: var(--ntx-text);
  padding: 10px 12px;
  font-family: var(--ntx-font);
  font-size: 14px;
}

.tuvi-ntx-btn {
  width: 100%;
  background: var(--ntx-primary);
  color: #F3D67A;
  border: 1.5px solid var(--ntx-gold);
  border-radius: var(--ntx-radius);
  padding: 12px 16px;
  font-family: var(--ntx-font);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 3px 0 #5C1717, 0 4px 10px rgba(96,76,60,.18);
  transition: all .18s cubic-bezier(.4,0,.2,1);
}
.tuvi-ntx-btn:hover { background: #5C1717; transform: translateY(-1px); box-shadow: 0 4px 0 #3f0f0f, 0 6px 14px rgba(96,76,60,.22); }
.tuvi-ntx-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #5C1717, 0 2px 6px rgba(96,76,60,.18); }
.tuvi-ntx-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.tuvi-ntx-loading { text-align: center; padding: 14px; color: var(--ntx-text-muted); }

.tuvi-ntx-error {
  background: var(--ntx-error-bg);
  border: 1px solid var(--ntx-error);
  color: var(--ntx-error);
  border-radius: var(--ntx-radius);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13px;
}

.tuvi-ntx-result { margin-top: 18px; border-top: 1px solid var(--ntx-border); padding-top: 16px; }

.tuvi-ntx-result .ntx-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.tuvi-ntx-result .ntx-am-duong { font-size: 13px; color: var(--ntx-text-muted); }

.ntx-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.ntx-badge.tot          { background: #e6f4ea; color: var(--ntx-success); }
.ntx-badge.xau          { background: var(--ntx-error-bg); color: var(--ntx-error); }
.ntx-badge.binh_thuong  { background: #f2e9d8; color: #93702F; }
.ntx-badge.chua_du_du_lieu { background: #eee; color: #777; }

.ntx-facts { list-style: none; margin: 10px 0; padding: 0; font-size: 13px; }
.ntx-facts li { padding: 4px 0; border-bottom: 1px dashed var(--ntx-border); display: flex; justify-content: space-between; }

.ntx-ai-text { margin-top: 14px; font-size: 14px; line-height: 1.65; white-space: pre-line; }

@media (max-width: 480px) {
  .tuvi-ntx-form-row { flex-direction: column; gap: 0; }
}

/* ═══════════════════════════════════════════════════
   TRANG CHI TIẾT NGÀY — DASHBOARD (view="detail")
   Mobile-first, dùng lại nguyên token --ntx-* ở trên.
   ═══════════════════════════════════════════════════ */

.tuvi-ntx-wrap { max-width: 720px; }
.tuvi-ntx-view[data-view="detail"] { max-width: 720px; margin: 0 auto; }

.ntx-back-btn {
  background: #FFFCF3;
  border: 1.5px solid var(--ntx-border);
  border-radius: var(--ntx-radius);
  color: var(--ntx-text-muted);
  font-family: var(--ntx-font);
  font-size: 13px;
  padding: 7px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(96,76,60,.10);
  transition: all .18s cubic-bezier(.4,0,.2,1);
}
.ntx-back-btn:hover { border-color: var(--ntx-gold); color: var(--ntx-primary); transform: translateY(-1px); }

/* Nút "Xem chi tiết" mở dashboard từ Trang chủ */
.ntx-btn-detail {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  background: #FFFCF3;
  border: 1.5px solid var(--ntx-gold);
  color: var(--ntx-primary);
  border-radius: var(--ntx-radius);
  padding: 10px 14px;
  font-family: var(--ntx-font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ntx-gold), 0 3px 8px rgba(96,76,60,.14);
  transition: all .18s cubic-bezier(.4,0,.2,1);
}
.ntx-btn-detail:hover { background: #FBF3E1; transform: translateY(-1px); box-shadow: 0 3px 0 var(--ntx-gold), 0 5px 12px rgba(96,76,60,.18); }
.ntx-btn-detail:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ntx-gold); }

/* Card dùng chung cho từng khối trong dashboard */
.ntx-block {
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius);
  box-shadow: 0 2px 18px rgba(96,76,60,.10);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.ntx-block-title {
  font-family: var(--ntx-font-title);
  font-weight: 600;
  font-size: 16px;
  color: var(--ntx-primary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero: ngày + âm lịch + can chi */
.ntx-hero {
  text-align: center;
  padding: 22px 18px;
  border-radius: var(--ntx-radius);
  background: linear-gradient(180deg, #FBF3E1 0%, var(--ntx-bg) 100%);
  border: 1px solid var(--ntx-border);
  margin-bottom: 14px;
}
.ntx-hero .ntx-hero-date {
  font-family: var(--ntx-font-title);
  font-weight: 600;
  font-size: 24px;
  color: var(--ntx-primary);
}
.ntx-hero .ntx-hero-sub { font-size: 13px; color: var(--ntx-text-muted); margin-top: 4px; }
.ntx-hero .ntx-hero-canchi { margin-top: 10px; font-size: 14px; font-weight: 600; color: #93702F; }

/* Gauge điểm tổng quan (semicircle SVG) */
.ntx-gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ntx-gauge-wrap svg { display: block; }
.ntx-gauge-score { font-family: var(--ntx-font-title); font-weight: 600; font-size: 26px; fill: var(--ntx-primary); }
.ntx-gauge-label { font-size: 12px; fill: var(--ntx-text-muted); }

/* Progress từng hạng mục (điểm tốt / điểm xấu) */
.ntx-progress-row { margin-bottom: 12px; }
.ntx-progress-row:last-child { margin-bottom: 0; }
.ntx-progress-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.ntx-progress-track { height: 8px; border-radius: 999px; background: #F0E8D6; overflow: hidden; }
.ntx-progress-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.ntx-progress-fill.tot  { background: var(--ntx-success); }
.ntx-progress-fill.xau  { background: var(--ntx-error); }

/* Timeline 12 giờ trong ngày (Tý..Hợi), đánh dấu giờ Hoàng Đạo */
.ntx-timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 480px) { .ntx-timeline { grid-template-columns: repeat(4, 1fr); } }
.ntx-timeline-item {
  text-align: center;
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius);
  padding: 8px 4px;
  font-size: 12px;
  color: var(--ntx-text-muted);
  background: #FFFCF3;
}
.ntx-timeline-item.hoang-dao {
  border-color: var(--ntx-success);
  background: #e6f4ea;
  color: var(--ntx-success);
  font-weight: 600;
}
.ntx-timeline-item .ntx-tl-chi { display: block; font-family: var(--ntx-font-title); font-size: 14px; }
.ntx-timeline-item .ntx-tl-gio { display: block; font-size: 10px; opacity: .8; }

/* Việc phù hợp / nên tránh — khối "nổi khối", viền vàng đồng bộ tone chủ đạo */
.ntx-viec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .ntx-viec-grid { grid-template-columns: 1fr; } }
.ntx-viec-col {
  border-radius: var(--ntx-radius);
  padding: 16px 18px;
  border: 1.5px solid var(--ntx-gold);
  box-shadow: 0 3px 0 rgba(181,138,60,.35), 0 4px 14px rgba(96,76,60,.12);
  position: relative;
}
.ntx-viec-col.nen-lam   { background: #eef8f0; }
.ntx-viec-col.nen-tranh { background: #fbeeec; }
.ntx-viec-col h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(181,138,60,.4);
}
.ntx-viec-col.nen-lam h4   { color: var(--ntx-success); }
.ntx-viec-col.nen-tranh h4 { color: var(--ntx-error); }
.ntx-viec-col ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.ntx-viec-col li::marker { color: var(--ntx-gold); }
.ntx-viec-col .ntx-viec-empty {
  list-style: none;
  margin-left: -20px;
  font-size: 12.5px;
  color: var(--ntx-text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* Bảng phân tích chi tiết (Can Chi, Trực, Nhị Thập Bát Tú, Hướng...) */
.ntx-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
@media (max-width: 480px) { .ntx-info-grid { grid-template-columns: 1fr; } }
.ntx-info-item { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--ntx-border); padding: 6px 0; font-size: 13px; }
.ntx-info-item span:first-child { color: var(--ntx-text-muted); }
.ntx-info-item span:last-child { font-weight: 600; text-align: right; }

/* Kết luận */
.ntx-conclusion { font-size: 14px; line-height: 1.7; white-space: pre-line; }

/* ═══════════════════════════════════════════════════
   LỊCH THÁNG (Trang chủ)
   ═══════════════════════════════════════════════════ */
.ntx-cal-block { padding: 16px 16px 16px; }

.ntx-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.ntx-cal-head-center {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex: 1;
  min-width: 0;
}
.ntx-cal-title {
  font-family: var(--ntx-font-title);
  font-weight: 600;
  font-size: 17px;
  color: var(--ntx-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ntx-cal-today {
  border: none;
  background: transparent;
  color: var(--ntx-gold);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 999px;
  transition: background .15s ease-out, color .15s ease-out;
}
.ntx-cal-today:hover { background: #FBF3E1; color: var(--ntx-primary); }

.ntx-cal-nav {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--ntx-border);
  border-radius: 999px;
  background: #FFFCF3;
  color: var(--ntx-primary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(96,76,60,.10);
  transition: background .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
}
.ntx-cal-nav:hover { background: var(--ntx-primary); color: #FBF3E1; border-color: var(--ntx-primary); transform: translateY(-1px); }
.ntx-cal-nav:active { transform: translateY(0); }
.ntx-cal-nav:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.ntx-cal-nav:focus-visible,
.ntx-cal-today:focus-visible { outline: 2px solid var(--ntx-primary); outline-offset: 2px; }

.ntx-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 12px; font-weight: 600; color: var(--ntx-text-muted); text-align: center;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ntx-border);
}

.ntx-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.ntx-cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #FDFCF7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ntx-text);
  transition: background .15s ease-out, border-color .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out;
}
.ntx-cal-day:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(96,76,60,.14); }
.ntx-cal-day:focus-visible { outline: 2px solid var(--ntx-primary); outline-offset: 1px; }

.ntx-cal-day .ntx-cal-dd { font-size: 15px; font-weight: 700; line-height: 1.1; }
.ntx-cal-day .ntx-cal-am { font-size: 9.5px; font-weight: 500; color: var(--ntx-text-muted); margin-top: 1px; }
.ntx-cal-day.empty { visibility: hidden; cursor: default; }

/* Chấm trạng thái nhỏ dưới ngày âm — nhận diện tốt/xấu KHÔNG chỉ bằng màu nền */
.ntx-cal-day::after {
  content: '';
  position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%;
}
.ntx-cal-day.tot::after         { background: var(--ntx-success); }
.ntx-cal-day.xau::after         { background: var(--ntx-error); }
.ntx-cal-day.binh_thuong::after { background: #B5891C; }
.ntx-cal-day.chua_du_du_lieu::after { background: #b3b3b3; }

/* Nền màu theo xếp loại — giảm bão hoà, chỉ đủ để nhận biết, không chói mắt */
.ntx-cal-day.tot {
  background: #EEF7EF;
  border-color: #CFE6D1;
  color: #245C2F;
}
.ntx-cal-day.binh_thuong {
  background: #FCF6E6;
  border-color: #E8D6A0;
  color: #7A5B18;
}
.ntx-cal-day.xau {
  background: #FBEEEC;
  border-color: #E7C3BE;
  color: var(--ntx-error);
}
.ntx-cal-day.chua_du_du_lieu { background: #F4F3F0; border-color: #E5E3DD; color: #8a8a8a; }

/* Hôm nay: CHỈ viền nổi bật, không đổi màu nền — tránh cạnh tranh với trạng thái tốt/xấu */
.ntx-cal-day.today {
  border: 1.5px solid var(--ntx-gold);
  box-shadow: inset 0 0 0 1px var(--ntx-gold);
}
.ntx-cal-today-tag {
  position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  font-size: 7px; font-weight: 700; letter-spacing: .02em;
  color: var(--ntx-gold);
  text-transform: uppercase;
}
.ntx-cal-day.today .ntx-cal-dd { margin-top: 6px; }

/* Đang chọn: trạng thái quan trọng nhất, luôn nổi bật hơn today/hover/tốt/xấu */
.ntx-cal-day.selected {
  border: 2px solid var(--ntx-primary);
  box-shadow: 0 3px 10px rgba(122,31,31,.20);
  transform: translateY(-1px);
  z-index: 1;
}

.ntx-cal-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--ntx-border);
}
.ntx-legend-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F7F5EE;
  color: var(--ntx-text-muted);
}
.ntx-legend-chip .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.ntx-legend-chip .dot.tot { background: var(--ntx-success); }
.ntx-legend-chip .dot.xau { background: var(--ntx-error); }
.ntx-legend-chip .dot.binh_thuong { background: #B5891C; }
.ntx-legend-chip .dot.chua_du_du_lieu { background: #b3b3b3; }

@media (max-width: 480px) {
  .ntx-cal-title { font-size: 15px; }
  .ntx-cal-nav { width: 32px; height: 32px; font-size: 14px; }
  .ntx-cal-day .ntx-cal-dd { font-size: 13px; }
  .ntx-cal-day .ntx-cal-am { font-size: 8.5px; }
  .ntx-legend-chip { font-size: 11px; padding: 3px 8px; }
}

/* Skeleton loading dùng chung cho cả 2 view */
.ntx-skeleton { border-radius: var(--ntx-radius); background: linear-gradient(90deg, #F0E8D6 25%, #F8F1E2 37%, #F0E8D6 63%); background-size: 400% 100%; animation: ntx-skel 1.4s ease infinite; }
@keyframes ntx-skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ═══════════════════════════════════════════════════
   CHI TIẾT NHANH — hiện ngay dưới lịch khi bấm 1 ngày
   ═══════════════════════════════════════════════════ */
.ntx-quick-block { animation: ntx-fade-in .25s ease; }
@keyframes ntx-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.ntx-quick-err { font-size: 13px; color: var(--ntx-error); margin: 0; text-align: center; padding: 10px 0; }

/* ═══════════════════════════════════════════════════
   CÔNG CỤ TRA CỨU NÂNG CAO — tách biệt hẳn khỏi lịch,
   đặt cuối trang, có đường phân cách rõ để không bị
   nhầm là 1 phần của lịch/chi tiết nhanh phía trên.
   ═══════════════════════════════════════════════════ */
.ntx-tool-card {
  margin-top: 28px;
  position: relative;
}
.ntx-tool-card::before {
  content: 'Công cụ tra cứu nâng cao';
  position: absolute;
  top: -11px; left: 20px;
  background: var(--ntx-bg);
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ntx-gold);
  font-weight: 700;
}
.ntx-tool-head { margin-bottom: 4px; }
.ntx-tool-desc { font-size: 13px; color: var(--ntx-text-muted); text-align: center; margin: 0 0 18px; }

/* Tuổi hợp / xung (thẻ kết quả nhanh) */
.ntx-tuoi-hop  { color: var(--ntx-success); font-weight: 600; }
.ntx-tuoi-xung { color: var(--ntx-error);   font-weight: 600; }

/* ═══════════════════════════════════════════════════
   MODAL THANH TOÁN — mở khoá "Hỏi AI câu hỏi riêng".
   Dùng lại toàn bộ token --ntx-* để đồng bộ với phần
   còn lại của giao diện (và với tuvi.css của Client).
   ═══════════════════════════════════════════════════ */
.ntx-modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(42, 26, 18, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ntx-modal {
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius);
  width: 100%; max-width: 420px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: var(--ntx-font);
  box-shadow: 0 20px 50px rgba(42, 26, 18, .35);
}
.ntx-modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--ntx-border);
}
.ntx-modal-header h3 {
  margin: 0; font-family: var(--ntx-font-title);
  color: var(--ntx-primary); font-size: 20px; font-weight: 700;
}
.ntx-modal-body { padding: 18px 22px; overflow-y: auto; }
.ntx-modal-desc { font-size: 13px; color: var(--ntx-text-muted); margin: 0 0 14px; }
.ntx-modal-price {
  text-align: center; margin: 6px 0 16px;
}
.ntx-modal-price span {
  font-family: var(--ntx-font-title);
  font-size: 30px; font-weight: 700; color: var(--ntx-primary);
}
.ntx-modal-price small { display: block; color: var(--ntx-text-muted); font-size: 12px; margin-top: 2px; }
.ntx-modal-fields { display: flex; flex-direction: column; gap: 12px; }
.ntx-modal-fields input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--ntx-border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: var(--ntx-font);
  background: #fff; color: var(--ntx-text);
}
.ntx-modal-footer {
  display: flex; gap: 10px; padding: 14px 22px;
  border-top: 1px solid var(--ntx-border);
}
.ntx-modal-footer .ntx-btn-secondary { flex: 0 0 auto; }
.ntx-modal-footer .tuvi-ntx-btn { flex: 1; margin: 0; }

.ntx-btn-secondary {
  background: #fff; color: var(--ntx-text);
  border: 1px solid var(--ntx-border); border-radius: 8px;
  padding: 10px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.ntx-btn-secondary:hover { background: var(--ntx-bg); }

.ntx-qr-wrap { text-align: center; margin: 6px 0 14px; }
.ntx-qr-wrap img { width: 200px; height: 200px; border-radius: 8px; border: 1px solid var(--ntx-border); }

.ntx-bank-info {
  background: #fff; border: 1px solid var(--ntx-border); border-radius: 8px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
}
.ntx-bank-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 10px; }
.ntx-bank-row span { color: var(--ntx-text-muted); }
.ntx-bank-row strong { color: var(--ntx-text); text-align: right; word-break: break-word; }
.ntx-amount-highlight { color: var(--ntx-primary) !important; font-size: 16px; }

.ntx-modal-hint { font-size: 12px; color: var(--ntx-text-muted); text-align: center; margin: 0 0 14px; }

.ntx-checking-wrap {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--ntx-text-muted); margin-bottom: 12px;
}
.ntx-checking-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ntx-gold);
  animation: ntxPulse 1.1s infinite ease-in-out;
}
@keyframes ntxPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.ntx-success-wrap { text-align: center; padding: 10px 0; }
.ntx-success-badge {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--ntx-success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.ntx-success-wrap h4 { margin: 0 0 6px; color: var(--ntx-text); font-family: var(--ntx-font-title); font-size: 19px; }
.ntx-success-wrap p { margin: 0; font-size: 13px; color: var(--ntx-text-muted); }

@media (max-width: 480px) {
  .ntx-modal { max-width: 100%; }
}
