/* ═══════════════════════════════════════════════
   PHONG THỦY NHÀ Ở – AI  |  CSS
   Bảng màu: "Nhà cửa – Tài sản – An cư"
   Nâu gỗ trầm + vàng đồng cổ — ấm áp, vững chãi, thịnh vượng
   ═══════════════════════════════════════════════ */

:root {
  /* Nền */
  --pt-bg-main:      #1A120B;
  --pt-bg:           #1A120B;
  --pt-bg-card:      #24180F;
  --pt-card:         #24180F;
  --pt-card-glass:   rgba(36,24,15,.72);
  --pt-bg-hover:     #302015;
  --pt-border:       #7A5A1D;

  /* Vàng thương hiệu */
  --pt-gold:         #D4AF37;
  --pt-gold-primary: #D4AF37;
  --pt-gold-light:   #E6C878;
  --pt-gold-bright:  #F2D98A;
  --pt-bronze:       #B8860B;
  --pt-gold-glow:    rgba(212,175,55,.35);

  /* Chữ */
  --pt-text:         #E5D6B3;
  --pt-text-title:   #F5E7B2;
  --pt-text-light:   #E5D6B3;
  --pt-text-muted:   #BFAE85;

  /* Ngũ hành */
  --pt-metal: #F2D98A;
  --pt-wood:  #4F8A3F;
  --pt-water: #2F6690;
  --pt-fire:  #A83232;
  --pt-earth: #9C6B30;

  /* Trạng thái */
  --pt-success:      #3BA55D;
  --pt-good:         #6BBF59;
  --pt-mid:          #D4AF37;
  --pt-warning:      #E67E22;
  --pt-danger:       #C0392B;

  /* Điểm số */
  --pt-score-90: #2E7D32;
  --pt-score-75: #689F38;
  --pt-score-60: #D4AF37;
  --pt-score-40: #F57C00;
  --pt-score-0:  #C62828;

  --pt-primary:      #B8860B;
  --pt-primary-dark: #7A5A1D;
  --pt-primary-light:#D4AF37;

  --pt-radius:       14px;
  --pt-radius-sm:    9px;
  --pt-shadow:       0 2px 18px rgba(0,0,0,.35);
  --pt-shadow-lg:    0 8px 40px rgba(0,0,0,.5);
  --pt-shadow-glow:  0 0 24px rgba(212,175,55,.20);

  --pt-font:         'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
  --pt-font-title:   'Cormorant Garamond', 'Cinzel', 'Be Vietnam Pro', serif;
  --pt-font-section: 'Playfair Display', 'Be Vietnam Pro', serif;
  --pt-transition:   all .25s cubic-bezier(.4,0,.2,1);
}

.pt-wrapper, .pt-wrapper input, .pt-wrapper select, .pt-wrapper textarea, .pt-wrapper button {
  font-family: var(--pt-font);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.pt-wrapper *, .pt-wrapper *::before, .pt-wrapper *::after { box-sizing: border-box; }

.pt-wrapper {
  max-width: 760px;
  margin: 0 auto;
  color: var(--pt-text) !important;
  background: radial-gradient(120% 80% at 50% -10%, #2b1c10 0%, var(--pt-bg-main) 55%) !important;
  border-radius: 20px;
  padding: 28px 20px 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pt-border) !important;
  box-shadow: var(--pt-shadow-lg), inset 0 0 60px rgba(212,175,55,.04);
  text-transform: none !important;
}
.pt-wrapper * { text-transform: none; }

/* ── HEADER ── */
.pt-header { text-align: center; padding: 10px 0 18px; position: relative; }
.pt-header-ornament { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; display: block; filter: drop-shadow(0 0 10px var(--pt-gold-glow)); }
.pt-title {
  font-family: var(--pt-font-title);
  font-size: 30px; font-weight: 700; letter-spacing: .3px; margin: 0;
  color: var(--pt-text-title);
  text-shadow: 0 0 18px var(--pt-gold-glow);
}
.pt-title-divider { display: flex; justify-content: center; margin: 12px 0; }
.pt-title-divider span { display: block; width: 80px; height: 2px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--pt-gold), transparent); box-shadow: 0 0 8px var(--pt-gold-glow); }
.pt-subtitle { color: var(--pt-text-muted); font-size: 14px; max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* ── NGŨ HÀNH BANNER ── */
.pt-wuxing-banner { display: flex; justify-content: center; gap: 10px; margin: 6px 0 20px; flex-wrap: wrap; }
.pt-wx-item { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #1A120B; box-shadow: 0 0 0 1px var(--pt-border), var(--pt-shadow); }
.pt-wx-kim  { background: linear-gradient(135deg, var(--pt-metal), #cbb46a); }
.pt-wx-moc  { background: linear-gradient(135deg, #6fae5f, var(--pt-wood)); color: #fff; }
.pt-wx-thuy { background: linear-gradient(135deg, #4a90c9, var(--pt-water)); color: #fff; }
.pt-wx-hoa  { background: linear-gradient(135deg, #d1584a, var(--pt-fire)); color: #fff; }
.pt-wx-tho  { background: linear-gradient(135deg, #c9a15f, var(--pt-earth)); color: #fff; }

.pt-intro { text-align: center; font-size: 13px; color: var(--pt-text-muted); max-width: 520px; margin: 0 auto 22px; line-height: 1.6; }

/* ── FORM ── */
.pt-form-card { background: var(--pt-card); border-radius: var(--pt-radius); padding: 22px 18px; box-shadow: var(--pt-shadow); border: 1px solid var(--pt-border); }
.pt-glass { background: var(--pt-card-glass); backdrop-filter: blur(10px); }
.pt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-field { display: flex; flex-direction: column; gap: 6px; }
.pt-field-full { grid-column: 1 / -1; }
.pt-label { font-size: 13px; font-weight: 600; color: var(--pt-gold-light); }
.pt-optional { font-weight: 400; color: var(--pt-text-muted); font-size: 12px; }
.pt-hint { font-size: 11.5px; color: var(--pt-text-muted); margin: 2px 0 0; }

.pt-wrapper .pt-input, .pt-wrapper .pt-select, .pt-wrapper textarea.pt-input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--pt-border) !important; border-radius: var(--pt-radius-sm);
  font-size: 14px; color: var(--pt-text) !important; background: var(--pt-bg-hover) !important; transition: var(--pt-transition);
  box-shadow: none !important;
}
.pt-input::placeholder { color: var(--pt-text-muted); }
.pt-input:focus, .pt-select:focus, textarea.pt-input:focus { outline: none; border-color: var(--pt-gold); box-shadow: 0 0 0 3px var(--pt-gold-glow); }
textarea.pt-input { resize: vertical; min-height: 46px; }

/* ── STEPPER (nút tăng / giảm cho các ô năm) ── */
.pt-stepper {
  display: flex; align-items: stretch; width: 100%;
  border: 1.5px solid var(--pt-border); border-radius: var(--pt-radius-sm);
  background: var(--pt-bg-hover); overflow: hidden; transition: var(--pt-transition);
}
.pt-stepper:focus-within { border-color: var(--pt-gold); box-shadow: 0 0 0 3px var(--pt-gold-glow); }
.pt-wrapper .pt-stepper .pt-stepper-input {
  flex: 1 1 auto; min-width: 0; width: 100%; border: none !important; background: transparent !important;
  text-align: center; padding: 10px 4px; box-shadow: none !important; -moz-appearance: textfield;
}
.pt-stepper .pt-stepper-input:focus { box-shadow: none !important; }
.pt-stepper .pt-stepper-input::-webkit-outer-spin-button,
.pt-stepper .pt-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pt-wrapper .pt-stepper-btn {
  flex: 0 0 auto; width: 38px; border: none; background: transparent; color: var(--pt-gold-light);
  font-size: 17px; font-weight: 600; line-height: 1; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: center; transition: var(--pt-transition);
}
.pt-wrapper .pt-stepper-btn:hover { background: rgba(212,175,55,.14); color: var(--pt-gold-bright); }
.pt-wrapper .pt-stepper-btn:active { background: rgba(212,175,55,.24); }
.pt-stepper-minus { border-right: 1.5px solid var(--pt-border); }
.pt-stepper-plus { border-left: 1.5px solid var(--pt-border); }
.pt-light .pt-stepper { background: #FFFDF6; border-color: #D9C48A; }
.pt-light .pt-stepper-minus { border-right-color: #D9C48A; }
.pt-light .pt-stepper-plus { border-left-color: #D9C48A; }
.pt-light .pt-wrapper .pt-stepper-btn { color: #6B4E14; }

.pt-gender-group { display: flex; gap: 8px; }
.pt-gender-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: 1.5px solid var(--pt-border); border-radius: var(--pt-radius-sm); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--pt-text-light); transition: var(--pt-transition); }
.pt-gender-btn input { display: none; }
.pt-gender-btn:has(input:checked), .pt-gender-btn.pt-active { border-color: var(--pt-gold); background: rgba(212,175,55,.12); color: var(--pt-gold-bright); }

/* ── EXTRA ACCORDION ── */
.pt-extra-header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: rgba(212,175,55,.08); border: 1px dashed var(--pt-gold); border-radius: var(--pt-radius-sm); cursor: pointer; user-select: none; }
.pt-extra-title { flex: 1; font-size: 13px; font-weight: 600; color: var(--pt-gold-light); }
.pt-extra-chevron { transition: transform .25s; color: var(--pt-gold); }
.pt-extra-header.pt-open .pt-extra-chevron { transform: rotate(180deg); }
.pt-extra-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.pt-extra-body.pt-open { max-height: 900px; padding-top: 14px; }
.pt-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-extra-field { display: flex; flex-direction: column; gap: 5px; }
.pt-extra-label { font-size: 12.5px; font-weight: 600; color: var(--pt-text-light); }

/* ── SUBMIT ── */
.pt-submit-area { text-align: center; margin-top: 20px; }
.pt-wrapper .pt-btn-submit {
  background: linear-gradient(135deg, var(--pt-gold-light), var(--pt-bronze)) !important; color: #24180F !important; border: none !important;
  padding: 14px 34px; font-size: 15px; font-weight: 700; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(212,175,55,.35) !important; transition: var(--pt-transition);
}
.pt-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(212,175,55,.5); }
.pt-btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pt-disclaimer { font-size: 11.5px; color: var(--pt-text-muted); margin-top: 10px; line-height: 1.5; }

.pt-btn-secondary { background: transparent; border: 1.5px solid var(--pt-border); color: var(--pt-text-light); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--pt-transition); }
.pt-btn-secondary:hover { border-color: var(--pt-gold); color: var(--pt-gold-bright); background: rgba(212,175,55,.08); }
.pt-btn-export { width: 100%; margin-top: 14px; padding: 12px; }

/* ── LOADING ── */
.pt-loading { text-align: center; padding: 50px 10px; }
.pt-spinner { width: 64px; height: 64px; object-fit: contain; animation: pt-spin 2.2s linear infinite; display: inline-block; filter: drop-shadow(0 0 12px var(--pt-gold-glow)); }
@keyframes pt-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.pt-loading-text { font-size: 15px; font-weight: 600; color: var(--pt-gold-light); margin: 14px 0 4px; }
.pt-loading-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.pt-loading-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--pt-gold); animation: pt-bounce 1.2s infinite ease-in-out; }
.pt-loading-dots span:nth-child(2) { animation-delay: .15s; }
.pt-loading-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes pt-bounce { 0%,80%,100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
.pt-progress-wrap { max-width: 320px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.pt-progress-bar-track { flex: 1; height: 6px; border-radius: 4px; background: var(--pt-bg-hover); overflow: hidden; }
.pt-progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--pt-gold), var(--pt-bronze)); transition: width .4s ease; }
.pt-progress-pct { font-size: 12px; font-weight: 700; color: var(--pt-gold-light); min-width: 34px; }

/* ── RESULT HEADER ── */
.pt-result-section { margin-top: 8px; }
.pt-result-header { text-align: center; padding: 20px 10px 14px; }
.pt-result-badge { display: inline-block; background: linear-gradient(135deg, var(--pt-gold), var(--pt-bronze)); color: #24180F; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; letter-spacing: .4px; text-transform: uppercase; }
.pt-result-name { font-family: var(--pt-font-title); font-size: 24px; font-weight: 700; color: var(--pt-text-title); margin: 0; }
.pt-result-meta { font-size: 12.5px; color: var(--pt-text-muted); margin-top: 4px; }

/* ── TAB NAV (8 nhóm chính) ── */
.pt-tabs-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 6px 4px 16px; margin-bottom: 14px;
}
.pt-tab-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--pt-bg-hover); border: 1px solid var(--pt-border); color: var(--pt-text-muted);
  padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  letter-spacing: .1px; cursor: pointer; transition: var(--pt-transition);
}
.pt-tab-btn:hover { border-color: var(--pt-gold); color: var(--pt-gold-light); }
.pt-tab-btn.pt-tab-active {
  background: linear-gradient(135deg, var(--pt-gold), var(--pt-bronze)); border-color: var(--pt-gold);
  color: #24180F; box-shadow: 0 4px 14px rgba(212,175,55,.35);
}

@media (max-width: 640px) {
  .pt-tabs-nav { gap: 6px; }
  .pt-tab-btn { padding: 8px 13px; font-size: 11.5px; }
}
@media (max-width: 420px) {
  .pt-tab-btn { font-size: 11px; padding: 7px 11px; }
}

.pt-tab-panel { display: none; }
.pt-tab-panel.pt-tab-active { display: block; animation: pt-fadein .3s ease; }
@keyframes pt-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Tab bị khoá (yêu cầu kích hoạt trả phí) ── */
.pt-tab-btn.pt-tab-locked { position: relative; padding-right: 22px; }
.pt-tab-btn.pt-tab-locked::after {
  content: ''; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55;
}
.pt-tab-btn.pt-tab-locked:not(.pt-tab-active) { color: var(--pt-text-muted); opacity: .8; }

.pt-lock-overlay {
  text-align: center; padding: 40px 20px; border: 1px dashed var(--pt-border);
  border-radius: 14px; background: var(--pt-bg-card);
}
.pt-lock-title { color: var(--pt-text-title); font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.pt-lock-desc { color: var(--pt-text-muted); font-size: 13.5px; max-width: 420px; margin: 0 auto 20px; line-height: 1.6; }
.pt-lock-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pt-lock-actions .pt-tab-unlock-pay { max-width: 320px; }
.pt-lock-code-row { display: flex; gap: 8px; width: 100%; max-width: 320px; }
.pt-lock-code-row .pt-tab-unlock-code { flex: 1; }
.pt-lock-code-row .pt-tab-unlock-code-btn { flex: 0 0 auto; }

.pt-tab-content {
  background: var(--pt-card); border-radius: var(--pt-radius); padding: 22px 20px; box-shadow: var(--pt-shadow);
  border: 1px solid var(--pt-border); line-height: 1.75; font-size: 14.5px; color: var(--pt-text);
}
.pt-tab-content h2 { font-family: var(--pt-font-section); font-size: 19px; color: var(--pt-gold-bright); border-bottom: 2px solid var(--pt-gold); padding-bottom: 6px; margin: 0 0 12px; }
.pt-tab-content h3 { font-family: var(--pt-font-section); font-size: 16px; color: var(--pt-gold-light); margin: 16px 0 8px; }
.pt-tab-content p { margin: 0 0 12px; }
.pt-tab-content ul, .pt-tab-content ol { margin: 0 0 12px; padding-left: 20px; }
.pt-tab-content li { margin-bottom: 6px; }
.pt-tab-content strong { color: var(--pt-gold-bright); }
.pt-tab-content hr { border: none; border-top: 1px dashed var(--pt-border); margin: 18px 0; }
.pt-empty-note { color: var(--pt-text-muted); font-style: italic; }

.pt-cards { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.pt-card-row { background: rgba(212,175,55,.07); border-left: 3px solid var(--pt-gold); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; }
.pt-card-label { font-weight: 700; color: var(--pt-gold-bright); margin-right: 6px; }
.pt-card-text { color: var(--pt-text-light); }

/* ── DASHBOARD: TỔNG QUAN (điểm số + cát/hung) ── */
.pt-dashboard-card {
  background: var(--pt-card); border: 1px solid var(--pt-border); border-radius: var(--pt-radius);
  padding: 22px 20px; margin-bottom: 14px; box-shadow: var(--pt-shadow), var(--pt-shadow-glow);
}
.pt-score-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.pt-score-ring {
  --pt-score-pct: 70%;
  width: 96px; height: 96px; border-radius: 50%; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--pt-gold) var(--pt-score-pct), var(--pt-bg-hover) 0);
  box-shadow: 0 0 20px var(--pt-gold-glow);
  position: relative;
}
.pt-score-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--pt-bg-card); }
.pt-score-num { position: relative; z-index: 1; font-family: var(--pt-font-title); font-size: 26px; font-weight: 700; color: var(--pt-gold-bright); }
.pt-score-max { position: relative; z-index: 1; font-size: 11px; color: var(--pt-text-muted); }

.pt-score-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.pt-scorebar-row { display: flex; align-items: center; gap: 8px; }
.pt-scorebar-label { flex: 0 0 78px; font-size: 12px; color: var(--pt-text-light); }
.pt-scorebar-track { flex: 1; height: 8px; border-radius: 6px; background: var(--pt-bg-hover); overflow: hidden; }
.pt-scorebar-fill { height: 100%; border-radius: 6px; transition: width .5s ease; }
.pt-scorebar-good { background: linear-gradient(90deg, var(--pt-good), var(--pt-success)); }
.pt-scorebar-bad  { background: linear-gradient(90deg, var(--pt-warning), var(--pt-danger)); }
.pt-scorebar-tag { flex: 0 0 68px; text-align: right; font-size: 11px; font-weight: 700; color: var(--pt-text-muted); }

.pt-catgroup { margin-top: 8px; }
.pt-chip-title { font-size: 12.5px; font-weight: 700; color: var(--pt-gold-light); margin: 10px 0 6px; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-chip { font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--pt-border); line-height: 1.4; }
.pt-chip-cat  { background: rgba(59,165,93,.12); border-color: var(--pt-success); color: #9fe3b4; }
.pt-chip-hung { background: rgba(230,126,34,.12); border-color: var(--pt-warning); color: #f3c191; }

/* ── XEM NGÀY GIAO VIỆC — công cụ tương tác ── */
.pt-daytool-card { background: var(--pt-card); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 20px; margin-top: 14px; box-shadow: var(--pt-shadow); }
.pt-daytool-title { font-family: var(--pt-font-section); font-size: 16px; color: var(--pt-gold-bright); margin: 0 0 6px; }
.pt-daytool-desc { font-size: 12.5px; color: var(--pt-text-muted); margin: 0 0 14px; }
.pt-daytool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pt-daytool-btn { width: 100%; }
.pt-daytool-result { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pt-daytool-row { display: flex; align-items: center; gap: 10px; background: var(--pt-bg-hover); border: 1px solid var(--pt-border); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.pt-daytool-row-label { flex: 0 0 80px; font-weight: 700; color: var(--pt-gold-light); }
.pt-daytool-row-name { flex: 1; color: var(--pt-text-light); }
.pt-daytool-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pt-daytool-good { background: rgba(59,165,93,.15); color: #9fe3b4; border: 1px solid var(--pt-success); }
.pt-daytool-bad  { background: rgba(192,57,43,.15); color: #f2a89e; border: 1px solid var(--pt-danger); }

.pt-result-footer { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ── ĐIỂM SỐ THEO NGƯỠNG (dùng nếu cần gán trực tiếp qua class) ── */
.pt-score-band-90 { background: var(--pt-score-90) !important; }
.pt-score-band-75 { background: var(--pt-score-75) !important; }
.pt-score-band-60 { background: var(--pt-score-60) !important; }
.pt-score-band-40 { background: var(--pt-score-40) !important; }
.pt-score-band-0  { background: var(--pt-score-0)  !important; }

/* ── ERROR ── */
.pt-error { text-align: center; padding: 40px 20px; }
.pt-error-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--pt-danger); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.pt-error p { color: var(--pt-text-light); font-size: 14px; margin-bottom: 14px; }
.pt-error-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }

/* ── PAYMENT MODAL (SePay) ── */
.pt-modal-overlay { position: fixed; inset: 0; background: rgba(10,8,6,.72); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pt-modal-box { position: relative; background: var(--pt-card-bg, #1c1712); border: 1.5px solid var(--pt-border); border-radius: 16px; padding: 28px 24px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pt-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--pt-text-light); font-size: 26px; line-height: 1; cursor: pointer; }
.pt-modal-title { margin: 0 0 8px; font-size: 18px; color: var(--pt-gold-bright); }
/* ── BẢNG CHỌN GÓI THANH TOÁN (đồng bộ theme nâu gỗ – vàng đồng) ── */
.pt-plan-choice { margin: 4px 0 16px; width: 100%; flex-basis: 100%; }
.pt-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .pt-plan-grid { grid-template-columns: 1fr; }
}
.pt-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: var(--pt-card);
  border: 1.5px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  padding: 14px 16px 16px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
}
.pt-plan-card:hover { border-color: var(--pt-gold-light); transform: translateY(-1px); }
.pt-plan-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.pt-plan-card:has(input:checked),
.pt-plan-card.pt-plan-card-active {
  border-color: var(--pt-gold);
  background: rgba(212,175,55,.10);
  box-shadow: var(--pt-shadow-glow);
}
.pt-plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.pt-plan-card-check {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--pt-border);
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.pt-plan-card-check::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #241a08; transform: scale(0); transition: transform .2s;
}
.pt-plan-card:has(input:checked) .pt-plan-card-check,
.pt-plan-card.pt-plan-card-active .pt-plan-card-check {
  background: var(--pt-gold); border-color: var(--pt-gold);
}
.pt-plan-card:has(input:checked) .pt-plan-card-check::after,
.pt-plan-card.pt-plan-card-active .pt-plan-card-check::after {
  transform: scale(1);
}
.pt-plan-card-name { font-size: 13.5px; font-weight: 700; color: var(--pt-text-title); }
.pt-plan-card-price { font-size: 17px; font-weight: 700; color: var(--pt-gold-bright); font-family: var(--pt-font-title, inherit); }
.pt-plan-card-price small { font-size: 11px; font-weight: 500; color: var(--pt-text-muted); }
.pt-plan-card-desc { font-size: 11.5px; line-height: 1.5; color: var(--pt-text-muted); }
.pt-plan-card-desc strong { color: var(--pt-text-light); }
.pt-modal-desc { font-size: 14px; color: var(--pt-text-light); margin-bottom: 14px; }
.pt-modal-qr-wrap { margin: 0 auto 16px; max-width: 240px; }
.pt-modal-qr-wrap img { width: 100%; border-radius: 8px; background: #fff; padding: 6px; }
.pt-modal-info { text-align: left; font-size: 13px; color: var(--pt-text-light); background: rgba(255,255,255,.04); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.pt-modal-info p { margin: 4px 0; }
.pt-modal-status { font-size: 13px; color: var(--pt-gold); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pt-modal-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--pt-gold); flex: 0 0 auto;
  box-shadow: 0 0 0 0 var(--pt-gold-glow); animation: pt-status-pulse 1.4s ease-out infinite;
}
@keyframes pt-status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* ── Trạng thái thanh toán thành công ── */
.pt-modal-success { animation: pt-fadein .35s ease; }
.pt-success-check { width: 76px; height: 76px; margin: 4px auto 16px; }
.pt-success-check svg { width: 100%; height: 100%; }
.pt-success-check-circle {
  fill: none; stroke: var(--pt-gold); stroke-width: 3;
  stroke-dasharray: 164; stroke-dashoffset: 164;
  animation: pt-draw-circle .5s ease forwards;
  filter: drop-shadow(0 0 8px var(--pt-gold-glow));
}
.pt-success-check-mark {
  fill: none; stroke: var(--pt-gold-bright); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 34; stroke-dashoffset: 34;
  animation: pt-draw-check .35s ease forwards .45s;
}
@keyframes pt-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes pt-draw-check { to { stroke-dashoffset: 0; } }
.pt-success-title { color: var(--pt-gold-bright); }
.pt-success-info { text-align: center; }
.pt-success-status {
  color: var(--pt-text-muted); font-weight: 500; font-size: 12.5px;
}
.pt-success-status::before {
  content: ''; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--pt-border); border-top-color: var(--pt-gold);
  animation: pt-spin .8s linear infinite; display: inline-block; margin-right: 2px; vertical-align: -2px;
}

/* ── LIGHT THEME (tuỳ chọn — mặc định plugin dùng theme tối ấm áp ở trên) ── */
.pt-light {
  background: #FBF6E9;
  border-color: #D9C48A;
}
.pt-light, .pt-light .pt-tab-content, .pt-light .pt-daytool-card, .pt-light .pt-dashboard-card, .pt-light .pt-form-card {
  color: #3A2A12;
}
.pt-light .pt-form-card, .pt-light .pt-tab-content, .pt-light .pt-daytool-card, .pt-light .pt-dashboard-card { background: #FFFDF6; border-color: #D9C48A; }
.pt-light .pt-title, .pt-light .pt-result-name { color: #6B4E14; text-shadow: none; }
.pt-light .pt-input, .pt-light .pt-select { background: #FFFDF6; color: #3A2A12; }
.pt-light .pt-tab-btn { background: #F3E7C4; color: #6B4E14; }
.pt-light .pt-plan-card { background: #FFFDF6; border-color: #D9C48A; }
.pt-light .pt-plan-card:has(input:checked),
.pt-light .pt-plan-card.pt-plan-card-active { background: rgba(212,175,55,.14); border-color: #B8860B; }
.pt-light .pt-plan-card-name { color: #6B4E14; }
.pt-light .pt-plan-card-desc { color: #7A6640; }
.pt-light .pt-plan-card-desc strong { color: #4A3410; }

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .pt-form-grid, .pt-extra-grid, .pt-daytool-grid { grid-template-columns: 1fr; }
  .pt-wrapper { padding: 20px 14px 28px; border-radius: 14px; }
  .pt-title { font-size: 23px; }
  .pt-score-wrap { justify-content: center; text-align: center; }
}

/* ── PRINT ── */
@media print {
  .pt-form-section, .pt-loading, .pt-result-footer, .pt-header, .pt-wuxing-banner, .pt-intro, .pt-tabs-nav, .pt-btn-export { display: none !important; }
  .pt-tab-panel { display: block !important; page-break-inside: avoid; margin-bottom: 18px; }
  .pt-tab-content, .pt-dashboard-card, .pt-daytool-card { box-shadow: none; border: 1px solid #999; }
  .pt-wrapper { background: #fff !important; color: #000 !important; }
}
