/* =====================================================================
   Dhraconyx world-map language picker — house gold/chrome overlay.
   Matches store/home skin (dhx-chrome / dhx-home-store). Not Bootstrap.
   ===================================================================== */

.dhx-langmap-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.dhx-langmap-backdrop.is-open { display: flex; }

.dhx-langmap-panel {
  position: relative;
  width: min(1080px, 96vw);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(200, 150, 42, 0.45);
  background:
    linear-gradient(180deg, rgba(18, 18, 24, 0.96), rgba(11, 11, 15, 0.98));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(233, 194, 90, 0.08),
    0 0 40px rgba(200, 150, 42, 0.12);
  color: #fff;
  font-family: "Helvetica Neue", Inter, Arial, "Segoe UI", sans-serif;
}

.dhx-langmap-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(200, 150, 42, 0.28);
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(11, 11, 15, 0.96);
}
.dhx-langmap-head h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #e9c25a;
  letter-spacing: 0.02em;
}
.dhx-langmap-head .sub {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}
.dhx-langmap-close {
  margin-left: auto;
  appearance: none;
  border: 1px solid rgba(200, 150, 42, 0.45);
  background: transparent;
  color: #e9c25a;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.dhx-langmap-close:hover {
  background: rgba(200, 150, 42, 0.18);
  color: #fff;
}

.dhx-langmap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
}
.dhx-langmap-search {
  flex: 1 1 220px;
  min-width: 180px;
  background: #0c0c11;
  border: 1px solid rgba(200, 150, 42, 0.35);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
}
.dhx-langmap-search:focus {
  border-color: #e9c25a;
  box-shadow: 0 0 0 2px rgba(200, 150, 42, 0.18);
}
.dhx-langmap-slots {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 42, 0.28);
  background: rgba(14, 77, 48, 0.22);
}
.dhx-langmap-slots.is-over {
  border-color: rgba(224, 112, 112, 0.7);
  background: rgba(120, 30, 30, 0.35);
  color: #ffb0b0;
}

.dhx-langmap-mapwrap {
  position: relative;
  margin: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(200, 150, 42, 0.28);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(14, 77, 48, 0.22), transparent 70%),
    #07080b;
  overflow: hidden;
  min-height: 280px;
}
.dhx-langmap-mapwrap svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
}
.dhx-langmap-mapwrap path {
  fill: #2a2d33;
  stroke: rgba(11, 11, 15, 0.85);
  stroke-width: 0.35;
  transition: fill 0.12s ease, stroke 0.12s ease, filter 0.12s ease;
  cursor: default;
  pointer-events: auto;
}
.dhx-langmap-mapwrap path.dhx-lit {
  fill: #0E4D30;
  stroke: rgba(200, 150, 42, 0.35);
  cursor: pointer;
}
.dhx-langmap-mapwrap path.dhx-lit:hover,
.dhx-langmap-mapwrap path.dhx-lit.dhx-hover {
  fill: #1a7a4a;
  stroke: #e9c25a;
  filter: drop-shadow(0 0 4px rgba(233, 194, 90, 0.45));
}
.dhx-langmap-mapwrap path.dhx-selected {
  fill: #C8962A !important;
  stroke: #e9c25a !important;
  filter: drop-shadow(0 0 6px rgba(200, 150, 42, 0.55));
}
.dhx-langmap-mapwrap path.dhx-jump {
  animation: dhx-langmap-pulse 1.1s ease 2;
}
@keyframes dhx-langmap-pulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(233, 194, 90, 0.3)); }
  50% { filter: drop-shadow(0 0 10px rgba(233, 194, 90, 0.95)); fill: #e9c25a; }
}

.dhx-langmap-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  display: none;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(11, 11, 15, 0.92);
  border: 1px solid rgba(200, 150, 42, 0.5);
  color: #e9c25a;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(12px, 12px);
}
.dhx-langmap-tip.is-on { display: block; }

.dhx-langmap-body {
  padding: 14px 20px 20px;
  display: grid;
  gap: 14px;
}
.dhx-langmap-section h3 {
  margin: 0 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.95rem;
  color: #e9c25a;
}
.dhx-langmap-section .hint {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.dhx-langmap-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dhx-langmap-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 42, 0.32);
  background: rgba(6, 10, 8, 0.85);
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.dhx-langmap-check input { accent-color: #C8962A; }
.dhx-langmap-check.is-over {
  border-color: rgba(224, 112, 112, 0.85);
  background: rgba(90, 20, 20, 0.45);
  color: #ffc0c0;
}
.dhx-langmap-check.is-current {
  border-color: rgba(110, 207, 138, 0.55);
  background: rgba(14, 77, 48, 0.35);
}

.dhx-langmap-empty {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.dhx-langmap-credits {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(200, 150, 42, 0.32);
  background: rgba(6, 10, 8, 0.75);
}
.dhx-langmap-credits .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.dhx-langmap-credits .pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(200, 150, 42, 0.25);
  background: rgba(11, 11, 15, 0.9);
}
.dhx-langmap-credits .pill b {
  font-family: Cinzel, Georgia, serif;
  color: #e9c25a;
  font-size: 0.95rem;
}
.dhx-langmap-credits .pill span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
}
.dhx-langmap-credits .pill.is-zero b { color: #e07070; }

.dhx-langmap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dhx-langmap-actions .btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #C8962A;
  background: #C8962A;
  color: #0B0B0F;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}
.dhx-langmap-actions .btn:hover { background: #e9c25a; border-color: #e9c25a; color: #0B0B0F; text-decoration: none; }
.dhx-langmap-actions .btn.ghost {
  background: transparent;
  color: #e9c25a;
}
.dhx-langmap-actions .btn.ghost:hover {
  background: rgba(200, 150, 42, 0.15);
  color: #fff;
}
.dhx-langmap-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dhx-langmap-open {
  margin: 0 0 14px;
}
.dhx-langmap-open .btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #C8962A;
  background: #C8962A;
  color: #0B0B0F;
  border-radius: 9px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}
.dhx-langmap-open .btn:hover { background: #e9c25a; }

@media (max-width: 640px) {
  .dhx-langmap-panel { max-height: 96vh; }
  .dhx-langmap-mapwrap svg { max-height: 260px; }
}

/* Locked credit chips: quiet This month + gold Saved */
.dhx-lang-credit-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.dhx-lang-credit-chips--inline {
  margin-left: 10px;
  vertical-align: middle;
}
.dhx-langmap-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dhx-lang-credit-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 150, 42, 0.28);
  background: rgba(11, 11, 15, 0.88);
  min-height: 36px;
}
.dhx-lang-credit-chips .chip-k {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 600;
}
.dhx-lang-credit-chips .chip-v {
  font-family: Cinzel, Georgia, serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  min-width: 0.9em;
  text-align: center;
}
.dhx-lang-credit-chips .chip-note {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.42);
}
.dhx-lang-credit-chips .chip-month .chip-v {
  color: rgba(255, 255, 255, 0.72);
}
.dhx-lang-credit-chips .chip-saved {
  border-color: rgba(200, 150, 42, 0.55);
  background: rgba(200, 150, 42, 0.12);
}
.dhx-lang-credit-chips .chip-saved .chip-k,
.dhx-lang-credit-chips .chip-saved .chip-v {
  color: #e9c25a;
}
.dhx-lang-credit-chips .chip.is-zero {
  border-color: rgba(224, 112, 112, 0.55);
  background: rgba(90, 20, 20, 0.28);
}
.dhx-lang-credit-chips .chip.is-zero .chip-v {
  color: #e07070;
}
.dhx-langmap-credits .chip { cursor: default; }
.dhx-langmap-credits .chip.is-zero { cursor: pointer; }


/* ---- Clear selection (map toolbar) ---- */
.dhx-langmap-clear {
  appearance: none;
  border: 1px solid rgba(200, 150, 42, 0.4);
  background: transparent;
  color: #e9c25a;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space:nowrap;
}
.dhx-langmap-clear:hover {
  background: rgba(200, 150, 42, 0.16);
  color: #fff;
  border-color: #e9c25a;
}

/* ---- Language Search (page control bar) ---- */
.dhx-lang-chip-search-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.dhx-lang-chip-search {
  min-width: 160px;
  width: min(220px, 42vw);
  background: #0c0c11;
  border: 1px solid rgba(200, 150, 42, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  outline: none;
}
.dhx-lang-chip-search:focus {
  border-color: #e9c25a;
  box-shadow: 0 0 0 2px rgba(200, 150, 42, 0.18);
}
.dhx-lang-chip-search::placeholder { color: rgba(255,255,255,0.42); }
.language-chip.is-filtered-out,
.language-chip[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---- Circled ⓘ info button (house pattern) ---- */
.dhx-lang-info-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(200, 150, 42, 0.65);
  background: rgba(11, 11, 15, 0.9);
  color: #e9c25a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  align-self: center;
}
.dhx-lang-info-btn:hover,
.dhx-lang-info-btn:focus-visible {
  background: rgba(200, 150, 42, 0.22);
  border-color: #e9c25a;
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(200, 150, 42, 0.25);
}

/* ---- Saved credits info popup (in-skin, not Bootstrap) ---- */
.dhx-lang-info-backdrop {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.dhx-lang-info-backdrop.is-open { display: flex; }
.dhx-lang-info-panel {
  position: relative;
  width: min(420px, 94vw);
  padding: 22px 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(200, 150, 42, 0.5);
  background:
    linear-gradient(180deg, rgba(18, 18, 24, 0.98), rgba(11, 11, 15, 0.99));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(233, 194, 90, 0.1),
    0 0 40px rgba(200, 150, 42, 0.14);
  color: #fff;
  font-family: "Helvetica Neue", Inter, Arial, "Segoe UI", sans-serif;
  text-align: center;
}
.dhx-lang-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  border: 1px solid rgba(200, 150, 42, 0.45);
  background: transparent;
  color: #e9c25a;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.dhx-lang-info-close:hover { background: rgba(200, 150, 42, 0.18); color: #fff; }
.dhx-lang-info-graphic {
  display: flex;
  justify-content: center;
  margin: 4px 0 12px;
}
.dhx-lang-info-panel h2 {
  margin: 0 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #e9c25a;
  letter-spacing: 0.02em;
}
.dhx-lang-info-lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
}
.dhx-lang-info-list {
  margin: 0 0 12px;
  padding: 0 0 0 1.1em;
  text-align: left;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}
.dhx-lang-info-list b { color: #e9c25a; }
.dhx-lang-info-foot {
  margin: 0 0 14px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.4;
}
.dhx-lang-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.dhx-lang-info-actions .btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #C8962A;
  background: #C8962A;
  color: #0B0B0F;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.dhx-lang-info-actions .btn:hover { background: #e9c25a; border-color: #e9c25a; }
.dhx-lang-info-actions .btn.ghost {
  background: transparent;
  color: #e9c25a;
}
.dhx-lang-info-actions .btn.ghost:hover {
  background: rgba(200, 150, 42, 0.15);
  color: #fff;
}

/* Setup window + new monthly credit (product lock 2026-09-24) */
.dhx-lang-credit-chips .chip.is-setup {
  border-color: rgba(201, 162, 39, 0.85);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), 0 0 18px rgba(201, 162, 39, 0.25);
  background: linear-gradient(160deg, rgba(201,162,39,0.18), rgba(12,14,18,0.9));
}
.dhx-lang-credit-chips .chip.is-setup .chip-k {
  color: #e8c56a;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dhx-lang-credit-chips .chip.is-new {
  animation: dhx-credit-pulse 1.6s ease-in-out 3;
  border-color: rgba(201, 162, 39, 0.95);
  box-shadow: 0 0 0 1px rgba(201,162,39,0.5), 0 0 22px rgba(201,162,39,0.45);
}
@keyframes dhx-credit-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(201,162,39,0.45), 0 0 12px rgba(201,162,39,0.25); }
  50% { box-shadow: 0 0 0 2px rgba(201,162,39,0.9), 0 0 28px rgba(201,162,39,0.65); }
}
.dhx-lang-credit-chips .chip-new {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1a1408;
  background: linear-gradient(90deg, #e8c56a, #c9a227);
  vertical-align: middle;
}
.dhx-lang-info-steps { margin: 0.6rem 0 0.4rem 1.1rem; padding: 0; }
.dhx-lang-info-steps li { margin: 0.35rem 0; }
.dhx-lang-info-foot { opacity: 0.8; font-size: 0.85rem; }
