/* ===== SHARED MODAL & UI COMPONENTS ===== */
dialog.centered-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-height: 90vh;
  overflow-y: auto;
}

dialog.centered-modal::backdrop {
  background: rgba(10, 27, 107, 0.42);
  backdrop-filter: blur(5px);
}

.primary-btn,
.ghost-btn,
.icon-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.primary-btn,
.ghost-btn {
  min-height: 44px;
}

.primary-btn {
  padding: 11px 16px;
  background: var(--amber, #E8A33D);
  color: #241705;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(232, 163, 61, 0.18);
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: var(--amber-deep, #B87A22);
  color: white;
}

/* Shared brand variant for every direct Zalo contact CTA. */
.btn-zalo {
  border-color: #0068FF;
  background: #0068FF;
  color: #FFFFFF;
  box-shadow: 0 9px 24px rgba(0, 104, 255, 0.22);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.btn-zalo:hover,
.btn-zalo:focus-visible {
  border-color: #0055D4;
  background: #0055D4;
  color: #FFFFFF;
  box-shadow: 0 11px 28px rgba(0, 85, 212, 0.28);
}

.btn-zalo:focus-visible {
  outline: 3px solid rgba(0, 104, 255, 0.25);
  outline-offset: 2px;
}

.btn-zalo:active {
  transform: translateY(1px);
}

.ghost-btn {
  padding: 11px 16px;
  background: transparent;
  color: var(--ink, #0B2A29);
  border: 1px solid var(--line, rgba(20,32,29,0.12));
  font-weight: 800;
  transition: all 0.2s ease;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--soft, #F4F6F9);
  color: var(--ink, #0B2A29);
  font-size: 22px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--line, rgba(20,32,29,0.12));
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 22px 22px 0 22px;
}

.dialog-head h2 {
  margin: 0;
  color: var(--ink, #0B2A29);
  line-height: 1.14;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--amber, #E8A33D);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
/* TROON LIGHTBOX */
.chat-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 10000;
}
.chat-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.chat-lightbox-nav:hover {
  background: rgba(0,0,0,0.8);
  border-color: white;
}
.chat-lightbox-prev { left: 20px; }
.chat-lightbox-next { right: 20px; }
#troon-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
