*,*::before,*::after{box-sizing:border-box}

.alhfb-footer{
  background: var(--alhfb-bg);
  color: var(--alhfb-text);
  border-top: 1px solid var(--alhfb-border);
  padding: 26px 0 0;
  direction: rtl;
}
.alhfb-inner{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.alhfb-columns{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 18px;
}
.alhfb-col{
  border: 1px solid var(--alhfb-border);
  border-radius: 14px;
  padding: 14px 14px 10px;
  background: rgba(255,255,255,0.02);
}
.alhfb-col-title{
  margin: 0 0 10px 0;
  color: var(--alhfb-title);
  font-size: 16px;
  line-height: 1.2;
}
.alhfb-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display:flex;
  flex-direction:column;
  gap: 4px;
}
.alhfb-link-item{margin:0;padding:0}
.alhfb-a{
  color: var(--alhfb-text);
  text-decoration: none;
  display:block;
  padding: 6px 8px;
  border-radius: 10px;
}
.alhfb-a:hover{
  background: rgba(124, 58, 237, 0.12);
  color: var(--alhfb-title);
}

/* DOT aligned in ONE column on the right, text after it */
.alhfb-row{
  display:grid;
  grid-template-columns: 12px 1fr;
  align-items:center;
  column-gap: 10px;
}
.alhfb-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alhfb-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--alhfb-icon);
  display:block;
  box-shadow: 0 0 0 3px rgba(167,139,250,0.12);
  justify-self: start; /* in RTL = right */
}

.alhfb-payments{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  padding: 8px 0 18px;
  border-top: 1px solid var(--alhfb-border);
  margin-top: 6px;
}
.alhfb-pay{
  display:flex;
  align-items:center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--alhfb-pay-border);
  border-radius: 12px;
  background: var(--alhfb-pay-bg);
}
.alhfb-pay-img{
  max-width:42px !important;
  max-height:24px !important;
  width: 42px;
  height: 24px;
  object-fit: contain;
  display:block;
}
.alhfb-pay-num{
  font-size: 13px;
  color: var(--alhfb-title);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--alhfb-border);
  background: rgba(124, 58, 237, 0.12);
}
.alhfb-rights{
  border-top: 1px solid var(--alhfb-border);
  padding: 12px 0;
  margin-top: 8px;
}
.alhfb-rights-inner{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  font-size: 13px;
  opacity: .9;
}
.alhfb-align-right .alhfb-rights-inner{ text-align:right; }
.alhfb-align-center .alhfb-rights-inner{ text-align:center; }
.alhfb-align-left .alhfb-rights-inner{ text-align:left; direction:ltr; }

.alhfb-pay-align-right{justify-content:flex-start}
.alhfb-pay-align-center{justify-content:center}
.alhfb-pay-align-left{justify-content:flex-end}


/* Keep dot column aligned even for non-link items (number/text) */
.alhfb-link-item > .alhfb-row{padding:6px 8px;border-radius:10px}
.alhfb-a{padding:0}
.alhfb-a:hover{background:transparent}
.alhfb-a:hover .alhfb-row{background: rgba(124, 58, 237, 0.12);}
