/* ===== Resellers Directory (compact + pro) ===== */

.resellerDir {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  backdrop-filter: blur(10px);
}

.resellerDir__head{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:14px;
}

.resellerDir__title{ font-size: 18px; margin: 0 0 6px 0; }
.resellerDir__sub{ margin:0; opacity:.72; font-size: 13px; }
.resellerCount{ margin-top: 8px; font-size: 12px; opacity: .65; }

.resellerDir__controls{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;
}

.input{
  background: rgba(10, 14, 22, .55);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: .2s ease;
  min-width: 280px;
}

.input::placeholder{ color: rgba(255,255,255,.45); }
.input:focus{
  border-color: rgba(110,168,255,.55);
  box-shadow: 0 0 0 4px rgba(110,168,255,.12);
}

/* Table */
.rtableWrap{
  overflow:auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
}

.rtable{
  width:100%;
  border-collapse: collapse;
  background: rgba(10, 14, 22, .35);
}

.rtable thead th{
  text-align:left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rtable tbody td{
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: top;
}

.rtable tbody tr:hover{ background: rgba(255,255,255,.03); }

.sellerRow{ display:flex; gap:10px; align-items:center; flex-wrap: wrap; }
.sellerName{ font-weight: 700; }
.sellerMeta{ margin-top:4px; font-size: 12px; opacity: .65; }

.badge{
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.badge--ok{
  border-color: rgba(82, 255, 173, .28);
  background: rgba(82, 255, 173, .08);
}

.mchip{
  display:inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size: 11px;
  margin: 4px 6px 0 0;
  opacity: .85;
}

.cbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.9);
  text-decoration:none;
  font-size: 12px;
  margin-right: 8px;
  transition: .2s ease;
}
.cbtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.cbtn--wa{
  border-color: rgba(72, 255, 160, .22);
  background: rgba(72, 255, 160, .06);
}
.cbtn--tg{
  border-color: rgba(110,168,255,.25);
  background: rgba(110,168,255,.07);
}

/* ===== Custom Country Picker (PRO) ===== */
.countryPicker{ position: relative; }

.cpBtn{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10, 14, 22, .55);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  min-width: 240px;
  transition: .2s ease;
}
.cpBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.cpLabel{
  font-size: 11px; opacity: .7;
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.cpValue{
  font-size: 13px; font-weight: 700;
  flex: 1; text-align: left;
}
.cpChevron{ opacity: .75; transition: transform .2s ease; }
.countryPicker.open .cpChevron{ transform: rotate(180deg); }

.cpPanel{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, 92vw);
  max-height: 420px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12, 16, 26, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  transform: translateY(-6px);
  opacity: 0;
  pointer-events:none;
  transition: .18s ease;
  z-index: 999;
}

.countryPicker.open .cpPanel{
  transform: translateY(0);
  opacity: 1;
  pointer-events:auto;
}

.cpSearch{ padding: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cpSearchInput{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  outline:none;
}

.cpList{
  max-height: 360px;
  overflow:auto;
  padding: 10px;
}

.cpGroup{
  padding: 10px 8px 6px;
  font-size: 11px;
  opacity: .65;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.cpItem{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor:pointer;
  color: rgba(255,255,255,.88);
  transition: .15s ease;
}
.cpItem:hover{ background: rgba(255,255,255,.06); }

.cpItemActive{
  background: rgba(110,168,255,.14);
  border: 1px solid rgba(110,168,255,.26);
}

.cpTag{
  font-size: 11px;
  opacity: .7;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

/* Responsive */
@media (max-width: 900px){
  .resellerDir__head{ flex-direction: column; align-items: stretch; }
  .input{ min-width: 100%; }
  .cpBtn{ width: 100%; min-width: unset; }
  .cpPanel{ left: 0; right: 0; width: 100%; }
}
