/* Mocker Admin — birleşik veri panelleri (üye, market, şikayet, affiliate, IP, sohbet) */

.admin-data-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.admin-data-page__head {
  padding: 0 0 0.25rem;
}

.admin-data-page__title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-data-page__lead {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--admin-muted);
  line-height: 1.45;
}

.admin-data-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-panel-shadow);
}

.admin-data-toolbar__main {
  flex: 1 1 16rem;
  min-width: 0;
}

.admin-data-toolbar__field {
  position: relative;
  margin-top: 0.35rem;
}

.admin-data-toolbar__field .admin-input {
  width: 100%;
  padding-right: 2.5rem;
}

.admin-data-search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem;
}

.admin-data-toolbar__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.admin-data-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--admin-muted);
  white-space: nowrap;
}

.admin-data-count strong {
  color: var(--admin-text);
  font-variant-numeric: tabular-nums;
}

.admin-data-panel {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  overflow: hidden;
  box-shadow: var(--admin-panel-shadow);
}

.admin-data-table-wrap {
  border: none;
  border-radius: 0;
  max-height: min(62vh, 680px);
  overflow: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.admin-data-table .admin-data-th,
.admin-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--admin-faint);
  background: var(--admin-table-head-bg);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-data-table tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
  color: var(--admin-text);
}

.admin-data-table tbody tr:nth-child(even) {
  background: var(--admin-table-stripe);
}

.admin-data-table tbody tr:hover {
  background: var(--admin-table-hover);
}

.admin-data-table .admin-data-td--mono {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.75rem;
  color: var(--admin-muted);
}

.admin-data-table .admin-data-td--user {
  font-weight: 600;
  color: var(--admin-text);
}

.admin-data-table .admin-data-td--muted {
  color: var(--admin-muted);
  font-size: 0.75rem;
}

.admin-data-table .admin-data-td--coin {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--admin-coin-text);
}

.admin-data-table .admin-data-td--msg {
  max-width: 28rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--admin-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-data-table .admin-data-td--actions {
  text-align: right;
  white-space: nowrap;
}

.admin-data-empty-row td {
  padding: 2.5rem 1rem !important;
  text-align: center;
  color: var(--admin-muted);
  font-size: 0.875rem;
}


/* Rozetler */
.admin-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.admin-badge--pending {
  background: var(--admin-badge-pending-bg);
  color: var(--admin-badge-pending-text);
  border: 1px solid var(--admin-badge-pending-border);
}

.admin-badge--approved,
.admin-badge--active {
  background: var(--admin-badge-ok-bg);
  color: var(--admin-badge-ok-text);
  border: 1px solid var(--admin-badge-ok-border);
}

.admin-badge--rejected,
.admin-badge--inactive {
  background: var(--admin-badge-err-bg);
  color: var(--admin-badge-err-text);
  border: 1px solid var(--admin-badge-err-border);
}

.admin-badge--info {
  background: var(--admin-badge-info-bg);
  color: var(--admin-badge-info-text);
  border: 1px solid var(--admin-badge-info-border);
}

.admin-badge--violet {
  background: var(--admin-badge-violet-bg);
  color: var(--admin-badge-violet-text);
  border: 1px solid var(--admin-badge-violet-border);
}

.admin-badge--warn {
  background: var(--admin-badge-pending-bg);
  color: var(--admin-badge-pending-text);
  border: 1px solid var(--admin-badge-pending-border);
}

.admin-badge--mod {
  background: var(--admin-badge-pending-bg);
  color: var(--admin-badge-pending-text);
  border: 1px solid var(--admin-badge-pending-border);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* İşlem butonları */
.admin-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.admin-action-btn {
  appearance: none;
  cursor: pointer;
  border-radius: var(--admin-radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s;
}

.admin-action-btn--approve {
  border: 1px solid var(--admin-action-approve-border);
  background: var(--admin-action-approve-bg);
  color: var(--admin-action-approve-text);
}

.admin-action-btn--approve:hover {
  background: var(--admin-action-approve-hover);
}

.admin-action-btn--reject {
  border: 1px solid var(--admin-action-reject-border);
  background: var(--admin-action-reject-bg);
  color: var(--admin-action-reject-text);
}

.admin-action-btn--reject:hover {
  background: var(--admin-action-reject-hover);
}

.admin-action-btn--toggle-on {
  border: 1px solid var(--admin-action-approve-border);
  background: var(--admin-action-approve-bg);
  color: var(--admin-action-approve-text);
}

.admin-action-btn--toggle-off {
  border: 1px solid var(--admin-action-reject-border);
  background: var(--admin-action-reject-bg);
  color: var(--admin-action-reject-text);
}


/* IP çakışması kartları */
.admin-ip-card {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  overflow: hidden;
  box-shadow: var(--admin-panel-shadow);
}

.admin-ip-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
}

.admin-ip-card__label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-ip-card__ip {
  margin: 0.2rem 0 0;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-ip-grid {
  display: grid;
  gap: 1rem;
}


/* Sohbet — özgün admin-chat stilleri admin.css içinde (admin-glass düzeni) */

.admin-members-page-head {
  margin-bottom: 1rem;
}

.admin-members-page {
  max-width: none !important;
}

.admin-members-toolbar {
  box-shadow: var(--admin-panel-shadow) !important;
  margin-bottom: 1rem;
}

.admin-members-hint {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
  font-size: 0.75rem;
  color: var(--admin-muted);
  line-height: 1.45;
}

.admin-members-table-wrap {
  max-height: min(62vh, 720px);
}

.admin-empty--warn {
  background: var(--admin-warning-bg) !important;
  color: var(--admin-warning-text) !important;
  border-color: var(--admin-warning-border) !important;
}


/* Eski sınıflar → yeni tablo */
.admin-table-wrap:not(.admin-members-table-wrap) > table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--admin-faint) !important;
  background: var(--admin-table-head-bg) !important;
  padding: 0.65rem 0.75rem;
}

.admin-table-wrap:not(.admin-members-table-wrap) > table tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-search-panel {
  box-shadow: var(--admin-panel-shadow);
}


/* ————————————————————————————————————————————
   Telegram yayın paneli (admin > Telegram yayın)
   ———————————————————————————————————————————— */

.admin-tg-bc-wrap {
  width: 100%;
  max-width: 960px;
}

.admin-tg-bc-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .admin-tg-bc-stats {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.admin-tg-bc-stats__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-tg-bc-stats__value {
  margin: 0.25rem 0 0;
  font-size: 1.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--admin-text);
  font-family: var(--admin-font-display);
}

.admin-tg-bc-stats__hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--admin-muted);
  line-height: 1.45;
  max-width: 32rem;
}

.admin-tg-bc-stats__cell--right {
  text-align: right;
}

@media (max-width: 639px) {
  .admin-tg-bc-stats__cell--right {
    text-align: left;
  }
}

.admin-tg-bc-warn,
.admin-tg-bc-info {
  padding: 0.85rem 1rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-tg-bc-warn {
  border: 1px solid rgba(255, 30, 30, 0.32);
  background: rgba(254, 226, 226, 0.6);
  color: #e01a1a;
}

.admin-tg-bc-info {
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: rgba(254, 243, 199, 0.6);
  color: #92400e;
}

.admin-tg-bc-warn code,
.admin-tg-bc-info code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85em;
  padding: 0.05rem 0.3rem;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 3px;
}

.admin-tg-bc-form {
  padding: 0;
  overflow: hidden;
}

.admin-tg-bc-form__head {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  background: linear-gradient(180deg, var(--admin-surface) 0%, var(--admin-surface-elevated) 100%);
}

.admin-tg-bc-form__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--admin-muted);
  line-height: 1.45;
}

.admin-tg-bc-form__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admin-tg-bc-counter {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--admin-faint);
  font-variant-numeric: tabular-nums;
}

.admin-tg-bc-counter--over {
  color: #ff1e1e;
}

.admin-tg-bc-image {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 1rem 1.15rem 1.15rem;
  background: var(--admin-surface-elevated);
  margin: 0;
}

.admin-tg-bc-image legend {
  padding: 0 0.4rem;
  margin-left: -0.4rem;
}

.admin-tg-bc-image__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 0.6rem;
}

@media (min-width: 720px) {
  .admin-tg-bc-image__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-tg-bc-image__preview {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.admin-tg-bc-image__preview img {
  display: block;
  max-width: 100%;
  max-height: 16rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  object-fit: contain;
}

.admin-tg-bc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.admin-tg-bc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: var(--admin-text);
  cursor: pointer;
  user-select: none;
}

.admin-tg-bc-toggle code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85em;
  padding: 0.05rem 0.3rem;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 3px;
}

.admin-tg-bc-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 1.15rem 1.5rem;
  background: var(--admin-surface-elevated);
  border-top: 1px solid var(--admin-border);
}

.admin-tg-bc-result {
  margin: 0 1.5rem 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.admin-tg-bc-result--ok {
  border: 1px solid rgba(5, 150, 105, 0.3);
  background: rgba(209, 250, 229, 0.55);
  color: #047857;
}

.admin-tg-bc-result--mixed {
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(254, 243, 199, 0.55);
  color: #92400e;
}

.admin-tg-bc-result__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.admin-tg-bc-result__line {
  margin: 0.2rem 0 0;
  font-weight: 500;
}

.admin-tg-bc-result__line strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-tg-bc-result__err {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.75rem;
  color: var(--admin-text);
}

.admin-label--xs {
  font-size: 0.6875rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--admin-faint) !important;
}

