/* PANOU ADMIN — aceeași temă: casete gri, culori doar pentru stări */
.ad-kpi { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.ad-kpi small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-kpi b { display: block; margin-top: 2px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-kpi em { display: block; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }
.ad-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface-raised); color: var(--text-soft); }
.ad-ico svg { width: 19px; height: 19px; }
.k-ok .ad-ico { color: #22c55e; } .k-wait .ad-ico { color: var(--text-soft); } .k-bad .ad-ico { color: #ef4444; }
.k-ok em { color: #22c55e; } .k-bad em { color: #ef4444; }

.ad-panel { padding: 16px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.ad-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-raised); }
.ad-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.ad-tabs button.on { background: var(--accent); color: var(--accent-contrast); }
.ad-tabs em { padding: 1px 7px; border-radius: 99px; background: rgb(127 127 127 / 18%); font-size: 11px; font-style: normal; }
.ad-search { display: flex; align-items: center; gap: 8px; width: min(340px, 100%); padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-raised); }
.ad-search svg { width: 17px; height: 17px; color: var(--muted); }
.ad-search input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; outline: none; }

.ad-head, .ad-row { display: grid; grid-template-columns: 2.1fr 1.3fr 2fr 1.4fr .7fr 1.1fr 240px; align-items: center; gap: 12px; }
.ad-head { padding: 8px 14px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ad-row { padding: 12px 14px; border-top: 1px solid var(--border); }
.ad-row.is-open { border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-raised); }
.ad-c { min-width: 0; }
.ad-user { display: flex; align-items: center; gap: 10px; }
.ad-av { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--border-strong); font-weight: 800; }
.ad-cell2 { display: flex; flex-direction: column; min-width: 0; }
.ad-cell2 b { overflow: hidden; font-size: 13.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ad-cell2 b i { color: var(--muted); font-style: normal; font-weight: 600; }
.ad-cell2 small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.ad-code { letter-spacing: .08em; }
.ad-lic { display: flex; align-items: center; gap: 10px; }
.ad-num b { font-size: 15px; }
.ad-dim { color: var(--muted); }
.ad-act { text-align: right; }
.ad-act .button { min-height: 34px; padding: 0 14px; font-size: 12.5px; }

.ad-badge { flex: 0 0 auto; padding: 4px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; border: 1px solid; }
.ad-active { border-color: rgb(34 197 94 / 55%); background: rgb(34 197 94 / 14%); color: #22c55e; }
.ad-pending { border-color: var(--border-strong); background: var(--surface-soft); color: var(--text-soft); }
.ad-expired { border-color: rgb(249 115 22 / 55%); background: rgb(249 115 22 / 14%); color: #f97316; }
.ad-invalid { border-color: rgb(239 68 68 / 60%); background: rgb(239 68 68 / 15%); color: #ef4444; }

.ad-edit { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1.6fr 1fr .7fr auto auto; align-items: end; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.ad-edit label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ad-edit label > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ad-edit select, .ad-edit input { height: 40px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; color-scheme: dark; }
:root[data-theme="light"] .ad-edit select, :root[data-theme="light"] .ad-edit input { color-scheme: light; }
.ad-seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.ad-seg button { flex: 1; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 750; cursor: pointer; }
.ad-seg .ad-s-valid.on { background: rgb(34 197 94 / 18%); color: #22c55e; }
.ad-seg .ad-s-neverificat.on { background: var(--surface-soft); color: var(--text); }
.ad-seg .ad-s-invalid.on { background: rgb(239 68 68 / 18%); color: #ef4444; }
.ad-quick { display: flex; gap: 4px; }
.ad-quick button { height: 40px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text-soft); font-size: 12.5px; font-weight: 750; cursor: pointer; }
@media (hover: hover) { .ad-quick button:hover { color: var(--text); } }
.ad-quick .ad-exp { border-color: rgb(251 146 60 / 55%); color: #fdba74; }
.ad-save { min-height: 40px; padding: 0 22px; }
.ad-empty, .ad-hint { margin: 14px 4px 2px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 1500px) {  }
@media (max-width: 1100px) {
  .ad-head { display: none; }
  .ad-row { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px; margin-top: 10px; border: 1px solid var(--border); border-radius: 14px; }
  .ad-user { grid-column: 1 / -1; }
  .ad-c[data-l]::before { content: attr(data-l); display: block; margin-bottom: 3px; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .ad-lic { flex-wrap: wrap; } .ad-lic::before { width: 100%; }
  .ad-act { grid-column: 1 / -1; } .ad-act .button { width: 100%; }
  .ad-edit { grid-template-columns: 1fr; }
  .ad-quick button { flex: 1; }
}
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) {  .ad-kpi { padding: 12px; } .ad-kpi b { font-size: 18px; } .ad-search { width: 100%; } .ad-panel { padding: 10px; } }
.side-admin .nav-item { width: 100%; }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) { .ad-kpi:last-child { grid-column: 1 / -1; } }

.ad-act { display: flex; justify-content: flex-end; gap: 6px; }
.ad-wait { align-self: flex-start; margin-top: 4px; }
.ad-req { align-self: flex-start; margin-top: 4px; border-color: rgb(56 189 248 / 55%); background: rgb(56 189 248 / 14%); color: #38bdf8; }
.ad-mtdel { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border: 1px solid rgb(239 68 68 / 45%); border-radius: 99px; background: none; color: #f87171; font-size: 10.5px; font-weight: 700; cursor: pointer; }
@media (hover: hover) { .ad-mtdel:hover { background: rgb(239 68 68 / 12%); } }

/* Blocare generală + butoane per utilizator */
.ad-lock { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 18px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); }
.ad-lock > div { flex: 1; min-width: 0; }
.ad-lock b { display: block; font-size: 15px; }
.ad-lock small { color: var(--muted); font-size: 12.5px; }
.ad-lock.on { border-color: rgb(248 113 113 / 50%); background: rgb(239 68 68 / 8%); box-shadow: 0 0 24px rgb(239 68 68 / 12%); }
.ad-danger { border-color: rgb(239 68 68 / 50%); background: rgb(239 68 68 / 10%); color: #f87171; }
.ad-act { flex-wrap: wrap; }
.ad-act .button { min-height: 32px; padding: 0 10px; font-size: 12px; }
@media (min-width: 1101px) { .ad-head, .ad-row { grid-template-columns: 2fr 1.2fr 1.9fr 1.3fr .6fr 1fr 300px; } }

/* Grupuri urmărite */
.ad-reg { margin-top: 16px; }
.ad-reg-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 4px 4px 12px; }
.ad-reg-h b { font-size: 15px; } .ad-reg-h small { color: var(--muted); font-size: 12.5px; }
.ad-rrow { display: grid; grid-template-columns: 2.4fr .9fr 1fr 1fr 1fr .7fr .8fr; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--border); font-size: 13px; }
.ad-rhead { border-top: 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ad-rrow a { color: #38bdf8; text-decoration: none; }
.ad-rrow .pos { color: #4ade80; } .ad-rrow .neg { color: #f87171; }
@media (max-width: 1100px) {
  .ad-rhead { display: none; }
  .ad-rrow { grid-template-columns: 1fr 1fr 1fr; margin-top: 8px; border: 1px solid var(--border); border-radius: 12px; }
  .ad-rrow > .ad-cell2 { grid-column: 1 / -1; }
  .ad-rrow > span[data-l]::before { content: attr(data-l); display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
}
/* Telefon: butoanele pe toată lățimea, una sub alta, fără să iasă din casetă */
@media (max-width: 1100px) {
  .ad-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ad-act .button { width: 100%; min-height: 38px; }
  .ad-row > .ad-c { min-width: 0; }
  .ad-lic { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ad-mtdel { margin-top: 6px; }
}

.ad-lock { flex-wrap: wrap; }
.ad-lock-msg { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; width: 100%; }
.ad-lock-msg > span { width: 100%; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.ad-lock-msg textarea { flex: 1; min-width: 220px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
.ad-reason { display: block; margin-top: 4px; color: #fca5a5; font-size: 11.5px; white-space: normal; }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) { .ad-lock-msg .button { width: 100%; } }
.ad-reg-h small { flex: 1; } .ad-xlsx { min-height: 38px; padding: 0 16px; text-decoration: none; }
.ad-reg-h .ad-reg-q { flex: 1 1 260px; max-width: 420px; }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) { .ad-xlsx { width: 100%; } }

/* V1.7 — liste cu scroll (aprox. 10 rânduri), utilizatori care se deschid la apăsare pe telefon, statistici licențe */
#ad-rows { max-height: 760px; overflow-y: auto; overscroll-behavior: contain; }
.ad-rtable { max-height: 640px; overflow-y: auto; overscroll-behavior: contain; }
.ad-sum { display: none; }
.ad-arrow { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); transition: transform .2s; }
.ad-ls { margin-bottom: 14px; }
.ad-ls summary { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 6px; font-size: 15px; cursor: pointer; list-style: none; }
.ad-ls summary::-webkit-details-marker { display: none; }
.ad-ls[open] summary .ad-arrow { transform: rotate(180deg); }
.ad-ls-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ad-ls-b { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
.ad-ls-b small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.ad-ls-b b { display: block; margin-top: 4px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-ls-b em { display: block; color: var(--muted); font-size: 10.5px; font-style: normal; }
.ad-ls-b.k-ok b { color: #4ade80; } .ad-ls-b.k-bad b { color: #f87171; }
@media (max-width: 1400px) { .ad-ls-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  #ad-rows { max-height: 700px; }
  .ad-sum { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .ad-sum .ad-cell2 { flex: 1; min-width: 0; }
  .ad-sum .ad-badge { font-size: 9.5px; padding: 3px 7px; }
  .ad-row { padding: 10px 12px; margin-top: 8px; }
  .ad-row:not(.exp) > :not(.ad-sum) { display: none; }
  .ad-row.exp .ad-arrow { transform: rotate(180deg); }
  .ad-row.exp > .ad-user { display: none; }
  .ad-ls-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ad-ls-b { padding: 10px; } .ad-ls-b b { font-size: 17px; }
}

.ad-ls-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1400px) { .ad-ls-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ad-ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ad-ls-b b { font-size: 16px; } }

/* „General”: rânduri 3 · 2 · 3 · 3 · 2 · 3, text centrat */
.ad-ls-grid.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.ad-ls-grid.g6 .k3 { grid-column: span 2; }
.ad-ls-grid.g6 .k2 { grid-column: span 3; }
.ad-ls-grid.g6 .k1 { grid-column: 1 / -1; }   /* vizitatori 24 h: rând întreg */
.ad-ls-b { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
/* Grupuri urmărite: textul sub titlu, pe toată lățimea */
.ad-reg-h { display: block; }
.ad-reg-h b { display: block; margin-bottom: 4px; }
.ad-reg-h small { display: block; margin-bottom: 10px; }
.ad-reg-h .ad-xlsx { display: inline-flex; }
.ad-reg-h .ad-reg-q { display: inline-flex; width: min(420px, 100%); margin-left: 10px; vertical-align: middle; }
@media (max-width: 600px) { .ad-reg-h .ad-reg-q { display: flex; width: 100%; margin: 10px 0 0; } }

.ad-br { margin-top: 16px; }
.ad-br summary { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 6px; font-size: 15px; cursor: pointer; list-style: none; }
.ad-br summary::-webkit-details-marker { display: none; }
.ad-br[open] summary .ad-arrow { transform: rotate(180deg); }
.ad-br-txt { display: block; margin: 8px 6px 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ad-br-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); cursor: pointer; }
.ad-br-row span { display: flex; flex-direction: column; }
.ad-br-row small { color: var(--muted); font-size: 11.5px; }
.ad-br-row.demo { border-top: 0; border-radius: 10px; background: var(--surface-raised); }
.ad-br { margin: 0 0 14px; }

/* Server (VPS): capacitate, spațiu, memorie, backup */
.ad-srv-h { margin: 16px 2px 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ad-srv-warn { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.ad-srv-warn.k-warn { border: 1px solid rgb(245 158 11 / 45%); background: rgb(245 158 11 / 10%); color: #fbbf24; }
.ad-srv-warn.k-bad { border: 1px solid rgb(239 68 68 / 45%); background: rgb(239 68 68 / 10%); color: #f87171; }
.ad-use { display: block; width: 80%; height: 6px; margin: 6px auto 2px; border-radius: 99px; background: rgb(255 255 255 / 8%); overflow: hidden; }
.ad-use > i { display: block; height: 100%; border-radius: 99px; background: #22c55e; }
.ad-use.k-warn > i { background: #f59e0b; } .ad-use.k-bad > i { background: #ef4444; }
:root[data-theme="light"] .ad-use { background: rgb(0 0 0 / 8%); }
.ad-ls-b.k-warn b { color: #fbbf24; }

/* rezultatele fiecărui utilizator, deasupra butoanelor */
.ad-res { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }   /* telefon: 3 sume sus, Tranzacții + Câștig % dedesubt */
.ad-res span:nth-child(-n+3) { grid-column: span 2; } .ad-res span:nth-child(n+4) { grid-column: span 3; }
.ad-res span { display: flex; flex-direction: column; align-items: center; padding: 7px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); text-align: center; }
.ad-res small { color: var(--muted); font-size: 10.5px; font-weight: 700; }
.ad-res b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ad-res b.pos { color: #4ade80; } .ad-res b.neg { color: #f87171; }
@media (min-width: 1101px) { .ad-res { grid-template-columns: repeat(5, minmax(0, 140px)); } .ad-res span:nth-child(n) { grid-column: auto; } }

/* Memorie server */
.mem-bar { display: flex; height: 12px; margin: 4px 6px 12px; overflow: hidden; border-radius: 99px; background: var(--surface-raised); }
.mem-bar i { display: block; height: 100%; }
.mem-leg { display: grid; gap: 6px; margin: 0 6px 6px; }
.mem-leg > div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mem-leg > div > i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 3px; }
.mem-leg span { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.mem-leg small { color: var(--muted); font-size: 11.5px; }
.mem-leg em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.mem-accs { display: grid; gap: 6px; margin: 0 6px 6px; }
.mem-acc { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px 70px; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.mem-acc > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.mem-acc > span:first-child small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.mem-n { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.mem-n small { color: var(--muted); font-size: 10.5px; font-weight: 700; } .mem-n b { font-size: 13px; }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) { .mem-acc { grid-template-columns: minmax(0, 1fr) auto; } .mem-n { align-items: flex-start; } }

.ad-refc { margin-top: 4px; border-color: var(--border-strong) !important; color: var(--text-soft) !important; }

/* Conturi utilizatori + Grupuri urmărite: casete care se deschid ca General / Brokeri */
.ad-fold { margin: 0 0 14px; }
.ad-fold summary { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 6px; font-size: 15px; cursor: pointer; list-style: none; }
.ad-fold summary::-webkit-details-marker { display: none; }
.ad-fold summary b { flex: 1; }
.ad-fold[open] summary { margin-bottom: 12px; }
.ad-fold[open] summary .ad-arrow { transform: rotate(180deg); }
.ad-sum-n { color: var(--muted); font-size: 13px; font-weight: 700; }
.ad-sum-n em { color: #38bdf8; font-style: normal; }

/* Blocare generală: casetă care se deschide (titlul și funcția rămân) */
.ad-lockbox .ad-lock { margin: 0; padding: 4px 4px 0; border: 0; background: none; box-shadow: none; }
.ad-lockbox.on { border-color: rgb(239 68 68 / 55%); }
.ad-lockbox summary .ad-badge { margin-left: auto; }

/* Feedback de la clienți */
.ad-fb-list { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; }
.ad-fb-row { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
.ad-fb-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ad-fb-h time { margin-left: auto; color: var(--muted); font-size: 12px; }
.ad-fb-r { color: #facc15; font-size: 13px; letter-spacing: 1px; }
.ad-fb-row p { margin: 0 0 4px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.ad-fb-row small { color: var(--muted); font-size: 12px; } .ad-fb-row a { color: #38bdf8; text-decoration: none; }

/* Brokeri: căutare + max 10 rânduri vizibile, restul cu derulare; eticheta LIVE / DEMO */
.ad-br-q { display: block; width: calc(100% - 12px); margin: 0 6px 8px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-raised); color: var(--text); font: inherit; font-size: 14px; }
.ad-br-list { max-height: calc(10 * 57px); overflow-y: auto; overscroll-behavior: contain; }
.ad-br-row[hidden] { display: none; }
.ad-br-k { margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.ad-br-k.live { background: rgb(34 197 94 / 15%); color: #4ade80; }
.ad-br-k.demo { background: rgb(148 163 184 / 15%); color: var(--muted); }
/* Feedback: 5 rânduri vizibile (înălțimea se pune din JS), restul cu derulare */
.ad-fb-list { overscroll-behavior: contain; }

/* Mai multe servere MT5: câte un rând pe server */
.ad-srvs { display: grid; gap: 6px; margin: 10px 0 4px; }
.ad-srvr { display: grid; grid-template-columns: 110px auto minmax(60px, 1fr); align-items: center; gap: 4px 12px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); font-size: 13px; }
.ad-srvr b small { color: var(--muted); font-size: 10.5px; font-weight: 700; }
.ad-srvr > small { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; }
.ad-srvr.k-bad > span { color: #f87171; font-weight: 700; }

/* Viteză pe server */
.ad-sp { display: grid; gap: 4px; margin: 0 6px 8px; overflow-x: auto; }
.ad-sp-r { display: grid; grid-template-columns: 60px 1.2fr repeat(4, 1fr); gap: 8px; align-items: center; min-width: 520px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-raised); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ad-sp-h { border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ad-sp-r em { font-style: normal; }

/* Brokeri: săgeata de lângă comutator deschide clienții (nume, @username, telefon, MT5) */
.ad-br-item[hidden] { display: none; }
.ad-br-item .ad-br-row { cursor: default; }
.ad-br-item .ad-br-row > span:first-child { flex: 1; }
.ad-br-x { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border: 1px solid var(--border); border-radius: 9px;
  background: none; color: var(--muted); cursor: pointer; }
span.ad-br-x { border-color: transparent; cursor: default; }
.ad-br-x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.ad-br-x[aria-expanded="true"] svg { transform: rotate(180deg); }
.ad-br-us { display: grid; gap: 6px; padding: 0 12px 12px; }
.ad-br-u { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr); gap: 2px 12px; align-items: center; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); font-size: 13px; }
.ad-br-u a { color: #38bdf8; font-weight: 700; text-decoration: none; }
.ad-br-u .muted, .ad-br-u small { color: var(--muted); }
.ad-br-u small { grid-column: 1 / -1; font-size: 11.5px; }
@media (max-width: 560px) { .ad-br-u { grid-template-columns: 1fr 1fr; } .ad-br-u > b { grid-column: 1 / -1; } }

/* Bifa „Verificat la broker” pe fiecare client (afiliere manuală) */
.ad-br-u { grid-template-columns: minmax(90px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr) auto; }
.ad-br-u > b { grid-column: 1 / 4; }
.ad-ib { grid-column: 4; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ad-ib span { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .ad-br-u { grid-template-columns: 1fr 1fr auto; } .ad-br-u > b { grid-column: 1 / 3; } .ad-ib { grid-column: 3; } }
.ad-br-row small span { display: inline; }

/* V2.1.33: PREȚURI LICENȚE */
.ad-pr-txt { display: block; margin: 2px 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ad-pr-grid { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(110px, 160px) minmax(110px, 160px); gap: 8px 12px; align-items: center; }
.ad-pr-grid > span { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ad-pr-row { display: contents; }
.ad-pr-row b { font-size: 14px; }
.ad-pr-in { display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--muted); font-weight: 700; }
.ad-pr-in input { width: 100%; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; outline: none; }
.ad-pr-in:focus-within { border-color: #22c55e; }
.ad-pr-save { margin-top: 14px; }
@media (max-width: 520px) { .ad-pr-grid { grid-template-columns: 1fr 1fr; } .ad-pr-row b { grid-column: 1 / -1; margin-top: 6px; } .ad-pr-grid > span:first-child { display: none; } .ad-pr-save { width: 100%; } }

/* V2.7.8: casetele-grup („Grupuri și prețuri”, „Notificări, feedback și brokeri”) — casetele vechi stau înăuntru */
.ad-group > .ad-group-in { display: grid; gap: 10px; padding-top: 12px; }
.ad-group > .ad-group-in > .ad-panel, .ad-group > .ad-group-in > div > .ad-panel { margin: 0; }
.ad-group > .ad-group-in > div:empty { display: none; }

/* V3.0.0: clientul cu 2 conturi MT5 */
.ad-res-note { grid-column: 1 / -1; margin: 2px 0 -2px; color: var(--muted); font-size: 11px; font-weight: 700; }
/* V3.0.0: client cu 2 conturi → MT5 1 + statisticile lui, apoi MT5 2 + statisticile lui */
.ad-acc { grid-column: 1 / -1; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ad-acc-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-acc-h > b { padding: 2px 8px; border-radius: 8px; background: #1a73f0; color: #fff; font-size: 12px; font-weight: 900; }
.ad-acc-h .ad-cell2 { flex: 1; min-width: 0; }
.ad-acc .ad-res { margin: 0; }
