/* ================================================================ ÖDÜLLER */
.rsh-ico-reward { color: #ffc56d; background: rgba(255, 197, 109, .1); border-color: rgba(255, 197, 109, .24); }

.reward-card { display: flex; flex-direction: column; }
.reward-card--off { opacity: .62; }
.reward-card .reward-desc {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
}

/* ── ödül kartı: ad altı mini etiketler (kriter türü + durum) ── */
.reward-card .rwd-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.reward-card .rwd-tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
}
.reward-card .rwd-tag--metric {
  color: color-mix(in srgb, var(--rc, #ffc56d) 85%, #fff);
  background: color-mix(in srgb, var(--rc, #ffc56d) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc, #ffc56d) 38%, transparent);
}
.reward-card .rwd-tag--on { color: var(--green); background: rgba(126, 226, 160, .12); border: 1px solid rgba(126, 226, 160, .3); }
.reward-card .rwd-tag--off { color: var(--dim); background: rgba(255, 255, 255, .04); border: 1px solid var(--border-soft); }

/* ── ödül kartı: net, etiketli bilgi ızgarası (eski dağınık çipler yerine) ── */
.reward-card .rwd-info {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 14px 0 12px;
}
.reward-card .rwd-info-cell {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  background: rgba(20, 10, 12, .4); border: 1px solid var(--border-soft);
  border-radius: 11px; padding: 8px 10px;
}
.reward-card .rwd-info-lbl {
  font-size: 8.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--dim);
}
.reward-card .rwd-info-val {
  font-size: 13px; font-weight: 800; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reward-chip-metric {
  color: color-mix(in srgb, var(--rc, #ffc56d) 80%, #fff) !important;
  border-color: color-mix(in srgb, var(--rc, #ffc56d) 40%, transparent) !important;
  background: color-mix(in srgb, var(--rc, #ffc56d) 12%, transparent) !important;
}
.reward-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.reward-toggle { display: flex; align-items: center; gap: 9px; }
.reward-toggle span { font-size: 12.5px; font-weight: 700; color: var(--text); }
.reward-actions .btn { margin-left: auto; }

.reward-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 54px 20px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
}
.reward-empty-ico {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  color: #ffc56d;
  background: rgba(255, 197, 109, .1);
  border: 1px solid rgba(255, 197, 109, .22);
  margin-bottom: 4px;
}
.reward-empty-ico svg { width: 26px; height: 26px; }
.reward-empty b { font-size: 15px; }
.reward-empty span { color: var(--dim); font-size: 12.5px; max-width: 360px; line-height: 1.55; }

/* ── Ödül oluştur/düzenle modalı ── */
.rw-modal { display: flex; flex-direction: column; gap: 0; }
.rw-modal-head { margin-bottom: 18px; }
.rw-modal-head h3 { margin-bottom: 6px; font-size: 17px; }
.rw-modal-head p { margin-bottom: 0; font-size: 12.5px; line-height: 1.55; }
.rw-modal-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffc56d;
}
.rw-modal-section {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.rw-modal-section:first-of-type { border-top: none; padding-top: 0; }
.rw-modal-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.rw-modal-section--foot { padding-bottom: 4px; }
.rw-modal-actions { margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }

.rw-label {
  display: block;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.rw-label-note {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dim);
  opacity: .85;
}
.rw-field { margin-bottom: 12px !important; }
.rw-field:last-child { margin-bottom: 0 !important; }
/* [INPUT] Kendi kendine yeten stil — sayfa içinde (booster config kartı)
 * ve modal içinde tutarlı görünür. Modal dışında `.modal input` devralınmadığı
 * için renk/kenarlık/padding burada açıkça verilir (aksi halde yazı siyah kalır). */
.rw-input {
  width: 100%;
  margin: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border, rgba(255, 255, 255, .12));
  color: var(--text, #f3ede9);
  padding: 12px 14px;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.rw-input::placeholder { color: rgba(255, 255, 255, .3); }
.rw-input:focus {
  border-color: var(--ember, #d63b36);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember, #d63b36) 16%, transparent);
}
.rw-input:hover:not(:focus) { border-color: rgba(255, 255, 255, .2); }

/* [NUMBER] Native yukarı/aşağı okları kaldırılır — uygulamanın geri kalanıyla
   tutarlı, temiz görünüm (diğer stepper'lar da native okları gizler). */
.rw-input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
.rw-input[type='number']::-webkit-outer-spin-button,
.rw-input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* [SELECT] Native OS oku/menüsü yerine modalla uyumlu koyu dropdown.
 * appearance:none ile sistem oku kaldırılır, SVG chevron eklenir. Açılan
 * option listesi Chromium/Electron'da koyu zemin alır (mavi native vurgu gider). */
select.rw-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d2bcb6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px;
}
select.rw-input:focus {
  /* shorthand `background` (rw-input:focus) repeat'i sıfırladığı için burada
     ok görselinin konum/tekrar/boyutu yeniden verilir → ok tekrarlanmaz. */
  background-color: rgba(255, 255, 255, .06);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff8a85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px;
}

/* [CUSTOM DROPDOWN] native <select> gizlenir; modern tetik + menü kullanılır.
   (ui.js enhanceSelects tarafından üretilir.) */
.cdd { position: relative; width: 100%; }
.cdd-native { display: none !important; }
.cdd-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; cursor: pointer;
}
.cdd-trigger .cdd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-trigger .cdd-arrow {
  width: 15px; height: 15px; flex: none; color: var(--muted, #d2bcb6);
  transition: transform .18s ease, color .18s ease;
}
.cdd-trigger.open { border-color: var(--ember, #d63b36); background: rgba(255, 255, 255, .06); }
.cdd-trigger.open .cdd-arrow { transform: rotate(180deg); color: #ff8a85; }
.cdd-trigger[disabled] { opacity: .5; cursor: not-allowed; }

.cdd-menu {
  position: fixed; z-index: 2000;
  background: #1b0f11;
  border: 1px solid var(--border, rgba(214, 59, 54, .18));
  border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3);
  max-height: 280px; overflow-y: auto;
  animation: cddpop .14s ease;
}
@keyframes cddpop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.cdd-opt {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--text, #f3ede9); font: inherit; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .13s ease, color .13s ease;
}
.cdd-opt:hover { background: rgba(255, 255, 255, .06); }
.cdd-opt.sel {
  background: color-mix(in srgb, var(--ember, #d63b36) 26%, transparent);
  color: #fff; font-weight: 600;
}
.cdd-opt.disabled { opacity: .4; cursor: not-allowed; }

.rw-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rw-metric {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.rw-metric:hover {
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .35);
}
.rw-metric.sel {
  border-color: color-mix(in srgb, #ffc56d 55%, transparent);
  background: color-mix(in srgb, #ffc56d 10%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, #ffc56d 18%, transparent);
}
.rw-metric-ico {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center;
  color: #ffc56d; background: rgba(255, 197, 109, .12);
  border: 1px solid rgba(255, 197, 109, .18);
}
.rw-metric-ico svg { width: 18px; height: 18px; }
.rw-metric-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rw-metric-copy b { font-size: 13px; line-height: 1.2; }
.rw-metric-copy span { font-size: 11px; color: var(--dim); line-height: 1.35; }

/* Özel stepper — tarayıcı number okları yok */
.rw-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: stretch;
  gap: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.rw-stepper:focus-within {
  border-color: color-mix(in srgb, var(--ember, #d63b36) 55%, transparent);
  box-shadow: 0 0 0 3px rgba(214, 59, 54, .12);
}
.rw-stepper--compact { max-width: 200px; }
.rw-step-btn {
  display: grid; place-items: center;
  border: none; background: rgba(255, 255, 255, .03);
  color: var(--text);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.rw-step-btn:hover { background: rgba(255, 255, 255, .08); color: #ffc56d; }
.rw-step-btn:active { background: rgba(255, 197, 109, .14); }
.rw-step-btn svg { width: 16px; height: 16px; display: block; }
.rw-step-core {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  border-right: 1px solid rgba(255, 255, 255, .08);
  min-height: 46px;
}
.rw-step-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.rw-step-input:focus { outline: none; box-shadow: none !important; }
.rw-step-input::-webkit-outer-spin-button,
.rw-step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rw-step-unit {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}

.rw-hint { display: block; margin-top: 8px; font-size: 11.5px; color: var(--dim); line-height: 1.5; }
.rw-look-row { margin-top: 2px; }

.rw-foot-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
}
.rw-foot-grid--single { grid-template-columns: 1fr; max-width: 280px; }
.rw-icon-picker {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
}
.rw-icon-picker .icon-grid { margin-top: 8px; }
.rw-foot-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
}
.reward-toggle--modal { align-items: center; gap: 12px; }
.reward-toggle--modal > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.reward-toggle--modal > div:last-child b { font-size: 13px; }
.reward-toggle--modal > div:last-child span { font-size: 11.5px; color: var(--dim); font-weight: 600; }

@media (max-width: 620px) {
  .rw-foot-grid { grid-template-columns: 1fr; }
  .rw-metric-grid { grid-template-columns: 1fr; }
}

/* ── Üye İstatistikleri (modern dashboard) ── */
.ms-page-hero { margin-bottom: 18px; }

.ms-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ms-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .015) 100%),
    rgba(8, 5, 4, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.ms-command-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .22);
  transition: border-color .15s, box-shadow .15s;
}
.ms-command-search:focus-within {
  border-color: color-mix(in srgb, var(--ember) 45%, transparent);
  box-shadow: 0 0 0 3px rgba(214, 59, 54, .12);
}
.ms-command-search-ico {
  display: flex;
  align-items: center;
  color: var(--dim);
  flex-shrink: 0;
}
.ms-command-search-ico svg { width: 16px; height: 16px; }
.ms-command-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 12px 0;
  font: inherit;
  font-size: 13px;
}
.ms-command-search input:focus { outline: none; }
.ms-command-search input::placeholder { color: var(--dim); }

.ms-command-sort {
  flex: 1 1 320px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ms-command-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  flex-shrink: 0;
}
.ms-command-sort-label svg { width: 14px; height: 14px; opacity: .75; }

.ms-sort-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}
.ms-sort-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--sc, #ffc56d) 32%, transparent);
  background: color-mix(in srgb, var(--sc, #ffc56d) 8%, rgba(0, 0, 0, .2));
  color: color-mix(in srgb, var(--sc, #ffc56d) 78%, #fff);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.ms-sort-chip svg.ms-sort-chip-svg { width: 13px; height: 13px; opacity: .9; flex-shrink: 0; }
.ms-sort-chip:hover {
  border-color: color-mix(in srgb, var(--sc, #ffc56d) 55%, transparent);
  box-shadow: 0 4px 14px -8px color-mix(in srgb, var(--sc, #ffc56d) 32%, transparent);
}
.ms-sort-chip.sel {
  background: var(--sc, var(--ember));
  border-color: transparent;
  color: #14080a;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--sc, #ffc56d) 38%, transparent);
}

.ms-list-panel {
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, .65);
}
.ms-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .12);
}
.ms-list-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.ms-list-title svg { width: 15px; height: 15px; color: var(--ember); }
.ms-list-sub { font-size: 11px; }
.ms-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ms-reset-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.ms-reset-all-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.ms-reset-rewards-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  border-color: rgba(177, 140, 255, .35) !important;
  color: #d4bcff !important;
}
.ms-reset-rewards-btn:hover {
  background: rgba(177, 140, 255, .1) !important;
  border-color: rgba(177, 140, 255, .5) !important;
}
.ms-reset-rewards-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.ms-reset-dialog { text-align: center; }
.ms-reset-dialog-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 112, .1);
  border: 1px solid rgba(255, 138, 112, .28);
  color: var(--red);
}
.ms-reset-dialog-ico svg { width: 26px; height: 26px; }
.ms-reset-dialog h3 { margin-bottom: 10px; font-size: 18px; }
.ms-reset-dialog-lead {
  line-height: 1.55;
  margin-bottom: 16px;
  text-align: left;
}
.ms-reset-dialog-lead strong { color: #ffc56d; }
.ms-reset-dialog--rewards .ms-reset-dialog-ico {
  background: rgba(177, 140, 255, .1);
  border-color: rgba(177, 140, 255, .28);
  color: #b18cff;
}
.ms-reset-dialog--rewards .ms-reset-dialog-lead strong { color: #b18cff; }
.ms-reset-dialog--rewards .ms-reset-stat {
  border-color: rgba(177, 140, 255, .18);
  background: rgba(177, 140, 255, .06);
}
.ms-reset-dialog--rewards .ms-reset-stat-val { color: #b18cff; }
.ms-reset-dialog-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.ms-reset-dialog-stats--3 { grid-template-columns: repeat(3, 1fr); }
.ms-reset-stat {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 197, 109, .18);
  background: rgba(255, 197, 109, .06);
}
.ms-reset-stat-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #ffc56d;
  margin-bottom: 4px;
}
.ms-reset-stat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dim);
}
.ms-reset-dialog-warn {
  text-align: left;
  margin-bottom: 18px;
  background: rgba(255, 138, 112, .06) !important;
  border-color: rgba(255, 138, 112, .22) !important;
}
.ms-reset-dialog-warn span { line-height: 1.5; }
.ms-reset-dialog .modal-foot { justify-content: stretch; }
.ms-reset-dialog .modal-foot .btn { flex: 1; justify-content: center; }
.ms-reset-dialog .modal-foot .danger-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ms-reset-dialog .modal-foot .danger-solid svg { width: 16px; height: 16px; }

@media (max-width: 520px) {
  .ms-reset-dialog-stats,
  .ms-reset-dialog-stats--3 { grid-template-columns: 1fr; }
  .ms-list-actions { width: 100%; justify-content: space-between; }
}

.ms-table-wrap { border: 0; border-radius: 0; }
.ms-table-wrap table tbody tr { cursor: pointer; transition: background .15s; }
.ms-table-wrap table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.ms-table-wrap table tbody tr.ms-row-active {
  background: rgba(126, 226, 160, .09);
  box-shadow: inset 3px 0 0 #7ee2a0;
}

.ms-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 8px;
  border-left: 2px solid color-mix(in srgb, var(--msc, #ffc56d) 55%, transparent);
}
.ms-stat-cell b { font-size: 13px; font-weight: 800; color: color-mix(in srgb, var(--msc, #ffc56d) 75%, #fff); }
.ms-stat-cell span { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }

/* [DISCORD] Üye listesinde bağlı/değil rozeti */
.ms-discord-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent;
}
.ms-discord-tag .ms-discord-ico { display: inline-flex; }
.ms-discord-tag .ms-discord-ico svg { width: 14px; height: 14px; }
.ms-discord-tag.on {
  color: #c9d2ff;
  background: color-mix(in srgb, #5865F2 18%, transparent);
  border-color: color-mix(in srgb, #5865F2 42%, transparent);
}
.ms-discord-tag.off { color: var(--dim); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }

/* [BOOSTER] Discord sunucu/rol ayar kartı */
/* [PANEL] Ortak içerik kartı — booster vb. sayfa içi formlar */
.admin-panel-card {
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.admin-form-grid { display: grid; gap: 16px; }
.admin-form-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .admin-form-grid--2 { grid-template-columns: 1fr; } }
.admin-panel-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 6px; margin-top: 4px;
  border-top: 1px solid var(--border-soft);
}

/* [BOOSTER] Modal içi Discord ayarı */
.booster-modal .rw-modal-head h3 { margin-bottom: 6px; }
#booster-config-open-btn {
  color: #aab2ff;
  border-color: color-mix(in srgb, #5865F2 35%, var(--border));
  background: color-mix(in srgb, #5865F2 10%, transparent);
}
#booster-config-open-btn:hover {
  border-color: color-mix(in srgb, #5865F2 55%, var(--ember));
  background: color-mix(in srgb, #5865F2 18%, transparent);
  color: #fff;
}
#booster-config-open-btn svg { flex-shrink: 0; }

.ms-edit-btn {
  border-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .04) !important;
}
.ms-edit-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--ember) 50%, transparent) !important;
  color: var(--ember) !important;
}
.ms-edit-btn svg { width: 14px; height: 14px; }

.ms-pager {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .08);
}

.ms-table-wrap .ucell .uname { line-height: 1.35; }
.ms-table-wrap .ucell .udisp { margin-top: 2px; line-height: 1.35; }

/* ── Üye istatistikleri düzenleme modalı ── */
.modal-body:has(.ms-modal) { padding: 22px 24px 20px; }
.ms-modal { display: flex; flex-direction: column; gap: 0; }
.ms-modal--loading { gap: 0; }

.ms-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.ms-modal-user { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.ms-modal-ava {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.ms-modal-ava--txt {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  font-weight: 800;
  font-size: 17px;
}
.ms-modal-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffc56d;
  margin-bottom: 4px;
}
.ms-modal-head h3 { margin: 0 0 4px; font-size: 17px; }
.ms-modal-head p { margin: 0 0 8px; font-size: 12.5px; }
.ms-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-modal-close {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 10px !important;
}
.ms-modal-close svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.ms-modal-rewards {
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.ms-modal-rewards-label {
  display: block;
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ms-reward-strip { display: flex; flex-wrap: wrap; gap: 6px; }

.ms-modal-form { display: flex; flex-direction: column; gap: 0; }
.ms-modal-section {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.ms-modal-section:first-of-type { border-top: none; padding-top: 0; }
.ms-modal-section--amber .ms-modal-section-title svg { color: #ffc56d; }
.ms-modal-section--violet .ms-modal-section-title svg { color: #b18cff; }
.ms-modal-section-title {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.ms-modal-section-title svg { width: 14px; height: 14px; flex-shrink: 0; }

.ms-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ms-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ms-field--wide { grid-column: 1 / -1; }
.ms-field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ms-field-hint {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.35;
  margin-top: -2px;
}
.ms-field-note {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  margin-top: 8px;
}
.ms-modal .ms-field input[type="text"]:not(.ms-step-input) {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .22);
  color: inherit;
  padding: 10px 12px;
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.ms-modal .ms-field input[type="text"]:not(.ms-step-input):focus {
  outline: none;
  border-color: rgba(126, 226, 160, .45);
  box-shadow: 0 0 0 3px rgba(126, 226, 160, .1);
}
.ms-modal .ms-field input[type="text"]:not(.ms-step-input)[readonly] { opacity: .72; cursor: not-allowed; }
.ms-field em { font-style: normal; font-size: 11px; color: var(--dim); }

/* Özel stepper — tarayıcı number okları yok */
.ms-hms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ms-stepper {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.ms-stepper:focus-within {
  border-color: color-mix(in srgb, var(--ember) 55%, transparent);
  box-shadow: 0 0 0 3px rgba(214, 59, 54, .12);
}
.ms-stepper--readonly { grid-template-columns: 1fr; }
.ms-step-btn {
  display: grid;
  place-items: center;
  border: none;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.ms-step-btn:hover { background: rgba(255, 255, 255, .08); color: #ffc56d; }
.ms-step-btn:active { background: rgba(255, 197, 109, .14); }
.ms-step-btn svg { width: 15px; height: 15px; display: block; }
.ms-step-core {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  min-height: 44px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.ms-stepper--readonly .ms-step-core { border: none; }
.ms-step-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 16px !important;
  font-weight: 800;
  color: var(--text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.ms-step-input:focus { outline: none; box-shadow: none !important; }
.ms-step-input::-webkit-outer-spin-button,
.ms-step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ms-step-value {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.ms-step-unit {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

.ms-modal-actions {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.ms-modal-actions.modal-foot {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ms-modal-actions-left,
.ms-modal-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ms-reset-user-rewards {
  color: #e8b4ff;
  border-color: color-mix(in srgb, #b18cff 35%, rgba(255, 255, 255, .1));
  background: color-mix(in srgb, #b18cff 8%, rgba(255, 255, 255, .03));
}
.ms-reset-user-rewards:hover {
  border-color: color-mix(in srgb, #b18cff 55%, rgba(255, 255, 255, .12));
  background: color-mix(in srgb, #b18cff 14%, rgba(255, 255, 255, .04));
  color: #f0d4ff;
}
.ms-reset-user-rewards svg { width: 14px; height: 14px; flex-shrink: 0; }
.ms-readonly-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; }

.dv3-card-head--actions,
.dv4-card-head--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dv3-card-head-title,
.dv4-card-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* ── Rozet aura — tam stiller: /admin/reward-badge.css ── */
.user-reward-badges .urb.reward-aura,
.dv3-reward-ico.reward-aura,
.role-swatch.reward-aura {
  position: relative;
  overflow: visible;
  --bc: var(--rc, #d63b36);
  --bc-hi: color-mix(in srgb, var(--bc) 72%, #fff);
  --bc-mid: color-mix(in srgb, var(--bc) 88%, #fff);
  --bc-soft: color-mix(in srgb, var(--bc) 45%, transparent);
  --bc-glow: color-mix(in srgb, var(--bc) 62%, transparent);
}

.rw-effect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.rw-effect {
  /* [FX-CLIP] Aura katmanları negatif inset ile taşar — kart içinde kırpılır,
     komşu kartların yazısının/tooltip'in üstüne binmez. */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color .15s, background .15s, transform .12s;
}
.rw-effect:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.rw-effect.sel {
  border-color: color-mix(in srgb, var(--ember) 55%, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--ember) 10%, rgba(255,255,255,.04));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ember) 25%, transparent);
}
.rw-effect-preview {
  --badge-size: 36px;
  /* [FX-SCALE] Önizlemede aura yayılımı küçültülür — efekt kartın içinde kalır. */
  --aura-spread: 0.55;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  border: 2px solid color-mix(in srgb, var(--rc) 42%, rgba(255,255,255,.14));
  background: linear-gradient(145deg, color-mix(in srgb, var(--rc) 22%, rgba(255,255,255,.1)), color-mix(in srgb, var(--rc) 10%, rgba(0,0,0,.28)));
}
.rw-effect-preview .reward-badge-ico {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--rc) 82%, #fff);
}
.rw-effect-preview .reward-badge-ico svg,
.rw-effect-preview .reward-badge-ico img { width: 16px; height: 16px; display: block; }
.rw-effect-copy { min-width: 0; }
.rw-effect-copy b { display: block; font-size: 12px; font-weight: 800; }
.rw-effect-copy span { display: block; font-size: 10.5px; color: var(--dim); margin-top: 2px; line-height: 1.35; }
.reward-chip-effect { color: #e8b4ff !important; border-color: color-mix(in srgb, #b18cff 35%, transparent) !important; }
.role-swatch.reward-aura {
  overflow: visible;
  position: relative;
}
.role-swatch.reward-aura .reward-badge-ico {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}
.user-reward-badges .urb.reward-aura,
.dv3-reward-ico.reward-aura {
  overflow: visible;
}

@media (max-width: 640px) {
  .ms-command-bar { flex-direction: column; }
  .ms-command-sort { flex-direction: column; align-items: stretch; }
  .ms-form-grid { grid-template-columns: 1fr; }
  .ms-hms-grid { grid-template-columns: 1fr; }
  .modal-body:has(.ms-modal) { padding: 18px 16px 16px; }
  .rw-effect-grid { grid-template-columns: 1fr 1fr; }
}

