/* CTX – Contact Cards only (isolated) */
.ctx, .ctx *{ box-sizing:border-box; }

/* Full width breakout (TagDiv safe) */
.ctx-full{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}

.ctx{
  --bg:     var(--td_body_bg, var(--td_background_color, #0B1220));
  --text:   var(--td_text_color, #F9FAFB);
  --muted:  var(--td_text_color_secondary, rgba(249,250,251,.72));
  --accent: var(--td_theme_color, var(--td_theme_color_main, #0A7674));
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.06);

  background: var(--bg);
  color: var(--text);
  padding: 46px 0 64px;
  font-family: Cairo, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

.ctx-container{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}

/* Hide TOC inside this section only */
.ctx .td_toc_wrap,
.ctx .td-toc-wrap,
.ctx .tdb_toc,
.ctx .tdb_toc_wrap,
.ctx .tdb-toc,
.ctx .tdb-toc-wrap,
.ctx .ez-toc-container,
.ctx nav.toc,
.ctx .toc_container,
.ctx #toc_container{
  display:none !important;
}

.ctx-secHead{
  text-align:center;
  margin:0 0 16px;
}
.ctx-h2{
  margin:0 0 8px;
  color:#fff;
  font-size: 28px;
  font-weight: 1000;
  line-height: 1.2;
}
.ctx-sub{
  margin:0 auto;
  max-width: 860px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 2;
}

/* Cards grid */
.ctx-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.ctx-card{
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  padding: 18px;
  overflow:hidden;
  position:relative;
  direction: rtl;
  text-align: right;
  display:flex;
  flex-direction: column;
  min-height: 320px;
}

.ctx-card__top{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom: 12px;
  flex-direction: row-reverse;
}

.ctx-ico{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.14);
  flex: 0 0 48px;
  color: rgba(249,250,251,.95);
}
.ctx-ico svg{ width: 24px; height: 24px; fill: rgba(249,250,251,.95); display:block; }
.ctx-ico i{ font-size: 22px; line-height: 1; display:block; }
.ctx-ico__dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(10,118,116,.18);
}

.ctx-card__head{ flex:1 1 auto; min-width:0; }
.ctx-card__h{
  margin:0 0 6px;
  color:#fff;
  font-weight: 1000;
  font-size: 15.5px;
  line-height: 1.4;
}
.ctx-card__p{
  margin:0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.9;
}

/* Data pill */
.ctx-card__data{
  margin: 14px 0 10px;
  display:grid;
  gap: 10px;
  flex: 1 1 auto;
}

.ctx-pill{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.02);
  display:grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 10px;
}

.ctx-pill__k{
  color: rgba(249,250,251,.88);
  font-weight: 1000;
  font-size: 13px;
  white-space:nowrap;
}
.ctx-pill__v{
  color: rgba(249,250,251,.92);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.8;
  word-break: break-word;
  opacity:.95;
}

/* Buttons */
.ctx-card__actions{
  display:grid;
  gap: 10px;
  margin-top: auto;
}

.ctx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
  min-width: 170px;
  position:relative;
  cursor:pointer;
  background: transparent;
  color: rgba(249,250,251,.92);
}
.ctx-btn--primary{
  background: var(--accent);
  color:#fff !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.ctx-btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.16);
  color: rgba(249,250,251,.92);
}
.ctx-btn--fluid{ width:100%; min-width:0; }
.ctx-btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.ctx-btn:active{ transform: translateY(0); }

/* Toast */
.ctx-toast{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99999;
  background: rgba(15,23,42,.92);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(249,250,251,.92);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  font-weight: 950;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events:none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ctx-toast.is-on{ opacity:1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px){
  .ctx-grid{ grid-template-columns: 1fr; }
  .ctx-btn{ min-width: 0; }
}

@media (max-width: 560px){
  .ctx{ padding: 36px 0 56px; }
  .ctx-btn{ width:100%; min-width:0; }
  .ctx-pill{ grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce){
  .ctx-btn, .ctx-toast{ transition:none !important; }
}

