/* ============================================================ roller sayfası */
.roles-page-hero { margin-bottom: 18px; }
.roles-page-hero .ph-body strong { color: var(--muted); font-weight: 700; }
.roles-page-hero .ph-stats { align-self: flex-start; }
@media (max-width: 900px) {
  .roles-page-hero { flex-wrap: wrap; }
  .roles-page-hero .ph-stats { width: 100%; justify-content: flex-start; }
}

.roles-section-head {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
}
.roles-section-head--gap { margin-top: 22px; }
.rsh-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
}
.rsh-ico svg { width: 18px; height: 18px; display: block; }
.rsh-ico-panel { color: #b18cff; background: rgba(177, 140, 255, .1); border-color: rgba(177, 140, 255, .24); }
.rsh-ico-tier { color: #7ee2a0; background: rgba(126, 226, 160, .1); border-color: rgba(126, 226, 160, .24); }
.rsh-body { flex: 1; min-width: 0; }
.rsh-body b { display: block; font-size: 14px; margin-bottom: 3px; }
.rsh-body span { color: var(--dim); font-size: 12px; line-height: 1.55; display: block; }
.rsh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.roles-section-head .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .roles-section-head { flex-wrap: wrap; }
  .rsh-actions { width: 100%; margin-left: 0; flex-direction: column; }
  .rsh-actions .btn { width: 100%; justify-content: center; }
}

/* eski başlık — geriye dönük */
.roles-head {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 16px 18px; margin-bottom: 14px;
}
.roles-info b { display: block; font-size: 14px; }
.roles-info span { color: var(--dim); font-size: 12px; }
.roles-head .btn { margin-left: auto; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.role-card {
  background: var(--glass); border: 1px solid var(--border-soft);
  border-radius: 18px; padding: 18px;
  position: relative;
  transition: border-color .2s;
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}
.role-card:hover { border-color: var(--border); z-index: 6; }
.role-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rc, var(--ember));
  border-radius: 18px 18px 0 0;
}
.role-card--owner {
  border-color: color-mix(in srgb, #f0c14b 38%, var(--border-soft));
  background:
    linear-gradient(165deg, rgba(240, 193, 75, 0.1) 0%, rgba(255, 244, 194, 0.03) 28%, var(--glass) 58%);
  box-shadow:
    0 0 0 1px rgba(240, 193, 75, 0.06) inset,
    0 12px 32px rgba(0, 0, 0, 0.22),
    0 0 28px rgba(240, 193, 75, 0.07);
}
.role-card--owner::before {
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    #c9922e 18%,
    #f0c14b 42%,
    #fff4c2 50%,
    #f0c14b 58%,
    #c9922e 82%,
    transparent 100%);
}
.role-card--owner:hover {
  border-color: color-mix(in srgb, #f0c14b 52%, var(--border));
  box-shadow:
    0 0 0 1px rgba(240, 193, 75, 0.1) inset,
    0 14px 36px rgba(0, 0, 0, 0.26),
    0 0 34px rgba(240, 193, 75, 0.1);
}
.role-swatch--owner {
  background: linear-gradient(145deg, rgba(240, 193, 75, 0.24), rgba(201, 146, 46, 0.1));
  border: 1px solid rgba(240, 193, 75, 0.42);
  box-shadow: 0 0 18px rgba(240, 193, 75, 0.14);
  color: #fff4c2;
}
.role-chip.owner-badge {
  background: linear-gradient(135deg, rgba(240, 193, 75, 0.22), rgba(201, 146, 46, 0.12));
  border: 1px solid rgba(240, 193, 75, 0.35);
  color: #fff4c2;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role-locked-note--owner {
  border-color: rgba(240, 193, 75, 0.22);
  background: rgba(240, 193, 75, 0.06);
  color: #e8d08a;
}
.role-locked-note--owner svg { stroke: #f0c14b; }
.rm-role-card[data-role-id="owner"],
.rm-role-card.rm-role-card--owner {
  border-color: rgba(240, 193, 75, 0.28);
  background: linear-gradient(165deg, rgba(240, 193, 75, 0.08), rgba(255, 255, 255, 0.02));
}
.role-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.role-swatch {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--rc, #d63b36) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc, #d63b36) 35%, transparent);
  color: var(--rc, #d63b36);
}
.role-swatch svg { width: 17px; height: 17px; }
.role-card-head b { font-size: 14.5px; display: block; }
.role-card-head .muted { display: block; }
.role-card-head .role-x {
  margin-left: auto;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: none; border: 1px solid transparent;
  color: var(--dim); cursor: pointer; transition: all .15s;
}
.role-card-head .role-x svg { width: 13px; height: 13px; }
.role-card-head .role-x:hover { border-color: rgba(255, 138, 112, .3); color: var(--red); }
.role-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 11px; margin-bottom: 4px;
  font-size: 12.5px; color: var(--muted);
  transition: background .14s;
}
.role-row:hover { background: rgba(214, 59, 54, .05); }
.role-row .switch { margin-left: auto; }
.role-row.is-locked { opacity: .45; pointer-events: none; }
.role-sec { color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 10px 10px 5px; }
.role-color-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.role-color-row--pro {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 4px 0 16px;
}
.role-color-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.role-color-presets { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.role-swatch--circle {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.role-color-row input[type="color"] {
  width: 34px; height: 26px; border: none; background: none; cursor: pointer;
  border-radius: 7px; padding: 0;
}
.role-color-row--pro input[type="color"] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer;
}
.feat-bulk-bar {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; margin: 2px 0 10px; flex-wrap: wrap;
}
.btn-compact { padding: 6px 12px; font-size: 11px; border-radius: 999px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  color: var(--muted);
}
.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--peach);
  background: rgba(214, 59, 54, 0.08);
}
.role-locked-note {
  display: flex; align-items: center; gap: 8px;
  color: var(--dim); font-size: 11.5px;
  padding: 9px 11px; border-radius: 11px;
  background: rgba(20, 10, 12, .4); border: 1px dashed var(--border-soft);
  margin-top: 6px;
}
.role-locked-note svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ============================================================ rol kart? tipografisi */
.role-swatch { cursor: pointer; transition: transform .12s, box-shadow .15s; }
button.role-swatch:hover { transform: scale(1.06); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc, #d63b36) 20%, transparent); }
.role-id { min-width: 0; }
.role-name { font-size: 15.5px; font-weight: 800; letter-spacing: .2px; display: block; margin-bottom: 4px; }
.role-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.role-chip {
  display: inline-flex; align-items: center;
  padding: 2.5px 9px; border-radius: 99px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-soft);
  color: var(--muted);
}
.role-chip.rank {
  color: var(--rc, var(--ember));
  background: color-mix(in srgb, var(--rc, #d63b36) 11%, transparent);
  border-color: color-mix(in srgb, var(--rc, #d63b36) 30%, transparent);
}
.role-chip.dim { color: var(--dim); }

/* ============================================================ �zel rol ikonu (media:) */
img.ri-img { width: 16px; height: 16px; border-radius: 5px; object-fit: cover; display: block; }
.role-swatch img.ri-img { width: 20px; height: 20px; border-radius: 7px; }
.am-tier-ico img.ri-img { width: 18px; height: 18px; border-radius: 6px; }
.tier-tag-ico img.ri-img, .role-tag-ico img.ri-img { width: 11px; height: 11px; border-radius: 3px; }

