/* Starwide for Developers — profile frames, verified check and the octagonal Commission button.
   Loaded site-wide (small) because avatars appear everywhere. */

:root {
	--swdev-oct-shape: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
	--swdev-check: #22c55e;
	--swdev-check-size: 16px; /* spec: 16×16 verification badge */
}

/* Frames: octagon = verified developer, square = brand account, round = everyone else (theme default). */
img.swdev-frame-oct { border-radius: 0 !important; clip-path: var(--swdev-oct-shape); }
img.swdev-frame-square { border-radius: 18% !important; clip-path: none; }

/* Big profile picture (Starwide Profiles header). */
.swdev-profile-oct .swpro-head__avatar img { border-radius: 0 !important; clip-path: var(--swdev-oct-shape); }
.swdev-profile-oct .swpro-head__avatar { border-radius: 0; background: none; }
.swdev-profile-oct .swpro-head__avatar::before {
	content: ""; position: absolute; z-index: 3; top: 4%; left: 4%;
	width: calc(var(--swdev-check-size) * 1.5); height: calc(var(--swdev-check-size) * 1.5); border-radius: 50%;
	background: var(--swdev-check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 62% no-repeat;
	box-shadow: 0 0 0 3px var(--sw-bg, #001935);
}
.swdev-profile-oct .swpro-head__avatar { position: relative; }
.swdev-profile-square .swpro-head__avatar.is-round img { border-radius: 18% !important; }

/* Octagonal Commission button, beside Follow / Message (replaces the usual pill shape). */
.swdev-hire-wrap { display: inline-flex; }
.swdev-octbtn {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border: 0; cursor: pointer;
	font: inherit; font-weight: 800; font-size: .92rem; color: #fff;
	background: linear-gradient(135deg, #1fae5b, #15803d);
	clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
	transition: filter .15s, transform .1s;
}
.swdev-octbtn:hover { filter: brightness(1.1); }
.swdev-octbtn:active { transform: translateY(1px); }
.swdev-octbtn:focus-visible { outline: 2px solid var(--sw-link, #f5d547); outline-offset: 3px; }

/* Commission dialog */
.swdev-hire { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: #0d1622; color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.swdev-hire::backdrop { background: rgba(0, 4, 12, .66); backdrop-filter: blur(3px); }
.swdev-hire__inner { padding: 20px 22px 22px; display: grid; gap: 14px; }
.swdev-hire header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.swdev-hire h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.swdev-hire__x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, .7); font-size: 1.4rem; cursor: pointer; }
.swdev-hire__x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.swdev-hire__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(0, 0, 0, .35); }
.swdev-hire__tabs button { flex: 1; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: rgba(255, 255, 255, .7); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.swdev-hire__tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.swdev-hire__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #f5d547; color: #1a1a1a; font-size: .72rem; }
.swdev-hire__pane { display: grid; gap: 12px; }
.swdev-hire__pane[hidden] { display: none; }
.swdev-hire__pane p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .92rem; line-height: 1.5; }
.swdev-hire__from { color: #fff !important; font-weight: 800; font-size: 1.05rem !important; }
.swdev-hire__terms { font-size: .82rem !important; color: rgba(255, 255, 255, .55) !important; }
.swdev-hire__muted { color: rgba(255, 255, 255, .55) !important; }
.swdev-hire__go { display: flex; justify-content: center; align-items: center; min-height: 44px; border: 0; border-radius: 999px; background: var(--sw-velvet-red, #7b0d2e); color: #fff !important; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.swdev-hire__go:hover { background: var(--sw-velvet-red-hover, #99123a); }
.swdev-hire__tokens { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.swdev-hire__tokens li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-size: .85rem; }
.swdev-hire__tokens code { color: #e8f3ec; letter-spacing: .1em; }
.swdev-hire__tokens span { color: rgba(255, 255, 255, .55); }
.swdev-hire__tokens b { font-family: ui-monospace, Menlo, Consolas, monospace; }
.swdev-via { opacity: .7; font-size: .9em; }
